[hardening-discuss] Bug#709105: hardening-check: [PATCH] POD options in alpha order, add short options, no pager
Jari Aalto
jari.aalto at cante.net
Mon May 20 21:01:38 UTC 2013
Package: hardening-includes
Version: 2.2
Severity: wishlist
Tags: patch
Hi,
Here are some improvement to the hardening-check program. The patches
are in bzr bundle format and should be applied in order 01, 02, 03
* 01: Order options alphabetically. Like in GNU manual pages cp(1)
mv(1) etc. The help options are put last
* 02: Add short options
* 03: Send full POD content to plain *stdout* so that this listing
can be
a) redirected to a file
b) displayed in external programs, like inside Emacs M-x shell
As a consequence it does not invoke PAGER which is a requirement
e.g. inside Emacs M-x shell.
This patch uses internal Pod::Text, which should also be
marginaly faster not requiring external program.
See revisions logs below in case the bundles do not work.
Jari
------------------------------------------------------------
revno: 148
committer: jari.aalto at cante.net
branch nick: hardening-check--options
timestamp: Mon 2013-05-20 21:34:18 +0300
message:
* Add -noperldoc to pod2usage() call if called with -h, --man option.
This uses internal Pod::Text and do not shell out to perldoc. This
has the effect that the text is displayed as is and is suitable for
direct reading e.g. inside Emacs M-x shell where invoking PAGER
would cause trouble.
------------------------------------------------------------
revno: 147
committer: jari.aalto at cante.net
branch nick: hardening-check--options
timestamp: Mon 2013-05-20 21:26:10 +0300
message:
* OPTIONS: Add short options. The -H (manual page help) option is put last
close to the standard -h, --help option.
-c for color
-f for fortify
-F for libc function
-H for help manual page
-l for lintian
-R for function report
-v for verbose
------------------------------------------------------------
revno: 146
committer: jari.aalto at cante.net
branch nick: hardening-check--options
timestamp: Mon 2013-05-20 21:12:02 +0300
message:
* (OPTIONS): Follow GNU guidelines: order alphabetically, present
short options before long ones, help option last.
-- System Information:
Debian Release: 7.0
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages hardening-includes depends on:
ii binutils 2.22-8
ii make 3.81-8.2
ii perl 5.14.2-21
hardening-includes recommends no packages.
hardening-includes suggests no packages.
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 02-options-short.bundle
Type: text/x-diff
Size: 4394 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/hardening-discuss/attachments/20130521/e1e144a0/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 01-options-alphabetical-order.bundle
Type: text/x-diff
Size: 4442 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/hardening-discuss/attachments/20130521/e1e144a0/attachment-0001.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 03-no-pager.bundle
Type: text/x-diff
Size: 2254 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/hardening-discuss/attachments/20130521/e1e144a0/attachment-0002.diff>
More information about the hardening-discuss
mailing list