Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 191954 - net-misc/unison ebuild fixes for hardened/PIE
Summary: net-misc/unison ebuild fixes for hardened/PIE
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo Team for the ML programming language family
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-10 08:17 UTC by Wolfram Schlich (RETIRED)
Modified: 2008-01-27 15:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
add pax marking (unison-2.13.16.pax-mprotect.patch,729 bytes, patch)
2007-09-10 08:18 UTC, Wolfram Schlich (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfram Schlich (RETIRED) gentoo-dev 2007-09-10 08:17:32 UTC
I will attach a patch to unison-2.13.16.ebuild with code
taken from dev-lang/ocaml/ocaml-3.09.3-r1.ebuild to make
unison work on hardened with PAX_MPROTECT enabled.
Comment 1 Wolfram Schlich (RETIRED) gentoo-dev 2007-09-10 08:18:13 UTC
Created attachment 130481 [details, diff]
add pax marking

code taken from dev-lang/ocaml/ocaml-3.09.3-r1.ebuild
Comment 2 Alexis Ballier gentoo-dev 2008-01-27 15:11:08 UTC
we've choosen a different route for ocaml 3.10:
- ocamlopt produces its own asm, which is not PIC.
- then it tries to link the produced .o files with gcc
- hardened gcc has pie in its specs
- this results in textrels because it links non pic objects as pie

we thus forced -nopie on hardened for ocaml compiled code and this should do it without any extra pax marking for every single ocaml package :)