public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] earchdeps - script to list DEPS that need keywording on other arches
@ 2004-08-23 22:14 Stuart Herbert
  2004-08-23 23:07 ` Robin H. Johnson
  0 siblings, 1 reply; 3+ messages in thread
From: Stuart Herbert @ 2004-08-23 22:14 UTC (permalink / raw
  To: gentoo-dev

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

Hi,

http://dev.gentoo.org/~stuart/tools/earchdeps is a simple Bash script which 
lists all the DEPs that need keywording in order to mark a package stable on 
any specified arch.

usage: earchdeps CATEGORY/PN PVR ARCH
e.g.   earchdeps dev-php/mod_php 5.0.1 sparc

The output is a list of atoms that need keywording.  

  >=app-text/fdftk-6.0-r1
  >=dev-db/freetds-0.62.3
  >=dev-db/qdbm-1.8.15
  >=dev-libs/glib-2.4.5
  >=dev-php/mod_php-5.0.1
  >=dev-php/php-5.0.1
  >=media-libs/alsa-lib-1.0.5-r3
  >=media-libs/clibpdf-202_p1
  >=media-libs/fontconfig-2.2.2
  >=media-plugins/alsa-jack-1.0.5
  >=media-sound/alsa-headers-1.0.5a
  >=media-sound/jack-audio-connection-kit-0.98.1-r1
  >=net-libs/libmonetra-4.1
  >=net-nds/openldap-2.1.30-r1
  >=sys-devel/binutils-2.14.90.0.8-r1
  >=sys-kernel/development-sources-2.6.8.1
  >=sys-libs/glibc-2.3.3.20040420-r1
  >=x11-libs/qt-3.3.3

It tries very hard to cope with deep dependencies.  If package foo-4.0 is the 
prefered stable package on the arch that earchdep is running on, it'll 
recommend that >=foo-4.0 is marked stable on the arch that is being tested.  
It should correctly cope if foo-4.1 is already marked stable on that arch.  
If the arch has foo-3.9 marked stable, that's considered to be not good 
enough.

You can't use this to produce a list for another arch until you've marked all 
the DEPS as stable on your own arch (or at least chucked the relevant entries 
into /etc/portage/package.keywords).

It tries very hard to ensure that all the USE flags supported by the package 
are switched on.  It can't spot flags that switch functionality off; coping 
with those is an exercise left for the reader.

I'd be very interested in feedback and patches.  If others confirm that it's 
output is reliable enough, I'll add an ebuild for it into app-portage.

Best regards,
Stu
-- 
Stuart Herbert                                              stuart@gentoo.org
Gentoo Developer                                       http://www.gentoo.org/
                                                   http://stu.gnqs.org/diary/

GnuPG key id# F9AFC57C available from http://pgp.mit.edu
Key fingerprint = 31FB 50D4 1F88 E227 F319  C549 0C2F 80BA F9AF C57C
--

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

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

* Re: [gentoo-dev] earchdeps - script to list DEPS that need keywording on other arches
  2004-08-23 22:14 [gentoo-dev] earchdeps - script to list DEPS that need keywording on other arches Stuart Herbert
@ 2004-08-23 23:07 ` Robin H. Johnson
  2004-08-28  9:03   ` Stuart Herbert
  0 siblings, 1 reply; 3+ messages in thread
From: Robin H. Johnson @ 2004-08-23 23:07 UTC (permalink / raw
  To: Gentoo Developers

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

On Mon, Aug 23, 2004 at 11:14:09PM +0100, Stuart Herbert wrote:
>   >=app-text/fdftk-6.0-r1
> It tries very hard to ensure that all the USE flags supported by the package 
> are switched on.  It can't spot flags that switch functionality off; coping 
> with those is an exercise left for the reader.
Special case / problem in above:
It needs to take into account use.mask.
Eg: fdftk is use.masked on every arch except x86.

One other request for it, a verbose mode would be nice to see why a
given item is in the list, eg why a specific kernel-sources is being
pulled in.

-- 
Robin Hugh Johnson
E-Mail     : robbat2@orbis-terrarum.net
Home Page  : http://www.orbis-terrarum.net/?l=people.robbat2
ICQ#       : 30269588 or 41961639
GnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85

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

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

* Re: [gentoo-dev] earchdeps - script to list DEPS that need keywording on other arches
  2004-08-23 23:07 ` Robin H. Johnson
@ 2004-08-28  9:03   ` Stuart Herbert
  0 siblings, 0 replies; 3+ messages in thread
From: Stuart Herbert @ 2004-08-28  9:03 UTC (permalink / raw
  To: Gentoo Developers

On Tuesday 24 August 2004 00:07, Robin H. Johnson wrote:
> Special case / problem in above:
> It needs to take into account use.mask.
> Eg: fdftk is use.masked on every arch except x86.
>
> One other request for it, a verbose mode would be nice to see why a
> given item is in the list, eg why a specific kernel-sources is being
> pulled in.

I'll happily accept patches from anyone who wants to add these features.

Best regards,
Stu
-- 
Stuart Herbert                                              stuart@gentoo.org
Gentoo Developer                                       http://www.gentoo.org/
                                                   http://stu.gnqs.org/diary/

GnuPG key id# F9AFC57C available from http://pgp.mit.edu
Key fingerprint = 31FB 50D4 1F88 E227 F319  C549 0C2F 80BA F9AF C57C
--

--
gentoo-dev@gentoo.org mailing list


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

end of thread, other threads:[~2004-08-28  9:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-23 22:14 [gentoo-dev] earchdeps - script to list DEPS that need keywording on other arches Stuart Herbert
2004-08-23 23:07 ` Robin H. Johnson
2004-08-28  9:03   ` Stuart Herbert

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