summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-05-11 19:52:43 +0000
committerMike Frysinger <vapier@gentoo.org>2013-05-11 19:52:43 +0000
commit6f13c719e6ac024610f817095a4bc97dc3d0b9ae (patch)
treee9107eabaf9ececdab0d2fbf7ac5082b9a3c12ad /sys-devel
parentClean old (diff)
downloadhistorical-6f13c719e6ac024610f817095a4bc97dc3d0b9ae.tar.gz
historical-6f13c719e6ac024610f817095a4bc97dc3d0b9ae.tar.bz2
historical-6f13c719e6ac024610f817095a4bc97dc3d0b9ae.zip
Version bump.
Package-Manager: portage-2.2.0_alpha170/cvs/Linux x86_64 Manifest-Sign-Key: 0xFB7C4156
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/prelink/ChangeLog10
-rw-r--r--sys-devel/prelink/Manifest33
-rw-r--r--sys-devel/prelink/files/prelink-20130503-libiberty-md5.patch61
-rw-r--r--sys-devel/prelink/files/prelink-20130503-prelink-conf.patch39
-rw-r--r--sys-devel/prelink/files/prelink-armhf-dynamic-linker.patch12
-rw-r--r--sys-devel/prelink/prelink-20130503.ebuild84
6 files changed, 224 insertions, 15 deletions
diff --git a/sys-devel/prelink/ChangeLog b/sys-devel/prelink/ChangeLog
index c38397d6a050..ed4771318c15 100644
--- a/sys-devel/prelink/ChangeLog
+++ b/sys-devel/prelink/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for sys-devel/prelink
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/prelink/ChangeLog,v 1.91 2013/05/11 16:33:54 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/prelink/ChangeLog,v 1.92 2013/05/11 19:52:32 vapier Exp $
+
+*prelink-20130503 (11 May 2013)
+
+ 11 May 2013; Mike Frysinger <vapier@gentoo.org>
+ +files/prelink-20130503-libiberty-md5.patch,
+ +files/prelink-20130503-prelink-conf.patch,
+ +files/prelink-armhf-dynamic-linker.patch, +prelink-20130503.ebuild:
+ Version bump.
11 May 2013; Mike Frysinger <vapier@gentoo.org> prelink-20120628.ebuild:
Fix building w/automake-1.13 #469126 by ablepharus.
diff --git a/sys-devel/prelink/Manifest b/sys-devel/prelink/Manifest
index ea2cc6243cd2..ba3dfd532383 100644
--- a/sys-devel/prelink/Manifest
+++ b/sys-devel/prelink/Manifest
@@ -2,30 +2,35 @@
Hash: SHA256
AUX prelink-20061201-prelink-conf.patch 705 SHA256 303650095bfa7f3f5526ab6cab361dd42958243dd1f8d1318b9cf999203db71c SHA512 ceae93e7ac9da67dc2dcce017d8e2dfbf1d4a57e388397f7e5825ab28586a5b538316b003f753e9b13f577e7e86d657b904dc3ce92b9a03954157a612a603b96 WHIRLPOOL 250873d4df2b6cdcdaff16c64ed12a54e28bd2c092cd8f0c8f054a3426362ea9f2830bf4462aeb4c93ed370f5b0ab52ec38d10dbbf1640d934a045fa7c148c45
+AUX prelink-20130503-libiberty-md5.patch 2610 SHA256 8f874a82b7101b551ce85748e35c7e97410ce6eae9b4c5625656969e201d2888 SHA512 ab6fe0f1d3d931fe4623d22c5c069a2e99f740de981dc051a8a27a1107c082452b5410fabcd10c69384b9246a59f9ea43a35c6d617c7dd69c7e6b75f44da0a54 WHIRLPOOL 58f8e9706612ef9ba3abfa8730666bd14e572b3630cef752ca9efbe9eaf3b98cf65182e30550260882f3baebe2b50376e33ce8ae0a1f2b8405fb24eff755f9d3
+AUX prelink-20130503-prelink-conf.patch 910 SHA256 52d2c0d52bde5c6ea9b2101d37dc4dbca988f5aece517ad85ee1ff4be2ff2a9d SHA512 640fce42bac33d76a9ed312a138817695b57b03e7b0d1c57b074903739c3fb3b7c64b8c0d839687dd60fd50054d682f2f095c3f0eff7d5f4fe505d6c334267b2 WHIRLPOOL 60fcaa242576c52fdbcbe1715b9087de191399346164deff143646a8a4a8b92d518b5ac6b22c64f4c7c4321d11a0932c32ffd6fdca581bab5a1c7006b77c1499
+AUX prelink-armhf-dynamic-linker.patch 519 SHA256 d6ca6ce138a5e33568376068e5e48425e2601e17863f17f166abcb36772c45ff SHA512 af898440f11af102d6d4b95ade2ed267dc5e3e01407ded17ca2df7454ee845f8177c0316e9bc73838f3965f5000f58ac51055588fdb4a90293cc431e07e9e467 WHIRLPOOL 48c3f54c56dd2e324f7d33b7ebeb71b6123c7c263baa3c8a98306a209bcbf2a454fc2b816df836f7d6c37e143b65e8b1a59ae2f62e3594a9a949267e1a3246e9
AUX prelink.confd 1677 SHA256 e5db6bcc86a010a50be9134cb440f8366247ee36f1556f97d4f270746eb59dea SHA512 d9edf2535d0b5f1effa797882abfc1cae71a4944e7a443880845a6f860d160125f2ab3a1d69db444e31a35b62a09ed661adcbc1ee62539e9a73f270d33602e9b WHIRLPOOL a584d7b609dcd545930f95934f2de8cc15f39c6ff0c9e0cf92d13429842960ef27f91e23026dd74a72c2e755e150c5837c7d026dc88b5965ba514503fb7a83c1
AUX prelink.cron 2424 SHA256 6258d94475db9f58902c1e13ef0f3abe1422f0c955d6e385455a4c7e8f63957c SHA512 0c336bcd3b77fabd978d637b4063bb88ac6a675ba910b374af0373a0a7567ecffd356bf5a5532d66fab119d975fd7cc4f3c359b46f2696d313388aa6eb140f7d WHIRLPOOL 1facaf56c783c7ee1227cb4e45b4c1531b7d1bcb8cf8e4a70fb17c1f17669be7d21bb2aa3e0d06d2bddd4b6c96ddbd7799cfe4fd13def7389912c05113bf6c29
DIST prelink-20110511.tar.bz2 924501 SHA256 038725b6e3125dc163bca6c6bd348958ca117510d6d2603f06431fee59b4e0fe SHA512 4ae8a8a9fc29c98954e43eb606bef5e4d6eeca6ea9cec855f13e640e1090dd99543c60da240bc8f68b01e1ec94a6860863772378b1b13191faf42912fb8d51ec WHIRLPOOL 8e8dc9247bfd9425527f7246aa2e61ff351a7701729c22f04bddce46ac37fe109a2c777cc880a40a55a28a0072337e5e8f8e410616b537180486c757f2dad161
DIST prelink-20111012.tar.bz2 926500 SHA256 b86df2e6c051176da711a85982b80d87c8ce8e053e04bd0ffb2f9ba817f62aaf SHA512 51e57337b528728e916a69c2fc6a21503882d43317d927c1c3990193b929e7d0a91e04411647fd798f4f2467a87dc5482a8f8f95650546bb2336d42e563e66cf WHIRLPOOL e4c0b2ec05694ea56dd365b725f19d8b263a6392426ac47d4cefa49326a32b6174026416b98acb5a56a2644c2094db6f4c4c3523de3b74d33c09ac42e235ae66
DIST prelink-20120628.tar.bz2 917485 SHA256 46548d655e9d764260b735ecdd1c8b0673756224f5fd9a4f14fef1cdb6bad44d SHA512 ee45d0c916fe8dd8e358ba1bae2ea0af41f7ae45a77b2c126236f93035bd335797834714fd9d7841a3e6987855a12adf5c8c954c72155e51319786ac21ed42ef WHIRLPOOL 06f34a15363924576bfa8c54180a78993589c3fd51c6a4cd7a58c823c4a5738591bc9332173e3312a557b1af4c1c71bc1f02982145fd9af5ad1f7063be58a205
+DIST prelink-20130503.tar.bz2 928040 SHA256 6339c7605e9b6f414d1be32530c9c8011f38820d36431c8a62e8674ca37140f0 SHA512 69138a695e3e535deacd8224f6f8364ff64b8868b87b516d1f3392d9df968f77265177e9fede09c38f16aa878f9fd57a9ec39f0d9deabc0c9c01609b11156ba3 WHIRLPOOL 51b4234009c6ac6e6f45f09e3513feb5efe1dbf9d705b55f88d0443fe386bacbe04fa4a4e5d60caf40ef0a98a5557eb2e9f3a11549ec01c0200c324cb948ab34
EBUILD prelink-20110511.ebuild 2134 SHA256 d29407f38795a98daa65d2436479a159151d161e633bdd2b8991964e06323c9e SHA512 010165917f59507171c6a07a086f940d5b3988fa76127ded0a3bac480b6571cd055d8a957f9528d2673f3281d221681197c66568a72dee4df1c30b0d3a0512ff WHIRLPOOL b67d7e796ac15e822de8e7f3f5bff9beb410e7702c1ef6d97c3e4b258d525563c5180a4eeaf2d8f7879521439474e580535e22d3def1c2bd0171de69ffaa53c3
EBUILD prelink-20111012.ebuild 2448 SHA256 b86a7cf78e2b918bcc90ff10d657ef1e48c13e0fd27d70cd0e50fd3de7cba10a SHA512 ee852587da1425c0b961631ecb9b7e17a2c731fcc2b9544621bebf80cbadac50b75b85c5e1a658f12c370b9d439d21d9469772c5da265f6c948ce3d955629444 WHIRLPOOL e645955c9563a36bf7b15f2112c4961573d6642f9adfa8c10f86b85dcd1522c6b831221e4ea7336d557d87a670fd24cd3106051fa672c3695b816969f1819ef9
EBUILD prelink-20120628.ebuild 2836 SHA256 2550b03e1ce74e8c2b23465c17070404c00d108573cbf75c40963f72ee6181dc SHA512 ce5cbcc25daee3e87fe156d3334285bcb4e4a401a7f6ea54d7942e288059eba01fd6546533c31d3bf0969a3245756366ce633cd708c0287cb3d81c5bad45ff2b WHIRLPOOL 405e8bd2404ca1ba8a25604139c3dd96dd810f72bb8edcc887d4047325d6cefa892305d17a9e180bbc1a85b976d14384113039831a020801011a3539a51c8e90
-MISC ChangeLog 12157 SHA256 0e204df869592e4990b33bf6bb556dd955bd2c83e777fe9df82930d101b897b6 SHA512 9666d8e878b3028d004bf3544f032c5979609f34d15b62c90b8a524bfbc7f5b4cead6d140368bc4105bb9387104ebe7ce8b3ddd512d48667d4d85d7e633de57d WHIRLPOOL 980bfa6b963cac63717569e36c3731dfc29647109ce40181e3ae28af6239090fd1b64656f26eb8f92bc9775e781b5dd3c56c457555f20b151d0dc3bde0e7b216
+EBUILD prelink-20130503.ebuild 2744 SHA256 cc736710028f1fe58ac194a21516c4828da521e696197fb515f5dbd9de61fd07 SHA512 8ee01e004b4662fcc5e772bdad64fac07ff7e01384c37066ee2cacb4cdcaa9341da5488db4fc4415f1818d8ed638488a22b0917edecbec756959b74d299b84a3 WHIRLPOOL f0d9b0553a037562bfb01a3382c3d906bfd9209f44216d479e230b9fd15cc7da4b4adf54f743a948a01398295c861e91d81c94008650768d59a186c83b6f880d
+MISC ChangeLog 12421 SHA256 c2547db7f321c6d0c558d90d59669e8122518e53bc30fb19afb83b89aa916b5f SHA512 c9d5ca06c4165624202c4b507990ecfd78f14c861d9ede9e4b4dd984dc1e6c28ba8c6386621ed6157d8264625ab07f2e01363059de3f3b7d0684f7b487ef2f24 WHIRLPOOL e2f55e84bfe61d63b3b172c5713695c381ad5489fc7b2b62b5b1ef03b02adea8f15c72ac3b481cdca9982b6042347e3391d0e70abdfff16f72116c8c8f26bfbc
MISC metadata.xml 162 SHA256 65a915d44de1f01d4b7f72d313b4192c38374a9835d24988c00c1e73dca5805a SHA512 2a857e10b277827773a6c7967e070d7bfff23d75f44fa4d4fa8a7339df3225e6dba512a865d91c9c55bdb013dafdce85dface1b845acfbb5473e232666cdda45 WHIRLPOOL f7586c1570803b3e646f0be89ba6c767e82ec6889ef92d15f62a38f1410ed9d82c36892e5e83f694471959783d0d5ad667f1a39b7eb51f2080c269d5fa23d819
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iQIcBAEBCAAGBQJRjnL2AAoJELEHsLL7fEFWUiUQAKtKMRHyiDOtnGjNs3qNybG2
-8kwtnlSx0prmrdBCZc75Up85Huheo3iOiXQXY0nn8WmCFrVNm2A9DKV9Yt0A/WtX
-gJUYHCrpht546ZU9Uv2RRyobJa3oOCFcTlzwY/Xqf9lGchyfAjKWZSrCHhM3ChUx
-7cj0wbuxYHZwgPsGpPWMqXXxqhF+SzKucC1gXGFUOcpO5SZl5ggzmYeiNX+MMEUs
-l6H+BnChZ+sAsk1Z4/81d1SkTOyF4RF1RdC2HU3DXp1bg33a361RV0D+Ps+VYa0k
-L4d0RK64ZDERQfRigMmp3BPOeoxdHC30VYNS58H4TARzWehgovdyFmmTFnIYGIQr
-wrY5qsfmx9UwhUiuiCYuN0tCt8rE7+9HRz2FKWKV9pW7JMHdMZ0LgIhg1KU+pbDu
-23grHIrBkv8dr6K2pY0bLHZ1w9TNSmdRr2+jea5xhcM3nH6tjAGDR5rimIWG4zPj
-P2Dgapk34BhLvOEWqeXA0LH84vyVHQ0WM0jByZTy5KCn1ITDf5DZ4f/YrjM7bnpU
-+gGazWa/SSr9G2WU6Xp6RbsMqw9sf1QIUM4OyHs3JqRns3QMx2YR32T7foBBZNrs
-qoE372wjF+HovN5quddRyHRCaWVH6Z4Bz0dNZQ4mI2hX3Jsj9+SQBSmlaHK9Ed17
-iqZUApGA9EwspcDHkJo+
-=WuEG
+iQIcBAEBCAAGBQJRjqGFAAoJELEHsLL7fEFWGf0P/1Y5TDp1FZnaCTDd7NXeA81t
+HNVMUoHWyPRqyn84jNM8yCptg3OeyweWk3Z7IWSFKrSme3t9L1f+6ThABWQOgtWA
+WmK1dfWObe2oqg5UudmJnIRFKph2mNvF+Z1zb8tJAUiAEZPEP8eG0abbwkL5Drsd
+u61PKty7mMbWFkaVVfjLSl5btMO29JE4kVG6yqI18H/i4eSF51wJUvRyiDfy7g+e
+vVdnEWASMjMHpzKQZ4wUESder6+Lkdd2MhqKlwq/nURxMY6vNT83RxVAvZJMxUN2
+dB7sU6K640wwoObRm69KeyPQyk8D5ZV2sJaP3KCoL+Za6Hf08Vl0CO3iiUlf6I5n
+RVz17Vk6cpMN0NvXa7IGtNfCscc7IjqESaTO2osLQiKPc33YHpurJZ7ZytfbTREx
+TIrvbmtIGOUaJC0DdaqPzHocL9lQy4g5benuBlSbyp7c103QLYS6XBy1gCbjIDn3
+skQJfvV0iBGasiWVXEOdWnSgMTHvu73ccVeX5xW4UkbCBRE9Sdb7hVwh1OiSmyZg
+hpjqg9n4BkVl4OgKffFDXnKlNXzx/dUJWSMW/Q6ZkCBldFzfsof0JuOaDOElHozM
+uSb6w4SwDmHf/rR8Dk+cmqucV+R3PljRx2wDZsgzdzmv94SksLt5DJEtD2kAep5q
+JonZ0+19Ba6frAM8kDnR
+=WG1w
-----END PGP SIGNATURE-----
diff --git a/sys-devel/prelink/files/prelink-20130503-libiberty-md5.patch b/sys-devel/prelink/files/prelink-20130503-libiberty-md5.patch
new file mode 100644
index 000000000000..36b8bcecb312
--- /dev/null
+++ b/sys-devel/prelink/files/prelink-20130503-libiberty-md5.patch
@@ -0,0 +1,61 @@
+From 8eeb9da6d017761037bf757780ea544dfeabbad8 Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Tue, 31 Jul 2012 09:02:35 +0000
+Subject: [PATCH] libiberty/md5: fix strict alias warnings
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Current libiberty md5 code triggers these warnings with gcc-4.7.1 for me:
+
+libiberty/md5.c: In function ‘md5_finish_ctx’:
+libiberty/md5.c:117:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
+libiberty/md5.c:118:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
+
+The change below fixes things for me. The optimized output (-O2) is the same
+before/after my change on x86_64-linux. I imagine it'll be the same for most
+targets. It seems simpler than using a union on the md5_ctx buffer since these
+are the only two locations in the code where this occurs.
+---
+ libiberty/ChangeLog | 5 +++++
+ libiberty/md5.c | 12 ++++++++----
+ 2 files changed, 13 insertions(+), 4 deletions(-)
+
+2012-07-31 Mike Frysinger <vapier@gentoo.org>
+
+ * md5.c (md5_finish_ctx): Declare swap_bytes. Assign SWAP() output
+ to swap_bytes, and then call memcpy to move it to ctx->buffer.
+
+diff --git a/libiberty/md5.c b/libiberty/md5.c
+index 0db8fc8..8cc0cb5 100644
+--- a/src/md5.c
++++ b/src/md5.c
+@@ -103,6 +103,7 @@ md5_finish_ctx (struct md5_ctx *ctx, void *resbuf)
+ {
+ /* Take yet unprocessed bytes into account. */
+ md5_uint32 bytes = ctx->buflen;
++ md5_uint32 swap_bytes;
+ size_t pad;
+
+ /* Now count remaining bytes. */
+@@ -113,10 +114,13 @@ md5_finish_ctx (struct md5_ctx *ctx, void *resbuf)
+ pad = bytes >= 56 ? 64 + 56 - bytes : 56 - bytes;
+ memcpy (&ctx->buffer[bytes], fillbuf, pad);
+
+- /* Put the 64-bit file length in *bits* at the end of the buffer. */
+- *(md5_uint32 *) &ctx->buffer[bytes + pad] = SWAP (ctx->total[0] << 3);
+- *(md5_uint32 *) &ctx->buffer[bytes + pad + 4] = SWAP ((ctx->total[1] << 3) |
+- (ctx->total[0] >> 29));
++ /* Put the 64-bit file length in *bits* at the end of the buffer.
++ Use memcpy to avoid aliasing problems. On most systems, this
++ will be optimized away to the same code. */
++ swap_bytes = SWAP (ctx->total[0] << 3);
++ memcpy (&ctx->buffer[bytes + pad], &swap_bytes, sizeof (swap_bytes));
++ swap_bytes = SWAP ((ctx->total[1] << 3) | (ctx->total[0] >> 29));
++ memcpy (&ctx->buffer[bytes + pad + 4], &swap_bytes, sizeof (swap_bytes));
+
+ /* Process last bytes. */
+ md5_process_block (ctx->buffer, bytes + pad + 8, ctx);
+--
+1.8.2.1
+
diff --git a/sys-devel/prelink/files/prelink-20130503-prelink-conf.patch b/sys-devel/prelink/files/prelink-20130503-prelink-conf.patch
new file mode 100644
index 000000000000..9233a4114827
--- /dev/null
+++ b/sys-devel/prelink/files/prelink-20130503-prelink-conf.patch
@@ -0,0 +1,39 @@
+--- a/doc/prelink.conf
++++ b/doc/prelink.conf
+@@ -5,6 +5,7 @@
+ # If a directory name is prefixed with `-h ', symbolic links in a
+ # directory hierarchy are followed.
+ # Directories or files with `-b ' prefix will be blacklisted.
++-c /etc/prelink.conf.d/*.conf
+ -b *.la
+ -b *.png
+ -b *.py
+@@ -16,8 +16,11 @@
+ -b *.a
+ -b *.js
+ -b /lib/modules
+--b /usr/lib/locale
+--b /usr/X11R6/lib{,64}/X11/xfig
++-b /usr/lib{,x32,32,64}/locale
++-b /usr/lib{,x32,32,64}/wine
++-b /usr/lib{,x32,32,64}/valgrind
++-b /usr/X11R6/lib{,x32,32,64}/X11/xfig
++-b /usr/src
+ -l /bin
+ -l /usr/bin
+ -l /sbin
+@@ -27,9 +30,9 @@
+ -l /usr/games
+ -l /usr/libexec
+ -l /var/ftp/bin
+--l /lib{,64}
+--l /usr/lib{,64}
+--l /usr/X11R6/lib{,64}
+--l /usr/kerberos/lib{,64}
++-l /lib{,x32,32,64}
++-l /usr/lib{,x32,32,64}
++-l /usr/X11R6/lib{,x32,32,64}
++-l /usr/kerberos/lib{,x32,32,64}
+ -l /usr/X11R6/LessTif
+--l /var/ftp/lib{,64}
++-l /var/ftp/lib{,x32,32,64}
diff --git a/sys-devel/prelink/files/prelink-armhf-dynamic-linker.patch b/sys-devel/prelink/files/prelink-armhf-dynamic-linker.patch
new file mode 100644
index 000000000000..896101040b5b
--- /dev/null
+++ b/sys-devel/prelink/files/prelink-armhf-dynamic-linker.patch
@@ -0,0 +1,12 @@
+diff -urNp prelink_orig/src/arch-arm.c prelink/src/arch-arm.c
+--- prelink_orig/src/arch-arm.c 2011-08-26 03:20:49.000000000 -0400
++++ prelink/src/arch-arm.c 2012-11-28 23:59:28.030164736 -0500
+@@ -832,7 +832,7 @@ PL_ARCH = {
+ .R_COPY = R_ARM_COPY,
+ .R_RELATIVE = R_ARM_RELATIVE,
+ .rtype_class_valid = RTYPE_CLASS_VALID,
+- .dynamic_linker = "/lib/ld-linux.so.3",
++ .dynamic_linker = "/lib/ld-linux-armhf.so.3",
+ .adjust_dyn = arm_adjust_dyn,
+ .adjust_rel = arm_adjust_rel,
+ .adjust_rela = arm_adjust_rela,
diff --git a/sys-devel/prelink/prelink-20130503.ebuild b/sys-devel/prelink/prelink-20130503.ebuild
new file mode 100644
index 000000000000..ffdfa5ff8a57
--- /dev/null
+++ b/sys-devel/prelink/prelink-20130503.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/prelink/prelink-20130503.ebuild,v 1.1 2013/05/11 19:52:32 vapier Exp $
+
+EAPI="4"
+
+inherit autotools eutils flag-o-matic
+
+DESCRIPTION="Modifies ELFs to avoid runtime symbol resolutions resulting in faster load times"
+HOMEPAGE="http://people.redhat.com/jakub/prelink"
+
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+#SRC_URI="http://people.redhat.com/jakub/prelink/${P}.tar.bz2"
+
+# if not available on jakub's dev space extract the distfile with rpm2tarbz2 from
+# http://mirrors.kernel.org/fedora/development/rawhide/source/SRPMS/p/prelink-[ver].src.rpm
+#
+# track http://pkgs.fedoraproject.org/cgit/prelink.git/ for updates
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 -arm ~ppc ~ppc64 ~x86"
+IUSE="selinux"
+
+DEPEND=">=dev-libs/elfutils-0.100[static-libs(+)]
+ selinux? ( sys-libs/libselinux[static-libs(+)] )
+ !dev-libs/libelf
+ >=sys-libs/glibc-2.8"
+RDEPEND="${DEPEND}
+ >=sys-devel/binutils-2.18"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-20130503-prelink-conf.patch
+ epatch "${FILESDIR}"/${PN}-20130503-libiberty-md5.patch
+ epatch "${FILESDIR}"/${PN}-armhf-dynamic-linker.patch
+
+ sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.in || die #469126
+
+ sed -i -e '/^CC=/s: : -Wl,--disable-new-dtags :' testsuite/functions.sh #100147
+ # >=binutils-2.22 --no-copy-dt-needed-entries is the default
+ # --copy-dt-needed-entries was renamed from --add-needed in 2.21, use the
+ # former so we don't have to bump the dep
+ sed -i \
+ -e '/CCLINK=/s:CCLINK="$(CC):& -Wl,--add-needed :' \
+ -e '/CXXLINK=/s:CXXLINK="$(CXX):& -Wl,--add-needed :' \
+ testsuite/Makefile.am
+
+ has_version 'dev-libs/elfutils[threads]' && append-ldflags -pthread
+
+ eautoreconf # prevent maintainer mode
+
+ # have to do this after eautoreconf or automake barfs on the trailing
+ # backslash of the previous line
+ sed -i -e 's:undosyslibs.sh::' testsuite/Makefile.in #254201
+
+ export ac_cv_{header_selinux_selinux_h,lib_selinux_is_selinux_enabled}=$(usex selinux)
+}
+
+src_install() {
+ default
+
+ insinto /etc
+ doins doc/prelink.conf
+
+ exeinto /etc/cron.daily
+ newexe "${FILESDIR}"/prelink.cron prelink
+ newconfd "${FILESDIR}"/prelink.confd prelink
+
+ dodir /var/{lib/misc,log}
+ touch "${ED}"/var/lib/misc/prelink.{full,quick,force}
+ touch "${ED}"/var/log/prelink.log
+}
+
+pkg_postinst() {
+ if [ -z "${REPLACING_VERSIONS}" ] ; then
+ elog "You may wish to read the Gentoo Linux Prelink Guide, which can be"
+ elog "found online at:"
+ elog " http://www.gentoo.org/doc/en/prelink-howto.xml"
+ elog "Please edit /etc/conf.d/prelink to enable and configure prelink"
+ fi
+ touch "${EROOT}/var/lib/misc/prelink.force"
+}