Re: [opennms-devel] Trouble building Debian packages

Paul Donohue <[email protected]>
Newsgroups gmane.network.opennms.bugs
Message-ID <20080602145603.GB10872__35253.2962606803$1212418710$gmane$org@TopQuark.net>
All of the build-tree stuff it's doing is being automatically done by cdbs...

I'm not all that familiar with cdbs myself...

I wonder if it's looking in the wrong place for the sources?  Try setting "DEB_SRCDIR = $(CURDIR)" in debian/rules...
https://perso.duckcorp.org/duck/cdbs-doc/cdbs-doc.xhtml#id2480198

I haven't compiled iplike and jicmp in quite a while, but I don't remember having any trouble the last time I did it, so I'm not really sure what might have changed to cause this behavior.

On Fri, May 30, 2008 at 04:39:19PM +0100, Alex Bennee wrote:
> Hi,
> 
> I'm having real trouble building Debian packages for the ancillary
> programs needed for OpenNMS (iplike and jicmp). The main opennms built
> fine with the appropriate debian directory and a "dpkg-buildpackage
> -rfakeroot -b". However when I try that on the other bits they fail on
> me:
> 
> 16:30 ajb@pitcairn/x86_64 [jicmp.svn] >dpkg-buildpackage -rfakeroot -b
> dpkg-buildpackage: set CPPFLAGS to default value:
> dpkg-buildpackage: set CFLAGS to default value: -g -O2
> dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
> dpkg-buildpackage: set FFLAGS to default value: -g -O2
> dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
> dpkg-buildpackage: source package jicmp
> dpkg-buildpackage: source version 1.0.8-1
> dpkg-buildpackage: source changed by Benjamin Reed <[email protected]>
> dpkg-buildpackage: host architecture amd64
>  fakeroot debian/rules clean
> test -x debian/rules
> test "`id -u`" = 0
> rm -rf build-tree
> rm
> rm: missing operand
> Try `rm --help' for more information.
> make: [cleanbuilddir] Error 1 (ignored)
> rm debian/stamp-patch-* 2>/dev/null
> make: [cleanbuilddir] Error 1 (ignored)
> /usr/bin/make -C build-tree/jicmp-1.0.8 -k distclean
> make: *** build-tree/jicmp-1.0.8: No such file or directory.  Stop.
> make: [makefile-clean] Error 2 (ignored)
> rm -f debian/stamp-makefile-build
> rm -f debian/stamp-autotools-files
> dh_clean
>         rm -f debian/jicmp.substvars
>         rm -f debian/jicmp.*.debhelper
>         rm -rf debian/jicmp/
>         rm -f debian/files
>         find .  \( \( -type f -a \
>                 \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \
>                  -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \
>                  -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \
>                  -o -name TAGS -o -name core -o \( -path '*/.deps/*' -a -name '*.P' \) \
>                 \) -exec rm -f {} \; \) -o \
>                 \( -type d -a -name autom4te.cache -prune -exec rm -rf {} \; \) \)
>  debian/rules build
> test -x debian/rules
> mkdir -p "build-tree/jicmp-1.0.8"
> touch debian/stamp-autotools-files
> chmod a+x /export/src/opennms/jicmp/jicmp.svn/build-tree/jicmp-1.0.8/configure
> chmod: cannot access `/export/src/opennms/jicmp/jicmp.svn/build-tree/jicmp-1.0.8/configure': No such file or directory
> make: *** [build-tree/jicmp-1.0.8/config.status] Error 1
> dpkg-buildpackage: failure: debian/rules build gave error exit status 2
> 
> As you can see it creates a build tree and attempts and then fails
> because it's empty. Am I meant to be creating a src tarball before I run
> my build or should I just be able to build with some other magic
> invocation?
> 
> I'm not that familiar with Debian packaging but I thought it was
> possible to build "straight from source"?
> 
> 
> -- 
> Alex Bennee, Software Engineer
> With listening comes wisdom, with speaking repentance.
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Please read the OpenNMS Mailing List FAQ:
> http://www.opennms.org/index.php/Mailing_List_FAQ
> 
> opennms-devel mailing list
> 
> To *unsubscribe* or change your subscription options, see the bottom of this page:
> https://lists.sourceforge.net/lists/listinfo/opennms-devel
> 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.