[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: emdebian-tools : roadmap to a stable v1.0



Hello Neil,

Am 2008-02-09 17:41:52, schrieb Neil Williams:
> I'm not aware of many packages that use -V for --version - certainly
> none of the emdebian-tools scripts have a short version of --version
> (mainly because --version is little different to --help which has the
> short versions of -? or -h).
> 
> > So better to use "-v" if 'emsource' does not use the "verbose" mode.
> 
> With the correction, is it worth supporting a short option for
> --version at all? I can't see that it is going to be as well used as
> --variant and IMHO does not justify a short option.
> 
> The other use of --variant is for emsandbox which (currently) does not
> support --verbose although it could pass that to debootstrap.
> 
> It would be good to have a consistent UI so if there are comments or
> suggestions for a convention that can be applied against *all* scripts
> in emdebian-tools, I'll consider it.

I war runing acheck with:

cd /bin
for EXE in * ; do
  echo "####################     ${EXE}"
  ${EXE} -V 2>/dev/null
  echo
  sleep 2
done

and have found 25 (of 82) executables in /bin (binaries with errors removed):

----8<------------------------------------------------------------------
####################     arch
i686

####################     dnsdomainname
hostname 2.13

####################     echo
-V

####################     egrep
egrep (GNU grep) 2.5.1

Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc.
Dies ist freie Software; in den Quellen befinden sich die Lizenzbedingungen.
Es gibt KEINERLEI Garantie; nicht einmal für die TAUGLICHKEIT oder
VERWENDBARKEIT FÜR EINEN BESTIMMTEN ZWECK.

####################     false

####################     fgconsole
fgconsole: (console-tools) 0.2.3

####################     fgrep
fgrep (GNU grep) 2.5.1

Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc.
Dies ist freie Software; in den Quellen befinden sich die Lizenzbedingungen.
Es gibt KEINERLEI Garantie; nicht einmal für die TAUGLICHKEIT oder
VERWENDBARKEIT FÜR EINEN BESTIMMTEN ZWECK.

####################     grep
grep (GNU grep) 2.5.1

Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc.
Dies ist freie Software; in den Quellen befinden sich die Lizenzbedingungen.
Es gibt KEINERLEI Garantie; nicht einmal für die TAUGLICHKEIT oder
VERWENDBARKEIT FÜR EINEN BESTIMMTEN ZWECK.

####################     gunzip
gunzip 1.3.5
(2002-09-30)
Copyright 2002 Free Software Foundation
Copyright 1992-1993 Jean-loup Gailly
This program comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of this program
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
Compilation options:
DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H HAVE_MEMORY_H HAVE_STRING_H HAVE_LSTAT ASMV
Written by Jean-loup Gailly.

####################     gzip
gzip 1.3.5
(2002-09-30)
Copyright 2002 Free Software Foundation
Copyright 1992-1993 Jean-loup Gailly
This program comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of this program
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
Compilation options:
DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H HAVE_MEMORY_H HAVE_STRING_H HAVE_LSTAT ASMV
Written by Jean-loup Gailly.

####################     hostname
hostname 2.13

####################     kernelversion
2.4

####################     loadkeys
loadkeys: (console-tools) 0.2.3

####################     mktemp
mktemp version debianutils-2.8.2

####################     mount
mount: mount-2.12p

####################     mt
GNU mt version 2.5

####################     mt-gnu
GNU mt version 2.5

####################     nano
 GNU nano Version 1.2.4 (compiliert um 17:34:47, Apr  9 2005)
 Email: nano@nano-editor.org    WWW: http://www.nano-editor.org/
 Kompilierte Optionen: --enable-extra --disable-wrapping-as-root --enable-color --enable-multibuffer --enable-nanorc

####################     netstat
net-tools 1.60
netstat 1.42 (2001-04-15)
Fred Baumgarten, Alan Cox, Bernd Eckenfels, Phil Blundell, Tuan Hoang and others
+NEW_ADDRT +RTF_IRTT +RTF_REJECT +FW_MASQUERADE +I18N
AF: (inet) +UNIX +INET +INET6 +IPX +AX25 +NETROM +X25 +ATALK +ECONET +ROSE
HW:  +ETHER +ARC +SLIP +PPP +TUNNEL +TR +AX25 +NETROM +X25 +FR +ROSE +ASH +SIT +FDDI +HIPPI +HDLC/LAPB +EUI64

####################     ping
ping utility, iputils-ss020927

####################     ping6
ping6 utility, iputils-ss020927

####################     ps
procps version 3.2.1

####################     umount
umount: mount-2.12p

####################     uncompress
uncompress 1.3.5
(2002-09-30)
Copyright 2002 Free Software Foundation
Copyright 1992-1993 Jean-loup Gailly
This program comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of this program
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
Compilation options:
DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H HAVE_MEMORY_H HAVE_STRING_H HAVE_LSTAT ASMV
Written by Jean-loup Gailly.

####################     zcat
zcat 1.3.5
(2002-09-30)
Copyright 2002 Free Software Foundation
Copyright 1992-1993 Jean-loup Gailly
This program comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of this program
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
Compilation options:
DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H HAVE_MEMORY_H HAVE_STRING_H HAVE_LSTAT ASMV
Written by Jean-loup Gailly.

####################     zcmp
Usage: zcmp [cmp_options] file [file]

####################     zdiff
Usage: zdiff [diff_options] file [file]

####################     zegrep
grep through gzip files
usage: zegrep [grep_options] pattern [files]

####################     zfgrep
grep through gzip files
usage: zfgrep [grep_options] pattern [files]

####################     zforce
zforce: -V not a file

####################     zgrep
grep through gzip files
usage: zgrep [grep_options] pattern [files]

####################     zless
less 382
Copyright (C) 2002 Mark Nudelman

less comes with NO WARRANTY, to the extent permitted by law.
For information about the terms of redistribution,
see the file named README in the less distribution.
Homepage: http://www.greenwoodsoftware.com/less

####################     znew
recompress .Z files into .gz (gzip) files
usage: znew [-tv9KP] file.Z...
  -t tests the new files before deleting originals
  -v be verbose
  -9 use the slowest compression method (optimal compression)
  -K keep a .Z file when it is smaller than the .gz file
  -P use pipes for the conversion (does not preserve file modes)
----8<------------------------------------------------------------------

where "arch", "echo", "kernelversion", "zcmp", "zdiff", "zegrep", 
"zfgrep", "zforce", "zgrep" and "zmore" are false results since
the do not output errors to STDERR as they should.

    Question:  Should I repourt such errors to the package?

also I have found in /sbin 31 (of 109) executables (binaries with errors removed):

----8<------------------------------------------------------------------
####################     blockdev
blockdev from util-linux-2.12p

####################     depmod
depmod version 2.4.26

####################     fdisk
fdisk v2.12p

####################     fsck
fsck 1.37 (21-Mar-2005)
Überprüfe alle Dateisysteme.
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 /dev/hda1
/dev/hda1 ist eingehängt.

WARNUNG!!!  Die Benutzung von e2fsck auf einem eingehängten
Dateisystem kann das Dateisystem STARK BESCHÄDIGEN.

Wirklich fortfahren (j/n)? nein

Prüfung abgebrochen.
[/sbin/fsck.ext3 (1) -- /home] fsck.ext3 /dev/hda5
/dev/hda5 ist eingehängt.

WARNUNG!!!  Die Benutzung von e2fsck auf einem eingehängten
Dateisystem kann das Dateisystem STARK BESCHÄDIGEN.

Wirklich fortfahren (j/n)? nein

Prüfung abgebrochen.
[/sbin/fsck.ext3 (1) -- /home2] fsck.ext3 /dev/hda6
/dev/hda6 ist eingehängt.

WARNUNG!!!  Die Benutzung von e2fsck auf einem eingehängten
Dateisystem kann das Dateisystem STARK BESCHÄDIGEN.

Wirklich fortfahren (j/n)? nein

Prüfung abgebrochen.
[/sbin/fsck.ext3 (1) -- /home3] fsck.ext3 /dev/hda3
/dev/hda3 ist eingehängt.

WARNUNG!!!  Die Benutzung von e2fsck auf einem eingehängten
Dateisystem kann das Dateisystem STARK BESCHÄDIGEN.

Wirklich fortfahren (j/n)? nein

Prüfung abgebrochen.

####################     fsck.minix
fsck.minix from util-linux-2.12p

####################     fsck.nfs
: NFS file system.

####################     hwclock
hwclock from util-linux-2.12p

####################     ifdown
ifdown version 0.6.5
Copyright (c) 1999-2005 Anthony Towns

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at
your option) any later version.

####################     ifup
ifup version 0.6.5
Copyright (c) 1999-2005 Anthony Towns

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at
your option) any later version.

####################     installkernel
Usage: installkernel <version> <zImage> <System.map> <directory>

####################     ip6tables
ip6tables v1.2.11

####################     ip6tables-restore
Beendet

####################     ipmaddr
net-tools 1.60
ipmaddr 1.1
Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>

####################     iptables
iptables v1.2.11

####################     iptables-restore
Beendet

####################     iptunnel
net-tools 1.60
iptunnel 1.01
Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>

####################     kbdrate
kbdrate: (console-tools) 0.2.3

####################     kernelversion
2.4

####################     ksyms
Address   Symbol                            Defined by

<sniped 100 million ksyms>

####################     ldconfig
ldconfig (GNU libc) 2.3.2
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Andreas Jaeger.

####################     lilo
LILO version 22.6.1 (Debian GNU/Linux)

####################     lilo.real
LILO version 22.6.1 (Debian GNU/Linux)

####################     logsave
Usage: logsave [-v] [-d dir] logfile program

####################     MAKEDEV
This is Debian MAKEDEV.  For version info, try 'dpkg --list makedev'
See /usr/share/doc/makedev/ for more information on Debian MAKEDEV.

####################     mii-tool
mii-tool.c 1.9 2000/04/28 00:56:08 (David Hinds)

####################     mkfs
mkfs from util-linux-2.12p

####################     mkfs.cramfs
mkfs.cramfs from util-linux-2.12p

####################     mkfs.minix
mkfs.minix from util-linux-2.12p

####################     mkswap
mkswap from util-linux-2.12p

####################     modinfo
modinfo (Linux modutils) 2.4.26

####################     modprobe
modprobe version 2.4.26

####################     plipconfig
net-tools 1.60
plipconfig 0.2
John Paul Morrison, Alan Cox et al.

####################     pmap_dump
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100024    1   udp    761  status
    100024    1   tcp    764  status

####################     pmap_set
Beendet

####################     rpc.statd
rpc.statd version 1.0.6

####################     runlevel
unknown

####################     shadowconfig
Usage: /sbin/shadowconfig on | off

####################     slattach
net-tools 1.60
@(#) slattach 1.21 (1999-11-21)
net-tools, Fred N. van Kempen et al.

####################     start-stop-daemon
start-stop-daemon 1.10.28

####################     swapoff
swapoff: mount-2.12p

####################     swapon
swapon: mount-2.12p

####################     sysctl
sysctl (procps version 3.2.1)

####################     tune2fs
tune2fs 1.37 (21-Mar-2005)
----8<------------------------------------------------------------------


So I have in /bin and /sbin 56 of 191 executables which output to -V the
version.  /usr/bin and /usr/sbin is arround the same ration (29%).

I should say, that all of my own programs using the same -V as version
like

----8<------------------------------------------------------------------
[michelle.konzack@tp570.private:~ ] tdbts-admin --help
tdbts-admin 0.0.1 Programmiert von Michelle Konzack <linux4michelle@freenet.de>
                                  Dieses Werkzeug ist unter GNU GPL Version 3.0

-V | --version                Zeigt die Version und beendet.
-h | --help                   Zeigt diese Hilfe.
-l | --license                Zeigt die Lizenz.

--basedir=<verzeichnis>       Verwendet dieses Verzeichnis anstatt von ~/.tdbts

--maildir=<verzeichnis>       Verwendet dieses Verzeichnis anstatt von
                              ~/.tdbts/Maildir
----8<------------------------------------------------------------------

Oh yes, my progies are localized...  at least in DE, FR.

Thanks, Greetings and nice Day
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSN LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature


Reply to: