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

[hertzog@debian.org: Bug#487437: Please include /etc/dpkg/origins/{debian,default}]



Hi,

I just filed #487437 (see attachment) to start the process of moving
/etc/dpkg/origins/debian to base-files and to request
a symlink default -> debian so that we can rely on
/etc/dpkg/origins/default to look up the vendor of the
currently installed system.

The code for this is already in the master branch of git's
repo (see the link in the bug report).

If you have any comments, please share them.

Currently the information in those files is very limited and mostly
descriptive (a name, an URL, and a pointer to the vendor BTS).
We might want to add more over time... in particular we could add
a list of valid distribution names for the vendor. This could be useful
in changelog parsing to know if a given entry corresponds to an
upload of the current vendor or not.

If you have other similarly useful information to add to those files, feel
free to suggest them.

Cheers,
-- 
Raphaël Hertzog

Le best-seller français mis à jour pour Debian Etch :
http://www.ouaza.com/livre/admin-debian/
--- Begin Message ---
Package: base-files
Version: 4.0.4
Severity: wishlist

Please include /etc/dpkg/origins/debian and a symlink
/etc/dpkg/origins/default -> debian in the base-files package.

The idea is that this symlink should let us detect the vendor of the
currently installed system. This facility will be used in dpkg to
offer customized build of Debian packages depending on the current system.
That way a single source could be shared betwen Debian and the derivatives
distributions that collaborate with the Debian maintainer (even when some
differences are needed).
See http://git.debian.org/?p=dpkg/dpkg.git;a=commitdiff;h=322153b6e8cbe50724f85678f46be5193a751a12
and http://bugs.debian.org/457371 for this precise use case.

We could keep those files in dpkg but we think it's best if they are part
of base-files since base-files is a package that any derivative has to
modify anyway and is also less complex than dpkg.

When you do that, please add a "Replaces: dpkg (<< 1.15)". 

You should aim to make it easy to drop a supplementary file in that
directory and update the symlink. So make sure the build system
automatically includes all files from the directory where you'll put the
files in the source tarball.

Feel free to comment on any point... this idea has been floating around in
the dpkg team since quite some time but it's always possible that we
missed some important point and we haven't had any recent discussion. I'll
forward this bug report to the debian-dpkg list so that people can comment
if needed.

Cheers,
-- 
Raphaël Hertzog

Le best-seller français mis à jour pour Debian Etch :
http://www.ouaza.com/livre/admin-debian/




--- End Message ---

Reply to: