Re: Bug#101325: lintian: empty (transition) packages shouldn't n
On Wed, Jun 20, 2001 at 05:10:36PM +0100, Julian Gilbey wrote: That's what the next PACKAGE; achieves. Alternatively, in such a case, set a variable $empty_package = 1 and then test the value of this variable around the checks block (lines 1127--1221). There may be some other things which should be blocked out, but this does not seem intrinsically difficult. It's slightly more difficult than that, because you do want to keep the warnings about the control file and other metadata. -- Richard Braakman Looking for a job writing free software. See http://www.xs4all.nl/~dark/resume.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Bug#101325: lintian: empty (transition) packages shouldn't n
On Thu, Jun 21, 2001 at 10:53:07AM +0300, Richard Braakman wrote: On Wed, Jun 20, 2001 at 05:10:36PM +0100, Julian Gilbey wrote: That's what the next PACKAGE; achieves. Alternatively, in such a case, set a variable $empty_package = 1 and then test the value of this variable around the checks block (lines 1127--1221). There may be some other things which should be blocked out, but this does not seem intrinsically difficult. It's slightly more difficult than that, because you do want to keep the warnings about the control file and other metadata. Oh, hadn't thought of that. You are right. Julian -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Julian Gilbey, Dept of Maths, Queen Mary, Univ. of London Debian GNU/Linux Developer, see http://people.debian.org/~jdg Donate free food to the world's hungry: see http://www.thehungersite.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Bug#101325: lintian: empty (transition) packages shouldn't n
On Wed, Jun 20, 2001 at 05:10:36PM +0100, Julian Gilbey wrote: That's what the next PACKAGE; achieves. Alternatively, in such a case, set a variable $empty_package = 1 and then test the value of this variable around the checks block (lines 1127--1221). There may be some other things which should be blocked out, but this does not seem intrinsically difficult. It's slightly more difficult than that, because you do want to keep the warnings about the control file and other metadata. -- Richard Braakman Looking for a job writing free software. See http://www.xs4all.nl/~dark/resume.html
Re: Bug#101325: lintian: empty (transition) packages shouldn't n
On Thu, Jun 21, 2001 at 10:53:07AM +0300, Richard Braakman wrote: On Wed, Jun 20, 2001 at 05:10:36PM +0100, Julian Gilbey wrote: That's what the next PACKAGE; achieves. Alternatively, in such a case, set a variable $empty_package = 1 and then test the value of this variable around the checks block (lines 1127--1221). There may be some other things which should be blocked out, but this does not seem intrinsically difficult. It's slightly more difficult than that, because you do want to keep the warnings about the control file and other metadata. Oh, hadn't thought of that. You are right. Julian -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Julian Gilbey, Dept of Maths, Queen Mary, Univ. of London Debian GNU/Linux Developer, see http://people.debian.org/~jdg Donate free food to the world's hungry: see http://www.thehungersite.com/
Re: Bug#101325: lintian: empty (transition) packages shouldn't n
On Tue, Jun 19, 2001 at 08:16:59PM -0700, Sean 'Shaleh' Perry wrote: On 19-Jun-2001 Julian Gilbey wrote: On Mon, Jun 18, 2001 at 06:24:52PM -0700, Sean 'Shaleh' Perry wrote: And how am I to tell a package that is empty on purpose from one created by accident? What constitutes empty? Maybe have a lintian warning about an empty package, but no error messages. while not opposed to this, it is definately non-trivial to implement, sorry all. Somewhere around line 1100 of /usr/bin/lintian (not sure exactly where), you could essentially have the following code: { local $/; open FILELIST, $base/index; my $filelist = FILELIST; if ($filelist eq ./\n) { print W: no files in binary package $pkg\n; next PACKAGE; } } Julian -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Julian Gilbey, Dept of Maths, Queen Mary, Univ. of London Debian GNU/Linux Developer, see http://people.debian.org/~jdg Donate free food to the world's hungry: see http://www.thehungersite.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Bug#101325: lintian: empty (transition) packages shouldn't n
On Wed, Jun 20, 2001 at 08:17:03AM -0700, Sean 'Shaleh' Perry wrote: Somewhere around line 1100 of /usr/bin/lintian (not sure exactly where), you could essentially have the following code: { local $/; open FILELIST, $base/index; my $filelist = FILELIST; if ($filelist eq ./\n) { print W: no files in binary package $pkg\n; next PACKAGE; } } correct. The hard part is not outputting any other errors because of it. Avoiding the no copyright, no docs, etc would not be as easy. That's what the next PACKAGE; achieves. Alternatively, in such a case, set a variable $empty_package = 1 and then test the value of this variable around the checks block (lines 1127--1221). There may be some other things which should be blocked out, but this does not seem intrinsically difficult. Julian -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Julian Gilbey, Dept of Maths, Queen Mary, Univ. of London Debian GNU/Linux Developer, see http://people.debian.org/~jdg Donate free food to the world's hungry: see http://www.thehungersite.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Bug#101325: lintian: empty (transition) packages shouldn't n
On Tue, Jun 19, 2001 at 08:16:59PM -0700, Sean 'Shaleh' Perry wrote: On 19-Jun-2001 Julian Gilbey wrote: On Mon, Jun 18, 2001 at 06:24:52PM -0700, Sean 'Shaleh' Perry wrote: And how am I to tell a package that is empty on purpose from one created by accident? What constitutes empty? Maybe have a lintian warning about an empty package, but no error messages. while not opposed to this, it is definately non-trivial to implement, sorry all. Somewhere around line 1100 of /usr/bin/lintian (not sure exactly where), you could essentially have the following code: { local $/; open FILELIST, $base/index; my $filelist = FILELIST; if ($filelist eq ./\n) { print W: no files in binary package $pkg\n; next PACKAGE; } } Julian -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Julian Gilbey, Dept of Maths, Queen Mary, Univ. of London Debian GNU/Linux Developer, see http://people.debian.org/~jdg Donate free food to the world's hungry: see http://www.thehungersite.com/
RE: Bug#101325: lintian: empty (transition) packages shouldn't n
Somewhere around line 1100 of /usr/bin/lintian (not sure exactly where), you could essentially have the following code: { local $/; open FILELIST, $base/index; my $filelist = FILELIST; if ($filelist eq ./\n) { print W: no files in binary package $pkg\n; next PACKAGE; } } correct. The hard part is not outputting any other errors because of it. Avoiding the no copyright, no docs, etc would not be as easy.
Re: Bug#101325: lintian: empty (transition) packages shouldn't n
On Wed, Jun 20, 2001 at 08:17:03AM -0700, Sean 'Shaleh' Perry wrote: Somewhere around line 1100 of /usr/bin/lintian (not sure exactly where), you could essentially have the following code: { local $/; open FILELIST, $base/index; my $filelist = FILELIST; if ($filelist eq ./\n) { print W: no files in binary package $pkg\n; next PACKAGE; } } correct. The hard part is not outputting any other errors because of it. Avoiding the no copyright, no docs, etc would not be as easy. That's what the next PACKAGE; achieves. Alternatively, in such a case, set a variable $empty_package = 1 and then test the value of this variable around the checks block (lines 1127--1221). There may be some other things which should be blocked out, but this does not seem intrinsically difficult. Julian -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Julian Gilbey, Dept of Maths, Queen Mary, Univ. of London Debian GNU/Linux Developer, see http://people.debian.org/~jdg Donate free food to the world's hungry: see http://www.thehungersite.com/
Re: Bug#101325: lintian: empty (transition) packages shouldn't n
On Mon, Jun 18, 2001 at 06:24:52PM -0700, Sean 'Shaleh' Perry wrote: And how am I to tell a package that is empty on purpose from one created by accident? What constitutes empty? Maybe have a lintian warning about an empty package, but no error messages. Julian -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Julian Gilbey, Dept of Maths, Queen Mary, Univ. of London Debian GNU/Linux Developer, see http://people.debian.org/~jdg Donate free food to the world's hungry: see http://www.thehungersite.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
RE: Bug#101325: lintian: empty (transition) packages shouldn't n
On 19-Jun-2001 Julian Gilbey wrote: On Mon, Jun 18, 2001 at 06:24:52PM -0700, Sean 'Shaleh' Perry wrote: And how am I to tell a package that is empty on purpose from one created by accident? What constitutes empty? Maybe have a lintian warning about an empty package, but no error messages. while not opposed to this, it is definately non-trivial to implement, sorry all. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
RE: Bug#101325: lintian: empty (transition) packages shouldn't n
On Mon, 18 Jun 2001, Sean 'Shaleh' Perry wrote: lintian complains about empty packages not having a copyright file. I think it should silently accept empty packages (Severity set to normal because it might actually stop packages from being installed). And how am I to tell a package that is empty on purpose from one created by accident? What constitutes empty? I think empty packages on purpose could be recognized by looking at whether another package from the same source conflicted with them. An empty package is one where data.tar.gz contains only ./. Simon -- GPG public key available from http://phobos.fs.tum.de/pgp/Simon.Richter.asc Fingerprint: DC26 EB8D 1F35 4F44 2934 7583 DBB6 F98D 9198 3292 Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!
Re: Bug#101325: lintian: empty (transition) packages shouldn't n
On Mon, Jun 18, 2001 at 06:24:52PM -0700, Sean 'Shaleh' Perry wrote: And how am I to tell a package that is empty on purpose from one created by accident? What constitutes empty? Maybe have a lintian warning about an empty package, but no error messages. Julian -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Julian Gilbey, Dept of Maths, Queen Mary, Univ. of London Debian GNU/Linux Developer, see http://people.debian.org/~jdg Donate free food to the world's hungry: see http://www.thehungersite.com/
RE: Bug#101325: lintian: empty (transition) packages shouldn't n
On 19-Jun-2001 Julian Gilbey wrote: On Mon, Jun 18, 2001 at 06:24:52PM -0700, Sean 'Shaleh' Perry wrote: And how am I to tell a package that is empty on purpose from one created by accident? What constitutes empty? Maybe have a lintian warning about an empty package, but no error messages. while not opposed to this, it is definately non-trivial to implement, sorry all.
RE: Bug#101325: lintian: empty (transition) packages shouldn't n
On 18-Jun-2001 Simon Richter wrote: Package: lintian Severity: normal Hi, lintian complains about empty packages not having a copyright file. I think it should silently accept empty packages (Severity set to normal because it might actually stop packages from being installed). Simon And how am I to tell a package that is empty on purpose from one created by accident? What constitutes empty? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
RE: Bug#101325: lintian: empty (transition) packages shouldn't n
On Mon, 18 Jun 2001, Sean 'Shaleh' Perry wrote: lintian complains about empty packages not having a copyright file. I think it should silently accept empty packages (Severity set to normal because it might actually stop packages from being installed). And how am I to tell a package that is empty on purpose from one created by accident? What constitutes empty? I think empty packages on purpose could be recognized by looking at whether another package from the same source conflicted with them. An empty package is one where data.tar.gz contains only ./. Simon -- GPG public key available from http://phobos.fs.tum.de/pgp/Simon.Richter.asc Fingerprint: DC26 EB8D 1F35 4F44 2934 7583 DBB6 F98D 9198 3292 Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
RE: Bug#101325: lintian: empty (transition) packages shouldn't n
On 18-Jun-2001 Simon Richter wrote: Package: lintian Severity: normal Hi, lintian complains about empty packages not having a copyright file. I think it should silently accept empty packages (Severity set to normal because it might actually stop packages from being installed). Simon And how am I to tell a package that is empty on purpose from one created by accident? What constitutes empty?