public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
From: Joakim Tjernlund <joakim.tjernlund@transmode.se>
To: gentoo-embedded@lists.gentoo.org
Subject: Re: [gentoo-embedded] crossdev improvements
Date: Fri, 1 Oct 2010 08:56:07 +0200	[thread overview]
Message-ID: <OF5AB2C8EA.C3DB3972-ONC12577AF.0024D69D-C12577AF.002618C9@transmode.se> (raw)
In-Reply-To: <201009302036.44607.vapier@gentoo.org>

Mike Frysinger <vapier@gentoo.org> wrote on 2010/10/01 02:36:44:
>
> On Thursday, September 30, 2010 11:38:58 Joakim Tjernlund wrote:
> > So I tried this(using --portage -b instead) and I don't quite get it to
> > work. My binpkg foo is pretty much non existing :)
> >
> > So far I get a bin pkg in
> > /usr/portage/packages/cross/powerpc-4.4.4_softfloat-linux-gnu/cross-powerpc
> > -4.4.4_softfloat-linux-gnu and to get at it I must change PKGDIR to
> > /usr/portage/packages/cross/powerpc-4.4.4_softfloat-linux-gnu/ get at the
> > package. Does it have to be there or could it be moved to
> > /usr/portage/packages/ so emerge finds it without messing with PKGDIR?
>
> crossdev itself forces a PKGDIR subdir.  this dates back 5.5 years at this
> point.  at the time, i was experimenting with same $CATEGORY value as the
> system and only differentiating by SLOT, but portage cant handle that: sys-
> devel/gcc-4.4.4-r1:SLOT=i686-pc-linux-gnu will collide with sys-
> devel/gcc-4.4.4-r1:SLOT=powerpc-unknown-linux-gnu in /var/db/pkg/.  since
> ultimately i didnt go that direction (we have the cross-xxx CATEGORY value
> now), i guess i can drop the PKGDIR munging completely from crossdev.

Great, the change looks very simple:

From 690c42cd1ba00ba9b979cf9665dba75aa76d8c98 Mon Sep 17 00:00:00 2001
From: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Date: Fri, 1 Oct 2010 08:45:13 +0200
Subject: [PATCH] Remove PKGDIR munging

This isn't needed anymore.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
---
 crossdev-20100814/crossdev |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/crossdev-20100814/crossdev b/crossdev-20100814/crossdev
index fc9b89e..214ab7a 100755
--- a/crossdev-20100814/crossdev
+++ b/crossdev-20100814/crossdev
@@ -242,7 +242,6 @@ setup_portage_vars() {
 	PORTDIR=$(portageq envvar PORTDIR)
 	PORT_LOGDIR=$(portageq envvar PORT_LOGDIR)
 	PORT_LOGDIR=${PORT_LOGDIR:-/var/log/portage}
-	export PKGDIR=$(portageq envvar PKGDIR)/cross/${CTARGET}
 	export PORTAGE_TMPDIR=$(portageq envvar PORTAGE_TMPDIR)/cross/${CTARGET}
 	[[ ! -d ${PORT_LOGDIR} ]] && mkdir -p ${PORT_LOGDIR}
 	[[ ! -d ${PORTAGE_TMPDIR} ]] && mkdir -p ${PORTAGE_TMPDIR}
--
1.7.2.2

>
> > Next problem, how do I force other computers to use the bin pkg? Unless one
> > passes -G to emerge, emerge rebuilds the pkg and I don't want that
> > as I have passed EXTRA_ECONF args and added a small patch to glibc as well.
>
> man emerge -> -K

Thanks, but this is not quite what I want. This depends on the user actually passing
-K to emerge. I realize I want something like the different -bin ebuilds
in portage such as openoffice-bin or firefox-bin.
Any pointers on how to create a -bin ebuild from the binary pkgs I
get form crossdev ... -portage -b ?

       Jocke




  reply	other threads:[~2010-10-01  7:07 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-24 16:01 [gentoo-embedded] crossdev improvements Joakim Tjernlund
2010-09-24 17:01 ` Mike Frysinger
2010-09-24 17:42   ` Joakim Tjernlund
2010-09-25  5:37     ` Mike Frysinger
2010-09-25 17:11       ` Joakim Tjernlund
2010-10-08  2:54         ` Mike Frysinger
2010-10-08  6:31           ` Joakim Tjernlund
2010-10-08  8:09           ` Joakim Tjernlund
2010-10-08  8:23             ` Mike Frysinger
2010-10-08  9:07               ` Joakim Tjernlund
2010-09-30 15:38   ` Joakim Tjernlund
2010-10-01  0:36     ` Mike Frysinger
2010-10-01  6:56       ` Joakim Tjernlund [this message]
2010-10-08  3:06         ` Mike Frysinger
2010-10-08  6:37           ` Joakim Tjernlund
2010-10-08  7:32             ` Joakim Tjernlund
2010-10-08  8:20               ` Mike Frysinger
2010-10-08  9:37                 ` Joakim Tjernlund
2010-10-08  9:01 ` Mike Frysinger
2010-10-08  9:45   ` Joakim Tjernlund
2010-10-08 10:14   ` Joakim Tjernlund
2010-10-09 22:15     ` Mike Frysinger
2010-10-10  7:30       ` Joakim Tjernlund
2010-10-28  4:05         ` Mike Frysinger
     [not found]   ` <OF335958F7.6D21F143-ONC12577B6.00357DAC-C12577B6.003593A7@LocalDomain>
2010-10-08 12:40     ` Joakim Tjernlund
2010-10-09 22:16       ` Mike Frysinger

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=OF5AB2C8EA.C3DB3972-ONC12577AF.0024D69D-C12577AF.002618C9@transmode.se \
    --to=joakim.tjernlund@transmode.se \
    --cc=gentoo-embedded@lists.gentoo.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