Ben Darnell <[EMAIL PROTECTED]> writes:

> I have a package which depends on libgl1.  On my machine, libgl1 is
> provided by mesag3-glide2.  When I build the package, dpkg-shlibdeps
> makes it depend on svgalibg1 as well, because mesag3-glide2 needs it.
> This is inappropriate, since other packages which provide libgl1 do not
> need svgalibg1.  How do I override this?

>From /usr/doc/svgalib-dummyg1/README.debian.gz:

| But if your package can function equally with the real or the dummy
| lib, you have to modify dependencies a bit. To do this, insert the
| following code in debian/rules between the calls of dpkg-shlibdeps and
| dpkg-gencontrol:
| 
|       set -e; \
|       if ! grep svgalib-dummyg1 debian/substvars >/dev/null ; then \
|               mv debian/substvars debian/substvars-unhacked ; \
|               sed -e 's/svgalibg1\( *([^)]*)\)\{0,1\}/& | svgalib-dummyg1\1/' 
<debian/substvars-unhacked >debian/substvars; \
|               rm debian/substvars-unhacked; \
|       fi
| 
| This replaces the svgalibg1 dependency by an alternative with
| svgalib-dummyg1, and versioned dependencies are preserved.

It Works For Me (TM) [q.v. xplanet].

-- 
James

Reply via email to