* [gentoo-user-de] USE-Abfrage in ebuild
@ 2005-09-29 14:16 Holger Motzkau
2005-09-29 16:31 ` Christoph Budziszewski
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Holger Motzkau @ 2005-09-29 14:16 UTC (permalink / raw
To: gentoo-user-de
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hallo,
ich bin dabei, ein neues ebuild zu schreiben. Dabei muss kontrolliert
werden, ob ein anderes Paket abc mit einem bestimmten USE-flag xyz
kompelliert wurde, also in etwa so:
if ### gesuchter befehl ### then
einfo "detected patched abc."
else
einfo "detected unpatched abc!"
ewarn "you need to reemerge abc with use-flag xyz!"
die "you need to reemerge abc with use-flag xyz!"
fi
Aber wie genau bekomme ich das raus? Mir fehlt da die entsprechende
Abfragemoeglichkeit. Ich wollte schon "genlop -i abc" nehmen, aber das
ist nicht ueberall vorhanden. "USE="xyz" -vp abc" ware auch eine
Moeglichkeit: wenn dort hinter xyz ein * ist, dann fehlt die Option.
Aber geht es auch einfacher?
MfG Holger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDO/cm1w2TYdmk8BYRAq9SAJ0ZBeJ8LF96bM0y7RmZcoqKiguuYgCdGTOD
dDUnk7aUr8Fp807twWJRQXE=
=4D1S
-----END PGP SIGNATURE-----
--
gentoo-user-de@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user-de] USE-Abfrage in ebuild
2005-09-29 16:31 ` Christoph Budziszewski
@ 2005-09-29 15:08 ` Holger Motzkau
2005-09-29 16:41 ` [gentoo-user-de] " Christof Schulze
1 sibling, 0 replies; 8+ messages in thread
From: Holger Motzkau @ 2005-09-29 15:08 UTC (permalink / raw
To: gentoo-user-de
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hallo,
Christoph Budziszewski schrieb:
> versuchs mit equery
Danke, das ist in etwa das, was ich gesucht habe.
mal ein test:
linux home # equery uses gnome
[ Searching for packages matching gnome... ]
[ Colour Code : set unset ]
[ Legend : Left column (U) - USE flags from make.conf ]
[ : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for gnome-base/gnome-2.10.2 ]
U I
- - accessibility : Adds support for accessibility (eg 'at-spi' [...]
- + cdr : Adds support for CD writer hardware
+ + dvdr : Adds support for DVD writer hardware (e.g. in [...]
- - hal : Enable Hardware Abstraction Layer (HAL) support
linux home # equery uses gnome|grep cdr
- -cdr
linux home #
Aber warum gibt es mir -cdr aus, obwohl +cdr benutzt wurde?
MfG Holger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDPANt1w2TYdmk8BYRAtI0AKCM5wVdcKs7/0rxhQYoi/XBIc3ggwCg3QGt
7/CuaA60uwsi1/tf7+6Xp3o=
=kx35
-----END PGP SIGNATURE-----
--
gentoo-user-de@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user-de] USE-Abfrage in ebuild
2005-09-29 14:16 [gentoo-user-de] USE-Abfrage in ebuild Holger Motzkau
@ 2005-09-29 16:31 ` Christoph Budziszewski
2005-09-29 15:08 ` Holger Motzkau
2005-09-29 16:41 ` [gentoo-user-de] " Christof Schulze
2005-09-29 17:51 ` [gentoo-user-de] " Lars Strojny
2005-09-29 18:02 ` Christian Heim
2 siblings, 2 replies; 8+ messages in thread
From: Christoph Budziszewski @ 2005-09-29 16:31 UTC (permalink / raw
To: gentoo-user-de
[-- Attachment #1: Type: text/plain, Size: 1059 bytes --]
Am Donnerstag, 29. September 2005 16:15 schrieb Holger Motzkau:
> Hallo,
> ich bin dabei, ein neues ebuild zu schreiben. Dabei muss kontrolliert
> werden, ob ein anderes Paket abc mit einem bestimmten USE-flag xyz
> kompelliert wurde, also in etwa so:
> if ### gesuchter befehl ### then
> einfo "detected patched abc."
> else
> einfo "detected unpatched abc!"
> ewarn "you need to reemerge abc with use-flag xyz!"
> die "you need to reemerge abc with use-flag xyz!"
> fi
> Aber wie genau bekomme ich das raus? Mir fehlt da die entsprechende
> Abfragemoeglichkeit. Ich wollte schon "genlop -i abc" nehmen, aber das
> ist nicht ueberall vorhanden. "USE="xyz" -vp abc" ware auch eine
> Moeglichkeit: wenn dort hinter xyz ein * ist, dann fehlt die Option.
> Aber geht es auch einfacher?
wie wäre es, wenn du das selbe flag von paket abc auch in diesem Paket
abfragst? und-oder ein grep in der /etc/mak.conf
sowie /etc/portage/package.use ?
oder versuchs mit equery und setz das als dependency ...
njoy,
Christoph
[-- Attachment #2: Type: application/pgp-signature, Size: 827 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [gentoo-user-de] Re: USE-Abfrage in ebuild
2005-09-29 16:31 ` Christoph Budziszewski
2005-09-29 15:08 ` Holger Motzkau
@ 2005-09-29 16:41 ` Christof Schulze
1 sibling, 0 replies; 8+ messages in thread
From: Christof Schulze @ 2005-09-29 16:41 UTC (permalink / raw
To: gentoo-user-de
[-- Attachment #1: Type: text/plain, Size: 107 bytes --]
ein grep in der /etc/make.conf verbietet sich weil sich useflags auch
mal ändern...
Gruß
Christof
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user-de] USE-Abfrage in ebuild
2005-09-29 14:16 [gentoo-user-de] USE-Abfrage in ebuild Holger Motzkau
2005-09-29 16:31 ` Christoph Budziszewski
@ 2005-09-29 17:51 ` Lars Strojny
2005-09-29 18:02 ` Christian Heim
2 siblings, 0 replies; 8+ messages in thread
From: Lars Strojny @ 2005-09-29 17:51 UTC (permalink / raw
To: gentoo-user-de
[-- Attachment #1: Type: text/plain, Size: 391 bytes --]
Am Donnerstag, den 29.09.2005, 16:16 +0200 schrieb Holger Motzkau:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hallo,
>
> ich bin dabei, ein neues ebuild zu schreiben. Dabei muss kontrolliert
> werden, ob ein anderes Paket abc mit einem bestimmten USE-flag xyz
> kompelliert wurde, also in etwa so:
"has_use" oder so ähnlich ist IMHO das was du suchst.
Gruß, Lars
[-- Attachment #2: Dies ist ein digital signierter Nachrichtenteil --]
[-- Type: application/pgp-signature, Size: 827 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user-de] USE-Abfrage in ebuild
2005-09-29 14:16 [gentoo-user-de] USE-Abfrage in ebuild Holger Motzkau
2005-09-29 16:31 ` Christoph Budziszewski
2005-09-29 17:51 ` [gentoo-user-de] " Lars Strojny
@ 2005-09-29 18:02 ` Christian Heim
2005-09-29 18:42 ` Holger Motzkau
2 siblings, 1 reply; 8+ messages in thread
From: Christian Heim @ 2005-09-29 18:02 UTC (permalink / raw
To: gentoo-user-de
[-- Attachment #1: Type: text/plain, Size: 1202 bytes --]
On Thursday 29 September 2005 16:16, Holger Motzkau wrote:
> Hallo,
>
> ich bin dabei, ein neues ebuild zu schreiben. Dabei muss kontrolliert
> werden, ob ein anderes Paket abc mit einem bestimmten USE-flag xyz
> kompelliert wurde, also in etwa so:
>
> if ### gesuchter befehl ### then
> einfo "detected patched abc."
> else
> einfo "detected unpatched abc!"
> ewarn "you need to reemerge abc with use-flag xyz!"
> die "you need to reemerge abc with use-flag xyz!"
> fi
pkg_setup() {
if ! built_with_use category/name patched; then
echo
einfo "detected patched abc."
else
echo
ewarn "detected unpatched abc!"
die "you need to reemerge abc with use-flag xyz!"
fi
}
Wäre z.B. eine solche Möglichkeit, ab besten in pkg_setup().
> Aber wie genau bekomme ich das raus? Mir fehlt da die entsprechende
> Abfragemoeglichkeit. Ich wollte schon "genlop -i abc" nehmen, aber das
> ist nicht ueberall vorhanden. "USE="xyz" -vp abc" ware auch eine
> Moeglichkeit: wenn dort hinter xyz ein * ist, dann fehlt die Option.
> Aber geht es auch einfacher?
>
> MfG Holger
--
Christian Heim <phreak@gentoo.org>
Gentoo Linux Developer (VServer)
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user-de] USE-Abfrage in ebuild
2005-09-29 18:02 ` Christian Heim
@ 2005-09-29 18:42 ` Holger Motzkau
2005-09-30 6:11 ` Sebastian Damm
0 siblings, 1 reply; 8+ messages in thread
From: Holger Motzkau @ 2005-09-29 18:42 UTC (permalink / raw
To: gentoo-user-de
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hallo,
Christian Heim schrieb:
> pkg_setup() {
> if ! built_with_use category/name patched; then
> echo
> einfo "detected patched abc."
> else
> echo
> ewarn "detected unpatched abc!"
> die "you need to reemerge abc with use-flag xyz!"
> fi
> }
>
> Wäre z.B. eine solche Möglichkeit, ab besten in pkg_setup().
Vielen Dank, genau das habe ich gesucht. fuer name setze ich noch abc
ein und fuer patched xyz. Bisher hatte ich aehnliche Abfragen nur in
src_unpack gefunden, aber wenn pkg_setup besser ist nehm ich das.
Danke nochmal,
MfG Holger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDPDWq1w2TYdmk8BYRApsKAJ0S1m+zFXdr5vbodX6cDe7vlFCjSwCeJp/5
icJ1Z1/Vzx+oWdKDGtLiIuc=
=AIQM
-----END PGP SIGNATURE-----
--
gentoo-user-de@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user-de] USE-Abfrage in ebuild
2005-09-29 18:42 ` Holger Motzkau
@ 2005-09-30 6:11 ` Sebastian Damm
0 siblings, 0 replies; 8+ messages in thread
From: Sebastian Damm @ 2005-09-30 6:11 UTC (permalink / raw
To: gentoo-user-de
[-- Attachment #1: Type: text/plain, Size: 924 bytes --]
Hallo,
Am 29. September 2005 schrieb Holger Motzkau:
> Vielen Dank, genau das habe ich gesucht.
Ich hab grad mal nochmal scharf nachgedacht und wusste, dass ich das in
einem der zuletzt bei mir installierten Pakete gefunden hatte:
Mal ein Auszug aus dem slrn-Ebuild:
pkg_setup() (
if use unicode && ! built_with_use sys-libs/slang unicode
then
eerror "For USE=\"unicode\" support you need to have your sys-libs/slang also compiled"
eerror "with USE=\"unicode\" support."
die "sys-libs/slang with USE=\"unicode\" support needed"
fi
)
Nur nochmal als konkretes Beispiel und wahrscheinlich willst Du auch
eerror verwenden statt einfo (wegen der roten Sternchen ;)).
Ciao
Sebastian
--
Sebastian Damm
Blog: http://blog.sdamm.de
GPG-Encrypted mail welcome! ID: 0x64D96827 @ pgpkeys.pca.dfn.de
Fingerprint: CB7F F23F D950 644D 838B 215A 550F 75EC 64D9 6827
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-09-30 6:21 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-29 14:16 [gentoo-user-de] USE-Abfrage in ebuild Holger Motzkau
2005-09-29 16:31 ` Christoph Budziszewski
2005-09-29 15:08 ` Holger Motzkau
2005-09-29 16:41 ` [gentoo-user-de] " Christof Schulze
2005-09-29 17:51 ` [gentoo-user-de] " Lars Strojny
2005-09-29 18:02 ` Christian Heim
2005-09-29 18:42 ` Holger Motzkau
2005-09-30 6:11 ` Sebastian Damm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox