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

Plan to fix dpkg-shlibs for udebs



Hi,

for a long time I've been anoyed about udebs depending on the library
debs instead of the coresponding library udebs. Peole are using
dpkg-shlibs to fill in the Depends for udebs (which isn't neccesarily
a bad thing) and get it consistently wrong.

So here is my plan how to fix this:

1) 'dpkg-shlibdeps -u' switches dpkg-shlibdeps into udeb mode (patch
in BTS).

This has 2 effects:

- look for shlibs-udeb across the board instead of shlibs

- set shlibs-udeb:<dependencyfield> instead of
  shlibs:<dependencyfield> in substvars.


2) library packages producing udebs create a libfoo.shlibs-udeb file

The syntax is exactly like *.shlibs files and the only change is that
the package names must list the libfoo-udeb package instead of libfoo.

3) udebs change over to use the shlids-udeb info

In rules file 'dpkg-shlibdeps -u' has to be run instead (or on top of
if debs are also build) 'dpkg-shlibdeps. debhelper will probably take
care of that either automaticaly or with some to be created option.

Further the contol file has to use the new variables. Normaly that
means:

-Depends: ${shlibs:Depends}
+Depends: ${shlibs-udeb:Depends}


Any objections or things I forgot?

MfG
        Goswin



Reply to: