From: Karel Zak <kzak@redhat.com>
To: Sami Kerola <kerolasa@iki.fi>
Cc: util-linux@vger.kernel.org
Subject: Re: Pentecost weekend pull request
Date: Mon, 20 Jun 2011 12:19:47 +0200 [thread overview]
Message-ID: <20110620101947.GA17967@nb.net.home> (raw)
In-Reply-To: <1307978030-13006-1-git-send-email-kerolasa@iki.fi>
On Mon, Jun 13, 2011 at 05:13:50PM +0200, Sami Kerola wrote:
> I feel a bit embarrassed to see how many patches I wrote. My
> excuse is long, mostly rainy, weekend. Here comes a pull request;
:-)
> [01/33] mount: take xalloc.h in use
It would be better to keep my_free() in mount/ sources only. I don't
think that we will use this crap outside the mount code.
Note that the final solution will be libmount/mount.c as the mount(8)
command implementation. So, let's keep the current mount/* code in
maintenance mode and don't try to rewrite it :-)
> [02/33] checktty: NGROUP -> sysconf
> This patch was sent earlier, see details bellow.
>
> date Thu, Jun 9, 2011 at 21:31
> subject Re: [PATCH 3/6] checktty: Use NGROUPS_MAX instead of NGROUPS
You cannot use xalloc() (and friends) in login(1). The login has to
call pam_end and report to syslog before exit.
I'd like to clean up login(1), it means:
- code refactoring
- support PAM or /etc/{passwd,shadow} *only*
- remove checktty support
- remove cryptocard support
- remove kerberos support
> [04/33] login-utils: include fix
> Inspired what P?draig Brady did with coreutils I thought
> to give a shot to include-what-you-use as well.
> http://lists.gnu.org/archive/html/coreutils/2011-06/msg00004.html
>
> The utility clearly works. So it is a good time to think
> if checking headers in all files should be TODO item?
Nice!
What about to add any wrapper to the tools/ directory and call it
from our top-level Makefile?
We already have some stuff there, and I use it before release.
> [10/33] mcookie: change coding style
> The mcookie patches are trivial, with exception of docs
> change. Updating manual pages with help2man seems to be
> quite good idea. Using the output as is is pretty brain
> dead idea, but copy pasting bits of syntax etc seems to
> work great. Is this an approach you would like to see in
> future?
It depends, the --help output is usually very brief and space-saving.
Don't forget that GNU guys hate man pages and all their documentation
is in the horrible info files, so help2man makes sense for them ;-)
We don't have info files, but we have real man pages.
> [11/33] whereis: maintenance fixes
I can imagine more than one patch for these changes.
> [12/33] cal: maintenance fixes
I'll use this patch, but next time don't mix any real changes in the
code with indentation changes. Please!
> [15/33] docs: rename.1 verbose, long options and warning
> Looking the code this utility seems to be in wrong
> package. Rewriting the command to rely heavily on gnulib
> copy.h and backupfile.h would make this to be good
> addition to coreutils, assuming they accept the command.
Yep, go ahead and ask at coreutils mailing list.
> Or it could time to deprecate the whole command, and
> recommend users to multimove by using scripts.
The command is used by many users. I don't think that deprecation is
a good idea. And I also don't think that change the default behavior
is a good idea. Maybe we can add --dry-run.
> [18/33] write: maintenance fixes
Don't use
return (1);
use
return 1;
The "return" is not a function.
> [23/33] uuidd: maintenance fixes
- remove die() -- use err()
- remove printf() + exit() -- use err[x]()
- print all error messages (!= debug) to stderr
> [32/33] getopt: inform where to send bug reports
> I wonder should the config.h PACKAGE_BUGREPORT be
> util-linux mail list...
Probably ;-)
We shouldn't use PACKAGE_BUGREPORT in man pages or --help output. I
don't think that upstream is the right place for end-users and their
bug reports.
The ideal solution is downstream --patch--> upstream ;-)
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
next prev parent reply other threads:[~2011-06-20 10:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-13 15:13 Pentecost weekend pull request Sami Kerola
2011-06-20 10:19 ` Karel Zak [this message]
2011-06-25 15:26 ` Sami Kerola
2011-06-27 15:29 ` Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110620101947.GA17967@nb.net.home \
--to=kzak@redhat.com \
--cc=kerolasa@iki.fi \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox