* [gentoo-user] [OT] Open Office USE flags
@ 2005-08-28 3:07 John Dangler
2005-08-28 6:06 ` Willie Wong
0 siblings, 1 reply; 5+ messages in thread
From: John Dangler @ 2005-08-28 3:07 UTC (permalink / raw
To: gentoo-user
Anyone know why Open Office would require USE=”hardened” ?
Or is this here to show that it can be installed in a hardened Gentoo environment?
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...
Please reply if you can, I’ve been at emerging/compiling packages for the last 20 some hours and am finally at the end… ☺
Thanks.
John D
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] [OT] Open Office USE flags
2005-08-28 3:07 [gentoo-user] [OT] Open Office USE flags John Dangler
@ 2005-08-28 6:06 ` Willie Wong
2005-08-28 6:42 ` John Dangler
0 siblings, 1 reply; 5+ messages in thread
From: Willie Wong @ 2005-08-28 6:06 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [gentoo-user] [OT] Open Office USE flags
2005-08-28 6:06 ` Willie Wong
@ 2005-08-28 6:42 ` John Dangler
2005-08-28 8:28 ` Nick Rout
0 siblings, 1 reply; 5+ messages in thread
From: John Dangler @ 2005-08-28 6:42 UTC (permalink / raw
To: gentoo-user
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:wwong@Princeton.EDU]
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [gentoo-user] [OT] Open Office USE flags
2005-08-28 6:42 ` John Dangler
@ 2005-08-28 8:28 ` Nick Rout
2005-08-28 13:43 ` John Dangler
0 siblings, 1 reply; 5+ messages in thread
From: Nick Rout @ 2005-08-28 8:28 UTC (permalink / raw
To: gentoo-user
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:
nick@sf ~/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:
nick@sf ~/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 <nick@rout.co.nz>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [gentoo-user] [OT] Open Office USE flags
2005-08-28 8:28 ` Nick Rout
@ 2005-08-28 13:43 ` John Dangler
0 siblings, 0 replies; 5+ messages in thread
From: John Dangler @ 2005-08-28 13:43 UTC (permalink / raw
To: gentoo-user
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:nick@rout.co.nz]
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:
nick@sf ~/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:
nick@sf ~/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 <nick@rout.co.nz>
--
gentoo-user@gentoo.org mailing list
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-08-28 13:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-28 3:07 [gentoo-user] [OT] Open Office USE flags John Dangler
2005-08-28 6:06 ` Willie Wong
2005-08-28 6:42 ` John Dangler
2005-08-28 8:28 ` Nick Rout
2005-08-28 13:43 ` John Dangler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox