Bug#314187: lintian: incorrect warning about useless-call-to-update-menus

2005-06-15 Thread Adam D. Barratt
package lintian
retitle 314187 Please update menu checks to use /usr/share/menu
thanks

On Wednesday, June 15, 2005 6:22 AM, Wesley J. Landaker [EMAIL PROTECTED]
wrote:

 Package: lintian
 Version: 1.23.8
 Severity: normal

 When I run lintian on one of my packages, it gives me warnings about
 useless calls to update-menus.
[...]
 Well, the warning is kind of right, I don't have a menu file in
 /usr/lib/menu. But, that is because in Debian Policy section 3.1, it
 says they should go in /usr/share/menu, which is where it is:
[...]
 Is this some new check added to lintian on purpose? It contradicts
 current Debian policy...

Section 3.1 of Debian Policy is The package name. I'm assuming you mean
section 3.1 of http://www.nl.debian.org/doc/packaging-manuals/menu.html/
(Debian Menu System), which *isn't* policy.

That document appears to have last been updated three days ago. At the end
of March, the text in question read

Packages provided menu files should be in `/usr/lib/menu/'.
 System-local menu files should be in `/etc/menu/'.  User-specific menu
 files should be in `~/.menu/'

so, afaics, no this isn't some new check added to lintian on purpose and
it *doesn't* contradict Policy. What's happened is that the menu maintainers
have changed their recommendations as to where menu files should be placed.

Regards,

Adam



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#314187: lintian: incorrect warning about useless-call-to-update-menus

2005-06-15 Thread allomber
On Wed, Jun 15, 2005 at 09:33:49AM +0100, Adam D. Barratt wrote:
 On Wednesday, June 15, 2005 6:22 AM, Wesley J. Landaker [EMAIL PROTECTED]
 wrote:
 
  When I run lintian on one of my packages, it gives me warnings about
  useless calls to update-menus.
 [...]
  Well, the warning is kind of right, I don't have a menu file in
  /usr/lib/menu. But, that is because in Debian Policy section 3.1, it
  says they should go in /usr/share/menu, which is where it is:
 [...]
  Is this some new check added to lintian on purpose? It contradicts
  current Debian policy...
 
 Section 3.1 of Debian Policy is The package name. I'm assuming you mean
 section 3.1 of http://www.nl.debian.org/doc/packaging-manuals/menu.html/
 (Debian Menu System), which *isn't* policy.
 
 That document appears to have last been updated three days ago. At the end
 of March, the text in question read
 
 Packages provided menu files should be in `/usr/lib/menu/'.
  System-local menu files should be in `/etc/menu/'.  User-specific menu
  files should be in `~/.menu/'
 
 so, afaics, no this isn't some new check added to lintian on purpose and
 it *doesn't* contradict Policy. What's happened is that the menu maintainers
 have changed their recommendations as to where menu files should be placed.

This is correct.  What happens here is that debhelper was also updated to
put menu entries in /usr/share/menu.

Lintian should now support both locations, though use of /usr/lib/menu 
should trigger a warning since it is only for executable binaries
menufiles and there are none in Debian currently.

Cheers,
-- 
Bill. [EMAIL PROTECTED]

Imagine a large red swirl here. 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#314187: lintian: incorrect warning about useless-call-to-update-menus

2005-06-15 Thread Wesley J. Landaker
On Wednesday 15 June 2005 02:33, you wrote:
 Section 3.1 of Debian Policy is The package name. I'm assuming you mean
 section 3.1 of http://www.nl.debian.org/doc/packaging-manuals/menu.html/
 (Debian Menu System), which *isn't* policy.

You're right, I was checking through Policy to see what was going on, and it 
refered me to the menu packaging manual; I must have forgot what document I 
was looking at. ;) (/usr/share/doc/menu/html/ch3.html)

 That document appears to have last been updated three days ago. At the
 end of March, the text in question read

 Packages provided menu files should be in `/usr/lib/menu/'.
  System-local menu files should be in `/etc/menu/'.  User-specific
 menu files should be in `~/.menu/'

 so, afaics, no this isn't some new check added to lintian on purpose
 and it *doesn't* contradict Policy. What's happened is that the menu
 maintainers have changed their recommendations as to where menu files
 should be placed.

Okay, makes sense. =) I imagine then this probably happened because 
dh_installmenu was changed to put my menu files in /usr/share/menu, but 
lintian isn't/wasn't updated to use that path yet. (The same package with 
the exact same build rules didn't give any lintian warnings on 24 Mar, 16 
Apr, 18 Apr, or 19 May, and then suddenly did on 14 Jun; hence I thought it 
was a chance in lintian).

I was mistaken on the cause--sorry about that--but the end effect is as I 
described. Anyway, should be an easy fix. =)

-- 
Wesley J. Landaker [EMAIL PROTECTED]
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2


pgp8NCMooHR2U.pgp
Description: PGP signature


Bug#314187: lintian: incorrect warning about useless-call-to-update-menus

2005-06-14 Thread Wesley J. Landaker
Package: lintian
Version: 1.23.8
Severity: normal

When I run lintian on one of my packages, it gives me warnings about
useless calls to update-menus.

$ lintian -i nut-nutrition_10.20*changes
W: nut-nutrition: postinst-has-useless-call-to-update-menus
N:
N:   The postinst script calls the update-menus program though no file is
N:   installed in /usr/lib/menu or /etc/menu-methods.
N:
W: nut-nutrition: postrm-has-useless-call-to-update-menus
N:
N:   The postrm script calls the update-menus program though no file is
N:   installed in /usr/lib/menu or /etc/menu-methods
N:

Well, the warning is kind of right, I don't have a menu file in
/usr/lib/menu. But, that is because in Debian Policy section 3.1, it
says they should go in /usr/share/menu, which is where it is:

$ dpkg -L nut-nutrition | grep menu
/usr/share/menu
/usr/share/menu/nut-nutrition

Is this some new check added to lintian on purpose? It contradicts
current Debian policy...

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.26-1-686-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages lintian depends on:
ii  binutils   2.15-6The GNU assembler, linker and bina
ii  diffstat   1.39-1produces graph of changes introduc
ii  file   4.12-1Determines file type using magic
ii  gettext0.14.5-1  GNU Internationalization utilities
ii  intltool-debian0.30+20040213 Help i18n of RFC822 compliant conf
ii  man-db 2.4.2-22  The on-line manual pager
ii  perl [libdigest-md5-perl]  5.8.7-3   Larry Wall's Practical Extraction 

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]