Re: warning: menu-command-not-in-package

2004-12-13 Thread Peter Jay Salzman
On Mon 13 Dec 04,  9:07 PM, martin f krafft [EMAIL PROTECTED] said:
 also sprach Peter Jay Salzman [EMAIL PROTECTED] [2004.12.13.2055 +0100]:
 ?package(yadex): needs=x11 section=Games/Arcade title=yadex \
 hints=Doom,3D command=x-terminal-emulator -e /usr/games/yadex
 
 Make that 'needs=text'... you need not worry about the terminal
 emulator. Please read the manual!
 
   http://alioth.debian.org/docman/view.php/30046/2/menu-one-file.html#s3.4
 
I don't think I want 'needs=text'.  According to the manual:

   X11: if this program runs under X11. 

   text: if it runs under a terminal. X11 window managers will
 spawn a X terminal emulator.

A terminal is a very general thing.  A virtual console is a terminal.  You
can have terminals over a serial connection.

But in order to yadex, you MUST have x11.  For example, you cannot use this
program in a virtual console.  It's an absolute must to have x11.  The
program is completely useless without x11.

My reading of the manual is that 'needs=text' is for something that can be
run from any kind of terminal, like nethack, nmixer, mpg123, or mp3blaster.
That doesn't describe yadex at all.

Should I really still change needs to text?

Thanks!
Pete

-- 
The mathematics of physics has become ever more abstract, rather than more
complicated.  The mind of God appears to be abstract but not complicated.
He also appears to like group theory.  --  Tony Zee's Fearful Symmetry

GPG Fingerprint: B9F1 6CF3 47C4 7CD8 D33E  70A9 A3B9 1945 67EA 951D


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



Re: warning: menu-command-not-in-package

2004-12-13 Thread martin f krafft
also sprach Peter Jay Salzman [EMAIL PROTECTED] [2004.12.13.2135 +0100]:
 But in order to yadex, you MUST have x11.  For example, you cannot
 use this program in a virtual console.  It's an absolute must to
 have x11.  The program is completely useless without x11.

So why does the OP want to run x-terminal-emulator?

-- 
Please do not send copies of list mail to me; I read the list!
 
 .''`. martin f. krafft [EMAIL PROTECTED]
: :'  :proud Debian developer, admin, user, and author
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!


signature.asc
Description: Digital signature


Re: warning: menu-command-not-in-package

2004-12-13 Thread Peter Jay Salzman
On Mon 13 Dec 04,  9:43 PM, martin f krafft [EMAIL PROTECTED] said:
 also sprach Peter Jay Salzman [EMAIL PROTECTED] [2004.12.13.2135 +0100]:
  But in order to yadex, you MUST have x11.  For example, you cannot
  use this program in a virtual console.  It's an absolute must to
  have x11.  The program is completely useless without x11.
 
 So why does the OP want to run x-terminal-emulator?
 
I'm sorry -- I'm drawing a blank.   What's OP?

In any event, the program starts in a terminal environment, but ultimately
must be run in an x11 environment.

You can start the program on a virtual console, but when you go to edit
anything, it'll complain Cannot open display.

I believe the author may (at one point) wanted to write an svgalib backend so
the program can be run in a VC.  But that's just conjecture on my part...

Thanks!  :)
Pete


-- 
The mathematics of physics has become ever more abstract, rather than more
complicated.  The mind of God appears to be abstract but not complicated.
He also appears to like group theory.  --  Tony Zee's Fearful Symmetry

GPG Fingerprint: B9F1 6CF3 47C4 7CD8 D33E  70A9 A3B9 1945 67EA 951D


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



Re: warning: menu-command-not-in-package

2004-12-13 Thread martin f krafft
also sprach Peter Jay Salzman [EMAIL PROTECTED] [2004.12.13.2149 +0100]:
 I'm sorry -- I'm drawing a blank.   What's OP?

From Virtual Entity of Relevant Acronyms (Version 1.9, June 2002) [vera]:

  OP
   Original Poster (telecommunication-slang, Usenet)

 In any event, the program starts in a terminal environment, but
 ultimately must be run in an x11 environment.
 
 You can start the program on a virtual console, but when you go to
 edit anything, it'll complain Cannot open display.

Can the programme be used (for anything) without its X components?

-- 
Please do not send copies of list mail to me; I read the list!
 
 .''`. martin f. krafft [EMAIL PROTECTED]
: :'  :proud Debian developer, admin, user, and author
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!


signature.asc
Description: Digital signature


Re: warning: menu-command-not-in-package

2004-12-13 Thread David Mandelberg
Peter Jay Salzman wrote:
 I'm trying to think of another program that does this to give as an example,
 and I'm drawing a blank.  In any event, you have to start the program in any
Qemu does this. The emulation is run in an X window, but all controls (e.g.
sending ctrl+alt+f1 to the virtual computer or pausing emulation) are sent to
it's stdin (the terminal).


-- 
-BEGIN GEEK CODE BLOCK-
Version: 3.1
GAT/CM$/CS$/CC/IT$/M/S/O/U dpu s+:++ !a C++$C+++$
UB+++$L$*-- P+++$ L+++()$ E-(---) W+++$ N(+) o? K-
w--(---) O? M V? PS++@ PE-@ Y+@ PGP++(+++)$ t? 5? X? R tv--(-)
b++(+++)@ DI? D? G e- h* r? z*
--END GEEK CODE BLOCK--

David Mandelberg
[EMAIL PROTECTED]


signature.asc
Description: OpenPGP digital signature


Re: warning: menu-command-not-in-package

2004-12-13 Thread Brian Nelson
[EMAIL PROTECTED] (Peter Jay Salzman) writes:

 On Mon 13 Dec 04, 12:10 PM, Brian Nelson [EMAIL PROTECTED] said:
 On Mon, Dec 13, 2004 at 02:55:28PM -0500, Peter Jay Salzman wrote:
  My first package is ALMOST lintian clean.  One warning:
  
 $ lintian -i yadex_1.7.0-1_i386.deb
 W: yadex: menu-command-not-in-package /usr/lib/menu/yadex:2
 x-terminal-emulator
 N:
 N:   The menu item specifies a command which is not available in the
 N:   package. In most cases this is a typo or after you moved a binary
 N:   around, but forgot to update the menu file.
 N:
  
  My debian/yadex.menu file:
  
 ?package(yadex): needs=x11 section=Games/Arcade title=yadex \
 hints=Doom,3D command=x-terminal-emulator -e 
  /usr/games/yadex
 
 Why not just do command=/usr/games/yadex?
  
 The way Yadex (a Doom WAD editor) starts is kind of wierd.  You start it from
 a terminal, but when you want to edit a WAD file:

1. In the terminal you type e whatever to edit a level
2. Yadex uses xlib to put up its own x11 Window in which you graphically
   edit a WAD's level.

 I'm trying to think of another program that does this to give as an example,
 and I'm drawing a blank.  In any event, you have to start the program in any
 kind of terminal, and then to do anything even slightly useful, it spawns its
 own specialized x11 window.

 Very different from a normal x11 program which immediately spawns its own
 window when you run the executable.

OK, so it sounds like you're right and lintian's wrong.  IMO, you should
install a lintian override to suppress the warning and just carry on
with your current packaging.

-- 
For every sprinkle I find, I shall kill you!


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



Re: warning: menu-command-not-in-package

2004-12-13 Thread Sven Mueller
Peter Jay Salzman wrote on 13/12/2004 21:49:
In any event, the program starts in a terminal environment, but ultimately
must be run in an x11 environment.
What does it need the terminal for? I mean if it actually runs in its 
own X11 window, what does it use the terminal for?

Anyway:
The menu entry with needs=text is, by the description you quoted, 
exactly what you are looking for. The description explizitly talks about 
the X server starting an X terminal emulator, so what do you worry about?

cu,
sven
--
-[ Ciphire Signature ]--
From: [EMAIL PROTECTED] signed email body (420 characters)
Date: on 13 December 2004 at 21:05:29 GMT
To:   [EMAIL PROTECTED]

: The message above has been secured using Ciphire Mail.
: Verify this signature and download your free encryption
: software at www.ciphire.com. The three garbled lines
: below are the sender's verifiable encoded signature.

00fAEZBL5BpAEAAD4CAAIAAgACACDujyp7O8DTqcuAj29yUomSaBd6JK
q/N1CO7Jm8PT5PwQEARRR7cyqbKGdhZouquB9oOiXpu/i4je4AHN7stjczdK0zyU
CDXwa8rvChL4BfrO0hOaCsBzoha/l5Owrphc4Ylg==
--[ End Ciphire Signed Message ]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: warning: menu-command-not-in-package

2004-12-13 Thread Peter Jay Salzman
On Mon 13 Dec 04, 10:05 PM, Sven Mueller [EMAIL PROTECTED] said:
 Peter Jay Salzman wrote on 13/12/2004 21:49:
 In any event, the program starts in a terminal environment, but ultimately
 must be run in an x11 environment.
 
 What does it need the terminal for? I mean if it actually runs in its 
 own X11 window, what does it use the terminal for?
 
Sorry if this is quick, but I'm trying to prepare for a lecture on special
relativity that I'm about to give my college physics class in a couple of
hours.  I was lintianing when I should've been making my lesson plans  :)

Because, before it displays its own X11 window, you must input text commands
into a terminal.

Pete

-- 
The mathematics of physics has become ever more abstract, rather than more
complicated.  The mind of God appears to be abstract but not complicated.
He also appears to like group theory.  --  Tony Zee's Fearful Symmetry

GPG Fingerprint: B9F1 6CF3 47C4 7CD8 D33E  70A9 A3B9 1945 67EA 951D


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



Re: warning: menu-command-not-in-package

2004-12-13 Thread Peter Jay Salzman
On Mon 13 Dec 04, 12:10 PM, Brian Nelson [EMAIL PROTECTED] said:
 On Mon, Dec 13, 2004 at 02:55:28PM -0500, Peter Jay Salzman wrote:
  My first package is ALMOST lintian clean.  One warning:
  
 $ lintian -i yadex_1.7.0-1_i386.deb
 W: yadex: menu-command-not-in-package /usr/lib/menu/yadex:2
 x-terminal-emulator
 N:
 N:   The menu item specifies a command which is not available in the
 N:   package. In most cases this is a typo or after you moved a binary
 N:   around, but forgot to update the menu file.
 N:
  
  My debian/yadex.menu file:
  
 ?package(yadex): needs=x11 section=Games/Arcade title=yadex \
 hints=Doom,3D command=x-terminal-emulator -e /usr/games/yadex
 
 Why not just do command=/usr/games/yadex?
 
The way Yadex (a Doom WAD editor) starts is kind of wierd.  You start it from
a terminal, but when you want to edit a WAD file:

   1. In the terminal you type e whatever to edit a level
   2. Yadex uses xlib to put up its own x11 Window in which you graphically
  edit a WAD's level.

I'm trying to think of another program that does this to give as an example,
and I'm drawing a blank.  In any event, you have to start the program in any
kind of terminal, and then to do anything even slightly useful, it spawns its
own specialized x11 window.

Very different from a normal x11 program which immediately spawns its own
window when you run the executable.

  My package provides /usr/games/yadex, depends on xterm |
  x-terminal-emulator, so everything should be fine.  Those are the only two
  commands in the menu file.  So what exactly is lintian talking about?
 
 Lintian isn't always right.  It's probably a false positive.

I think you may be right.  I just found another (unrelated) false positive in
lintian two days ago which I reported to the lintian maintainers.


  On a related note, xterm provides x-terminal-emulator, so is:
  
 Depends: ${shlibs:Depends}, xterm | x-terminal-emulator
  
  redundant?  Would it be better to pare this down to:
  
 Depends: ${shlibs:Depends}, x-terminal-emulator
 
 No.  You should always provide a default for a virtual package, like you
 did the first time.
 
Cool.  Thanks!

 For every sprinkle I find, I shall kill you!

Don't tell my wife that!   ;-)

Pete

-- 
The mathematics of physics has become ever more abstract, rather than more
complicated.  The mind of God appears to be abstract but not complicated.
He also appears to like group theory.  --  Tony Zee's Fearful Symmetry

PGP Fingerprint: B9F1 6CF3 47C4 7CD8 D33E  70A9 A3B9 1945 67EA 951D


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



Re: warning: menu-command-not-in-package

2004-12-13 Thread martin f krafft
also sprach Peter Jay Salzman [EMAIL PROTECTED] [2004.12.13.2226 +0100]:
 Because, before it displays its own X11 window, you must input
 text commands into a terminal.

do all the text commands require X?

-- 
Please do not send copies of list mail to me; I read the list!
 
 .''`. martin f. krafft [EMAIL PROTECTED]
: :'  :proud Debian developer, admin, user, and author
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!


signature.asc
Description: Digital signature


Re: warning: menu-command-not-in-package

2004-12-13 Thread Justin Pryzby
On Mon, Dec 13, 2004 at 01:02:29PM -0800, Brian Nelson wrote:
 [EMAIL PROTECTED] (Peter Jay Salzman) writes:
  On Mon 13 Dec 04, 12:10 PM, Brian Nelson [EMAIL PROTECTED] said:
  On Mon, Dec 13, 2004 at 02:55:28PM -0500, Peter Jay Salzman wrote:
   
  $ lintian -i yadex_1.7.0-1_i386.deb
  W: yadex: menu-command-not-in-package /usr/lib/menu/yadex:2
   
  ?package(yadex): needs=x11 section=Games/Arcade title=yadex \
  hints=Doom,3D command=x-terminal-emulator -e 
   /usr/games/yadex

 OK, so it sounds like you're right and lintian's wrong.  IMO, you should

Lintian probably checks for the existence of a /usr/bin/$command where
command is everything between the double quotes.

Lintian has, in ./check/menu-format:319:

my @com=split(' ',$vals{'command'});

So, it assumes that you should provide (in this case)
/usr/bin/x-terminal-emulator.  (Not, as I'd guessed, that it doesn't
have a split(' ').

I think a wrapper script is appropriate if the user would otherwise
have to type x-terminal-emulator, but I dislike the idea of
echo |yadex.  I don't think it'll do what the user wants.  Instead,
install what is presently /usr/games/yadex to /usr/lib/yadex/... and
install a one-line wrapper script to /usr/games/yadex:

#!/bin/sh -e
exec x-terminal-emulator -e /usr/lib/yadex/... 

Justin


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



Re: warning: menu-command-not-in-package

2004-12-13 Thread David Mandelberg
Matt Brubeck wrote:
 Justin Pryzby wrote:
 
 
Instead, install what is presently /usr/games/yadex to
/usr/lib/yadex/... and install a one-line wrapper script to
/usr/games/yadex:

  #!/bin/sh -e
  exec x-terminal-emulator -e /usr/lib/yadex/...
 
 
 One small downside to this idea is that it is not the expected behavior
 for a user who already has an xterm open and types 'yadex' into it.
 
 
Maybe /usr/games/yadex could be the real binary, and that script
(s%/lib/yadex/\.\.\.$%/games/yadex%) could be /usr/games/yadex-gui.

The menu option could execute /usr/games/yadex-gui, but someone typing
yadexenter in a terminal emulator would get the expected results.

-- 
-BEGIN GEEK CODE BLOCK-
Version: 3.1
GAT/CM$/CS$/CC/IT$/M/S/O/U dpu s+:++ !a C++$C+++$
UB+++$L$*-- P+++$ L+++()$ E-(---) W+++$ N(+) o? K-
w--(---) O? M V? PS++@ PE-@ Y+@ PGP++(+++)$ t? 5? X? R tv--(-)
b++(+++)@ DI? D? G e- h* r? z*
--END GEEK CODE BLOCK--

David Mandelberg
[EMAIL PROTECTED]


signature.asc
Description: OpenPGP digital signature


Re: warning: menu-command-not-in-package

2004-12-13 Thread Bartosz Fenski aka fEnIo
On Mon, Dec 13, 2004 at 10:05:28PM +0100, Sven Mueller wrote:
 In any event, the program starts in a terminal environment, but ultimately
 must be run in an x11 environment.
 
 What does it need the terminal for? I mean if it actually runs in its 
 own X11 window, what does it use the terminal for?
 
 Anyway:
 The menu entry with needs=text is, by the description you quoted, 
 exactly what you are looking for. The description explizitly talks about 
 the X server starting an X terminal emulator, so what do you worry about?

Do we have *anything* which uses menu entries and it is not
X-Window-Manager or desktop environment like KDE/GNOME?

I'm just curious ;)

regards
fEnIo

-- 
  _  Bartosz Fenski | mailto:[EMAIL PROTECTED] | pgp:0x13fefc40 | 
IRC:fEnIo
_|_|_ 32-050 Skawina - Glowackiego 3/15 - w. malopolskie - Polska
(0 0)  phone:+48602383548 | Slackware - the weakest link
ooO--(_)--Ooo  http://skawina.eu.org | JID:[EMAIL PROTECTED] | RLU:172001


signature.asc
Description: Digital signature


Re: warning: menu-command-not-in-package

2004-12-13 Thread Matt Brubeck
Justin Pryzby wrote:

 Instead, install what is presently /usr/games/yadex to
 /usr/lib/yadex/... and install a one-line wrapper script to
 /usr/games/yadex:

   #!/bin/sh -e
   exec x-terminal-emulator -e /usr/lib/yadex/...

One small downside to this idea is that it is not the expected behavior
for a user who already has an xterm open and types 'yadex' into it.


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



Re: warning: menu-command-not-in-package

2004-12-13 Thread martin f krafft
also sprach Matt Brubeck [EMAIL PROTECTED] [2004.12.13.2332 +0100]:
 One small downside to this idea is that it is not the expected behavior
 for a user who already has an xterm open and types 'yadex' into it.

So use stty to check whether a tty is already attached. And also
check $DISPLAY to ensure that noone fires it up from a VC.

-- 
Please do not send copies of list mail to me; I read the list!
 
 .''`. martin f. krafft [EMAIL PROTECTED]
: :'  :proud Debian developer, admin, user, and author
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!


signature.asc
Description: Digital signature


Re: warning: menu-command-not-in-package

2004-12-13 Thread David Mandelberg
Adeodato Simó wrote:
 * Bartosz Fenski aka fEnIo [Mon, 13 Dec 2004 23:27:12 +0100]:
 
 
Do we have *anything* which uses menu entries and it is not
X-Window-Manager or desktop environment like KDE/GNOME?
 
 
I'm just curious ;)
 
 
   I'm surprised nobody replied to this. I'd say menu entries are mostly
   meant to be used by window managers, so needs=text does what you want.
 
It might currently work, but what happens if some text based package (e.g.
screen) implements a curses based menu using menu?

Then yadex is listed as a text item, so the menu runs it only to die
unexpectedly when yadex exits because there's no display.

I think using needs=x11 and executing it in x-terminal-emulator or using a
script to handle it is a better idea.

-- 
-BEGIN GEEK CODE BLOCK-
Version: 3.1
GAT/CM$/CS$/CC/IT$/M/S/O/U dpu s+:++ !a C++$C+++$
UB+++$L$*-- P+++$ L+++()$ E-(---) W+++$ N(+) o? K-
w--(---) O? M V? PS++@ PE-@ Y+@ PGP++(+++)$ t? 5? X? R tv--(-)
b++(+++)@ DI? D? G e- h* r? z*
--END GEEK CODE BLOCK--

David Mandelberg
[EMAIL PROTECTED]


signature.asc
Description: OpenPGP digital signature


Re: warning: menu-command-not-in-package

2004-12-13 Thread Peter Jay Salzman
On Mon 13 Dec 04,  5:40 PM, David Mandelberg [EMAIL PROTECTED] said:
 Matt Brubeck wrote:
  Justin Pryzby wrote:
  
  
 Instead, install what is presently /usr/games/yadex to
 /usr/lib/yadex/... and install a one-line wrapper script to
 /usr/games/yadex:
 
 #!/bin/sh -e
 exec x-terminal-emulator -e /usr/lib/yadex/...
  
  
  One small downside to this idea is that it is not the expected behavior
  for a user who already has an xterm open and types 'yadex' into it.
  
  
 Maybe /usr/games/yadex could be the real binary, and that script
 (s%/lib/yadex/\.\.\.$%/games/yadex%) could be /usr/games/yadex-gui.
 
 The menu option could execute /usr/games/yadex-gui, but someone typing
 yadexenter in a terminal emulator would get the expected results.
 
Hi David,

That seems like the best idea so far!

But I'd like to know -- precisely piece of policy is broken by a menu
command invoking x-terminal-emulator -e application?

OK.  Gotta go lecture...

Thanks for all your help!
Peter

-- 
The mathematics of physics has become ever more abstract, rather than more
complicated.  The mind of God appears to be abstract but not complicated.
He also appears to like group theory.  --  Tony Zee's Fearful Symmetry

GPG Fingerprint: B9F1 6CF3 47C4 7CD8 D33E  70A9 A3B9 1945 67EA 951D


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



Re: warning: menu-command-not-in-package

2004-12-13 Thread Matt Brubeck
Justin Pryzby wrote:
 On Mon, Dec 13, 2004 at 02:32:47PM -0800, Matt Brubeck wrote:
  Justin Pryzby wrote:
 
 #!/bin/sh -e
 exec x-terminal-emulator -e /usr/lib/yadex/...
  One small downside to this idea is that it is not the expected behavior
  for a user who already has an xterm open and types 'yadex' into it.
 Nope, it will work as expected; exec will exec the just-run bash
 process, not the user's xterm's bash.

What I meant is that it will start an additional x-terminal-emulator,
instead of running yadex in the existing xterm.

As someone already noted, this can be fixed easily by checking whether
the wrapper's input is a tty.


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



Re: warning: menu-command-not-in-package

2004-12-13 Thread Justin Pryzby
On Mon, Dec 13, 2004 at 02:32:47PM -0800, Matt Brubeck wrote:
 Justin Pryzby wrote:
 
  Instead, install what is presently /usr/games/yadex to
  /usr/lib/yadex/... and install a one-line wrapper script to
  /usr/games/yadex:
 
  #!/bin/sh -e
  exec x-terminal-emulator -e /usr/lib/yadex/...

 One small downside to this idea is that it is not the expected behavior
 for a user who already has an xterm open and types 'yadex' into it.
Nope, it will work as expected; exec will exec the just-run bash
process, not the user's xterm's bash.

Justin


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



Re: warning: menu-command-not-in-package

2004-12-13 Thread Brian Nelson
Justin Pryzby [EMAIL PROTECTED] writes:

 On Mon, Dec 13, 2004 at 01:02:29PM -0800, Brian Nelson wrote:
 [EMAIL PROTECTED] (Peter Jay Salzman) writes:
  On Mon 13 Dec 04, 12:10 PM, Brian Nelson [EMAIL PROTECTED] said:
  On Mon, Dec 13, 2004 at 02:55:28PM -0500, Peter Jay Salzman wrote:
   
  $ lintian -i yadex_1.7.0-1_i386.deb
  W: yadex: menu-command-not-in-package /usr/lib/menu/yadex:2
   
  ?package(yadex): needs=x11 section=Games/Arcade title=yadex \
  hints=Doom,3D command=x-terminal-emulator -e 
   /usr/games/yadex

 OK, so it sounds like you're right and lintian's wrong.  IMO, you should

 Lintian probably checks for the existence of a /usr/bin/$command where
 command is everything between the double quotes.

 Lintian has, in ./check/menu-format:319:

 my @com=split(' ',$vals{'command'});

 So, it assumes that you should provide (in this case)
 /usr/bin/x-terminal-emulator.  (Not, as I'd guessed, that it doesn't

That's a faulty assumption by lintian.  There's no reason to require the
package contains the x-terminal-emulator executable, as long as it'll be
satisfied by the dependencies.


 I think a wrapper script is appropriate if the user would otherwise
 have to type x-terminal-emulator, but I dislike the idea of
 echo |yadex.  I don't think it'll do what the user wants.  Instead,
 install what is presently /usr/games/yadex to /usr/lib/yadex/... and
 install a one-line wrapper script to /usr/games/yadex:

   #!/bin/sh -e
   exec x-terminal-emulator -e /usr/lib/yadex/... 

What's wrong with just letting users type yadex in an X terminal?  If
they try to run it from a text-mode console, it'll fail, but so what?
All other programs requiring a $DISPLAY fail to run in that situation
too.

-- 
For every sprinkle I find, I shall kill you!


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



Re: warning: menu-command-not-in-package

2004-12-13 Thread martin f krafft
also sprach Peter Jay Salzman [EMAIL PROTECTED] [2004.12.13.2055 +0100]:
?package(yadex): needs=x11 section=Games/Arcade title=yadex \
hints=Doom,3D command=x-terminal-emulator -e /usr/games/yadex

Make that 'needs=text'... you need not worry about the terminal
emulator. Please read the manual!

  http://alioth.debian.org/docman/view.php/30046/2/menu-one-file.html#s3.4

 On a related note, xterm provides x-terminal-emulator, so is:
 
Depends: ${shlibs:Depends}, xterm | x-terminal-emulator
 
 redundant?  Would it be better to pare this down to:
 
Depends: ${shlibs:Depends}, x-terminal-emulator

No, you should make an explicit suggestion (such as your first
example) to allow APT to make sane default choices.

-- 
Please do not send copies of list mail to me; I read the list!
 
 .''`. martin f. krafft [EMAIL PROTECTED]
: :'  :proud Debian developer, admin, user, and author
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!


signature.asc
Description: Digital signature


Re: warning: menu-command-not-in-package

2004-12-13 Thread Brian Nelson
On Mon, Dec 13, 2004 at 02:55:28PM -0500, Peter Jay Salzman wrote:
 My first package is ALMOST lintian clean.  One warning:
 
$ lintian -i yadex_1.7.0-1_i386.deb
W: yadex: menu-command-not-in-package /usr/lib/menu/yadex:2
x-terminal-emulator
N:
N:   The menu item specifies a command which is not available in the
N:   package. In most cases this is a typo or after you moved a binary
N:   around, but forgot to update the menu file.
N:
 
 My debian/yadex.menu file:
 
?package(yadex): needs=x11 section=Games/Arcade title=yadex \
hints=Doom,3D command=x-terminal-emulator -e /usr/games/yadex

Why not just do command=/usr/games/yadex?

 My package provides /usr/games/yadex, depends on xterm |
 x-terminal-emulator, so everything should be fine.  Those are the only two
 commands in the menu file.  So what exactly is lintian talking about?

Lintian isn't always right.  It's probably a false positive.

 On a related note, xterm provides x-terminal-emulator, so is:
 
Depends: ${shlibs:Depends}, xterm | x-terminal-emulator
 
 redundant?  Would it be better to pare this down to:
 
Depends: ${shlibs:Depends}, x-terminal-emulator

No.  You should always provide a default for a virtual package, like you
did the first time.

-- 
For every sprinkle I find, I shall kill you!


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


Re: warning: menu-command-not-in-package

2004-12-13 Thread Peter Jay Salzman
On Mon 13 Dec 04, 10:05 PM, martin f krafft [EMAIL PROTECTED] said:
 also sprach Peter Jay Salzman [EMAIL PROTECTED] [2004.12.13.2149 +0100]:
  I'm sorry -- I'm drawing a blank.   What's OP?
 
 From Virtual Entity of Relevant Acronyms (Version 1.9, June 2002) [vera]:
 
   OP
Original Poster (telecommunication-slang, Usenet)
 
Ahh...  jargon didn't know this one.  Cool.

  In any event, the program starts in a terminal environment, but
  ultimately must be run in an x11 environment.
  
  You can start the program on a virtual console, but when you go to
  edit anything, it'll complain Cannot open display.
 
 Can the programme be used (for anything) without its X components?
 
No.  In fact, before the x11 window comes up, you give it one of two
commands:

   e (map)  to edit a map contained in the WAD.

or

   c to create a new map contained in the WAD.

Thanks!
Pete

-- 
The mathematics of physics has become ever more abstract, rather than more
complicated.  The mind of God appears to be abstract but not complicated.
He also appears to like group theory.  --  Tony Zee's Fearful Symmetry

GPG Fingerprint: B9F1 6CF3 47C4 7CD8 D33E  70A9 A3B9 1945 67EA 951D


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


Re: warning: menu-command-not-in-package

2004-12-13 Thread martin f krafft
also sprach Peter Jay Salzman [EMAIL PROTECTED] [2004.12.13.2231 +0100]:
 No.  In fact, before the x11 window comes up, you give it one of two
 commands:
 
e (map)  to edit a map contained in the WAD.
 
 or
 
c to create a new map contained in the WAD.

rewrite the frickin' tool.

Or provide a wrapper which spawns x-terminal-emulator, and then use
needs=X11. Do not put x-terminal-emulator into the command line of
the menu entry and override lintian.

-- 
Please do not send copies of list mail to me; I read the list!
 
 .''`. martin f. krafft [EMAIL PROTECTED]
: :'  :proud Debian developer, admin, user, and author
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!


signature.asc
Description: Digital signature


Re: warning: menu-command-not-in-package

2004-12-13 Thread martin f krafft
also sprach martin f krafft [EMAIL PROTECTED] [2004.12.13.2236 +0100]:
 e (map)  to edit a map contained in the WAD.
  
  or
  
 c to create a new map contained in the WAD.
 
 rewrite the frickin' tool.

can you echo into it to preseed the commands?

Then make the wrapper do

  echo e map | tool
  echo c | tool

according to the command line options. Maybe xdialog can be used to
give access to a file browser.

Finally, send the wrapper upstream.

-- 
Please do not send copies of list mail to me; I read the list!
 
 .''`. martin f. krafft [EMAIL PROTECTED]
: :'  :proud Debian developer, admin, user, and author
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!


signature.asc
Description: Digital signature


Re: warning: menu-command-not-in-package

2004-12-13 Thread martin f krafft
also sprach Peter Jay Salzman [EMAIL PROTECTED] [2004.12.13.2351 +0100]:
 But I'd like to know -- precisely piece of policy is broken by
 a menu command invoking x-terminal-emulator -e application?

I don't think it's a violation. All of my comments are subjective.
So read them as suggestions what I would do. Not what needs to be
done.

-- 
Please do not send copies of list mail to me; I read the list!
 
 .''`. martin f. krafft [EMAIL PROTECTED]
: :'  :proud Debian developer, admin, user, and author
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!


signature.asc
Description: Digital signature


Re: warning: menu-command-not-in-package

2004-12-13 Thread martin f krafft
also sprach Adeodato Simó [EMAIL PROTECTED] [2004.12.14.0004 +0100]:
   I'm surprised nobody replied to this. I'd say menu entries are
   mostly meant to be used by window managers, so needs=text does
   what you want.

As Clint points out (on IRC): pdmenu.

-- 
Please do not send copies of list mail to me; I read the list!
 
 .''`. martin f. krafft [EMAIL PROTECTED]
: :'  :proud Debian developer, admin, user, and author
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!


signature.asc
Description: Digital signature


Re: warning: menu-command-not-in-package

2004-12-13 Thread Justin Pryzby
On Mon, Dec 13, 2004 at 11:55:55PM +0100, martin f krafft wrote:
 also sprach Peter Jay Salzman [EMAIL PROTECTED] [2004.12.13.2351 +0100]:
  But I'd like to know -- precisely piece of policy is broken by
  a menu command invoking x-terminal-emulator -e application?
 
 I don't think it's a violation. All of my comments are subjective.
 So read them as suggestions what I would do. Not what needs to be
 done.
The point is that a wrapper script will do two things:

  . Stop lintian from warning you;
  . Allow users to start your application without using the menu (or
without knowing the magical application-specific incantation).

Justin


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


Re: warning: menu-command-not-in-package

2004-12-13 Thread Adeodato Simó
* Bartosz Fenski aka fEnIo [Mon, 13 Dec 2004 23:27:12 +0100]:

 Do we have *anything* which uses menu entries and it is not
 X-Window-Manager or desktop environment like KDE/GNOME?

 I'm just curious ;)

  I'm surprised nobody replied to this. I'd say menu entries are mostly
  meant to be used by window managers, so needs=text does what you want.

-- 
Adeodato Simó
EM: asp16 [ykwim] alu.ua.es | PK: DA6AE621
Listening to: Ana Torroja - A contratiemo (Bottomless)
 
The problem I have with making an intelligent statement is that some
people then think that it's not an isolated occurrance.
-- Simon Travaglia


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


Re: warning: menu-command-not-in-package

2004-12-13 Thread Justin Pryzby
On Mon, Dec 13, 2004 at 11:27:12PM +0100, Bartosz Fenski aka fEnIo wrote:
 On Mon, Dec 13, 2004 at 10:05:28PM +0100, Sven Mueller wrote:
  In any event, the program starts in a terminal environment, but ultimately
  must be run in an x11 environment.

 Do we have *anything* which uses menu entries and it is not
 X-Window-Manager or desktop environment like KDE/GNOME?
 
 I'm just curious ;)

I just checked.  Of 29 packages, 11 of which are add-ons which do
*not* provide binaries in /usr/bin/, I have 3 menu entries, all of
which for X11 applications.

ls /usr/lib/menu |wc -l
128

Here's the breakdown on my laptop:
$ LIST=`grep -io 'needs=[^ ]* ' /usr/lib/menu/* |cut -d: -f2 |cut -c7- |sed -e 
's///g' |tr 'A-Z' 'a-z'`; for A in $LIST; do COUNT=`echo $LIST |grep -c 
$A`; echo $COUNT $A; done |sort -u
1 wm
2 vc
352 x11
68 text
7 blackbox

Good point; tab-completion is a much more realistic implementation.

Justin


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