public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Ebuild determine architecture?
@ 2004-01-05 22:52 Loyd Goodbar
  2004-01-05 23:04 ` Daniel
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Loyd Goodbar @ 2004-01-05 22:52 UTC (permalink / raw
  To: gentoo-dev

The RPMs I'm working with convert to .tar.gz and install, but the RPMs use
RedHat's naming convention (blah.version.i386.rpm or blah.version.ppc.rpm). Is
there a way in an ebuild to know which architecture (x86/ppc) is being used so
I can determine the correct file name?

Thanks,
Loyd
--  
Mediocrity: It takes a lot less time and most people won't notice
the difference until it's too late. <http://www.despair.com/>
loyd@blackrobes.net  ICQ#504581  http://www.blackrobes.net/


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] Ebuild determine architecture?
  2004-01-05 22:52 [gentoo-dev] Ebuild determine architecture? Loyd Goodbar
@ 2004-01-05 23:04 ` Daniel
  2004-01-05 23:14 ` Jeremy Maitin-Shepard
  2004-01-05 23:16 ` Marius Mauch
  2 siblings, 0 replies; 6+ messages in thread
From: Daniel @ 2004-01-05 23:04 UTC (permalink / raw
  To: loyd, gentoo-dev

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 6 Jan 2004 08:22 am, Loyd Goodbar wrote:
> The RPMs I'm working with convert to .tar.gz and install, but the RPMs use
> RedHat's naming convention (blah.version.i386.rpm or blah.version.ppc.rpm).
> Is there a way in an ebuild to know which architecture (x86/ppc) is being
> used so I can determine the correct file name?
>
> Thanks,
> Loyd
> --
> Mediocrity: It takes a lot less time and most people won't notice
> the difference until it's too late. <http://www.despair.com/>
> loyd@blackrobes.net  ICQ#504581  http://www.blackrobes.net/
>
>
> --
> gentoo-dev@gentoo.org mailing list


Use it like a use flag:


/usr/portage/app-misc/dnetc/dnetc-2.9005.483.ebuild:SRC_URI="x86? 
( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-x86-elf.tar.gz )
/usr/portage/app-misc/proxyper/proxyper-333.ebuild:SRC_URI="x86? 
( http://http.distributed.net/pub/dcti/${PN}/${PN}${PV}-linux-x86.tar.gz )


find /usr/portage/ -name "*ebuild" | xargs fgrep SRC_URI | fgrep x86 should 
give you some examples.

- -- 

Daniel Black
- --
Proudly a Gentoo Linux User.
GnuPG/PGP signed and encrypted email preferred
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x32A64DC8
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/+e2LTDSbtjKmTcgRAicrAKCKUHU2N0guSVuvq4cdIYfODthRcACg2x0/
SJ3xNOETNU3l8arQZxP0eyk=
=ovVT
-----END PGP SIGNATURE-----


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] Ebuild determine architecture?
  2004-01-05 22:52 [gentoo-dev] Ebuild determine architecture? Loyd Goodbar
  2004-01-05 23:04 ` Daniel
@ 2004-01-05 23:14 ` Jeremy Maitin-Shepard
  2004-01-05 23:24   ` Ciaran McCreesh
  2004-01-05 23:16 ` Marius Mauch
  2 siblings, 1 reply; 6+ messages in thread
From: Jeremy Maitin-Shepard @ 2004-01-05 23:14 UTC (permalink / raw
  To: gentoo-dev

Loyd Goodbar <loyd@blackrobes.net> writes:

> The RPMs I'm working with convert to .tar.gz and install, but the RPMs use
> RedHat's naming convention (blah.version.i386.rpm or blah.version.ppc.rpm). Is
> there a way in an ebuild to know which architecture (x86/ppc) is being used so
> I can determine the correct file name?

Yes, USE flags can be used to determine the architecture.

-- 
Jeremy Maitin-Shepard

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] Ebuild determine architecture?
  2004-01-05 22:52 [gentoo-dev] Ebuild determine architecture? Loyd Goodbar
  2004-01-05 23:04 ` Daniel
  2004-01-05 23:14 ` Jeremy Maitin-Shepard
@ 2004-01-05 23:16 ` Marius Mauch
  2004-01-06  0:34   ` Loyd Goodbar
  2 siblings, 1 reply; 6+ messages in thread
From: Marius Mauch @ 2004-01-05 23:16 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 582 bytes --]

On 01/05/04  Loyd Goodbar wrote:

> The RPMs I'm working with convert to .tar.gz and install, but the RPMs
> use RedHat's naming convention (blah.version.i386.rpm or
> blah.version.ppc.rpm). Is there a way in an ebuild to know which
> architecture (x86/ppc) is being used so I can determine the correct
> file name?

check the ARCH variable or test for x86/ppc/sparc/... USE flags.

Marius

-- 
Public Key at http://www.genone.de/info/gpg-key.pub

In the beginning, there was nothing. And God said, 'Let there be
Light.' And there was still nothing, but you could see a bit better.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] Ebuild determine architecture?
  2004-01-05 23:14 ` Jeremy Maitin-Shepard
@ 2004-01-05 23:24   ` Ciaran McCreesh
  0 siblings, 0 replies; 6+ messages in thread
From: Ciaran McCreesh @ 2004-01-05 23:24 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 299 bytes --]

On Mon, 05 Jan 2004 18:14:10 -0500 Jeremy Maitin-Shepard
<jbms@gentoo.org> wrote:
| Yes, USE flags can be used to determine the architecture.

Only if you don't care whether you're on sparc32 or sparc64...

-- 
Ciaran McCreesh
Mail:    ciaranm at gentoo.org
Web:     http://dev.gentoo.org/~ciaranm


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] Ebuild determine architecture?
  2004-01-05 23:16 ` Marius Mauch
@ 2004-01-06  0:34   ` Loyd Goodbar
  0 siblings, 0 replies; 6+ messages in thread
From: Loyd Goodbar @ 2004-01-06  0:34 UTC (permalink / raw
  To: Marius Mauch; +Cc: gentoo-dev

ARCH seems to work fine for me, thanks.

Loyd

On Tue, 6 Jan 2004 00:16:14 +0100, Marius Mauch <genone@gentoo.org> wrote:

>On 01/05/04  Loyd Goodbar wrote:
>
>> blah.version.ppc.rpm). Is there a way in an ebuild to know which
>> architecture (x86/ppc) is being used so I can determine the correct
>> file name?
>
>check the ARCH variable or test for x86/ppc/sparc/... USE flags.

--  
Mediocrity: It takes a lot less time and most people won't notice
the difference until it's too late. <http://www.despair.com/>
loyd@blackrobes.net  ICQ#504581  http://www.blackrobes.net/


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-01-06  0:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-05 22:52 [gentoo-dev] Ebuild determine architecture? Loyd Goodbar
2004-01-05 23:04 ` Daniel
2004-01-05 23:14 ` Jeremy Maitin-Shepard
2004-01-05 23:24   ` Ciaran McCreesh
2004-01-05 23:16 ` Marius Mauch
2004-01-06  0:34   ` Loyd Goodbar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox