Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 356343 - dev-scheme/racket-5.1 and hardened profile (PaX)
Summary: dev-scheme/racket-5.1 and hardened profile (PaX)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Scheme Project
URL:
Whiteboard:
Keywords:
: 355285 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-02-24 20:53 UTC by Anton Kochkov
Modified: 2012-03-15 08:31 UTC (History)
1 user (show)

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


Attachments
emerge fail log for building racket (racket-fail.log,9.01 KB, text/plain)
2011-02-24 20:54 UTC, Anton Kochkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Kochkov 2011-02-24 20:53:26 UTC
On hardened systems racket dont want build, because it use intermediate racket for building itself:

racketcgc

it placed in racket/.libs/racketcgc
also here is lt-racketcgc (in racket/.libs/lt-racketcgc)

I'm thinking that pax marks with "mr" flags can be useful for this build
Comment 1 Anton Kochkov 2011-02-24 20:54:26 UTC
Created attachment 263717 [details]
emerge fail log for building racket
Comment 2 Anton Kochkov 2011-02-24 21:01:15 UTC
When i'm try do such thing in the ebuild, it give error because .libs directory also contain lt-racketcgc executable:

src_compile() {
	#355285: Split the make targets to invoke pax-ctl
	emake -C racket cgc || die "emake racketcgc failed"
	pax-mark mxer racket/.libs/racketcgc
	emake || die "emake default target(3m) failed"
	if use cgc || use sgc ; then
		time emake cgc || die "emake cgc-install target failed"
	fi
}

so, for fix this error we need run pax-marking after creating lt-racketcgc but before running it.
Comment 3 Anton Kochkov 2011-02-24 22:30:55 UTC
Here PaX log example for this:

Feb 24 23:05:16 localhost kernel: [576744.075427] PAX: execution attempt in: /dev/zero, 9edee000-9ee2e000 00000000
Feb 24 23:05:16 localhost kernel: [576744.075434] PAX: terminating task: /var/tmp/portage/dev-scheme/racket-5.1/work/racket-5.1/src/racket/.libs/lt-racketcgc(lt-racketcgc):21088, uid/euid: 0/0, PC: 9ee17507, SP: b636ba9c
Feb 24 23:05:16 localhost kernel: [576744.075443] PAX: bytes at PC: 55 89 e5 53 56 57 89 e8 8b 00 5f 5e 5b 5d c3 50 e8 d4 8d 45 
Feb 24 23:05:16 localhost kernel: [576744.075457] PAX: bytes at SP-4: b636bb28 9f28146f 00000008 00000000 00000000 e711ab49 00000000 00000000 9f16296b 9edf62a0 9f175e48 00000008 b636bb38 e711ab49 9f3ee9a0 b636c498 9f24f12b 9f3b830c b636ba88 9f3ee9a0 b636c498 
Feb 24 23:18:29 localhost kernel: [577536.594352] PAX: execution attempt in: /dev/zero, a1a95000-a1ad5000 00000000
Feb 24 23:18:29 localhost kernel: [577536.594360] PAX: terminating task: /var/tmp/portage/dev-scheme/racket-5.1/work/racket-5.1/src/racket/.libs/lt-racketcgc(lt-racketcgc):3850, uid/euid: 0/0, PC: a1abe507, SP: b35c872c
Feb 24 23:18:29 localhost kernel: [577536.594368] PAX: bytes at PC: 55 89 e5 53 56 57 89 e8 8b 00 5f 5e 5b 5d c3 50 e8 d4 8d 45 
Feb 24 23:18:29 localhost kernel: [577536.594383] PAX: bytes at SP-4: b35c87b8 a1f2846f 00000008 00000000 00000000 8695d1d8 00000000 00000000 a1e0996b a1a9d2a0 a1e1ce48 00000008 b35c87c8 8695d1d8 a20959a0 b35c9128 a1ef612b a205f30c b35c8718 a20959a0 b35c9128
Comment 4 Anton Kochkov 2011-02-25 12:48:20 UTC
*** Bug 355285 has been marked as a duplicate of this bug. ***
Comment 5 James Broadhead 2011-03-19 15:02:08 UTC
Please mark this bug, so that it is obvious that it is in an Overlay. I believe that the tag 'INOVERLAY' is used.
Comment 6 Cyprien Nicolas (fulax) 2011-03-19 15:35:35 UTC
(In reply to comment #5)
> Please mark this bug, so that it is obvious that it is in an Overlay. I believe
> that the tag 'INOVERLAY' is used.

Actually, the InOverlay keyword is more used to flag a bug that is fixed in overlay but not yet in the main tree.

As the racket ebuild is only available in lisp overlay, your first remark still holds, so I changed the topic accordingly.
Comment 7 Marijn Schouten (RETIRED) gentoo-dev 2011-06-14 08:07:58 UTC
racket-5.1.1 is in main tree and it probably suffers from the same issue. Please test 999 from the overlay though.

Anton, mailing upstream directly is alright, but try to remember that they do not use gentoo and are not familiar with ebuilds or their internals, so try to describe problems in generic terms.
Comment 8 Anton Kochkov 2011-06-17 13:25:43 UTC
(In reply to comment #7)
> racket-5.1.1 is in main tree and it probably suffers from the same issue.
> Please test 999 from the overlay though.
> 
> Anton, mailing upstream directly is alright, but try to remember that they do
> not use gentoo and are not familiar with ebuilds or their internals, so try to
> describe problems in generic terms.

Thx! Racket-999 works ok!
Comment 9 Marijn Schouten (RETIRED) gentoo-dev 2011-06-17 13:28:37 UTC
That is good news! I'll leave this bug open until the next version is in main tree.
Comment 10 Marijn Schouten (RETIRED) gentoo-dev 2012-03-15 08:31:02 UTC
Newer versions are in tree so I'm closing this bug. Please reopen if problem reappears.