All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] opkg-collateral: import fixes from OE-Classic
Date: Tue, 03 Jul 2012 21:14:07 +0100	[thread overview]
Message-ID: <1772332.Hc46G99qAB@helios> (raw)
In-Reply-To: <1335478762-14532-1-git-send-email-obi@opendreambox.org>

On Friday 27 April 2012 00:19:22 Andreas Oberritter wrote:
> * Set lists_dir to /var/lib/opkg
> 
>   commit 16808bc4817492beba512f4e73bce8c232d1eafa
>   Author: Marcin Juszkiewicz <hrw@openembedded.org>
>   Date:   Mon Mar 17 23:40:48 2008 +0000
> 
> * Update new options sample and move the opkg.conf to correct place
> 
>   commit cc9825d97962287df75e164aec456901292e1b7f
>   Author: Tick Chen <ticktock35@gmail.com>
>   Date:   Mon Dec 29 19:41:47 2008 +0800
> 
> Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
> ---
>  meta/recipes-devtools/opkg/opkg-collateral.bb      |    8 +++++---
>  meta/recipes-devtools/opkg/opkg-collateral/lists   |    2 +-
>  .../opkg/opkg-collateral/opkg.conf.comments        |    3 +++
>  3 files changed, 9 insertions(+), 4 deletions(-)
> 
> diff --git a/meta/recipes-devtools/opkg/opkg-collateral.bb
> b/meta/recipes-devtools/opkg/opkg-collateral.bb index e3e0b5f..251c535
> 100644
> --- a/meta/recipes-devtools/opkg/opkg-collateral.bb
> +++ b/meta/recipes-devtools/opkg/opkg-collateral.bb
> @@ -2,6 +2,8 @@ DESCRIPTION = "opkg configuration files"
>  SECTION = "base"
>  LICENSE = "MIT"
>  LIC_FILES_CHKSUM =
> "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
> +PR = "r1"
> +
>  SRC_URI = "file://opkg.conf.comments \
>  	   file://lists \
>  	   file://dest \
> @@ -15,8 +17,8 @@ do_compile () {
>  }
> 
>  do_install () {
> -	install -d ${D}${sysconfdir}/
> -	install -m 0644 ${WORKDIR}/opkg.conf ${D}${sysconfdir}/opkg.conf
> +	install -d ${D}${sysconfdir}/opkg
> +	install -m 0644 ${WORKDIR}/opkg.conf ${D}${sysconfdir}/opkg/opkg.conf
>  }
> 
> -CONFFILES_${PN} = "${sysconfdir}/opkg.conf"
> +CONFFILES_${PN} = "${sysconfdir}/opkg/opkg.conf"
> diff --git a/meta/recipes-devtools/opkg/opkg-collateral/lists
> b/meta/recipes-devtools/opkg/opkg-collateral/lists index 3c524f8..f8aecd8
> 100644
> --- a/meta/recipes-devtools/opkg/opkg-collateral/lists
> +++ b/meta/recipes-devtools/opkg/opkg-collateral/lists
> @@ -1,2 +1,2 @@
> -lists_dir ext /var/lib/ipkg
> +lists_dir ext /var/lib/opkg

Unfortunately, it seems this change has caused bug 2595 - moving the config file 
to /etc/opkg means that it is always read regardless of whether -f is specified 
or not (as it is during do_rootfs in order to specify our own generated config 
file), and this means that after opkg-collateral is installed into the rootfs, 
this version of the config is used, resulting in opkg ignoring the lists it has 
already downloaded (since it now sees list_dir as var/lib/opkg instead of 
var/lib/opkg/lists) and thus it fails to install any of the "attemptonly" 
packages (including *-dev, *-dbg, etc.).

The question is, should opkg be fixed to not load anything from etc/opkg/ when 
-f is specified?

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



  parent reply	other threads:[~2012-07-03 20:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-26 22:19 [PATCH] opkg-collateral: import fixes from OE-Classic Andreas Oberritter
2012-04-26 22:39 ` Koen Kooi
2012-04-27  0:18   ` Andreas Oberritter
2012-05-01 18:58 ` Saul Wold
2012-07-03 20:14 ` Paul Eggleton [this message]
2012-07-04 13:50   ` Andreas Oberritter
2012-07-04 15:13     ` Paul Eggleton

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=1772332.Hc46G99qAB@helios \
    --to=paul.eggleton@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 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.