Re: [gentoo-user] [OT] Open Office USE flags

2005-08-28 Thread Willie Wong
On Sat, Aug 27, 2005 at 11:07:52PM -0400, John Dangler wrote:
 Anyone know why Open Office would require USE=???hardened??? ?

huh? To my knowledge, no package would REQUIRE a useflag. 

 Or is this here to show that it can be installed in a hardened Gentoo 
 environment?

The line IUSE= hardened ... in the ebuild specifies that it CAN
be built with the hardened flag, probably for PIE. 

 I noticed some postings based on people installing it with -hardened (and 
 having problems), but I don't have a hardened Gentoo install and don't want 
 this to bork, since I'm sure it will take a while to compile...

OpenOffice is app-office, I highly doubt most people using OpenOffice,
i.e., on a desktop, would seriously need/want hardened. 

Go ahead and emerge it with -hardened. 

W
-- 
Q: What's grey and proves the nondenumerability of the Reals? 
A: Cantor's Diagonal Elephant
Sortir en Pantoufles: up 16 days,  9:06
-- 
gentoo-user@gentoo.org mailing list



RE: [gentoo-user] [OT] Open Office USE flags

2005-08-28 Thread John Dangler
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

-Original Message-
From: Willie Wong [mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 28, 2005 2:07 AM
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] [OT] Open Office USE flags

On Sat, Aug 27, 2005 at 11:07:52PM -0400, John Dangler wrote:
 Anyone know why Open Office would require USE=???hardened??? ?

huh? To my knowledge, no package would REQUIRE a useflag. 

 Or is this here to show that it can be installed in a hardened Gentoo
environment?

The line IUSE= hardened ... in the ebuild specifies that it CAN
be built with the hardened flag, probably for PIE. 

 I noticed some postings based on people installing it with -hardened (and
having problems), but I don't have a hardened Gentoo install and don't want
this to bork, since I'm sure it will take a while to compile...

OpenOffice is app-office, I highly doubt most people using OpenOffice,
i.e., on a desktop, would seriously need/want hardened. 

Go ahead and emerge it with -hardened. 

W
-- 
Q: What's grey and proves the nondenumerability of the Reals? 
A: Cantor's Diagonal Elephant
Sortir en Pantoufles: up 16 days,  9:06
-- 
gentoo-user@gentoo.org mailing list





-- 
gentoo-user@gentoo.org mailing list



RE: [gentoo-user] [OT] Open Office USE flags

2005-08-28 Thread Nick Rout
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



RE: [gentoo-user] [OT] Open Office USE flags

2005-08-28 Thread John Dangler
Nick~
Thanks for the reply.  Of all the sources of information possible, I didn't
think of looking through the ebuild for how the flags are implemented!!  I
did notice that portage allows you to view the ebuild (so looking through
the build script before emerging is possible).  Great tip!

John D

-Original Message-
From: Nick Rout [mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 28, 2005 4:28 AM
To: gentoo-user@lists.gentoo.org
Subject: RE: [gentoo-user] [OT] Open Office USE flags

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




-- 
gentoo-user@gentoo.org mailing list