Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 324161 - Port the dev-scheme/plt-scheme's successor, dev-scheme/racket to the main tree
Summary: Port the dev-scheme/plt-scheme's successor, dev-scheme/racket to the main tree
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Highest normal (vote)
Assignee: Scheme Project
URL: http://racket-lang.org/
Whiteboard:
Keywords:
Depends on: 366765
Blocks: 326899 350887 361625
  Show dependency tree
 
Reported: 2010-06-15 17:40 UTC by Panagiotis Christopoulos (RETIRED)
Modified: 2011-10-31 14:36 UTC (History)
9 users (show)

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


Attachments
New ebuild (racket-5.0.ebuild,3.99 KB, text/plain)
2010-07-04 16:57 UTC, Dmitry Dzhus
Details
Old patch updated for Racket (racket-5.0.1-hack_makefile_in_temp01.patch,1.46 KB, patch)
2010-07-04 16:58 UTC, Dmitry Dzhus
Details | Diff
libpng14 patch (unchanged) (racket-5.0.1-libpng14.patch,603 bytes, patch)
2010-07-04 16:59 UTC, Dmitry Dzhus
Details | Diff
Fix building without places (racket-5.0-fix-noplaces-sighand.patch,584 bytes, patch)
2010-07-04 17:01 UTC, Dmitry Dzhus
Details | Diff
Fix building with backtrace (racket-5.0-rename-gc.patch,1.63 KB, patch)
2010-07-04 17:02 UTC, Dmitry Dzhus
Details | Diff
Fix building with backtrace (racket-5.0-thread-gc-backtrace.patch,620 bytes, patch)
2010-07-04 17:02 UTC, Dmitry Dzhus
Details | Diff
Racket 5.0.1 ebuild (racket-5.0.1.ebuild,3.84 KB, text/plain)
2010-08-12 11:57 UTC, Dmitry Dzhus
Details
racket-5.1.0.6 (racket-5.1.0.6.ebuild,1.68 KB, text/plain)
2011-04-08 10:59 UTC, Marijn Schouten (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Panagiotis Christopoulos (RETIRED) gentoo-dev 2010-06-15 17:40:55 UTC
Port the dev-scheme/plt-scheme's successor, dev-{scheme,lang}/racket to the main tree, and remove the plt-scheme ebuilds.
Comment 1 Dmitry Dzhus 2010-07-04 16:57:39 UTC
Created attachment 237459 [details]
New ebuild

Old PLT Scheme ebuild requires little tuning to support Racket.
Old patches need few fixes, and some more patches are needed
to allow building with certain USE combinations due to bugs
present in Racket 5.0.
Comment 2 Dmitry Dzhus 2010-07-04 16:58:30 UTC
Created attachment 237461 [details, diff]
Old patch updated for Racket
Comment 3 Dmitry Dzhus 2010-07-04 16:59:49 UTC
Created attachment 237463 [details, diff]
libpng14 patch (unchanged)

This one applies fine without changes
Comment 4 Dmitry Dzhus 2010-07-04 17:01:42 UTC
Created attachment 237465 [details, diff]
Fix building without places

Details: http://article.gmane.org/gmane.comp.lang.racket.devel/173
This one is already applied upstream.
Comment 5 Dmitry Dzhus 2010-07-04 17:02:19 UTC
Created attachment 237467 [details, diff]
Fix building with backtrace

Details: http://article.gmane.org/gmane.comp.lang.racket.devel/174
This one is applied upstream.
Comment 6 Dmitry Dzhus 2010-07-04 17:02:59 UTC
Created attachment 237469 [details, diff]
Fix building with backtrace

Final patch, details are at http://article.gmane.org/gmane.comp.lang.racket.devel/174.
Comment 7 Cyprien Nicolas (fulax) 2010-08-12 10:31:57 UTC
Dmitry, do you know if the patches you mentioned in comment #5 and #6 are applied in the last upstream 5.0.1 ?

Thanks for providing these files

The current 5.0 ebuild compiled fine on my amd64 but a few QA notices:

 * QA Notice: Package has poor programming practices which may compile
 *            fine but exhibit random runtime failures.
 * /var/tmp/portage/dev-lang/racket-5.0/work/plt-5.0/src/build/../wxxt/contrib/xpm/lib/scan.c:356: warning: incompatible implicit declaration of built-in function 'strdup'
 * /var/tmp/portage/dev-lang/racket-5.0/work/plt-5.0/src/build/../wxxt/contrib/xpm/lib/scan.c:362: warning: incompatible implicit declaration of built-in function 'strdup'
 * /var/tmp/portage/dev-lang/racket-5.0/work/plt-5.0/src/build/../wxxt/contrib/xpm/lib/scan.c:499: warning: incompatible implicit declaration of built-in function 'strdup'
 * /var/tmp/portage/dev-lang/racket-5.0/work/plt-5.0/src/build/../wxxt/contrib/xpm/lib/scan.c:510: warning: incompatible implicit declaration of built-in function 'strdup'
Comment 8 Dmitry Dzhus 2010-08-12 11:57:12 UTC
Created attachment 242555 [details]
Racket 5.0.1 ebuild

Racket 5.0.1 release includes patches I've posted above so they're no longer needed.
Comment 9 Dmitry Dzhus 2010-08-12 11:57:43 UTC
Comment on attachment 237461 [details, diff]
Old patch updated for Racket

Renamed makefile patch
Comment 10 Dmitry Dzhus 2010-08-12 11:58:06 UTC
Comment on attachment 237463 [details, diff]
libpng14 patch (unchanged)

Renamed libpng14 patch
Comment 11 James Broadhead 2010-09-07 04:22:09 UTC
Works here on amd64. Can you add ~amd64 to the ebuild? 

Does this new ebuild address bugs #334679 and #312419 ?
Comment 12 Cyprien Nicolas (fulax) 2010-09-08 21:24:43 UTC
(In reply to comment #11)
> Works here on amd64. Can you add ~amd64 to the ebuild? 
> 
> Does this new ebuild address bugs #334679 and #312419 ?
> 

Not for bug 334679, it's even worse, now three files are reported.

 * QA Notice: Files built without respecting LDFLAGS have been detected
 *  Please include the following list of files in your report:
 * /usr/bin/mred
 * /usr/bin/mzscheme
 * /usr/lib/racket/starter

Il also got the following QA notice:

 * QA Notice: Unrecognized configure options:
 * 
 *      configure: WARNING: unrecognized options: --disable-docs, --enable-gracket, --enable-xrender, --enable-xft, --enable-gl, --enable-cairo, --disable-gprof, --disable-backtrace, --disable-sgc, --disable
-futures, --disable-places, --enable-foreign, --enable-jit, --enable-libpng, --enable-libjpeg, --enable-pthread, --enable-account, --disable-sgcdebug, --disable-compact, --disable-smalloskit, --disable-oskit
, --disable-wbuild, --disable-perl, --with-x
Comment 13 Cyprien Nicolas (fulax) 2010-10-07 13:41:35 UTC
(In reply to comment #11)
> Works here on amd64. Can you add ~amd64 to the ebuild? 

I just committed it into the lisp overlay. The issues mentioned in my previous comment still hold.
Comment 14 Philipp Riegger 2010-12-10 08:45:21 UTC
I just got the following on hardened gentoo, ~amd64:

$ drscheme 
*** stack smashing detected ***: gracket - terminated
gracket: stack smashing attack in function <unknown> - terminated
Report to http://bugs.gentoo.org/
Killed
$ 
Comment 15 Panagiotis Christopoulos (RETIRED) gentoo-dev 2010-12-10 19:28:22 UTC
(In reply to comment #14)
> I just got the following on hardened gentoo, ~amd64:
> ...

Yes, it is known that certain lisp/scheme packages fail on hardened systems, mainly because the people who have written or write lisp software don't care too much about security issues (at least they didn't have security in mind when writing their compilers/interpreters). I don't promise but I would like to give a try to reproduce your error in the not too distant future and see if I can do something. Please submit your emerge --info output and more info about your hardened system (maybe your kernel config(-uration) in attachment. Thank you for your comment. 

Comment 16 Philipp Riegger 2010-12-10 20:39:27 UTC
I run gentoo-sources at the moment, no selinux or grsecurity stuff.

emerge --info:

Portage 2.2.0_alpha7 (hardened/linux/amd64, gcc-4.5.1, glibc-2.12.1-r3, 2.6.36-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.36-gentoo-r4-x86_64-AMD_Phenom-tm-_II_X4_945_Processor-with-gentoo-2.0.1
Timestamp of tree: Fri, 10 Dec 2010 01:45:02 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r2
dev-lang/python:     2.6.6-r1, 2.7.1, 3.1.3
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.8
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.4.5, 4.5.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
Repositories: gentoo jesper_local x11 java-overlay java-experimental xen sugar sunrise gnome mozilla nx science mysql hardened-dev mpd openrc perl-experimental wacfg tante stoile_overlay flameeyes-overlay lisp
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA googleearth AdobeFlash-10 AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=amdfam10 -O2 -pipe"
DISTDIR="/mnt/space/gentoo/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --alphabetical --binpkg-respect-use y --load-average=5 --with-bdeps y"
FEATURES="assume-digests binpkg-logs buildpkg collision-protect distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo http://gentoo.inode.at/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
INSTALL_MASK="*.la"
LANG="en_US.UTF-8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common"
LINGUAS="en"
MAKEOPTS="-j4 -l5 -s"
PKGDIR="/mnt/space/gentoo/packages/jesper"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /mnt/space/gentoo/layman/x11 /mnt/space/gentoo/layman/java-overlay /mnt/space/gentoo/layman/java-experimental /mnt/space/gentoo/layman/xen /mnt/space/gentoo/layman/sugar /mnt/space/gentoo/layman/sunrise /mnt/space/gentoo/layman/gnome /mnt/space/gentoo/layman/mozilla /mnt/space/gentoo/layman/nx /mnt/space/gentoo/layman/science /mnt/space/gentoo/layman/mysql /mnt/space/gentoo/layman/hardened-development /mnt/space/gentoo/layman/mpd /mnt/space/gentoo/layman/openrc /mnt/space/gentoo/layman/perl-experimental /mnt/space/gentoo/layman/wacfg /mnt/space/gentoo/layman/tante /mnt/space/gentoo/layman/stoile /mnt/space/gentoo/layman/flameeyes-overlay /mnt/space/gentoo/layman/lisp"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acl acpi alsa amd64 apm audiofile avahi berkdb branding bzip2 cairo caps cli consolekit cracklib crypt cups curl cxx dbus dri dts dvb dvd encode exif fam ffmpeg flac gd gdbm gif gimp gnome gnome-keyring gnuplot gphoto2 graphviz gstreamer gtk hardened iconv idn imagemagick imap ipv6 jpeg justify lame latex lcms libnotify lua lzo mad matroska mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib musepack nautilus ncurses nls nntp nptl nptlonly offensive ogg openal opengl openmp pam pcre pdf perl pic png policykit pppd python quicktime readline sdl session smp spell sqlite sqlite3 sse sse2 sse3 sse4a ssl startup-notification svg sysfs syslog taglib tcpd theora threads tiff truetype unicode urandom usb vcd vim-syntax vorbis wmf x264 xattr xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="casio casio_qv" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="usb-dib0700" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-2" QEMU_SOFTMMU_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="radeon r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, FFLAGS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 17 Cyprien Nicolas (fulax) 2011-01-11 14:13:00 UTC
Hello,

I just pushed 5.0.2 in the overlay, this version released last November does not require the libpng14 patch anymore.

Testing and comments are more than welcome :-)


Some info about the current state of the ebuild:

Currently, the "QA Notice: Unrecognized configure options" can be safely ignored.
I fixed the /usr/lib/racket/starter LDFLAGS issue.

Still /usr/bin/mred and /usr/bin/mzscheme don't respect LDFLAGS, but those files are built via "raco setup" and I didn't give a look to that tool yet.
Comment 18 Dmitry Dzhus 2011-03-08 13:06:10 UTC
Gracket still fails to run for me when compiled with `mfpmath=sse` regardless of USE flags and CFLAGS, can anyone confirm this?
Comment 19 Marijn Schouten (RETIRED) gentoo-dev 2011-04-07 16:03:24 UTC
Dmitry, Cyprien and others, thanks for your work so far. I'll try and commit something soon.
Comment 20 Marijn Schouten (RETIRED) gentoo-dev 2011-04-08 10:59:22 UTC
Created attachment 268989 [details]
racket-5.1.0.6

I have an ebuild that more closely follows from old plt-scheme ebuilds, but due to compilation problems I cannot yet add it to the tree. I have reported initial problems upstream, but it will likely take some time to resolve this and probable other compilation problems.

Please test and report here and also send any compilation problems upstream (dev@racket-lang.org requires subscription on http://lists.racket-lang.org/dev/).
Comment 21 Marijn Schouten (RETIRED) gentoo-dev 2011-04-15 09:12:37 UTC
I've added a live racket ebuild to the overlay. It depends on an extension I made to git.eclass, so sync your tree if it gives you problems. Please test and report problems here. My plan is to wait until upstream does a (pre)release with few problems until committing something to main tree.
Comment 22 Marijn Schouten (RETIRED) gentoo-dev 2011-05-10 15:38:26 UTC
I've added racket-5.1.1 to main tree, but I dropped some keywords (see bug 366765).
Comment 23 Samuli Suominen (RETIRED) gentoo-dev 2011-10-31 14:36:21 UTC
Both plt-scheme and racket are KEYWORDS="~amd64 ~x86" and plt-scheme is now masked for removal. See bug 389041, Comment #1. There should be no reason to keep this bug open anymore.

Closing as FIXED. If someone feels racket is ready to go stable, or wants a new version, please file a new bug instead.