Re: Silly Packaging Problem

2006-08-12 Thread Bruce Sass
On Fri August 11 2006 04:51, Ian Jackson wrote: > Bruce Sass writes ("Re: Silly Packaging Problem"): > > "files" and "size" accommodate the desire to include generated or > > packageless files and their size (if knowable) in the dpkg DB. > > This

Re: Silly Packaging Problem

2006-08-11 Thread Goswin von Brederlow
Bruce Sass <[EMAIL PROTECTED]> writes: > On Thu August 10 2006 10:16, martin f krafft wrote: >> also sprach Goswin von Brederlow > <[EMAIL PROTECTED]> [2006.08.10.1647 +0100]: >> > How about allowing conffiles to list files that are generated at >> > install time and are not included in the deb?

Re: Silly Packaging Problem

2006-08-11 Thread Goswin von Brederlow
martin f krafft <[EMAIL PROTECTED]> writes: > also sprach Goswin von Brederlow <[EMAIL PROTECTED]> [2006.08.10.1647 +0100]: >> How about allowing conffiles to list files that are generated at >> install time and are not included in the deb? > > You can, but then you run up against policy. You are

Re: Silly Packaging Problem

2006-08-11 Thread Vincent Danjean
Bruce Sass a écrit : > I will be so bold as to suggest... > > Synopsis: update-package [options] > > update-package [options] --add-files= > update-package [options] --remove-files= > update-package [options] --size= > update-package [options] --field=:: > > Commands: [...] > Options: > -

Re: Silly Packaging Problem

2006-08-11 Thread Ian Jackson
Bruce Sass writes ("Re: Silly Packaging Problem"): > "files" and "size" accommodate the desire to include generated or > packageless files and their size (if knowable) in the dpkg DB. This is a bad idea. dpkg maintains these lists of files not primarily fo

Re: Silly Packaging Problem

2006-08-10 Thread Bruce Sass
On Thu August 10 2006 16:20, martin f krafft wrote: > also sprach Bruce Sass <[EMAIL PROTECTED]> [2006.08.10.2237 +0100]: > > No point setting oneself up for bugs if it is not necessary. > > > > The script wouldn't determine anything, it would simply append > > paths to the package's list of paths.

Re: Silly Packaging Problem

2006-08-10 Thread sean finney
On Thu, Aug 10, 2006 at 06:35:03PM -0400, peek wrote: > place. It just seems a little cleaner: you could query dpkg for what > package *every* file came from -- no files left out; and you don't what about rotated log files? pid files? lock files? misc stuff in /var/cache? that's not to bash th

Re: Silly Packaging Problem

2006-08-10 Thread peek
Bruce Sass wrote: An "update-package" command, run at install time by the maintainer's scripts right after file generation succeeds, would head off potential problems with synchronization that are outside of the Maintainer's control (e.g., DEBIAN/dynfiles containing incorrectly generated paths

Re: Silly Packaging Problem

2006-08-10 Thread peek
sean finney wrote: On Thu, Aug 10, 2006 at 11:01:30AM +0100, martin f krafft wrote: No, at least not for /etc. You could install the file, the overwrite it, but files installed to /etc by dpkg are conffiles and those must not be touched programmatically, according to policy. i think a

Re: Silly Packaging Problem

2006-08-10 Thread martin f krafft
also sprach Bruce Sass <[EMAIL PROTECTED]> [2006.08.10.2237 +0100]: > No point setting oneself up for bugs if it is not necessary. > > The script wouldn't determine anything, it would simply append paths to > the package's list of paths. The Maintainer would need to call the > script "right afte

Re: Silly Packaging Problem

2006-08-10 Thread Bruce Sass
On Thu August 10 2006 15:10, martin f krafft wrote: > also sprach Bruce Sass <[EMAIL PROTECTED]> [2006.08.10.2124 +0100]: > > An "update-package" command, run at install time by the > > maintainer's scripts right after file generation succeeds, would > > head off potential problems with synchroniza

Re: Silly Packaging Problem

2006-08-10 Thread martin f krafft
also sprach Bruce Sass <[EMAIL PROTECTED]> [2006.08.10.2124 +0100]: > An "update-package" command, run at install time by the maintainer's > scripts right after file generation succeeds, would head off potential > problems with synchronization that are outside of the Maintainer's > control (e.g.

Re: Silly Packaging Problem

2006-08-10 Thread Bruce Sass
On Thu August 10 2006 13:13, martin f krafft wrote: > also sprach Bruce Sass <[EMAIL PROTECTED]> [2006.08.10.1959 +0100]: > > Such a utility would need to be shipped with dpkg, a 3rd party or > > random DD implementing it would be silly for anything but local > > consumption. > > > > Is that the on

Re: Silly Packaging Problem

2006-08-10 Thread martin f krafft
also sprach Bruce Sass <[EMAIL PROTECTED]> [2006.08.10.1959 +0100]: > Such a utility would need to be shipped with dpkg, a 3rd party or random > DD implementing it would be silly for anything but local consumption. > > Is that the only problem? If dpkg knew how to track files it did not directly

Re: Silly Packaging Problem

2006-08-10 Thread Bruce Sass
On Thu August 10 2006 12:40, martin f krafft wrote: > also sprach Bruce Sass <[EMAIL PROTECTED]> [2006.08.10.1925 +0100]: > > Would updating /var/lib/dpkg/info/*.list files without touching the > > appropriate Installed-Size: field be OK? > > Definitely not. /var/lib/dpkg is the domain of dpkg. Do

Re: Silly Packaging Problem

2006-08-10 Thread martin f krafft
also sprach Bruce Sass <[EMAIL PROTECTED]> [2006.08.10.1925 +0100]: > Would updating /var/lib/dpkg/info/*.list files without touching the > appropriate Installed-Size: field be OK? Definitely not. /var/lib/dpkg is the domain of dpkg. Do not go there. You must not even assume that /var/lib/dpkg/in

Re: Silly Packaging Problem

2006-08-10 Thread Bruce Sass
On Thu August 10 2006 10:16, martin f krafft wrote: > also sprach Goswin von Brederlow <[EMAIL PROTECTED]> [2006.08.10.1647 +0100]: > > How about allowing conffiles to list files that are generated at > > install time and are not included in the deb? > > You can, but then you run up against policy

Re: Silly Packaging Problem

2006-08-10 Thread martin f krafft
also sprach Goswin von Brederlow <[EMAIL PROTECTED]> [2006.08.10.1647 +0100]: > How about allowing conffiles to list files that are generated at > install time and are not included in the deb? You can, but then you run up against policy. You are not allowed to touch a conffile with a script. --

Re: Silly Packaging Problem

2006-08-10 Thread Goswin von Brederlow
sean finney <[EMAIL PROTECTED]> writes: > On Thu, Aug 10, 2006 at 11:01:30AM +0100, martin f krafft wrote: >> No, at least not for /etc. You could install the file, the overwrite >> it, but files installed to /etc by dpkg are conffiles and those must >> not be touched programmatically, according t

Re: Silly Packaging Problem

2006-08-10 Thread sean finney
On Thu, Aug 10, 2006 at 11:01:30AM +0100, martin f krafft wrote: > No, at least not for /etc. You could install the file, the overwrite > it, but files installed to /etc by dpkg are conffiles and those must > not be touched programmatically, according to policy. i think a better solution (and one

Re: Silly Packaging Problem

2006-08-10 Thread martin f krafft
also sprach Michael S. Peek <[EMAIL PROTECTED]> [2006.08.09.1322 +0100]: > It seems that Debian doesn't care about keeping up with files > created dynamically via install scripts. For instance, I can type > 'dpkg -S /etc/papersize', and I get back 'dpkg: /etc/papersize not > found.' Yes, /etc/pap

Re: Silly Packaging Problem

2006-08-09 Thread Tim Cutts
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8 Aug 2006, at 10:48 pm, martin f krafft wrote: also sprach Michael S. Peek <[EMAIL PROTECTED]> [2006.08.08.2239 +0100]: The next time there's an upgrade for courier-authdaemon, won't it overwrite my version of /etc/courier/authdaemonrc with i

Re: Silly Packaging Problem

2006-08-09 Thread Michael S. Peek
martin f krafft wrote: also sprach Michael S. Peek <[EMAIL PROTECTED]> [2006.08.08.2239 +0100]: The next time there's an upgrade for courier-authdaemon, won't it overwrite my version of /etc/courier/authdaemonrc with it's own? No way. Packages must *never* overwrite your files in /etc

Re: Silly Packaging Problem

2006-08-08 Thread The Fungi
On Tue, Aug 08, 2006 at 05:39:48PM -0400, Michael S. Peek wrote: [...] > The next time there's an upgrade for courier-authdaemon, won't it > overwrite my version of /etc/courier/authdaemonrc with it's own? I > thought that was the whole reason for diversions in the first place, but > if diversi

Re: Silly Packaging Problem

2006-08-08 Thread martin f krafft
also sprach Michael S. Peek <[EMAIL PROTECTED]> [2006.08.08.2239 +0100]: > The next time there's an upgrade for courier-authdaemon, won't it > overwrite my version of /etc/courier/authdaemonrc with it's own? No way. Packages must *never* overwrite your files in /etc. > Is this kind of thing addre

Re: Silly Packaging Problem

2006-08-08 Thread Michael S. Peek
Thanks for the help, Martin. martin f krafft wrote: also sprach Michael S. Peek <[EMAIL PROTECTED]> [2006.08.08.2124 +0100]: 2) I then divert this file. Diversions of conffiles are not supported. Check that /etc/courier/authdaemonrc is not a conffile. If it is, you could easily lose

Re: Silly Packaging Problem

2006-08-08 Thread martin f krafft
also sprach Michael S. Peek <[EMAIL PROTECTED]> [2006.08.08.2124 +0100]: > 2) I then divert this file. Diversions of conffiles are not supported. Check that /etc/courier/authdaemonrc is not a conffile. If it is, you could easily lose data in my experience. > 1) I check for the presence of /etc/co

Silly Packaging Problem

2006-08-08 Thread Michael S. Peek
Hello all, I hope I've got the right list. If not, I appologize; just point the way and I'll take my question to the proper list. I'm attempting to write a debian package for our site that installs configuration files specific to our needs. I'm not a *complete* n00b -- I've written dozens