From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 1/1] V2 Fix libpam's chmod
Date: Fri, 02 Mar 2012 13:39:20 +0000 [thread overview]
Message-ID: <1330695560.309.2.camel@ted> (raw)
In-Reply-To: <3707B894-6275-45C8-B2A3-37263D2C9B1C@dominion.thruhere.net>
On Fri, 2012-03-02 at 14:31 +0100, Koen Kooi wrote:
> Op 2 mrt. 2012, om 14:26 heeft Richard Purdie het volgende geschreven:
>
> > On Fri, 2012-03-02 at 18:34 +0800, Robert Yang wrote:
> >> The libpam's has an error when generating the rootfs:
> >>
> >> chmod: cannot access `/usr/sbin/unix_chkpwd': No such file or directory
> >>
> >> This is because the following code in libpam_1.1.5.bb:
> >>
> >> pkg_postinst_pam-plugin-unix () {
> >> # below is necessary to allow unix_chkpwd get user info from shadow file
> >> # on lsb images
> >> chmod 4755 ${sbindir}/unix_chkpwd
> >> }
> >>
> >> This is to set the setuid permission for unix_chkpwd (the lsb test
> >> requires this), but it lacks a "${D}", and we can do this in the install
> >> stage.
> >>
> >> [YOCTO #2049]
> >>
> >> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
> >
> > Robert, in future patches could you use a subject line like:
> >
> > [PATCH 1/1 v2] Fix libpam's chmod
> >
> > instead of:
> >
> > [PATCH 1/1] V2 Fix libpam's chmod
> >
> > so that when the patches get applied, the V2 is stripped off?
> >
> > The reason is that the value isn't particularly within the repository
> > once merged and doesn't look good when looking through commit history.
>
> Actually both versions above are wrong, the right version would be similar to:
>
> libpam 1.1.5: fix chmod in postinst
>
> We can debate the usefulness of the version specifier, but we do need to follow the commit guide for the rest.
Good point, I was just commenting that the patch version specifier
didn't look good. As you say, the package name should be first too, as
per http://wiki.openembedded.org/wiki/Commit_Patch_Message_Guidelines
under Common Errors in Patch and Commit Messages: '- Short log does not
start with the file or component being modified. Such as "foo: Update to
new upstream version 5.8.9"'.
If I was going to be picky, I'd suggest capitalisation of "fix" in your
version ;-)
Cheers,
Richard
next prev parent reply other threads:[~2012-03-02 13:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-02 10:34 [PATCH 0/1] V2 Fix libpam's chmod Robert Yang
2012-03-02 10:34 ` [PATCH 1/1] " Robert Yang
2012-03-02 12:25 ` Richard Purdie
2012-03-02 13:26 ` Richard Purdie
2012-03-02 13:31 ` Koen Kooi
2012-03-02 13:39 ` Richard Purdie [this message]
2012-03-02 14:05 ` Koen Kooi
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=1330695560.309.2.camel@ted \
--to=richard.purdie@linuxfoundation.org \
--cc=openembedded-core@lists.openembedded.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.