summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2015-03-25 15:35:16 -0700
committerPalmer Dabbelt <palmer@dabbelt.com>2015-03-25 15:35:16 -0700
commitab09e9a30f32c7a5cdab6dcd547b6e0b5c9387e0 (patch)
tree1dab3944490a532bf6df57c065cd7539b32c3175 /sys-devel/pconfigure
parentAdd an updated smuxi ebuild (diff)
downloadpalmer-ab09e9a30f32c7a5cdab6dcd547b6e0b5c9387e0.tar.gz
palmer-ab09e9a30f32c7a5cdab6dcd547b6e0b5c9387e0.tar.bz2
palmer-ab09e9a30f32c7a5cdab6dcd547b6e0b5c9387e0.zip
Update pconfigure to 0.9.4-r1
This is required to build with glibc-2.20.
Diffstat (limited to 'sys-devel/pconfigure')
-rw-r--r--sys-devel/pconfigure/Manifest2
-rw-r--r--sys-devel/pconfigure/files/pconfigure-0.9.4-glibc_2.20.patch38
-rw-r--r--sys-devel/pconfigure/pconfigure-0.9.4-r1.ebuild37
3 files changed, 77 insertions, 0 deletions
diff --git a/sys-devel/pconfigure/Manifest b/sys-devel/pconfigure/Manifest
index 40245c9..a1d3a10 100644
--- a/sys-devel/pconfigure/Manifest
+++ b/sys-devel/pconfigure/Manifest
@@ -1,4 +1,6 @@
+AUX pconfigure-0.9.4-glibc_2.20.patch 1044 SHA256 318b4df9d268bee5bc428143fcad537f78bdb8a1c3ab370503f6908803d4844b SHA512 5530d1636280cba4b5aaa808628fa03d963e2416f9c518b6408459a4b7256c2c91f4c5f88d7e0df9793f0722ca80250bf0a94b7479de476dcb5de6358503f9a2 WHIRLPOOL fcc2aaca13bc53cd5b9c298fede769d8542cbfab22ef8502c9474d8d6af39238e400ab3fe48c29514df0218158118812df6487579b9e53b7bab98481a3bf1375
DIST pconfigure-0.9.2.tar.gz 154149 SHA256 fda942653e5ba279f3f6250a0282275802bc81979f1d1e78768ee3cacb0b9694 SHA512 a27e0d75cc5425eb40cc718fa781685433f1dd5ff0f6bbb262cd1e0d8e1d5b369a25ccd5c046adadc843e392279d18b696e165402fed2758ba36dbafb600f3f3 WHIRLPOOL f9e22e6e28b67ca62e7a68798e6ee7a13fef388922f847a635e775bde251efca66bcb16d6688e26d01399b53aa9734c8e89ef0825ce9aa1bb12f243dd971041c
DIST pconfigure-0.9.4.tar.gz 164913 SHA256 e29319a02637823a063b7b01394a3235069a5d1b6bdb622d87707605c93a9983 SHA512 8449f477848d077dde187d58aa2b7636902d107c6a226a16dfb92ff8b467758f209f3b6b0bd7b41b34e5e9acb42e2750d72712e59368bace0c592296c075c644 WHIRLPOOL df0560dc64fe9fa2b9dafdac699ac1dbba18e8e538121d79fc7364fb837f7e3eddd25e346aadb146283e72b7cb8d42faf67a3bdfc3ad5ba217448476c2a8c021
EBUILD pconfigure-0.9.2.ebuild 833 SHA256 c0032acc004d1becda5071cf9d176b2d64b8dae710313e2b584758caa0711d54 SHA512 7eff9612c0e2799ca48f2c4ebcbf544c093f99da1f50935addb4ca1c1cc36ba772bafe13dd43d81e97163dbd7a328504b27a4ab25be9925b37c97783bbc7b139 WHIRLPOOL ab4f8979cdd7500ce449c60850963d3f04e3587a4b688ee9d698cb71f0a05e9d09de1ca3c7bf8cfcb7530f99e47dca1dfbecd7e67f0aac430af9b1a78299d057
+EBUILD pconfigure-0.9.4-r1.ebuild 903 SHA256 b4966f90e81dc6025c7c17a6b80d3ae162faa466dc62d110d0cda133d4d6bb48 SHA512 0fdb888fe5820f6f5ac79a4647752825014c3cbae0a31ab21dd8077f6ab4e2487ff67f8d8ee42ada86ddd2ad1a7a23e7d754a164f4f5e138366b6e7b4cf47fbe WHIRLPOOL 0e66dccac851ab580e274c04916b8d4203c5ff2f02fd9e9477a8b3550a4bf1a7e8577c9706938b664585fb7a40bede50c6c3134e13dd45a568c357202b38c9dc
EBUILD pconfigure-0.9.4.ebuild 833 SHA256 c0032acc004d1becda5071cf9d176b2d64b8dae710313e2b584758caa0711d54 SHA512 7eff9612c0e2799ca48f2c4ebcbf544c093f99da1f50935addb4ca1c1cc36ba772bafe13dd43d81e97163dbd7a328504b27a4ab25be9925b37c97783bbc7b139 WHIRLPOOL ab4f8979cdd7500ce449c60850963d3f04e3587a4b688ee9d698cb71f0a05e9d09de1ca3c7bf8cfcb7530f99e47dca1dfbecd7e67f0aac430af9b1a78299d057
diff --git a/sys-devel/pconfigure/files/pconfigure-0.9.4-glibc_2.20.patch b/sys-devel/pconfigure/files/pconfigure-0.9.4-glibc_2.20.patch
new file mode 100644
index 0000000..7cfc2a3
--- /dev/null
+++ b/sys-devel/pconfigure/files/pconfigure-0.9.4-glibc_2.20.patch
@@ -0,0 +1,38 @@
+From d911ca41f0063b787491aeb656fafa70c8191e1d Mon Sep 17 00:00:00 2001
+From: Palmer Dabbelt <palmer@dabbelt.com>
+Date: Wed, 25 Mar 2015 14:22:41 -0700
+Subject: [PATCH] Define _DEFAULT_SOURCE in addition to _BSD_SOURCE
+
+This works around a warning from glibc-2.20, which changes _BSD_SOURCE
+to _DEFAUL_SOURCE. The man pages recommend defining both, for
+compatibility with older glibc versions.
+---
+ src/pconfigure/generate.c | 1 +
+ src/pconfigure/main.c | 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git a/src/pconfigure/generate.c b/src/pconfigure/generate.c
+index a5b1ed7..c48b4b8 100644
+--- a/src/pconfigure/generate.c
++++ b/src/pconfigure/generate.c
+@@ -1,4 +1,5 @@
+ #define _BSD_SOURCE
++#define _DEFAULT_SOURCE
+
+ #include "generate.h"
+ #include <ctype.h>
+diff --git a/src/pconfigure/main.c b/src/pconfigure/main.c
+index 431e205..c96b81b 100644
+--- a/src/pconfigure/main.c
++++ b/src/pconfigure/main.c
+@@ -20,6 +20,7 @@
+ */
+
+ #define _BSD_SOURCE
++#define _DEFAULT_SOURCE
+
+ #include "clopts.h"
+ #include "contextstack.h"
+--
+2.0.5
+
diff --git a/sys-devel/pconfigure/pconfigure-0.9.4-r1.ebuild b/sys-devel/pconfigure/pconfigure-0.9.4-r1.ebuild
new file mode 100644
index 0000000..0596a0f
--- /dev/null
+++ b/sys-devel/pconfigure/pconfigure-0.9.4-r1.ebuild
@@ -0,0 +1,37 @@
+EAPI="4"
+inherit eutils
+
+DESCRIPTION="Palmer Dabbelt's Configure Replacement"
+HOMEPAGE="http://www.dabbelt.com/~palmer/software/pconfigure/"
+SRC_URI="https://github.com/palmer-dabbelt/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 amd64-linux"
+IUSE="scala"
+
+RDEPEND="dev-util/pkgconfig
+ dev-util/strace
+ sys-devel/make
+ sys-devel/gcc
+ sys-libs/talloc
+ scala? ( dev-lang/scala )
+ "
+
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-glibc_2.20.patch"
+}
+
+src_configure() {
+ echo "LANGUAGES += c" >> Configfile.local
+ for i in $(echo ${CFLAGS}); do
+ echo "COMPILEOPTS += ${i}" >> Configfile.local
+ done
+ echo "COMPILEOPTS += -DPBASHC_SHEBANG=\\\"\#\!${EPREFIX}/bin/bash\\\""\
+ >> Configfile.local
+
+ sh bootstrap.sh --prefix ${EPREFIX}/usr \
+ || die "Failed to bootstap pconfigure"
+}