Seeking help with package naming

2003-03-04 Thread Gergely Nagy
Hi! I am a bit unsure about how to name two upcoming packages of mine, and wouldn't mind a few suggests :) So, I have this one package (ccze), which is extensible via plugins, and I have two, separately maintained, extensions: one for running perl scriptlets, and another for running slang

Packaging the Baramond TTF set

2003-03-04 Thread Ivo Marino
Hello folks, I've packaged the the Baramond TrueType Font set available under a freeware license over here: http://geocities.com/baramondfont/ I've written an email to the upstream author asking for more information about the license of this font set, for now I got no answer, let's wait some

How to obtain current package version number?

2003-03-04 Thread Marc Haber
Hi, how can a package learn about its current version number? Parsing /usr/share/doc/$PACKAGE/changelog.gz is out of the question since /usr/share/doc need not be present, and calling dpkg --list $PACKAGE and parsing its output looks like bad overkill. Does a maintainer script know the package

Re: How to obtain current package version number?

2003-03-04 Thread Bastian Kleineidam
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Mar 04, 2003 at 01:41:58PM +0100, Marc Haber wrote: how can a package learn about its current version number? Package information is stored in /var/lib/dpkg/available. There is already a package parsing this information: grep-dctrl You can do

Re: How to obtain current package version number?

2003-03-04 Thread Jérôme Marant
En réponse à Marc Haber [EMAIL PROTECTED]: Hi, Hi, how can a package learn about its current version number? Parsing /usr/share/doc/$PACKAGE/changelog.gz is out of the question since /usr/share/doc need not be present, and calling dpkg --list $PACKAGE and parsing its output looks like

Re: How to obtain current package version number?

2003-03-04 Thread Henrique de Moraes Holschuh
On Tue, 04 Mar 2003, Bastian Kleineidam wrote: On Tue, Mar 04, 2003 at 01:41:58PM +0100, Marc Haber wrote: how can a package learn about its current version number? Package information is stored in /var/lib/dpkg/available. No. Do not skip the proper interface layers. Use dpkg to get that

Re: How to obtain current package version number?

2003-03-04 Thread Roland Mas
Colin Watson (2003-03-04 14:06:07 +) : On Tue, Mar 04, 2003 at 02:14:59PM +0100, Bastian Kleineidam wrote: [...] # example: current bash version number BASH_VERSION=`grep-available -P -s Version -n -r '^bash$'` That will be wrong in the event that somebody has run 'dselect update' but

Re: How to obtain current package version number?

2003-03-04 Thread Marc Haber
On Tue, 4 Mar 2003 07:16:11 -0600, Graham Wilson [EMAIL PROTECTED] wrote: On Tue, Mar 04, 2003 at 01:41:58PM +0100, Marc Haber wrote: Parsing /usr/share/doc/$PACKAGE/changelog.gz is out of the question since /usr/share/doc need not be present, and calling dpkg --list $PACKAGE and parsing its

Re: How to obtain current package version number?

2003-03-04 Thread Colin Watson
On Tue, Mar 04, 2003 at 05:02:22PM +0100, Marc Haber wrote: On Tue, 04 Mar 2003 14:16:34 +0100 (CET), J?r?me Marant [EMAIL PROTECTED] wrote: IIRC you can get it from the postinst parameters. You can have a look to the policy, in maintainers scripts section. I thought so as well, but it

Re: How to obtain current package version number?

2003-03-04 Thread Simon Richter
Marc, Well, I wouldn't have posted without first consulting policy and developer's reference. Section 6.4 doesn't seem to document any maintainer script of the package being installed being called with the new version number as a parameter, so I was actually hoping that dpkg sends that

Re: How to obtain current package version number?

2003-03-04 Thread Thomas Viehmann
Roland Mas wrote: Colin Watson (2003-03-04 14:06:07 +) : On Tue, Mar 04, 2003 at 02:14:59PM +0100, Bastian Kleineidam wrote: How about the following? BASH_VERSION=$(dpkg -s bash | awk '/^Version:/ { print $2 }') if [ $(dpkg -s bash | awk '/^Status:/ { print $3 $4 }') == ok installed ]

Re: Seeking help with package naming

2003-03-04 Thread Steve Langasek
Hello, On Tue, Mar 04, 2003 at 11:04:29AM +0100, Gergely Nagy wrote: I am a bit unsure about how to name two upcoming packages of mine, and wouldn't mind a few suggests :) So, I have this one package (ccze), which is extensible via plugins, and I have two, separately maintained, extensions:

Upload just to change maintainer to @d.o?

2003-03-04 Thread Kenneth Pronovici
Now that my new maintainer application has been approved, I want to start the process of changing the maintainer field in my packages to use my @d.o address rather than my personal address. What is the recommended practice on uploading new versions of packages just for minor changes like this?

Re: Upload just to change maintainer to @d.o?

2003-03-04 Thread Michael Banck
On Tue, Mar 04, 2003 at 02:24:17PM -0600, Kenneth Pronovici wrote: Now that my new maintainer application has been approved, congratulations. What is the recommended practice on uploading new versions of packages just for minor changes like this? Should I upload new versions of all of my

Re: How free does a non-free package have to be?

2003-03-04 Thread Robert Bihlmeyer
Johannes Rohr [EMAIL PROTECTED] writes: Well, I don't know. Until today I've contacted them three times and there as been no response except for an acknowledgement of receipt. Therefore I don't think they'd turn out to be more responsive if I came begging for money... It's actually called

Re: Upload just to change maintainer to @d.o?

2003-03-04 Thread Sean 'Shaleh' Perry
On Tuesday 04 March 2003 12:45, Michael Banck wrote: What is the recommended practice on uploading new versions of packages just for minor changes like this? Should I upload new versions of all of my packages, or wait to upload each package until there is a more significant user-visible

Re: How to obtain current package version number?

2003-03-04 Thread Marc Haber
On Tue, 4 Mar 2003 17:34:47 +0100, Simon Richter [EMAIL PROTECTED] wrote: Well, I wouldn't have posted without first consulting policy and developer's reference. Section 6.4 doesn't seem to document any maintainer script of the package being installed being called with the new version number

Re: How to obtain current package version number?

2003-03-04 Thread Marc Haber
On Tue, 4 Mar 2003 16:41:48 +, Colin Watson [EMAIL PROTECTED] wrote: On Tue, Mar 04, 2003 at 05:02:22PM +0100, Marc Haber wrote: I thought so as well, but it looks like postinst is only called with the most recently configured version, not with the current version. Why not just preprocess

Re: How to obtain current package version number?

2003-03-04 Thread Marc Haber
On Tue, 04 Mar 2003 17:46:40 +0100 (CET), Jérôme Marant [EMAIL PROTECTED] wrote: En réponse à Sven Luther [EMAIL PROTECTED]: No, it is not. You just need to use the $1 argument to postinst, as Jerome told you. IIRC, it is $2. Policy 6.4 says: postinst configure most-recently-configured-version

Re: How to obtain current package version number?

2003-03-04 Thread Marc Haber
On Tue, 4 Mar 2003 16:41:48 +, Colin Watson [EMAIL PROTECTED] wrote: Why not just preprocess the postinst in debian/rules to embed its own version number directly into it? Nice idea, thanks! Is an executeable script (for example an init script) allowed to parse

Re: Upload just to change maintainer to @d.o?

2003-03-04 Thread Kenneth Pronovici
I don't know if there is a policy on this. I'd recommend switching to your @d.o address as you're doing regular uploads. If by the time of the freeze there are still packages left with your old address, an upload just to fix that is alright. That's just MHO, YMMV. this is probably the

Re: How to obtain current package version number?

2003-03-04 Thread Graham Wilson
On Tue, Mar 04, 2003 at 05:01:36PM +0100, Marc Haber wrote: On Tue, 4 Mar 2003 07:16:11 -0600, Graham Wilson [EMAIL PROTECTED] wrote: dpkg -l PACKAGE | awk '$2 ~ /PACKAGE/ { print $3 }' Well, I just said that I consider foo to be bad overkill, and you proceed to posting foo without any

Re: Unofficial package tips

2003-03-04 Thread Craig Small
On Fri, Feb 28, 2003 at 11:38:33PM -0500, Joey Hess wrote: Bastian Kleineidam wrote: Hmm, dh_make is trying to do a similar approach. Why not use that way? I like to have the original .tar.gz exactly as I downloaded it. dh_make unpacks the source and repacks it to a new .orig.tar.gz.

Re: How to obtain current package version number?

2003-03-04 Thread Matt Zimmerman
On Tue, Mar 04, 2003 at 01:41:58PM +0100, Marc Haber wrote: how can a package learn about its current version number? Parsing /usr/share/doc/$PACKAGE/changelog.gz is out of the question since /usr/share/doc need not be present, and calling dpkg --list $PACKAGE and parsing its output looks

Re: How to obtain current package version number?

2003-03-04 Thread Darren Salt
I demand that Colin Watson may or may not have written... On Tue, Mar 04, 2003 at 11:52:09PM +0100, Marc Haber wrote: On Tue, 4 Mar 2003 16:41:48 +, Colin Watson [EMAIL PROTECTED] wrote: Why not just preprocess the postinst in debian/rules to embed its own version number directly into

Packaging the Baramond TTF set

2003-03-04 Thread Ivo Marino
Hello folks, I've packaged the the Baramond TrueType Font set available under a freeware license over here: http://geocities.com/baramondfont/ I've written an email to the upstream author asking for more information about the license of this font set, for now I got no answer, let's wait some

How to obtain current package version number?

2003-03-04 Thread Marc Haber
Hi, how can a package learn about its current version number? Parsing /usr/share/doc/$PACKAGE/changelog.gz is out of the question since /usr/share/doc need not be present, and calling dpkg --list $PACKAGE and parsing its output looks like bad overkill. Does a maintainer script know the package

Re: How to obtain current package version number?

2003-03-04 Thread Bastian Kleineidam
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Mar 04, 2003 at 01:41:58PM +0100, Marc Haber wrote: how can a package learn about its current version number? Package information is stored in /var/lib/dpkg/available. There is already a package parsing this information: grep-dctrl You can do

Re: How to obtain current package version number?

2003-03-04 Thread Graham Wilson
On Tue, Mar 04, 2003 at 01:41:58PM +0100, Marc Haber wrote: Parsing /usr/share/doc/$PACKAGE/changelog.gz is out of the question since /usr/share/doc need not be present, and calling dpkg --list $PACKAGE and parsing its output looks like bad overkill. dpkg -l PACKAGE | awk '$2 ~ /PACKAGE/ {

Re: How to obtain current package version number?

2003-03-04 Thread Henrique de Moraes Holschuh
On Tue, 04 Mar 2003, Bastian Kleineidam wrote: On Tue, Mar 04, 2003 at 01:41:58PM +0100, Marc Haber wrote: how can a package learn about its current version number? Package information is stored in /var/lib/dpkg/available. No. Do not skip the proper interface layers. Use dpkg to get that

Re: How to obtain current package version number?

2003-03-04 Thread Colin Watson
On Tue, Mar 04, 2003 at 02:14:59PM +0100, Bastian Kleineidam wrote: On Tue, Mar 04, 2003 at 01:41:58PM +0100, Marc Haber wrote: how can a package learn about its current version number? Package information is stored in /var/lib/dpkg/available. Information about what's installed is in

Re: Packaging the Baramond TTF set

2003-03-04 Thread Ivo Marino
On Tue, 04 Mar 2003, Henrique de Moraes Holschuh wrote: Not contrib, unless you package is a simple installer for the fonts. non-free, yes, if the license allows redistribution at all (I didn't check). The package provides all four fonts and the license should allow redistibution (I think --

Re: How to obtain current package version number?

2003-03-04 Thread Marc Haber
On Tue, 4 Mar 2003 10:40:52 -0300, Henrique de Moraes Holschuh [EMAIL PROTECTED] wrote: No. Do not skip the proper interface layers. Use dpkg to get that information. Calling dpkg is actually the recommended way to do this? Can I call dpkg --list from a postinst script without having it explode?

Re: How to obtain current package version number?

2003-03-04 Thread Roland Mas
Colin Watson (2003-03-04 14:06:07 +) : On Tue, Mar 04, 2003 at 02:14:59PM +0100, Bastian Kleineidam wrote: [...] # example: current bash version number BASH_VERSION=`grep-available -P -s Version -n -r '^bash$'` That will be wrong in the event that somebody has run 'dselect update' but

Re: How to obtain current package version number?

2003-03-04 Thread Marc Haber
On Tue, 04 Mar 2003 14:16:34 +0100 (CET), Jérôme Marant [EMAIL PROTECTED] wrote: IIRC you can get it from the postinst parameters. You can have a look to the policy, in maintainers scripts section. I thought so as well, but it looks like postinst is only called with the most recently configured

Re: How to obtain current package version number?

2003-03-04 Thread Marc Haber
On Tue, 4 Mar 2003 07:16:11 -0600, Graham Wilson [EMAIL PROTECTED] wrote: On Tue, Mar 04, 2003 at 01:41:58PM +0100, Marc Haber wrote: Parsing /usr/share/doc/$PACKAGE/changelog.gz is out of the question since /usr/share/doc need not be present, and calling dpkg --list $PACKAGE and parsing its

Re: How to obtain current package version number?

2003-03-04 Thread Sven Luther
On Tue, Mar 04, 2003 at 04:58:32PM +0100, Marc Haber wrote: On Tue, 4 Mar 2003 10:40:52 -0300, Henrique de Moraes Holschuh [EMAIL PROTECTED] wrote: No. Do not skip the proper interface layers. Use dpkg to get that information. Calling dpkg is actually the recommended way to do this? Can I

Re: How to obtain current package version number?

2003-03-04 Thread Colin Watson
On Tue, Mar 04, 2003 at 05:02:22PM +0100, Marc Haber wrote: On Tue, 04 Mar 2003 14:16:34 +0100 (CET), J?r?me Marant [EMAIL PROTECTED] wrote: IIRC you can get it from the postinst parameters. You can have a look to the policy, in maintainers scripts section. I thought so as well, but it

Re: How to obtain current package version number?

2003-03-04 Thread Simon Richter
Marc, Well, I wouldn't have posted without first consulting policy and developer's reference. Section 6.4 doesn't seem to document any maintainer script of the package being installed being called with the new version number as a parameter, so I was actually hoping that dpkg sends that

Re: How to obtain current package version number?

2003-03-04 Thread Thomas Viehmann
Roland Mas wrote: Colin Watson (2003-03-04 14:06:07 +) : On Tue, Mar 04, 2003 at 02:14:59PM +0100, Bastian Kleineidam wrote: How about the following? BASH_VERSION=$(dpkg -s bash | awk '/^Version:/ { print $2 }') if [ $(dpkg -s bash | awk '/^Status:/ { print $3 $4 }') == ok installed ]

Re: How to obtain current package version number?

2003-03-04 Thread Jérôme Marant
En réponse à Sven Luther [EMAIL PROTECTED]: On Tue, Mar 04, 2003 at 04:58:32PM +0100, Marc Haber wrote: On Tue, 4 Mar 2003 10:40:52 -0300, Henrique de Moraes Holschuh [EMAIL PROTECTED] wrote: No. Do not skip the proper interface layers. Use dpkg to get that information. Calling

Re: Seeking help with package naming

2003-03-04 Thread Steve Langasek
Hello, On Tue, Mar 04, 2003 at 11:04:29AM +0100, Gergely Nagy wrote: I am a bit unsure about how to name two upcoming packages of mine, and wouldn't mind a few suggests :) So, I have this one package (ccze), which is extensible via plugins, and I have two, separately maintained, extensions:

Re: Seeking help with package naming

2003-03-04 Thread Gergely Nagy
Question is, how should I call these packages? ccze-perl and ccze-slang, or libccze-perl and libccze-slang? Or something completely different? (If someone says ccze-foo1 and -foo2, I'm going to rip his hands off :P) I would suggest ccze-perl and ccze-slang. (Isn't libfoo-perl reserved

Upload just to change maintainer to @d.o?

2003-03-04 Thread Kenneth Pronovici
Now that my new maintainer application has been approved, I want to start the process of changing the maintainer field in my packages to use my @d.o address rather than my personal address. What is the recommended practice on uploading new versions of packages just for minor changes like this?

Re: Upload just to change maintainer to @d.o?

2003-03-04 Thread Michael Banck
On Tue, Mar 04, 2003 at 02:24:17PM -0600, Kenneth Pronovici wrote: Now that my new maintainer application has been approved, congratulations. What is the recommended practice on uploading new versions of packages just for minor changes like this? Should I upload new versions of all of my

Re: How free does a non-free package have to be?

2003-03-04 Thread Robert Bihlmeyer
Johannes Rohr [EMAIL PROTECTED] writes: Well, I don't know. Until today I've contacted them three times and there as been no response except for an acknowledgement of receipt. Therefore I don't think they'd turn out to be more responsive if I came begging for money... It's actually called

Re: Upload just to change maintainer to @d.o?

2003-03-04 Thread Sean 'Shaleh' Perry
On Tuesday 04 March 2003 12:45, Michael Banck wrote: What is the recommended practice on uploading new versions of packages just for minor changes like this? Should I upload new versions of all of my packages, or wait to upload each package until there is a more significant user-visible

Re: How to obtain current package version number?

2003-03-04 Thread Marc Haber
On Tue, 4 Mar 2003 17:34:47 +0100, Simon Richter [EMAIL PROTECTED] wrote: Well, I wouldn't have posted without first consulting policy and developer's reference. Section 6.4 doesn't seem to document any maintainer script of the package being installed being called with the new version number

Re: How to obtain current package version number?

2003-03-04 Thread Marc Haber
On Tue, 4 Mar 2003 16:41:48 +, Colin Watson [EMAIL PROTECTED] wrote: On Tue, Mar 04, 2003 at 05:02:22PM +0100, Marc Haber wrote: I thought so as well, but it looks like postinst is only called with the most recently configured version, not with the current version. Why not just preprocess

Re: How to obtain current package version number?

2003-03-04 Thread Marc Haber
On Tue, 04 Mar 2003 17:46:40 +0100 (CET), Jérôme Marant [EMAIL PROTECTED] wrote: En réponse à Sven Luther [EMAIL PROTECTED]: No, it is not. You just need to use the $1 argument to postinst, as Jerome told you. IIRC, it is $2. Policy 6.4 says: postinst configure most-recently-configured-version

Re: How to obtain current package version number?

2003-03-04 Thread Marc Haber
On Tue, 4 Mar 2003 16:41:48 +, Colin Watson [EMAIL PROTECTED] wrote: Why not just preprocess the postinst in debian/rules to embed its own version number directly into it? Nice idea, thanks! Is an executeable script (for example an init script) allowed to parse

Re: Upload just to change maintainer to @d.o?

2003-03-04 Thread Kenneth Pronovici
I don't know if there is a policy on this. I'd recommend switching to your @d.o address as you're doing regular uploads. If by the time of the freeze there are still packages left with your old address, an upload just to fix that is alright. That's just MHO, YMMV. this is probably the

Re: How to obtain current package version number?

2003-03-04 Thread Graham Wilson
On Tue, Mar 04, 2003 at 05:01:36PM +0100, Marc Haber wrote: On Tue, 4 Mar 2003 07:16:11 -0600, Graham Wilson [EMAIL PROTECTED] wrote: dpkg -l PACKAGE | awk '$2 ~ /PACKAGE/ { print $3 }' Well, I just said that I consider foo to be bad overkill, and you proceed to posting foo without any

Re: How to obtain current package version number?

2003-03-04 Thread Colin Watson
On Tue, Mar 04, 2003 at 11:52:09PM +0100, Marc Haber wrote: On Tue, 4 Mar 2003 16:41:48 +, Colin Watson [EMAIL PROTECTED] wrote: Why not just preprocess the postinst in debian/rules to embed its own version number directly into it? Nice idea, thanks! Is an executeable script (for

Re: Unofficial package tips

2003-03-04 Thread Craig Small
On Fri, Feb 28, 2003 at 11:38:33PM -0500, Joey Hess wrote: Bastian Kleineidam wrote: Hmm, dh_make is trying to do a similar approach. Why not use that way? I like to have the original .tar.gz exactly as I downloaded it. dh_make unpacks the source and repacks it to a new .orig.tar.gz.

Re: How to obtain current package version number?

2003-03-04 Thread Simon Richter
Marc, You can pull it in using a substvar, I think. That sounds interesting. Can you elaborate? I know that I can use substvars in my control file to get automatic dependencies on the libs I use, but how does that transfer to maintainer scripts? Never mind, I just looked it up. Substvars

Re: How to obtain current package version number?

2003-03-04 Thread Matt Zimmerman
On Tue, Mar 04, 2003 at 01:41:58PM +0100, Marc Haber wrote: how can a package learn about its current version number? Parsing /usr/share/doc/$PACKAGE/changelog.gz is out of the question since /usr/share/doc need not be present, and calling dpkg --list $PACKAGE and parsing its output looks