Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34404 - dev-lang/hugs98-2003.11.ebuild submission
Summary: dev-lang/hugs98-2003.11.ebuild submission
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Andres Loeh (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-26 05:12 UTC by Peter Simons
Modified: 2005-07-21 04:48 UTC (History)
0 users

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


Attachments
hugs98 Nov 2003 release ebuild (hugs98-2003.11.ebuild,1.97 KB, text/plain)
2003-11-26 05:14 UTC, Peter Simons
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Simons 2003-11-26 05:12:21 UTC
The attached ebuild will intall the latest version of the Hugs98 interpreter for
Haskell. I have tested the package with OpenGL enabled and everything worked
fine. See "emerge info" below for details.

There is one more problem: I built the program with hardened-gcc and it works
fine. (Yay!) But PaX kills the interpreter when it tries to do fancy stuff like
loading external modules (Boo!). Thus, you need to disable PaX for the
/usr/bin/hugs binary by adding this to /etc/conf.d/chpax:

 | PAGEEXEC_EXEMPT="/usr/bin/hugs"
 | TRAMPOLINE_EXEMPT="/usr/bin/hugs"
 | MPROTECT_EXEMPT="/usr/bin/hugs"
 | MMAP_EXEMPT="/usr/bin/hugs"
 | SEGEXEC_EXEMPT="/usr/bin/hugs"
 | RANDEXEC_EXEMPT="/usr/bin/hugs"

Then, /etc/init.d/chpax must be restarted, so that chpax is actually _run_. I
have no idea how to handle this is the ebuild. Perhaps you hardened guys know
the appropriate procedures in this case?

Everybody without PaX should be fine (even with hardened-gcc).

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.49-r15 (selinux-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.21-hardened)
=================================================================
System uname: 2.4.21-hardened i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.3.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon -O3 -fomit-frame-pointer -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=athlon -O3 -fomit-frame-pointer -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache autoaddcvs sfperms sandbox userpriv notitles strict"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo
http://ftp.snt.utwente.nl/pub/os/linux/gentoo
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://gentoo.inode.at/source/
http://gentoo.inode.at/"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 crypt ncurses selinux zlib gdbm berkdb readline guile pam libwww ssl
perl opengl mozilla altcolors curl dga doc dvd emacs ethereal leim mbox
moznocompose moznoirc moznomail moznoxft rage128 Xaw3d -arts -cups -gpm -java
-kde -motif -nls -qt -svga -xmms -tcpd -python -esd spell -slang X png gtk gif
tiff mmx xml xml2 truetype oss tetex jpeg avi oggvobis encode python plotutils
pdflib gcl -tcltk"
Comment 1 Peter Simons 2003-11-26 05:14:54 UTC
Created attachment 21308 [details]
hugs98 Nov 2003 release ebuild
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2003-11-26 14:45:31 UTC
haskell@gentoo.org isn't valid.
Comment 3 Andres Loeh (RETIRED) gentoo-dev 2003-12-01 08:55:44 UTC
I've committed your ebuild with very minor changes (additional dependency
on docbook-dtd). I will try to ask someone about the PaX stuff. Do you know
if there is a standard way to determine if PaX is installed on the machine?
Is there a USE flag?

Thanks for your help.

Andres
Comment 4 Peter Simons 2003-12-01 10:48:21 UTC
PaX is a kernel module, which has to be activated to do anything. There is no "installation" per se in the system, except for (maybe) the chpax(1) utility, which can be used to disable PaX.

In short: I'm not aware of any way to test whether PaX is enabled. Maybe the hardened guys do know a way?
Comment 5 Peter Simons 2004-06-02 12:06:25 UTC
Is there any progress concerning getting this ebuild marked as stable? Anything I may be able to help with?
Comment 6 Peter Simons 2005-01-22 10:37:49 UTC
What is the problem that causes this ebuild to be marked "~x86" still after more than half a year?
Comment 7 Peter Simons 2005-07-21 04:48:51 UTC
With 2005.3 being out and in portage, I guess this bug report can be considered
invalid. ;-)