Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Saul Wold <sgw@linux.intel.com>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Cc: dvhart@linux.intel.com
Subject: Re: [PATCH 04/10] kernel: Fix packaging issue
Date: Thu, 19 Apr 2012 15:58:51 -0700	[thread overview]
Message-ID: <4F9098AB.3040705@linux.intel.com> (raw)
In-Reply-To: <33d6305e28845e6fd225e76f3add810cb0aa7cad.1334875218.git.sgw@linux.intel.com>

On 04/19/2012 03:44 PM, Saul Wold wrote:
> Remove /etc since it is empty, when creating a machine that does not
> deliver any module config files, the /etc is empty and is then warned
> about not being shipped, so we remove it.
>
> This occurs in the routerstationpro with the following warning:
> WARNING: For recipe linux-yocto, the following files/directories were installed but not shipped in any package:
> WARNING:   /etc
>
> Signed-off-by: Saul Wold<sgw@linux.intel.com>
> ---
>   meta/classes/kernel.bbclass |    4 +++-
>   1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index 3519e7c..19dad8e 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -464,9 +464,11 @@ python populate_packages_prepend () {
>   	# avoid warnings. removedirs only raises an OSError if an empty
>   	# directory cannot be removed.
>   	dvar = d.getVar('PKGD', True)
> -	for dir in ["%s/etc/modprobe.d" % (dvar), "%s/etc/modules-load.d" % (dvar)]:
> +	for dir in ["%s/etc/modprobe.d" % (dvar), "%s/etc/modules-load.d" % (dvar), "%s/etc" % (dvar)]:
>   		if len(os.listdir(dir)) == 0:
>   			os.rmdir(dir)
> +	if len(os.listdir("%s/etc" % (dvar))) == 0:
> +		os.rmdir("%s/etc" % (dvar))
>
>   	import re
>   	metapkg = "kernel-modules"
Looks like I grapped the wrong version somehow, will be fixed in the branch!

Sau!



  parent reply	other threads:[~2012-04-19 23:08 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-19 22:44 [PATCH 00/10] Updates and Packaging fixes Saul Wold
2012-04-19 22:44 ` [PATCH 01/10] binutils: add embedspu for ppc builds Saul Wold
2012-04-19 22:44 ` [PATCH 02/10] libgcc: Package additional *crt*.o files for PPC Saul Wold
2012-04-19 22:44 ` [PATCH 03/10] xserver-kdrive: Add xkb to existing docs list Saul Wold
2012-04-19 22:44 ` [PATCH 04/10] kernel: Fix packaging issue Saul Wold
2012-04-19 22:56   ` Darren Hart
2012-04-19 22:58   ` Saul Wold [this message]
2012-04-19 22:44 ` [PATCH 05/10] gcc: Add plugins package for ARM, fix /usr/incude packaging Saul Wold
2012-04-19 22:44 ` [PATCH 06/10] quilt: move empty quiltrc to native Saul Wold
2012-04-20  4:17   ` Chris Larson
2012-04-20  6:23     ` Saul Wold
2012-04-20  9:50       ` Richard Purdie
2012-04-19 22:44 ` [PATCH 07/10] sysstat: Upgrade to 10.0.3 Saul Wold
2012-04-19 22:44 ` [PATCH 08/10] lame: Upgrade to 3.99.5 Saul Wold
2012-04-19 22:44 ` [PATCH 09/10] sqlite3: Upgrade to 3.7.11 Saul Wold
2012-04-19 22:44 ` [PATCH 10/10] distro_tracking: Update Manual Check 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=4F9098AB.3040705@linux.intel.com \
    --to=sgw@linux.intel.com \
    --cc=dvhart@linux.intel.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox