From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_ADSP_NXDOMAIN, DMARC_MISSING,MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_DYNAMIC autolearn=unavailable autolearn_force=no version=4.0.0 Received: from wired-networks.net (213-145-191-76.dd.nextgentel.com [213.145.191.76]) by chiba.3jane.net (Postfix) with SMTP id 6609FABD52 for ; Wed, 15 May 2002 06:00:50 -0500 (CDT) Received: (qmail 31444 invoked from network); 15 May 2002 11:00:58 -0000 Received: from unknown (HELO maas) (192.168.0.2) by aleph.wired with SMTP; 15 May 2002 11:00:58 -0000 Subject: Re: [gentoo-dev] ebuild USE priority From: Erik Grinaker To: gentoo-dev@gentoo.org In-Reply-To: <1021438533.3630.45.camel@sartre.shacknet.nu> References: <1021414998.4192.7.camel@maas.wired> <1021438533.3630.45.camel@sartre.shacknet.nu> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-A572YiWtkFjA0EeawZR6" X-Mailer: Ximian Evolution 1.0.5 Date: 15 May 2002 12:51:47 +0200 Message-Id: <1021459908.4468.5.camel@maas.wired> Mime-Version: 1.0 Sender: gentoo-dev-admin@gentoo.org Errors-To: gentoo-dev-admin@gentoo.org X-BeenThere: gentoo-dev@gentoo.org X-Mailman-Version: 2.0.6 Precedence: bulk Reply-To: gentoo-dev@gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Gentoo Linux developer list List-Unsubscribe: , List-Archive: X-Archives-Salt: 18eb9daa-4c76-49a6-a280-f02eb09b2ad1 X-Archives-Hash: 2e6f6e6bc7b2024481c7bd693fa9a4b0 --=-A572YiWtkFjA0EeawZR6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Wed, 2002-05-15 at 06:55, Matthew Kennedy wrote: > On Tue, 2002-05-14 at 17:23, Erik Grinaker wrote: > > The ebuild is for the Unix Amiga Emulator, or uae for short. uae allows > > you to select which backend to compile against during ./configure, and > > you can choose *either* x, svgalib, ncurses or sdl. >=20 > When creating the xemacs-gamma ebuild I encountered the same dillema. > When you say "*either*", I assume you mean that X, svga, ncurse and sdl > are optional, but mutually exclusive. Yep, that's right. > > If a user has, say, both X and svga in his USE variable, how do I > > determine whether to use X or svgalib for backend? >=20 > XEmacs gamma supports gtk OR motif OR lucid interfaces (each of which > can be considered a use flag) in mutual exclusion. Of course, I don't > want to dictate one of those three to the user, since my preference may > not be theirs. >=20 > I thought of a priority scheme, but couldn't see clearly how that would > be done. How did you do it, BTW? Well, I haven't completed the ebuild yet, but I decided to go for my own priorities ; use ncurses && backend=3D"--with-asciiart" use svga && backend=3D"--with-svgalib" use sdl && backend=3D"--with-sdl --with-sdl-sound --with-sdl-gfx" use X && backend=3D"--with-x" These are set in reverse so that the last one that matches will be active. But I'm really not satisfied with this, because if a user would like to have, as you say later in your mail, an svga emulator while having both x and svga in his USE then his only option would be to manually change USE before emerging. > What I ended up doing was checking for an env. var. named USE_PREF which > is localized to xemacs-gamma. It allows the user to merge xemacs-gamma > like this: >=20 > USE_PREF=3Dgtk app-editors/xemacs-gamma This seems to be quite sensible, even though it creates it's share of troubles when checking DEPENDs. Does any of the Gentoo developers have any thoughts on this? --=20 Erik Grinaker Freelance UNIX/Linux systems consultant "Perfection is acheived not when there is nothing more to add, but rather when there is nothing more to take away" - Antoine de Saint-Exup=E9ry --=-A572YiWtkFjA0EeawZR6 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQA84j3DbB7iYiY7YroRAqkRAKCCOkIZqKoqi1rukBEY+t/VkKHqAgCfU2NK nP5NupgIbDo4wqRscTwakWo= =z2ox -----END PGP SIGNATURE----- --=-A572YiWtkFjA0EeawZR6--