hi i m trying to pack a module in scratchbox. I am using dpkg version 1.10.26 target information on scratchbox is Compiler: i686-linux-gcc-3.4.4-cs-2005q3-2-glibc-2.3.6 │ │ Architecture: i686 │ │ Sub-architecture: i686 │ │ C-library: glibc │ │ │ │ Devkits: debian perl doctools debian-sarge │ │ CPU-transparency: none
currently i m not cross compiling it. When i run dpkg-buildpackage -rfakeroot, the package builds successfully but when i type dpkg --contents ../libamrnb0-dev_0.0.1-1_i386.deb following contents are displayed drwxr-xr-x root/root 0 2007-10-05 15:18:12 ./ drwxr-xr-x root/root 0 2007-10-05 15:18:12 ./usr/ drwxr-xr-x root/root 0 2007-10-05 15:18:12 ./usr/lib/ -rw-r--r-- root/root 231650 2007-10-05 15:18:12 ./usr/lib/libamrnb.a -rwxr-xr-x root/root 801 2007-10-05 15:18:11 ./usr/lib/libamrnb.la drwxr-xr-x root/root 0 2007-10-05 15:18:12 ./usr/include/ drwxr-xr-x root/root 0 2007-10-05 15:18:12 ./usr/include/amrnb/ -rw-r--r-- root/root 978 2007-10-05 15:18:11 ./usr/include/amrnb/interf_enc.h -rw-r--r-- root/root 472 2007-10-05 15:18:11 ./usr/include/amrnb/typedef.h -rw-r--r-- root/root 129904 2007-10-05 15:18:11 ./usr/include/amrnb/rom_dec.h -rw-r--r-- root/root 23541 2007-10-05 15:18:11 ./usr/include/amrnb/interf_rom.h -rw-r--r-- root/root 1423 2007-10-05 15:18:11 ./usrinclude/amrnb/sp_enc.h -rw-r--r-- root/root 208844 2007-10-05 15:18:11 ./usr/include/amrnb/rom_enc.h -rw-r--r-- root/root 1576 2007-10-05 15:18:11 ./usr/include/amrnb/sp_dec.h -rw-r--r-- root/root 870 2007-10-05 15:18:11 ./usr/include/amrnb/interf_dec.h lrwxrwxrwx root/root 0 2007-10-05 15:18:12 ./usr/lib/libamrnb.so -> libamrnb.so.0.0.0 lrwxrwxrwx root/root 0 2007-10-05 15:18:12 ./libamrnb.so.0.0.0 -> /libamrnb.so.0 you can see an unwanted link (last one) getting generated i checked my rules file but found every thing ok. i have used "dh_link -a libamrnb.so libamrnb.so.0.0.0" and dh_link -a libamrnb.so.0 libamrnb.so.0.0.0 in order to generate the links for libamrnb-dev and libamrnb resp. here is my rules file #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif configure-stamp: dh_testdir -rm -f config.sub config.guess ln -s /usr/share/misc/config.sub config.sub ln -s /usr/share/misc/config.guess config.guess autoconf CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr/local --enable-static touch configure-stamp configure: configure-stamp build: build-arch build-indep build-indep: build-indep-stamp clean: dh_testdir dh_testroot -$(MAKE) distclean -rm -f configure-stamp build-arch-stamp build-indep-stamp -rm -f config.sub config.guess config.status config.cache -rm -f configure dh_clean # Build architecture-independent files here. binary-indep: build-indep-stamp install-indep # We have nothing to do by default. build-indep-stamp: build-arch-stamp dh_testdir touch build-indep-stamp install-indep: build-indep-stamp # Build architecture-dependent files here. binary-arch: build-arch-stamp install-arch dh_makeshlibs -plibamrnb0 -V'libamrnb0 (>> 0.0.1)' dh_installdeb -a dh_shlibdeps -a dh_gencontrol -a dh_md5sums -a dh_builddeb -a -v build-arch-stamp: configure-stamp dh_testdir $(MAKE) CFLAGS="$(CFLAGS)" touch build-arch-stamp install-arch: build-arch-stamp dh_testdir dh_testroot dh_clean -k $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp dh_installdirs -a dh_install -a dh_strip -a dh_link -a libamrnb.so libamrnb.so.0.0.0 dh_link -a libamrnb.so.0 libamrnb.so.0.0.0 dh_compress -a binary: binary-indep binary-arch .PHONY: configure build-arch build-indep build clean binary-indep binary-arch binary install-arch install-indep none of the .install files in debian folder contains a path to "/". kindly help varun -- View this message in context: http://www.nabble.com/An-unwanted-link-getting-generated-automatically%3A-building-.deb-package-tf4592068.html#a13109097 Sent from the debian-dpkg mailing list archive at Nabble.com.