[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

An unwanted link getting generated automatically: building .deb package


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
-rw-r--r-- root/root       472 2007-10-05 15:18:11
-rw-r--r-- root/root    129904 2007-10-05 15:18:11
-rw-r--r-- root/root     23541 2007-10-05 15:18:11
-rw-r--r-- root/root      1423 2007-10-05 15:18:11
-rw-r--r-- root/root    208844 2007-10-05 15:18:11
-rw-r--r-- root/root      1576 2007-10-05 15:18:11
-rw-r--r-- root/root       870 2007-10-05 15:18:11
lrwxrwxrwx root/root         0 2007-10-05 15:18:12 ./usr/lib/libamrnb.so ->
lrwxrwxrwx root/root         0 2007-10-05 15:18:12 ./libamrnb.so.0.0.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

# 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
        CFLAGS += -O2
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
        INSTALL_PROGRAM += -s

        -rm -f config.sub config.guess
        ln -s /usr/share/misc/config.sub config.sub
        ln -s /usr/share/misc/config.guess config.guess
        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

        -$(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

# 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
        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
        $(MAKE) CFLAGS="$(CFLAGS)"
        touch build-arch-stamp

install-arch: build-arch-stamp
        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
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.

Reply to: