All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 2/4] module.bbclass: sync pkg_post{inst, rm} with kernel.bbclass
Date: Fri, 23 Mar 2012 18:32:25 +0000	[thread overview]
Message-ID: <1332527545.9740.473.camel@ted> (raw)
In-Reply-To: <B02EB5DF-A881-4745-9434-80A817FCCF12@dominion.thruhere.net>

On Fri, 2012-03-23 at 19:20 +0100, Koen Kooi wrote:
> Op 23 mrt. 2012, om 18:58 heeft Andreas Oberritter het volgende geschreven:
> 
> > On 23.03.2012 18:20, Koen Kooi wrote:
> >> 
> >> Op 23 mrt. 2012, om 17:37 heeft Andreas Oberritter het volgende geschreven:
> >> 
> >>> * Run depmod when the rootfs gets generated.
> >>> 
> >>> Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
> >>> ---
> >>> meta/classes/module.bbclass |    9 +++++----
> >>> 1 files changed, 5 insertions(+), 4 deletions(-)
> >>> 
> >>> diff --git a/meta/classes/module.bbclass b/meta/classes/module.bbclass
> >>> index 53c16b7..e370b24 100644
> >>> --- a/meta/classes/module.bbclass
> >>> +++ b/meta/classes/module.bbclass
> >>> @@ -37,15 +37,16 @@ module_do_install() {
> >>> }
> >>> 
> >>> pkg_postinst_append () {
> >>> -	if [ -n "$D" ]; then
> >>> -		exit 1
> >>> -	fi
> >>> +if [ -n "$D" ]; then
> >>> +	${HOST_PREFIX}depmod -A -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION}
> >>> +else
> >>> 	depmod -a
> >>> 	update-modules || true
> >>> +fi
> >> 
> >> That encodes host system paths into the package, which is not a good thing for tools like narcissus and hob.
> > 
> > So should we remove the same lines from kernel.bbclass?
> 
> I think so, I don't think we want to hand out binaries with scripts that say things like:
> 
> foo-linux-depmod -F /storage/openembedded-is-a-poopyhead/something

However note that the command is only run on the build system, not on
the target and avoids running postinstalls. I'm not taking a patch to
remove this unless there is some equivalent functionality added.

Cheers,

Richard




  reply	other threads:[~2012-03-23 18:41 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-23 16:37 [PATCH 1/4] procps: use update-alternatives for pwdx, pgrep and watch Andreas Oberritter
2012-03-23 16:37 ` [PATCH 2/4] module.bbclass: sync pkg_post{inst, rm} with kernel.bbclass Andreas Oberritter
2012-03-23 17:20   ` Koen Kooi
2012-03-23 17:58     ` Andreas Oberritter
2012-03-23 18:20       ` Koen Kooi
2012-03-23 18:32         ` Richard Purdie [this message]
2012-03-23 17:39   ` Richard Purdie
2012-03-23 18:00     ` Andreas Oberritter
2012-03-23 16:37 ` [PATCH 3/4] sysvinit: use update-alternatives for mountpoint and runlevel Andreas Oberritter
2012-03-23 16:37 ` [PATCH 4/4] ppp: drop unneeded pkg-postinst Andreas Oberritter
2012-04-03 21:53 ` [PATCH 1/4] procps: use update-alternatives for pwdx, pgrep and watch Saul Wold

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=1332527545.9740.473.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.