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

Re: control file and {shlibs:Depends}



On Mon, Mar 05, 2001 at 12:32:54PM +0100, Tom Cato Amundsen wrote:
> Is it ok to configure a package differently on one arch?
> I want to build solfege with --disable-oss-sound on m68k until
> the binutils/glibc problems are fixed.
> 
> If I use --disable-oss-sound (only on m68k), the package contains
> only python code, so ${shlibs:Depends} is an empty string. And then
> dpkg-deb will complain because the Depends: line ends with a comma (,).

Have a look at the fvwm1 package: in debian/rules I do this (where my
issue was about an empty ${shlibs:Suggests}):

clean:
	...
	if [ -f debian/control.suggests ]; then \
	    mv debian/control.suggests debian/control; fi
        ...

binary-arch:
	...
	dh_shlibdeps -XFvwmAudio -- \
	    -dSuggests $(TMP)/usr/X11R6/lib/X11/fvwm/FvwmAudio
#	Overwrite the control file if necessary
	cd debian && \
	    if ! grep 'shlibs:Suggests=' substvars >/dev/null 2>&1; \
	    then cp control control.suggests && \
	    sed -e 's/, \$${shlibs:Suggests}//' < control.suggests > control; \
	    fi
	dh_gencontrol
	...

   Julian

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

         Julian Gilbey, Dept of Maths, Queen Mary, Univ. of London
       Debian GNU/Linux Developer,  see http://people.debian.org/~jdg
  Donate free food to the world's hungry: see http://www.thehungersite.com/



Reply to: