summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2017-05-11 08:18:30 -0400
committerMichael Orlitzky <mjo@gentoo.org>2017-05-11 08:55:37 -0400
commita710d534973360bae165a2d45cde301dd9956c70 (patch)
tree4ec6a35249f528ed7f290a2e800ea0582ce7d9f1 /dev-scheme/racket
parentprofiles: mask the forthcoming dev-scheme/racket-6.9. (diff)
downloadgentoo-a710d534973360bae165a2d45cde301dd9956c70.tar.gz
gentoo-a710d534973360bae165a2d45cde301dd9956c70.tar.bz2
gentoo-a710d534973360bae165a2d45cde301dd9956c70.zip
dev-scheme/racket: new (masked) version 6.9 with permission from amynka.
This new ebuild comes with a lot of fixes: 1. Dropped the unused eutils eclass. 2. Updated the LICENSE to LGPL-3 from LGPL-2 (upstream change). I've also included GPL-3+ in there, because I see some plain-GPLed code in the source tree. 3. Added some missing dependencies, and a comment mentioning why they're needed. This includes pango per bug 486016. 4. Added a blocker on dev-tex/slatex to avoid file collisions. This is bug 547398, and the solution isn't entirely satisfactory, so I've left a comment explaining what I know. 5. Added --disable-strip to the configure flags to avoid some QA warnings. 6. Changed a few "make" commands that are used with USE=jit, to ensure that two executables are pax-marked before they're used. Along with some commands to pax-mark the installed binaries, this fixes bug 613634. 7. Removed the *.desktop file DESTDIR mangling; it looks like whatever problem this solved has been fixed upstream. However, this new ebuild comes with one new problem: 1. The build randomly crashes with racketcgc segfaults. This seems to only happen with USE=jit. I've filed a bug upstream at http://bugs.racket-lang.org/query/?cmd=view&pr=15433, but even changing the GC doesn't appear to fix it. I get a different backtrace, but it's always racketcgc that segfaults. I'm not sure what to do about this (mask the "jit" flag?), so this new ebuild is committed package.masked. Gentoo-Bug: 486016 Gentoo-Bug: 547398 Gentoo-Bug: 613634 Gentoo-Bug: 613918 Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-scheme/racket')
-rw-r--r--dev-scheme/racket/Manifest2
-rw-r--r--dev-scheme/racket/racket-6.9.ebuild132
2 files changed, 134 insertions, 0 deletions
diff --git a/dev-scheme/racket/Manifest b/dev-scheme/racket/Manifest
index 547d03668958..d2c62210fc2c 100644
--- a/dev-scheme/racket/Manifest
+++ b/dev-scheme/racket/Manifest
@@ -1,3 +1,5 @@
DIST racket-5.3.6-src-unix.tgz 19278914 SHA256 7fe0ffc1231f888cd481f175e428f0217257dd136d2513bde73954af5a7cfb8a SHA512 08e8b599e800f41c9497b07e163ed43ae02ae9d9bcc3e20da31eb2f6aa20aa4b0071db51e93696ae1bd644ddfa1c3aea587a334db24ced4a3654dcf5da138e8f WHIRLPOOL c2c34de08d0ec9942f040cc23ea7f2a9bb743d0dcc7125e1b5336b0845482e67abd46b1b5cb821e898c3db50767312f3a27e386a0b7046bf068feb23a1b1bf52
DIST racket-6.7-src-builtpkgs.tgz 116773863 SHA256 3608a2d8b5dc5b755f014972140594e39110c5c391b556da43aa349d64c392ed SHA512 63fdc18e72fa152434d0fb83e926c28d2b2d16c93a0a2be0c14d445671c1bff5daf500e9917e41fa2f60454377de0cc10d226c321402abf4bad55a15ac74f127 WHIRLPOOL d4ee7c9cd61f79d7d6d5928ed697085a8f06c377cd80c10bfd68b5c250b3e901dcc8fad56d223ba27e486d00f7b926be49268a580137964023948d53837e05e5
+DIST racket-6.9-src-builtpkgs.tgz 118620147 SHA256 2b87f1abbeb3bf9fa981fcfb9d7b53886d8bb3591a35b7f730cbd429fe238c60 SHA512 14144c408521034b9c57925cd01ca25488cdcbcd3f8b943074f8ea434b84bdd76a73095ef920051a925929e3fcb4707bfd6b1585a7debaf23069f1a0db06298b WHIRLPOOL f00256a0f7b53748e1b3cb4fee43c769c8fd3b3af42ff765a71c6d68d3fc89c89812ab7cf7c0c5028f1ae5ae0d70a56402b42b9db18d5a11815b2195d8a73417
DIST racket-minimal-6.7-src-builtpkgs.tgz 11213736 SHA256 4203d9b51a0de7ea549db966cfa49a736f8605ab51e2f198cbdb9cfaf428b0f3 SHA512 59c885b535ed8e91a3b2a524bbc38661a5c19848ded935cc9f068c3fd6c8da39fc0755ef8df3a69cce3d50b96ee30d91972d6a4f6d5414eefb80bdc1ede6a285 WHIRLPOOL aadcd035595325320cd7d372f4b7773ef66b542056b0140066279fe9aa9bcb054d25157774040dcc65749ac528f0297e4a30787e2a37d52fae6888b005e62490
+DIST racket-minimal-6.9-src-builtpkgs.tgz 11065867 SHA256 0b8eb43c16e2380ff47fd7883d7886a1d34935ead3546cde9e292318ddefba87 SHA512 4d619e2b2efc852b24f925b51fe452316693ce850f71298fcb2a0009fe5770c15fbe88830f8a214cbfd4e0be57e6bd47ca963c0bd919bd5fc1f986f96d7a12f5 WHIRLPOOL 534f13e0e945ba5536101e92e120da6a5e8123daf416c04b8d0b596cd54b05fc79ec5dd6dddbddef8a6cd45b06e3b51fd735590e1896373fbe44afc37329de42
diff --git a/dev-scheme/racket/racket-6.9.ebuild b/dev-scheme/racket/racket-6.9.ebuild
new file mode 100644
index 000000000000..069d5423011f
--- /dev/null
+++ b/dev-scheme/racket/racket-6.9.ebuild
@@ -0,0 +1,132 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit pax-utils
+
+DESCRIPTION="General purpose, multi-paradigm Lisp-Scheme programming language"
+HOMEPAGE="http://racket-lang.org/"
+SRC_URI="minimal? ( http://download.racket-lang.org/installers/${PV}/${PN}-minimal-${PV}-src-builtpkgs.tgz ) !minimal? ( http://download.racket-lang.org/installers/${PV}/${P}-src-builtpkgs.tgz )"
+
+# The main license is LGPL-3, as described here:
+#
+# https://download.racket-lang.org/license.html
+#
+# However, there are traces of plain-GPL code, such as the routines in
+# collects/file/gzip.rkt that were based on GPLed C code, or the Cygwin
+# code in src/racket/dynsrc/init.cc. To err on the side of correctness,
+# we list GPL-3+, too.
+#
+LICENSE="GPL-3+ LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="doc +futures +jit minimal +places +threads +X"
+REQUIRED_USE="futures? ( jit )"
+
+# According to the Racket README, the dependencies of racket/draw should
+# only be needed at runtime, unless you're building the documentation:
+#
+# http://docs.racket-lang.org/draw/libs.html
+#
+# However, we have one report where the build system tried to use Pango,
+# even with USE="-doc". To be safe, we require the racket/draw
+# dependencies unconditionally at both build- and run-time.
+#
+# References:
+#
+# * bug 426316
+# * bug 486016
+#
+# The Racket GUI has some additional dependencies,
+#
+# http://docs.racket-lang.org/gui/libs.html
+#
+# that may truly be runtime-only.
+#
+RDEPEND="dev-db/sqlite:3
+ media-libs/libpng:0
+ x11-libs/cairo[X?]
+ x11-libs/pango[X?]
+ virtual/libffi
+ virtual/jpeg:0
+ X? ( x11-libs/gtk+[X?] )"
+
+# The blocker on dev-tex/slatex is because they both ship a "slatex"
+# executable. The slatex that comes with racket is apparently a copy of
+# dev-tex/slatex that has been modified to support only mzscheme. It's
+# not clear if dev-tex/slatex can be used as a replacement for the
+# racket version, but the racket version almost certainly cannot replace
+# dev-tex/slatex.
+#
+# If dev-tex/slatex will work for racket, then maybe we could just pull
+# it in as a dependency and remove /usr/bin/slatex in the src_install
+# for racket. Otherwise, we may have to rename racket's version to
+# somethine like slatex-racket, assuming that doesn't break
+# anything. This is all bug 547398.
+#
+RDEPEND="${RDEPEND} !dev-tex/slatex"
+
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${P}/src"
+
+src_prepare() {
+ default
+ rm -r foreign/libffi || die 'failed to remove bundled libffi'
+}
+
+src_configure() {
+ # According to vapier, we should use the bundled libtool
+ # such that we don't preclude cross-compile. Thus don't use
+ # --enable-lt=/usr/bin/libtool
+ econf \
+ --enable-shared \
+ --enable-float \
+ --enable-libffi \
+ --enable-foreign \
+ --disable-libs \
+ --disable-strip \
+ $(use_enable X gracket) \
+ $(use_enable doc docs) \
+ $(use_enable jit) \
+ $(use_enable places) \
+ $(use_enable futures) \
+ $(use_enable threads pthread)
+}
+
+src_compile() {
+ if use jit; then
+ # When the JIT is enabled, a few binaries need to be pax-marked
+ # on hardened systems (bug 613634). The trick is to pax-mark
+ # them before they're used later in the build system. The
+ # following order for racketcgc and racket3m was determined by
+ # digging through the Makefile in src/racket to find out which
+ # targets would build those binaries but not use them.
+ pushd racket
+ emake cgc-core
+ pax-mark m .libs/racketcgc
+ pushd gc2
+ emake all
+ popd
+ pax-mark m .libs/racket3m
+ popd
+ fi
+
+ default
+}
+
+src_install() {
+ default
+
+ if use jit; then
+ # The final binaries need to be pax-marked, too, if you want to
+ # actually use them. The src_compile marking get lost somewhere
+ # in the install process.
+ for f in mred mzscheme racket; do
+ pax-mark m "${D}/usr/bin/${f}"
+ done
+
+ use X && pax-mark m "${D}/usr/$(get_libdir)/racket/gracket"
+ fi
+}