public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] allowed in SRC_URI?
@ 2007-10-26 11:21 Marijn Schouten (hkBst)
  2007-10-26 11:50 ` Petteri Räty
  0 siblings, 1 reply; 2+ messages in thread
From: Marijn Schouten (hkBst) @ 2007-10-26 11:21 UTC (permalink / raw
  To: gentoo-dev@lists.gentoo.org

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

Is the following syntax for SRC_URI allowed:


mips? ( mirror://sourceforge/sbcl/${PN}-${BV_MIPS}-$([[$(tc-endian) = big]] &&
echo mips || echo mipsel)-linux-binary.tar.bz2 )


It is supposed to be a replacement of:


	mips? ( !cobalt? (
mirror://sourceforge/sbcl/${PN}-${BV_MIPS}-mips-linux-binary.tar.bz2 ) )
	mips? ( cobalt? (
mirror://sourceforge/sbcl/${PN}-${BV_MIPSEL}-mipsel-linux-binary.tar.bz2 ) )


relevant tc-endian source:

tc-endian() {
        local host=$1
        [[ -z ${host} ]] && host=${CTARGET:-${CHOST}}
        host=${host%%-*}

        case ${host} in
                mips*l*)        echo little;;
                mips*)          echo big;;
                *)                      echo wtf;;
        esac
}


Marijn

- --
Marijn Schouten (hkBst), Gentoo Lisp project
<http://www.gentoo.org/proj/en/lisp/>, #gentoo-lisp on FreeNode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHIc3Fp/VmCx0OL2wRAq83AKCnHTVai8exLca9R50/7G2SHUgbMQCfSOQB
EmDPVakhM1vf5/AQXk8xtSk=
=B+0g
-----END PGP SIGNATURE-----
-- 
gentoo-dev@gentoo.org mailing list



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

* Re: [gentoo-dev] allowed in SRC_URI?
  2007-10-26 11:21 [gentoo-dev] allowed in SRC_URI? Marijn Schouten (hkBst)
@ 2007-10-26 11:50 ` Petteri Räty
  0 siblings, 0 replies; 2+ messages in thread
From: Petteri Räty @ 2007-10-26 11:50 UTC (permalink / raw
  To: gentoo-dev

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

Marijn Schouten (hkBst) kirjoitti:
> Is the following syntax for SRC_URI allowed:
> 
> 
> mips? ( mirror://sourceforge/sbcl/${PN}-${BV_MIPS}-$([[$(tc-endian) = big]] &&
> echo mips || echo mipsel)-linux-binary.tar.bz2 )
> 

Nope as implied in IRC.

> tc-endian() {
>         local host=$1
>         [[ -z ${host} ]] && host=${CTARGET:-${CHOST}}
>         host=${host%%-*}
> 

This is the reason.

Regards,
Petteri


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

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

end of thread, other threads:[~2007-10-26 11:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-26 11:21 [gentoo-dev] allowed in SRC_URI? Marijn Schouten (hkBst)
2007-10-26 11:50 ` Petteri Räty

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