If you really want to know what a USE flag does on a particular ebuild
you have to:

1, read the ebuild and find what the USE flag switches on or off.
2, understand, from your knowledge of the package, what switching that
option on or off does.

for example, in openoffice:

[EMAIL PROTECTED] ~/mediatemp $ grep
hardened /usr/portage/app-office/openoffice/openoffice-1.1.4-r1.ebuild
IUSE="curl hardened java kde nptl zlib"
        #GCC 3.4 fixes, also needed for hardened
        #Fixes for hardened
        if use hardened; then
                epatch ${FILESDIR}/${PV}/hardened-link.patch

this shows that the effect (and the only effect) of using the hardened
flag is to patch the source with the file
${FILESDIR}/${PV}/hardened-link.patch

Translating, ${FILESDIR} is the files directory
under /usr/portage/app-office/openoffice

${PV} is "package version", ie in the case of openoffice-1.1.4 is 1.1.4

so the file is:

[EMAIL PROTECTED] ~/mediatemp $
cat /usr/portage/app-office/openoffice/files/1.1.4/hardened-link.patch
diff -ur solenv.orig/inc/unxlngi4.mk solenv/inc/unxlngi4.mk
--- solenv.orig/inc/unxlngi4.mk 2004-10-23 20:09:29.344518376 +0200
+++ solenv/inc/unxlngi4.mk      2004-10-23 20:09:43.084429592 +0200
@@ -156,8 +156,8 @@
 LINKFLAGS=-Wl,-z,combreloc $(LINKFLAGSDEFS) $(LINKFLAGSRUNPATH)

 # linker flags for linking applications
-LINKFLAGSAPPGUI= -Wl,-export-dynamic
-LINKFLAGSAPPCUI= -Wl,-export-dynamic
+LINKFLAGSAPPGUI= -Wl,-export-dynamic -Wl,-z,execheap
+LINKFLAGSAPPCUI= -Wl,-export-dynamic -Wl,-z,execheap

 # linker flags for linking shared libraries
 LINKFLAGSSHLGUI= -shared

you'll have to work out for yourself what this actually does. the
Changelog file might have a clue, or bugs.gentoo.org





On Sun, 2005-08-28 at 02:42 -0400, John Dangler wrote:
> Wilie~
> Thanks for the reply.  I did leave it out.  I kept reading and couldn't find
> anywhere except portage (and the hardened docs) where it would be necessary
> for anything in 'daily life'.  And, the references I did find for it were
> all linked to PIE.  The USE flags I quoted were from portage.  Looking at
> the package and selecting USE flags.  I've taken to looking at all of the
> information about a package before emerging -- it saves a lot of backstrokes
> in the long run, and I keep notes about which flags I've added to make.conf
> for which packages, along with the defaults that are already there...
> 
> John D
> 

> 
-- 
Nick Rout <[EMAIL PROTECTED]>

-- 
gentoo-user@gentoo.org mailing list

Reply via email to