diff options
author | 2014-02-28 18:10:13 +0000 | |
---|---|---|
committer | 2014-02-28 18:10:13 +0000 | |
commit | 1de902d2f60903d7e5bf37c2077322cc77bfac86 (patch) | |
tree | d840c98abed9e31746eb5549093751bf3e44e689 /sys-boot | |
parent | Stable for HPPA (bug #502902). (diff) | |
download | historical-1de902d2f60903d7e5bf37c2077322cc77bfac86.tar.gz historical-1de902d2f60903d7e5bf37c2077322cc77bfac86.tar.bz2 historical-1de902d2f60903d7e5bf37c2077322cc77bfac86.zip |
Remove old ebuilds.
Package-Manager: portage-2.2.8-r1/cvs/Linux x86_64
Manifest-Sign-Key: 0x0BBEEA1FEA4843A4
Diffstat (limited to 'sys-boot')
-rw-r--r-- | sys-boot/grub/ChangeLog | 7 | ||||
-rw-r--r-- | sys-boot/grub/Manifest | 19 | ||||
-rw-r--r-- | sys-boot/grub/grub-0.97-r10.ebuild | 291 | ||||
-rw-r--r-- | sys-boot/grub/grub-0.97-r11.ebuild | 291 | ||||
-rw-r--r-- | sys-boot/grub/grub-1.99-r2.ebuild | 340 | ||||
-rw-r--r-- | sys-boot/grub/grub-2.00-r4.ebuild | 262 | ||||
-rw-r--r-- | sys-boot/grub/grub-2.00_p5107.ebuild | 264 | ||||
-rw-r--r-- | sys-boot/grub/grub-2.02_beta1-r1.ebuild | 318 |
8 files changed, 10 insertions, 1782 deletions
diff --git a/sys-boot/grub/ChangeLog b/sys-boot/grub/ChangeLog index edff3ed9de48..c42e9d45031b 100644 --- a/sys-boot/grub/ChangeLog +++ b/sys-boot/grub/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-boot/grub # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/ChangeLog,v 1.305 2014/02/28 18:07:13 floppym Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/ChangeLog,v 1.306 2014/02/28 18:10:11 floppym Exp $ + + 28 Feb 2014; Mike Gilbert <floppym@gentoo.org> -grub-0.97-r10.ebuild, + -grub-0.97-r11.ebuild, -grub-1.99-r2.ebuild, -grub-2.00-r4.ebuild, + -grub-2.00_p5107.ebuild, -grub-2.02_beta1-r1.ebuild: + Remove old ebuilds. 28 Feb 2014; Mike Gilbert <floppym@gentoo.org> files/grub.default-3: Add a couple of examples for GRUB_CMDLINE_LINUX. diff --git a/sys-boot/grub/Manifest b/sys-boot/grub/Manifest index 57065b7b4124..087d3b6b7690 100644 --- a/sys-boot/grub/Manifest +++ b/sys-boot/grub/Manifest @@ -26,35 +26,24 @@ AUX grub.default 1254 SHA256 181bdb7433ebcbde635e7058a1febaf0100e4e9c83ea4fd222d AUX grub.default-2 1602 SHA256 d1c11fb4decbae9a9827866ec2126b2c11a3d8f6b41278acad139b4dd34338c5 SHA512 15085cdfe706379d931c6841c34403ffcb46765be75425a29b563d69169124447606d8f8444945ed1148ac734da4f12f14a9b18abd6b0501974c1c770ad13c39 WHIRLPOOL 2f72b2a3d4048261cf3d5477b9a33264b3214a803eebcf4b782c33cf71d045e9be878407c64c720c2a7b260a65f8e32a61974c55ebd8d464e0b947133cdf49fd AUX grub.default-3 1872 SHA256 84a7c82094f741fa33b2d883e42baf3157f44d26aba727812fb2f3b1a5f47d44 SHA512 bb49012b985b8f31f19d0598d321b0414f68c12224f78a0565dc190f082f754a78c95cc924bbf65e338e99311dd7f8a53ccca6c9d52583a3ad4b6d6f4fddfd60 WHIRLPOOL d85f7071190a7dcafad6597c68ef93f61b79887fd2d3fb144f16f42fcef85d741b1927f1b201394bfc800ffa1916650cf4caf68f310573ecab69b28e6a56aaf6 DIST dejavu-sans-ttf-2.34.zip 406977 SHA256 242e8c1cb2bdc7458bece02cca898f962c2bc919dcf67d97428149228290184d SHA512 dcd802b9c83cfa749b7542d0855eb1facb665a035af8c05f58830fce3ce37ba8d4a6f0353c07ae924c7fc25460d330b7312cbaffd34a2cb314a8e222de385c1b WHIRLPOOL d8b3289997cc39aca1c909ac1cae79727a19932f07b116a4a0bcc83e4a2f136d05d18c8ef2b05504a2f1f65eba85f93d61d52b0c913be7bb3e23f6a403eb6a82 -DIST grub-0.97-patches-1.12.tar.bz2 55811 SHA256 80cedf74d29e334182d8fb906035d2c365b96b6e8a09bbe800f44f98c828ac97 SHA512 c823f01953da5067217c635cf919379d7e3b21929dc2b71463ece6d35b51905c03d361353066eb3ff56cb30460336b6a420889eb007c5a37be66bb7222981460 WHIRLPOOL afffebb1650c50b4bfe33146553c16223d71ba887ecaa9cd985b47f83b2023b691d79f86f5b52475b7799e1d7a11979503ff86d25e9108fd4fa3dcf6aeae7fcf -DIST grub-0.97-patches-1.13.tar.bz2 56412 SHA256 765a7f0bd3ba65d27413794e75deef2c0e76a788dacd0b5387bad21da4bab94f SHA512 9b5d0ab54a839a96c695871fb44605d49ae42be8c31545da6ddf4703ccc45efd2cbe7babb7d6f680ef24bef586ee8d9df83a942208784b9a0d77f79d0f0456f8 WHIRLPOOL e5e09e9ed6734c837453919a767cd5c5c431b4513b25b8454dbdaaa03fa6606de57d1627ae5216fcacc97693ebf6f604fddc3cc6a5afc8111da8fa51a220edf2 DIST grub-0.97-patches-1.14.tar.bz2 52916 SHA256 5c7ca31fd9b2123471daf2e46a1936c4044ad0c12e353d9d3d8c3f83a1c7a0e5 SHA512 d9a8d420fd5a36f181ca608f9b70be90f9d82cee66c8484636fda5085290586071b5d9379d917e8141b993ffc4777859cd02971c916d6167dca6f50d83282c26 WHIRLPOOL 60abd5087e85d9969784b9f5a100934606a76da03b665533d9d4d1d13f4e2d15de233a71e67a32d18a5fbfe128c2c8bf04c0d4451de24e6ca4fbd8dd862e23ea DIST grub-0.97.tar.gz 971783 SHA256 4e1d15d12dbd3e9208111d6b806ad5a9857ca8850c47877d36575b904559260b SHA512 c2bc9ffc8583aeae71cee9ddcc4418969768d4e3764d47307da54f93981c0109fb07d84b061b3a3628bd00ba4d14a54742bc04848110eb3ae8ca25dbfbaabadb WHIRLPOOL 0ad7f5dc035e2a3ad5fd29b6388f06fd12a8cc694117b4cbd42b5302433aa522db23566222d35219fe17fb95edb5090553156198507f70208eda5d858fd52dd5 -DIST grub-1.99.tar.xz 2639224 SHA256 f308148d4c83c6f16a73b58a0cd39381656edb740929028cae7ad5f0d651021b SHA512 604b931eef3781cdfbd9589ed76c96d6bc9fd9d6429a7a32c94ab1ea5dc2b2e1e26b60c93353763831bddbe071368779bab8564234139cb5eb6cbc3c88395ff4 WHIRLPOOL 68d9de328eb492b9dc1771db6a356de9af5d0bbceb1e187c0aea48f117c94b492c721e773e715664d3e431bda7f0ff5d63774184d2f2c413a08554a91c13dde4 -DIST grub-2.00.tar.xz 5136412 SHA256 784ec38e7edc32239ad75b8e66df04dc8bfb26d88681bc9f627133a6eb85c458 SHA512 f0dbfc90639491e5c671d2df206dec0139171bf096a99ee236f7ebf21cdafc6e6d39a9607e14ad2a6aee7c199ecc63f0a39573d969318e1a0cd32f989aa6b44a WHIRLPOOL b9690c023ab507926b8615ce28bf9de82b793ebd02126a5ecd52a130ab4bc52e2ae650b02ae2d784d4089e2981be944ba8b4800cde742aab793ff0d9029843c8 DIST grub-2.00_p5107.tar.xz 5836972 SHA256 92fd8f93621e7083f32ba6ef407f2984e5d3caaafdc35fb3d89ed054ca7c4dac SHA512 a70017dfc837e8fa869af7f71ca6191973f3f44f5a93378100cff5da425aa132b3903a3602ab907ef070872bb7a17f0586c8415845645c596d0621a4929ca83d WHIRLPOOL 5d88806fc849d2ff78ca590312110be4505e2801fee7c68faba39a54a44eedc16eb25dad88f1ff0058dea2e98382944c7e7632ccfa6f4a171ff0ef00cf67fd2d -DIST grub-2.02~beta1.tar.xz 5780376 SHA256 fa2afb686537f498bb6598633e2a6b8f02e2e4affd487ec5567f657d7ab3bad1 SHA512 03c47822902581ce55ff2bb6e8fa9e61ef75770d5a10cfada8b7760caeaf8509df15f7c49b72921edac8326bc73fd408e584066a348801404c239210b98079b3 WHIRLPOOL ac24a2f6b138305c2e5b6e497cb2e98934ffddf91f9c9f2a9ceeb6c01586bf188445cd531c057227535ad4d6e059825bf20a37eb0bb59b3f428d4c1874cc521a DIST grub-2.02~beta2.tar.xz 5798740 SHA256 f6c702b2a8ea58f27a2b02928bb77973cb5a827af08f63db38c471c0a01b418d SHA512 359903928febce1df53b3bd38aab701b4ea010dfad0dee434e853c865af4bbc60d115e61eac100c79f18d89aa78b2216ef20123f4ef04cc948ecbe226ea1a58c WHIRLPOOL f92e94f43888648484a972a0c82b0a2ac4dc7fbdd6e35ca8b11a6ee92168ac8cf7ee68987b84697ec46ad18189e5c5c9aee8105b91bb131cd7f6f499f45cd58f DIST splash.xpm.gz 33856 SHA256 b95600f777331b0dd31d51c68f60f0e846e4c8b628857a41165f4e6b30e6acaf SHA512 5ae1f786f7d46a95a7061068d5b2b3ad64607c7b190d6f28379508c5dce67e26308325bfd637542a84855dfcf1ea3d143947326fdb189a6a8972208d3ead23da WHIRLPOOL d95b7b588ea8ac7c2c8c53eb8057aef21c825da6411afe3b7e864c606aeffaaebce8ae41ce3e979f277bd6b48a9e82a1f2ea8afc836213b56523d8a854227d7b DIST unifont-5.1.20080820.pcf.gz 1379965 SHA256 122b9c470f29b70223b0e07404a6dfa7f339fcfa6ae74c024f478945af7a9a63 SHA512 8939e2bc82ca97b60e6678f3ff079a2be7ba9b702f2e8ee289e853af5823695f7baafbf14b674fc5e41071f2a6de4f2dadd56bf8b4653849dd756d59622f1649 WHIRLPOOL 0f083d66781cc4c3e554ebeda4e21843fa275ecf3e1908b4873fadfe37b7c88e8346a124656704bb1b29f89afee23d6301b4df0f19e788f454c60d47156fe78d DIST unifont-6.3.20131217.pcf.gz 1357501 SHA256 67e5a2bbbd638fe5c2b7e58d9935163de686225d33c6b5faac48b01c42a2e8e8 SHA512 4f3c1a6a64a39aadd60f019c7113fa2e8034b524d11afaa74e6d21a0ac97eeeebe031285abac04e253c9bef246f162c2087527246d7bb808fb69cd0389075515 WHIRLPOOL 808c660e996b2167161ff64b24312e324998a680049de2a6d0a01773ba234c9a9d0dc198693f0e6d5b5e3d37ceeeb82def2ded2ec7e498afa1e7a6593c363ab8 -EBUILD grub-0.97-r10.ebuild 9459 SHA256 86413acb2ff57ab54b2f53499ccef341fc734edda73506ac56063667e473fec6 SHA512 c5d6a183140e1637300db264068c08347145d2808df0206e775458a9ccdc7f2a76c48b76545d563a27f141c8bcace0f17ef71e99e3d8e1de0c5cd6d45ac8b18d WHIRLPOOL 16ef1de80a08205af1be71b3cfe4b0959591f8827bc26a138a8a92e173944f0589df7e466263c074c96ab1e25eb7dc7669f352526d3a6f433581218812aa004d -EBUILD grub-0.97-r11.ebuild 9460 SHA256 adab9a8ca3381cc500b81f48315a7ccdc01aff8bab661a498357b28df580c1e5 SHA512 c5314029baba3a32d805c5ab55d8f9d886cd6954610b7989df30bf0272412c9b1fca734c968e7462cee9d17e46c8a6a2e3144ed09ea8f41cbbf6b02217ad3dde WHIRLPOOL 64b82c6aee372085aefb530d248d192e61fe05e29ed1b577c9c7923caaba18ff309a904fca4ba813e9e5505eaf8b57b3b8ced3c0acd91a4f556e7a546407be46 EBUILD grub-0.97-r12.ebuild 9233 SHA256 d5486666e1f8339a8308489607c9108cd34e8ebc696a956e2ff8dafad1c71815 SHA512 332a89395331ef04654345f960f2939340ce9b47ae6ac755e54f4ecc85f6243060890e7553b515468aaffd8346bbb5a0b7fbd26d23911b847f12c557854e96f1 WHIRLPOOL 1a20c9df999954ce431ca50eaaa5651721c939229b3a55d820445620218ffa64d43ba6251e88b1df6f54163f6914265596698db513a47d3c415ccaa01b51e61d EBUILD grub-0.97-r13.ebuild 9384 SHA256 c694ab37f477548da2b98c9beb2c5432ddd799e40fcbf82273cd2da3fdb072e1 SHA512 615e4d11ba91c7bc2fcb926bfc791d1aa3151a06dd336f9597ccc5b22a4b6a1bbffde5f7622ec6cc4c04216c63d99becfc9cf38bcf8fed476773bd3b7930fad2 WHIRLPOOL 91d94e1f90393bb5137b791bfa2d73b418938091d81ec44b783d749ea08ee3a615a5ca4d07a841c66429f6ff7d480ae2ad4f0626576ddaab459f111106160761 -EBUILD grub-1.99-r2.ebuild 8413 SHA256 13a1281843b801804a5f2dc491cd21d6ac4d068c59e739015dc949a51011f585 SHA512 520bd623cfaf70451b4331f2dc464982f4de1b0c070ee8c0b336c9d16589aaa96924ea923f4c47ccb07d3c8f6da987a89ed285f1f4fa8f922465ab912e8940bd WHIRLPOOL 5abb91bf54a5024b225e7c3891b884827b31e6e8e380db9aa37fd520c55cd2e94ce1e7545271d52a58baab63446906cb69440177a4678000ac519088b9ae6966 -EBUILD grub-2.00-r4.ebuild 6772 SHA256 567b9c19af55d0687a084eab551197c6bb2b36bc800375f6fc3522b611effb19 SHA512 0a09c35b7e534a772451eb3a3ef8a6333d89abc9b6e3cae4548e4e289fe8104e1282fe7e1ca699a5d2650fb83ae75f06ee732ec13b2d6e509c3311591e654427 WHIRLPOOL ab8e4b5566283f6f07b31022e646863f44b37a8d8bb210bc7db7843220b25cf235599fc458225792afabec5e449e3d72dd005ee75d904b8e62b857e6bf680253 EBUILD grub-2.00_p5107-r2.ebuild 8080 SHA256 a962749fb4ef3cac0bdbe7faa620380a2d6cb064b37823dc71201dab8356804a SHA512 e29425d7262e5902fd9e87ed6c7e72df15dd670152c6dcd365b5c6e0ee8019599e3314a4cdea867de6acd7d2babcdb66b91535d7ceeb7c58c60ebca9407bb19c WHIRLPOOL 19d522b67db7139193505f93aa5a474e5f88a5d2ee322d7c8283c2c2ad7984bfaf9cbfae6820d125b11b8b0a8b41b049b3ca72e9c60b8f0a4d82653ea791c34e -EBUILD grub-2.00_p5107.ebuild 6567 SHA256 fecc66f9d1f45a940530ddaf1fc9fcb1c05c2346b1ee8170c3a897d7be5c5fd9 SHA512 7ce9b814878dceb204dbe5a7103517ab451bce414e2075420e234392369b5edd82e499907becdabff456ad3c5ca53ede74dfa7132ed1b33904f44c52fc471cd0 WHIRLPOOL 103d3db1fb21055d69289717bf6acef361cc4fec4e862413f90d047987889d8b248b5c15288977aab2f3df686990dd14f3e6a3cf90da0d3eb0a066f2b773a593 -EBUILD grub-2.02_beta1-r1.ebuild 8197 SHA256 8ad751b9fa33371bf242577bc387c436fc1685b5211363b6d108e2571f9bd0cc SHA512 27aeb00e699e5cd737e7d3c8f714a69e537bbe94e0a2210b40c2e98fe1bc4ee7c79f080ac334564190ea282dff0c76628a52b2f2cbd5d44e94512c45347686ef WHIRLPOOL 85affb0b3bc01fc8659ec27553e7e4827cf9aa7f56600b6855149e759cd935a4332112dad8fd0114e97d80dff5e5c63d6aa4c67832c23139a26bdc198dab8144 EBUILD grub-2.02_beta2.ebuild 8057 SHA256 cdbfc095fea934af83e69f127b5b20829bb2855052c3d6532bd309c136c7aaca SHA512 a12618da8a16f0a02d1e896c0840daec799dcdbdf9776d7890ca8ddc968cf6186f66e73bda3ae80c5e1b3b750a85c32252cb1b0f1fc4601d3462c2a6ed2dc125 WHIRLPOOL c844ee458613e14d67ee15628fe8896709f9a986d1cce30eff583fe3d94a4afe03251942a75ed4aefefcd87c88c3e7e8e0e315a733f99a5a60ffe1e9e15b878d EBUILD grub-9999-r1.ebuild 8055 SHA256 6cd33848c34d05179c2b475462098168aec918a5032c7e6433f64de14b1a22b5 SHA512 eed63ded5cad9f3133bdf9c7e73718e81f643148bc0812a1817d2d9bd5612730bea03b18fac87d8b4bc765d29b9de538b5674944e32c7b4bd76e1bc328d3a296 WHIRLPOOL 3c79c422a002c071fefa5fc0e10bb3233c70172992390a483a38cddb362a0f6e4ad05c44cdbb4d31dd55785c8a378ce369a69a5430a5952625631f2a5a31f514 -MISC ChangeLog 57212 SHA256 d6b8351134b86c9c4f78e347dd019622e9d20705815e8c65857f89ad3817cb24 SHA512 c2d6de55a42430ad8b89af300f628fa5d5966463dd04af05156a83a99d77a748add7937fb6225ec4c0299b90e844c140f664014d521fd732e18172b7d56d1733 WHIRLPOOL 6d2dfcb80e9d52eec0082ec8bd2519bcb76655caa95f8832df667bcef0dc2dd1ed24e5914d9629f70281ab5cf73b0377ffb195f773107f696d707758c4589a3c +MISC ChangeLog 57431 SHA256 9e262335447794769a9ce350249a2a5801efef50783728e0bbd5b2d80b454a5d SHA512 815adc4de76091fc1a7c1b45c5c7976fd9dc6c9b63a5a01ad3525a88ff3a6c1ce4445feb23c3d9566a331076a7f970e6ab5598f530f46473cd7e85da6e92c112 WHIRLPOOL e38ea1d067c6e74ac2e877fe456e589bc3a6493aa581f275bf320e584b626390cc7e42082c309f9d328368a350255b913a9b42efd3ad9f433288fc373e67765e MISC metadata.xml 838 SHA256 01beea9f20f03e00fdc21576a1311d3c21874980cdd57a9f2ed08a9d7cda1c46 SHA512 f6266f2f77db089d2f9289be079ef5a3637726b0906c5e96a7d8b7e29a8105cb7c48b9739f5607c0fdac2545db0e87f35132769f82b12db11a6f0018cc3c92f2 WHIRLPOOL 528d4f57ca38b0f0d4c34cd6bd60c7aeefc0fabd1e1e7be8efe0fcba04824d047a6e04288f1fbbd8e865c7435b53e84caffe7d4196809b157ee76e0d2be6f8df -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iF4EAREIAAYFAlMQ0FMACgkQC77qH+pIQ6RQ7gD+LapWP3zVZPFMzK+8g3IbtCUo -vmX9gE/+aeaWcGAp/kAA/RP0DB/o06VbY3N2iZQfX1Uo8//pXU5SP9CNXnRqgw6L -=7V1U +iF4EAREIAAYFAlMQ0QUACgkQC77qH+pIQ6TSQQD/XhTd6G0mLnGLDFtHa2b9TQLm +iSw+D1Ii5FSB2EBRYHoBAMhRriixJDXMt3UatLFd21P3zX+cRN4WXYjsm3ROJROY +=8uLl -----END PGP SIGNATURE----- diff --git a/sys-boot/grub/grub-0.97-r10.ebuild b/sys-boot/grub/grub-0.97-r10.ebuild deleted file mode 100644 index 2f1523557434..000000000000 --- a/sys-boot/grub/grub-0.97-r10.ebuild +++ /dev/null @@ -1,291 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-0.97-r10.ebuild,v 1.14 2012/05/31 00:01:18 vapier Exp $ - -# XXX: we need to review menu.lst vs grub.conf handling. We've been converting -# all systems to grub.conf (and symlinking menu.lst to grub.conf), but -# we never updated any of the source code (it still all wants menu.lst), -# and there is no indication that upstream is making the transition. - -# If you need to roll a new grub-static distfile, here is how. -# - Robin H. Johnson <robbat2@gentoo.org> - 29 Nov 2010 -# USE='static -ncurses -netboot -custom-cflags' \ -# GRUB_STATIC_PACKAGE_BUILDING=1 ebuild \ -# grub-${PVR}.ebuild package && \ -# cp -f ${PKGDIR}/${CAT}/${PF}.tbz2 ${DISTDIR}/grub-static-${PVR}.tar.bz2 - -inherit mount-boot eutils flag-o-matic toolchain-funcs autotools linux-info pax-utils multilib - -PATCHVER="1.12" # Should match the revision ideally -DESCRIPTION="GNU GRUB Legacy boot loader" -HOMEPAGE="http://www.gnu.org/software/grub/" -SRC_URI="mirror://gentoo/${P}.tar.gz - mirror://gnu-alpha/${PN}/${P}.tar.gz - mirror://gentoo/splash.xpm.gz - mirror://gentoo/${P}-patches-${PATCHVER}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 x86 ~x86-fbsd" -IUSE="custom-cflags ncurses netboot static" - -RDEPEND="ncurses? ( - >=sys-libs/ncurses-5.2-r5 - amd64? ( app-emulation/emul-linux-x86-baselibs ) - )" -DEPEND="${RDEPEND}" - -pkg_setup() { - local arch="$(tc-arch)" - case ${arch} in - amd64) CONFIG_CHECK='~IA32_EMULATION' check_extra_config ;; - esac -} - -src_unpack() { - unpack ${A} - cd "${S}" - - # patch breaks booting for some people #111885 - rm "${WORKDIR}"/patch/400_*reiser4* - - # Grub will not handle a kernel larger than EXTENDED_MEMSIZE Mb as - # discovered in bug 160801. We can change this, however, using larger values - # for this variable means that Grub needs more memory to run and boot. For a - # kernel of size N, Grub needs (N+1)*2. Advanced users should set a custom - # value in make.conf, it is possible to make kernels ~16Mb in size, but it - # needs the kitchen sink built-in. - local t="custom" - if [[ -z ${GRUB_MAX_KERNEL_SIZE} ]] ; then - case $(tc-arch) in - amd64) GRUB_MAX_KERNEL_SIZE=9 ;; - x86) GRUB_MAX_KERNEL_SIZE=5 ;; - esac - t="default" - fi - einfo "Grub will support the ${t} maximum kernel size of ${GRUB_MAX_KERNEL_SIZE} Mb (GRUB_MAX_KERNEL_SIZE)" - - sed -i \ - -e "/^#define.*EXTENDED_MEMSIZE/s,3,${GRUB_MAX_KERNEL_SIZE},g" \ - "${S}"/grub/asmstub.c \ - || die "Failed to hack memory size" - - if [[ -n ${PATCHVER} ]] ; then - EPATCH_SUFFIX="patch" - epatch "${WORKDIR}"/patch - eautoreconf - fi -} - -src_compile() { - filter-flags -fPIE #168834 - - use amd64 && multilib_toolchain_setup x86 - - unset BLOCK_SIZE #73499 - - ### i686-specific code in the boot loader is a bad idea; disabling to ensure - ### at least some compatibility if the hard drive is moved to an older or - ### incompatible system. - - # grub-0.95 added -fno-stack-protector detection, to disable ssp for stage2, - # but the objcopy's (faulty) test fails if -fstack-protector is default. - # create a cache telling configure that objcopy is ok, and add -C to econf - # to make use of the cache. - # - # CFLAGS has to be undefined running econf, else -fno-stack-protector detection fails. - # STAGE2_CFLAGS is not allowed to be used on emake command-line, it overwrites - # -fno-stack-protector detected by configure, removed from netboot's emake. - use custom-cflags || unset CFLAGS - - export grub_cv_prog_objcopy_absolute=yes #79734 - use static && append-ldflags -static - - # Per bug 216625, the emul packages do not provide .a libs for performing - # suitable static linking - if use amd64 && use static ; then - if [ -z "${GRUB_STATIC_PACKAGE_BUILDING}" ]; then - die "You must use the grub-static package if you want a static Grub on amd64!" - else - eerror "You have set GRUB_STATIC_PACKAGE_BUILDING. This" - eerror "is specifically intended for building the tarballs for the" - eerror "grub-static package via USE='static -ncurses'." - eerror "All bets are now off." - ebeep 10 - fi - fi - - # build the net-bootable grub first, but only if "netboot" is set - if use netboot ; then - econf \ - --libdir=/lib \ - --datadir=/usr/lib/grub \ - --exec-prefix=/ \ - --disable-auto-linux-mem-opt \ - --enable-diskless \ - --enable-{3c{5{03,07,09,29,95},90x},cs89x0,davicom,depca,eepro{,100}} \ - --enable-{epic100,exos205,ni5210,lance,ne2100,ni{50,65}10,natsemi} \ - --enable-{ne,ns8390,wd,otulip,rtl8139,sis900,sk-g16,smc9000,tiara} \ - --enable-{tulip,via-rhine,w89c840} || die "netboot econf failed" - - emake w89c840_o_CFLAGS="-O" || die "making netboot stuff" - - mv -f stage2/{nbgrub,pxegrub} "${S}"/ - mv -f stage2/stage2 stage2/stage2.netboot - - make clean || die "make clean failed" - fi - - # Now build the regular grub - # Note that FFS and UFS2 support are broken for now - stage1_5 files too big - econf \ - --libdir=/lib \ - --datadir=/usr/lib/grub \ - --exec-prefix=/ \ - --disable-auto-linux-mem-opt \ - $(use_with ncurses curses) \ - || die "econf failed" - - # sanity check due to common failure - use ncurses && ! grep -qs "HAVE_LIBCURSES.*1" config.h && die "USE=ncurses but curses not found" - - emake || die "making regular stuff" -} - -src_test() { - # non-default block size also give false pass/fails. - unset BLOCK_SIZE - make check || die "make check failed" -} - -src_install() { - emake DESTDIR="${D}" install || die - if use netboot ; then - exeinto /usr/lib/grub/${CHOST} - doexe nbgrub pxegrub stage2/stage2.netboot || die "netboot install" - fi - - # bug 330745 - pax-mark -m "${D}"/sbin/grub - - dodoc AUTHORS BUGS ChangeLog NEWS README THANKS TODO - newdoc docs/menu.lst grub.conf.sample - dodoc "${FILESDIR}"/grub.conf.gentoo - prepalldocs - - [ -n "${GRUB_STATIC_PACKAGE_BUILDING}" ] && \ - mv \ - "${D}"/usr/share/doc/${PF} \ - "${D}"/usr/share/doc/grub-static-${PF/grub-} - - insinto /usr/share/grub - doins "${DISTDIR}"/splash.xpm.gz -} - -setup_boot_dir() { - local boot_dir=$1 - local dir=${boot_dir} - - mkdir -p "${dir}" - [[ ! -L ${dir}/boot ]] && ln -s . "${dir}/boot" - dir="${dir}/grub" - if [[ ! -e ${dir} ]] ; then - mkdir "${dir}" || die "${dir} does not exist!" - fi - - # change menu.lst to grub.conf - if [[ ! -e ${dir}/grub.conf ]] && [[ -e ${dir}/menu.lst ]] ; then - mv -f "${dir}"/menu.lst "${dir}"/grub.conf - ewarn - ewarn "*** IMPORTANT NOTE: menu.lst has been renamed to grub.conf" - ewarn - fi - - if [[ ! -e ${dir}/menu.lst ]]; then - einfo "Linking from new grub.conf name to menu.lst" - ln -snf grub.conf "${dir}"/menu.lst - fi - - if [[ -e ${dir}/stage2 ]] ; then - mv "${dir}"/stage2{,.old} - ewarn "*** IMPORTANT NOTE: you must run grub and install" - ewarn "the new version's stage1 to your MBR. Until you do," - ewarn "stage1 and stage2 will still be the old version, but" - ewarn "later stages will be the new version, which could" - ewarn "cause problems such as an unbootable system." - ewarn "This means you must use either grub-install or perform" - ewarn "root/setup manually! For more help, see the handbook:" - ewarn "http://www.gentoo.org/doc/en/handbook/handbook-${ARCH}.xml?part=1&chap=10#grub-install-auto" - ebeep - fi - - einfo "Copying files from /lib/grub, /usr/lib/grub and /usr/share/grub to ${dir}" - for x in \ - "${ROOT}"/lib*/grub/*/* \ - "${ROOT}"/usr/lib*/grub/*/* \ - "${ROOT}"/usr/share/grub/* ; do - [[ -f ${x} ]] && cp -p "${x}" "${dir}"/ - done - - if [[ ! -e ${dir}/grub.conf ]] ; then - s="${ROOT}/usr/share/doc/${PF}/grub.conf.gentoo" - [[ -e "${s}" ]] && cat "${s}" >${dir}/grub.conf - [[ -e "${s}.gz" ]] && zcat "${s}.gz" >${dir}/grub.conf - [[ -e "${s}.bz2" ]] && bzcat "${s}.bz2" >${dir}/grub.conf - fi - - # Per bug 218599, we support grub.conf.install for users that want to run a - # specific set of Grub setup commands rather than the default ones. - grub_config=${dir}/grub.conf.install - [[ -e ${grub_config} ]] || grub_config=${dir}/grub.conf - if [[ -e ${grub_config} ]] ; then - egrep \ - -v '^[[:space:]]*(#|$|default|fallback|initrd|password|splashimage|timeout|title)' \ - "${grub_config}" | \ - /sbin/grub --batch \ - --device-map="${dir}"/device.map \ - > /dev/null - fi - - # the grub default commands silently piss themselves if - # the default file does not exist ahead of time - if [[ ! -e ${dir}/default ]] ; then - grub-set-default --root-directory="${boot_dir}" default - fi - einfo "Grub has been installed to ${boot_dir} successfully." -} - -pkg_postinst() { - mount-boot_mount_boot_partition - - if [[ -n ${DONT_MOUNT_BOOT} ]]; then - elog "WARNING: you have DONT_MOUNT_BOOT in effect, so you must apply" - elog "the following instructions for your /boot!" - elog "Neglecting to do so may cause your system to fail to boot!" - elog - else - setup_boot_dir "${ROOT}"/boot - # Trailing output because if this is run from pkg_postinst, it gets mixed into - # the other output. - einfo "" - fi - elog "To interactively install grub files to another device such as a USB" - elog "stick, just run the following and specify the directory as prompted:" - elog " emerge --config =${PF}" - elog "Alternately, you can export GRUB_ALT_INSTALLDIR=/path/to/use to tell" - elog "grub where to install in a non-interactive way." - - # needs to be after we call setup_boot_dir - mount-boot_pkg_postinst -} - -pkg_config() { - local dir - if [ ! -d "${GRUB_ALT_INSTALLDIR}" ]; then - einfo "Enter the directory where you want to setup grub:" - read dir - else - dir="${GRUB_ALT_INSTALLDIR}" - fi - setup_boot_dir "${dir}" -} diff --git a/sys-boot/grub/grub-0.97-r11.ebuild b/sys-boot/grub/grub-0.97-r11.ebuild deleted file mode 100644 index 74d4128314a1..000000000000 --- a/sys-boot/grub/grub-0.97-r11.ebuild +++ /dev/null @@ -1,291 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-0.97-r11.ebuild,v 1.3 2012/05/31 00:01:18 vapier Exp $ - -# XXX: we need to review menu.lst vs grub.conf handling. We've been converting -# all systems to grub.conf (and symlinking menu.lst to grub.conf), but -# we never updated any of the source code (it still all wants menu.lst), -# and there is no indication that upstream is making the transition. - -# If you need to roll a new grub-static distfile, here is how. -# - Robin H. Johnson <robbat2@gentoo.org> - 29 Nov 2010 -# USE='static -ncurses -netboot -custom-cflags' \ -# GRUB_STATIC_PACKAGE_BUILDING=1 ebuild \ -# grub-${PVR}.ebuild package && \ -# cp -f ${PKGDIR}/${CAT}/${PF}.tbz2 ${DISTDIR}/grub-static-${PVR}.tar.bz2 - -inherit mount-boot eutils flag-o-matic toolchain-funcs autotools linux-info pax-utils multilib - -PATCHVER="1.13" # Should match the revision ideally -DESCRIPTION="GNU GRUB Legacy boot loader" -HOMEPAGE="http://www.gnu.org/software/grub/" -SRC_URI="mirror://gentoo/${P}.tar.gz - mirror://gnu-alpha/${PN}/${P}.tar.gz - mirror://gentoo/splash.xpm.gz - mirror://gentoo/${P}-patches-${PATCHVER}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86 ~x86-fbsd" -IUSE="custom-cflags ncurses netboot static" - -RDEPEND="ncurses? ( - >=sys-libs/ncurses-5.2-r5 - amd64? ( app-emulation/emul-linux-x86-baselibs ) - )" -DEPEND="${RDEPEND}" - -pkg_setup() { - local arch="$(tc-arch)" - case ${arch} in - amd64) CONFIG_CHECK='~IA32_EMULATION' check_extra_config ;; - esac -} - -src_unpack() { - unpack ${A} - cd "${S}" - - # patch breaks booting for some people #111885 - rm "${WORKDIR}"/patch/400_*reiser4* - - # Grub will not handle a kernel larger than EXTENDED_MEMSIZE Mb as - # discovered in bug 160801. We can change this, however, using larger values - # for this variable means that Grub needs more memory to run and boot. For a - # kernel of size N, Grub needs (N+1)*2. Advanced users should set a custom - # value in make.conf, it is possible to make kernels ~16Mb in size, but it - # needs the kitchen sink built-in. - local t="custom" - if [[ -z ${GRUB_MAX_KERNEL_SIZE} ]] ; then - case $(tc-arch) in - amd64) GRUB_MAX_KERNEL_SIZE=9 ;; - x86) GRUB_MAX_KERNEL_SIZE=5 ;; - esac - t="default" - fi - einfo "Grub will support the ${t} maximum kernel size of ${GRUB_MAX_KERNEL_SIZE} Mb (GRUB_MAX_KERNEL_SIZE)" - - sed -i \ - -e "/^#define.*EXTENDED_MEMSIZE/s,3,${GRUB_MAX_KERNEL_SIZE},g" \ - "${S}"/grub/asmstub.c \ - || die "Failed to hack memory size" - - if [[ -n ${PATCHVER} ]] ; then - EPATCH_SUFFIX="patch" - epatch "${WORKDIR}"/patch - eautoreconf - fi -} - -src_compile() { - filter-flags -fPIE #168834 - - use amd64 && multilib_toolchain_setup x86 - - unset BLOCK_SIZE #73499 - - ### i686-specific code in the boot loader is a bad idea; disabling to ensure - ### at least some compatibility if the hard drive is moved to an older or - ### incompatible system. - - # grub-0.95 added -fno-stack-protector detection, to disable ssp for stage2, - # but the objcopy's (faulty) test fails if -fstack-protector is default. - # create a cache telling configure that objcopy is ok, and add -C to econf - # to make use of the cache. - # - # CFLAGS has to be undefined running econf, else -fno-stack-protector detection fails. - # STAGE2_CFLAGS is not allowed to be used on emake command-line, it overwrites - # -fno-stack-protector detected by configure, removed from netboot's emake. - use custom-cflags || unset CFLAGS - - export grub_cv_prog_objcopy_absolute=yes #79734 - use static && append-ldflags -static - - # Per bug 216625, the emul packages do not provide .a libs for performing - # suitable static linking - if use amd64 && use static ; then - if [ -z "${GRUB_STATIC_PACKAGE_BUILDING}" ]; then - die "You must use the grub-static package if you want a static Grub on amd64!" - else - eerror "You have set GRUB_STATIC_PACKAGE_BUILDING. This" - eerror "is specifically intended for building the tarballs for the" - eerror "grub-static package via USE='static -ncurses'." - eerror "All bets are now off." - ebeep 10 - fi - fi - - # build the net-bootable grub first, but only if "netboot" is set - if use netboot ; then - econf \ - --libdir=/lib \ - --datadir=/usr/lib/grub \ - --exec-prefix=/ \ - --disable-auto-linux-mem-opt \ - --enable-diskless \ - --enable-{3c{5{03,07,09,29,95},90x},cs89x0,davicom,depca,eepro{,100}} \ - --enable-{epic100,exos205,ni5210,lance,ne2100,ni{50,65}10,natsemi} \ - --enable-{ne,ns8390,wd,otulip,rtl8139,sis900,sk-g16,smc9000,tiara} \ - --enable-{tulip,via-rhine,w89c840} || die "netboot econf failed" - - emake w89c840_o_CFLAGS="-O" || die "making netboot stuff" - - mv -f stage2/{nbgrub,pxegrub} "${S}"/ - mv -f stage2/stage2 stage2/stage2.netboot - - make clean || die "make clean failed" - fi - - # Now build the regular grub - # Note that FFS and UFS2 support are broken for now - stage1_5 files too big - econf \ - --libdir=/lib \ - --datadir=/usr/lib/grub \ - --exec-prefix=/ \ - --disable-auto-linux-mem-opt \ - $(use_with ncurses curses) \ - || die "econf failed" - - # sanity check due to common failure - use ncurses && ! grep -qs "HAVE_LIBCURSES.*1" config.h && die "USE=ncurses but curses not found" - - emake || die "making regular stuff" -} - -src_test() { - # non-default block size also give false pass/fails. - unset BLOCK_SIZE - make check || die "make check failed" -} - -src_install() { - emake DESTDIR="${D}" install || die - if use netboot ; then - exeinto /usr/lib/grub/${CHOST} - doexe nbgrub pxegrub stage2/stage2.netboot || die "netboot install" - fi - - # bug 330745 - pax-mark -m "${D}"/sbin/grub - - dodoc AUTHORS BUGS ChangeLog NEWS README THANKS TODO - newdoc docs/menu.lst grub.conf.sample - dodoc "${FILESDIR}"/grub.conf.gentoo - prepalldocs - - [ -n "${GRUB_STATIC_PACKAGE_BUILDING}" ] && \ - mv \ - "${D}"/usr/share/doc/${PF} \ - "${D}"/usr/share/doc/grub-static-${PF/grub-} - - insinto /usr/share/grub - doins "${DISTDIR}"/splash.xpm.gz -} - -setup_boot_dir() { - local boot_dir=$1 - local dir=${boot_dir} - - mkdir -p "${dir}" - [[ ! -L ${dir}/boot ]] && ln -s . "${dir}/boot" - dir="${dir}/grub" - if [[ ! -e ${dir} ]] ; then - mkdir "${dir}" || die "${dir} does not exist!" - fi - - # change menu.lst to grub.conf - if [[ ! -e ${dir}/grub.conf ]] && [[ -e ${dir}/menu.lst ]] ; then - mv -f "${dir}"/menu.lst "${dir}"/grub.conf - ewarn - ewarn "*** IMPORTANT NOTE: menu.lst has been renamed to grub.conf" - ewarn - fi - - if [[ ! -e ${dir}/menu.lst ]]; then - einfo "Linking from new grub.conf name to menu.lst" - ln -snf grub.conf "${dir}"/menu.lst - fi - - if [[ -e ${dir}/stage2 ]] ; then - mv "${dir}"/stage2{,.old} - ewarn "*** IMPORTANT NOTE: you must run grub and install" - ewarn "the new version's stage1 to your MBR. Until you do," - ewarn "stage1 and stage2 will still be the old version, but" - ewarn "later stages will be the new version, which could" - ewarn "cause problems such as an unbootable system." - ewarn "This means you must use either grub-install or perform" - ewarn "root/setup manually! For more help, see the handbook:" - ewarn "http://www.gentoo.org/doc/en/handbook/handbook-${ARCH}.xml?part=1&chap=10#grub-install-auto" - ebeep - fi - - einfo "Copying files from /lib/grub, /usr/lib/grub and /usr/share/grub to ${dir}" - for x in \ - "${ROOT}"/lib*/grub/*/* \ - "${ROOT}"/usr/lib*/grub/*/* \ - "${ROOT}"/usr/share/grub/* ; do - [[ -f ${x} ]] && cp -p "${x}" "${dir}"/ - done - - if [[ ! -e ${dir}/grub.conf ]] ; then - s="${ROOT}/usr/share/doc/${PF}/grub.conf.gentoo" - [[ -e "${s}" ]] && cat "${s}" >${dir}/grub.conf - [[ -e "${s}.gz" ]] && zcat "${s}.gz" >${dir}/grub.conf - [[ -e "${s}.bz2" ]] && bzcat "${s}.bz2" >${dir}/grub.conf - fi - - # Per bug 218599, we support grub.conf.install for users that want to run a - # specific set of Grub setup commands rather than the default ones. - grub_config=${dir}/grub.conf.install - [[ -e ${grub_config} ]] || grub_config=${dir}/grub.conf - if [[ -e ${grub_config} ]] ; then - egrep \ - -v '^[[:space:]]*(#|$|default|fallback|initrd|password|splashimage|timeout|title)' \ - "${grub_config}" | \ - /sbin/grub --batch \ - --device-map="${dir}"/device.map \ - > /dev/null - fi - - # the grub default commands silently piss themselves if - # the default file does not exist ahead of time - if [[ ! -e ${dir}/default ]] ; then - grub-set-default --root-directory="${boot_dir}" default - fi - einfo "Grub has been installed to ${boot_dir} successfully." -} - -pkg_postinst() { - mount-boot_mount_boot_partition - - if [[ -n ${DONT_MOUNT_BOOT} ]]; then - elog "WARNING: you have DONT_MOUNT_BOOT in effect, so you must apply" - elog "the following instructions for your /boot!" - elog "Neglecting to do so may cause your system to fail to boot!" - elog - else - setup_boot_dir "${ROOT}"/boot - # Trailing output because if this is run from pkg_postinst, it gets mixed into - # the other output. - einfo "" - fi - elog "To interactively install grub files to another device such as a USB" - elog "stick, just run the following and specify the directory as prompted:" - elog " emerge --config =${PF}" - elog "Alternately, you can export GRUB_ALT_INSTALLDIR=/path/to/use to tell" - elog "grub where to install in a non-interactive way." - - # needs to be after we call setup_boot_dir - mount-boot_pkg_postinst -} - -pkg_config() { - local dir - if [ ! -d "${GRUB_ALT_INSTALLDIR}" ]; then - einfo "Enter the directory where you want to setup grub:" - read dir - else - dir="${GRUB_ALT_INSTALLDIR}" - fi - setup_boot_dir "${dir}" -} diff --git a/sys-boot/grub/grub-1.99-r2.ebuild b/sys-boot/grub/grub-1.99-r2.ebuild deleted file mode 100644 index b9e7d4988a5e..000000000000 --- a/sys-boot/grub/grub-1.99-r2.ebuild +++ /dev/null @@ -1,340 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-1.99-r2.ebuild,v 1.12 2012/05/31 00:01:18 vapier Exp $ - -EAPI=4 - -if [[ ${PV} == "9999" ]] ; then - EBZR_REPO_URI="http://bzr.savannah.gnu.org/r/grub/trunk/grub/" - LIVE_ECLASS="bzr" - SRC_URI="" - DO_AUTORECONF="true" -else - MY_P=${P/_/\~} - SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.xz - mirror://gentoo/${MY_P}.tar.xz" - # Masked until documentation guys consolidate the guide and approve - # it for usage. - #KEYWORDS="~amd64 ~mips ~x86" - S=${WORKDIR}/${MY_P} -fi - -inherit mount-boot eutils flag-o-matic pax-utils toolchain-funcs multilib ${DO_AUTORECONF:+autotools} ${LIVE_ECLASS} -unset LIVE_ECLASS - -DESCRIPTION="GNU GRUB boot loader" -HOMEPAGE="http://www.gnu.org/software/grub/" - -LICENSE="GPL-3" -SLOT="2" -IUSE="custom-cflags debug device-mapper efiemu nls static sdl truetype" - -GRUB_PLATFORMS=( - # everywhere: - emu - # mips only: - qemu-mips yeeloong - # amd64, x86, ppc, ppc64: - ieee1275 - # amd64, x86: - coreboot multiboot efi-32 pc qemu - # amd64: - efi-64 -) -IUSE+=" ${GRUB_PLATFORMS[@]/#/grub_platforms_}" - -# os-prober: Used on runtime to detect other OSes -# xorriso (dev-libs/libisoburn): Used on runtime for mkrescue -RDEPEND=" - dev-libs/libisoburn - dev-libs/lzo - sys-boot/os-prober - >=sys-libs/ncurses-5.2-r5 - debug? ( - sdl? ( media-libs/libsdl ) - ) - device-mapper? ( >=sys-fs/lvm2-2.02.45 ) - truetype? ( media-libs/freetype >=media-fonts/unifont-5 ) - ppc? ( sys-apps/ibm-powerpc-utils sys-apps/powerpc-utils ) - ppc64? ( sys-apps/ibm-powerpc-utils sys-apps/powerpc-utils )" -DEPEND="${RDEPEND} - >=dev-lang/python-2.5.2 - sys-devel/flex - virtual/yacc - sys-apps/texinfo -" -if [[ -n ${DO_AUTORECONF} ]] ; then - DEPEND+=" >=sys-devel/autogen-5.10 sys-apps/help2man" -else - DEPEND+=" app-arch/xz-utils" -fi - -export STRIP_MASK="*/grub*/*/*.{mod,img}" -QA_EXECSTACK=" - lib64/grub2/*/setjmp.mod - lib64/grub2/*/kernel.img - sbin/grub2-probe - sbin/grub2-setup - sbin/grub2-mkdevicemap - bin/grub2-script-check - bin/grub2-fstest - bin/grub2-mklayout - bin/grub2-menulst2cfg - bin/grub2-mkrelpath - bin/grub2-mkpasswd-pbkdf2 - bin/grub2-mkfont - bin/grub2-editenv - bin/grub2-mkimage -" - -QA_WX_LOAD=" - lib*/grub2/*/kernel.img - lib*/grub2/*/setjmp.mod -" - -grub_run_phase() { - local phase=$1 - local platform=$2 - [[ -z ${phase} || -z ${platform} ]] && die "${FUNCNAME} [phase] [platform]" - - [[ -d "${WORKDIR}/build-${platform}" ]] || \ - { mkdir "${WORKDIR}/build-${platform}" || die ; } - pushd "${WORKDIR}/build-${platform}" > /dev/null || die - - echo ">>> Running ${phase} for platform \"${platform}\"" - echo ">>> Working in: \"${WORKDIR}/build-${platform}\"" - - grub_${phase} ${platform} - - popd > /dev/null || die -} - -grub_src_configure() { - local platform=$1 - local target - - [[ -z ${platform} ]] && die "${FUNCNAME} [platform]" - - # if we have no platform then --with-platform=guessed does not work - [[ ${platform} == "guessed" ]] && platform="" - - # check if we have to specify the target (EFI) - # or just append correct --with-platform - if [[ -n ${platform} ]]; then - if [[ ${platform} == efi* ]]; then - # EFI platform hack - [[ ${platform/*-} == 32 ]] && target=i386 - [[ ${platform/*-} == 64 ]] && target=x86_64 - # program-prefix is required empty because otherwise it is equal to - # target variable, which we do not want at all - platform=" - --with-platform=${platform/-*} - --target=${target} - --program-prefix= - " - else - platform=" --with-platform=${platform}" - fi - fi - - ECONF_SOURCE="${WORKDIR}/${P}/" \ - econf \ - --disable-werror \ - --sbindir=/sbin \ - --bindir=/bin \ - --libdir=/$(get_libdir) \ - --program-transform-name=s,grub,grub2, \ - $(use_enable debug mm-debug) \ - $(use_enable debug grub-emu-usb) \ - $(use_enable device-mapper) \ - $(use_enable efiemu) \ - $(use_enable nls) \ - $(use_enable truetype grub-mkfont) \ - $(use sdl && use_enable debug grub-emu-sdl) \ - ${platform} -} - -grub_src_compile() { - default_src_compile -} - -grub_src_install() { - default_src_install -} - -src_prepare() { - local i j archs - - epatch \ - "${FILESDIR}/1.99-call_proper_grub_probe.patch" \ - "${FILESDIR}/1.99-improve_devmapper.patch" \ - "${FILESDIR}/1.99-do_not_stat_so_often.patch" \ - "${FILESDIR}/1.99-stat_root_device_properly-p1.patch" \ - "${FILESDIR}/1.99-stat_root_device_properly-p2.patch" - - epatch_user - - # fix texinfo file name, as otherwise the grub2.info file will be - # useless - sed -i \ - -e '/setfilename/s:grub.info:grub2.info:' \ - -e 's:(grub):(grub2):' \ - "${S}"/docs/grub.texi - - # autogen.sh does more than just run autotools - if [[ -n ${DO_AUTORECONF} ]] ; then - sed -i -e '/^autoreconf/s:^:set +e; e:' autogen.sh || die - (. ./autogen.sh) || die - fi - - # install into the right dir for eselect #372735 - sed -i \ - -e '/^bashcompletiondir =/s:=.*:= $(datarootdir)/bash-completion:' \ - util/bash-completion.d/Makefile.in || die - - # get enabled platforms - GRUB_ENABLED_PLATFORMS="" - for i in ${GRUB_PLATFORMS[@]}; do - use grub_platforms_${i} && GRUB_ENABLED_PLATFORMS+=" ${i}" - done - [[ -z ${GRUB_ENABLED_PLATFORMS} ]] && GRUB_ENABLED_PLATFORMS="guessed" - elog "Going to build following platforms: ${GRUB_ENABLED_PLATFORMS}" -} - -src_configure() { - local i - - use custom-cflags || unset CFLAGS CPPFLAGS LDFLAGS - use static && append-ldflags -static - - for i in ${GRUB_ENABLED_PLATFORMS}; do - grub_run_phase ${FUNCNAME} ${i} - done -} - -src_compile() { - local i - - for i in ${GRUB_ENABLED_PLATFORMS}; do - grub_run_phase ${FUNCNAME} ${i} - done -} - -src_install() { - local i - - for i in ${GRUB_ENABLED_PLATFORMS}; do - grub_run_phase ${FUNCNAME} ${i} - done - - # No need to move the info file with the live ebuild since we - # already changed the generated file name during the preparation - # phase. - if [[ ${PV} != "9999" ]]; then - # slot all collisions with grub legacy - mv "${ED}"/usr/share/info/grub.info \ - "${ED}"/usr/share/info/grub2.info || die - fi - - # Do pax marking - local PAX=( - "sbin/grub2-probe" - "sbin/grub2-setup" - "sbin/grub2-mkdevicemap" - "bin/grub2-script-check" - "bin/grub2-fstest" - "bin/grub2-mklayout" - "bin/grub2-menulst2cfg" - "bin/grub2-mkrelpath" - "bin/grub2-mkpasswd-pbkdf2" - "bin/grub2-editenv" - "bin/grub2-mkimage" - ) - for e in ${PAX[@]}; do - pax-mark -mpes "${ED}/${e}" - done - - # can't be in docs array as we use default_src_install in different builddir - dodoc AUTHORS ChangeLog NEWS README THANKS TODO - insinto /etc/default - newins "${FILESDIR}"/grub.default grub - cat <<EOF >> "${ED}"/lib*/grub2/grub-mkconfig_lib - GRUB_DISTRIBUTOR="Gentoo" -EOF - - elog - elog "To configure GRUB 2, check the defaults in /etc/default/grub and" - elog "then run 'emerge --config =${CATEGORY}/${PF}'." - - # display the link to guide - show_doc_url -} - -show_doc_url() { - elog - elog "For informations how to configure grub-2 please refer to the guide:" - elog " http://wiki.gentoo.org/wiki/GRUB2" -} - -setup_boot_dir() { - local dir=$1 - local use_legacy='n' - - # Make sure target directory exists - mkdir -p "${dir}" - - if [[ -e ${dir/2/}/menu.lst ]] ; then - # Legacy config exists, ask user what to do - einfo "Found legacy GRUB configuration. Do you want to convert it" - einfo "instead of using autoconfig (y/N)?" - read use_legacy - - use_legacy=${use_legacy,,[A-Z]} - fi - - if [[ ${use_legacy} == y* ]] ; then - grub1_cfg=${dir/2/}/menu.lst - grub2_cfg=${dir}/grub.cfg - - # GRUB legacy configuration exists. Use it instead of doing - # our normal autoconfigure. - # - - einfo "Converting legacy config at '${grub1_cfg}' for use by GRUB2." - ebegin "Running: grub2-menulst2cfg '${grub1_cfg}' '${grub2_cfg}'" - grub2-menulst2cfg "${grub1_cfg}" "${grub2_cfg}" &> /dev/null - eend $? - - ewarn - ewarn "Even though the conversion above succeeded, you are STRONGLY" - ewarn "URGED to upgrade to the new GRUB2 configuration format." - - # Remind the user about the documentation - show_doc_url - else - # Run GRUB 2 autoconfiguration - einfo "Running GRUB 2 autoconfiguration." - ebegin "grub2-mkconfig -o '${dir}/grub.cfg'" - grub2-mkconfig -o "${dir}/grub.cfg" &> /dev/null - eend $? - fi - - einfo - einfo "Remember to run grub2-install to activate GRUB2 as your default" - einfo "bootloader." -} - -pkg_config() { - local dir - - mount-boot_mount_boot_partition - - einfo "Enter the directory where you want to setup grub2 ('${ROOT}boot/grub2/'):" - read dir - - [[ -z ${dir} ]] && dir="${ROOT}"boot/grub2 - - setup_boot_dir "${dir}" - - mount-boot_pkg_postinst -} diff --git a/sys-boot/grub/grub-2.00-r4.ebuild b/sys-boot/grub/grub-2.00-r4.ebuild deleted file mode 100644 index 4cd9dca09857..000000000000 --- a/sys-boot/grub/grub-2.00-r4.ebuild +++ /dev/null @@ -1,262 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-2.00-r4.ebuild,v 1.3 2013/08/14 09:16:56 patrick Exp $ - -EAPI=5 -AUTOTOOLS_AUTO_DEPEND=yes - -inherit autotools-utils bash-completion-r1 eutils flag-o-matic multibuild pax-utils toolchain-funcs - -if [[ ${PV} != 9999 ]]; then - MY_P=${P/_/\~} - if [[ ${PV} == *_alpha* || ${PV} == *_beta* || ${PV} == *_rc* ]]; then - SRC_URI="mirror://gnu-alpha/${PN}/${MY_P}.tar.xz" - else - SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.xz - mirror://gentoo/${MY_P}.tar.xz" - fi - KEYWORDS="~amd64 ~x86" - S=${WORKDIR}/${MY_P} - PATCHES=( - "${FILESDIR}/${P}-parallel-make.patch" #424231 - "${FILESDIR}/${P}-no-gets.patch" #424703 - "${FILESDIR}/${P}-config-quoting.patch" #426364 - "${FILESDIR}/${P}-tftp-endian.patch" # 438612 - "${FILESDIR}/${P}-hardcoded-awk.patch" #424137 - "${FILESDIR}/${P}-freebsd.patch" #442050 - "${FILESDIR}/${P}-compression.patch" #424527 - "${FILESDIR}/${P}-zfs-feature-flag-support-r1.patch" #455358 - "${FILESDIR}/${P}-20_linux_xen.patch" #463992 - "${FILESDIR}/${P}-dmraid.patch" #430748 - "${FILESDIR}/${P}-texinfo.patch" - "${FILESDIR}/${P}-os-prober-efi-system.patch" #477314 - ) -else - inherit bzr - EBZR_REPO_URI="http://bzr.savannah.gnu.org/r/grub/trunk/grub/" -fi - -DESCRIPTION="GNU GRUB boot loader" -HOMEPAGE="http://www.gnu.org/software/grub/" - -LICENSE="GPL-3" -SLOT="2" -IUSE="custom-cflags debug device-mapper doc efiemu mount +multislot nls static sdl test truetype libzfs" - -GRUB_ALL_PLATFORMS=( - # everywhere: - emu - # mips only: - qemu-mips yeeloong - # amd64, x86, ppc, ppc64: - ieee1275 - # amd64, x86: - coreboot multiboot efi-32 pc qemu - # amd64, ia64: - efi-64 -) -IUSE+=" ${GRUB_ALL_PLATFORMS[@]/#/grub_platforms_}" - -REQUIRED_USE="grub_platforms_qemu? ( truetype ) - grub_platforms_yeeloong? ( truetype )" - -# os-prober: Used on runtime to detect other OSes -# xorriso (dev-libs/libisoburn): Used on runtime for mkrescue -RDEPEND=" - app-arch/xz-utils - >=sys-libs/ncurses-5.2-r5 - debug? ( - sdl? ( media-libs/libsdl ) - ) - device-mapper? ( >=sys-fs/lvm2-2.02.45 ) - libzfs? ( sys-fs/zfs ) - mount? ( sys-fs/fuse ) - truetype? ( - media-libs/freetype - media-fonts/dejavu - >=media-fonts/unifont-5 - ) - ppc? ( sys-apps/ibm-powerpc-utils sys-apps/powerpc-utils ) - ppc64? ( sys-apps/ibm-powerpc-utils sys-apps/powerpc-utils ) -" -DEPEND="${RDEPEND} - app-misc/pax-utils - >=dev-lang/python-2.5.2 - sys-devel/flex - sys-devel/bison - sys-apps/help2man - sys-apps/texinfo - >=sys-devel/autogen-5.10 - static? ( - truetype? ( - app-arch/bzip2[static-libs(+)] - media-libs/freetype[static-libs(+)] - sys-libs/zlib[static-libs(+)] - ) - ) - test? ( - dev-libs/libisoburn - app-emulation/qemu - ) -" -RDEPEND+=" - kernel_linux? ( - grub_platforms_efi-32? ( sys-boot/efibootmgr ) - grub_platforms_efi-64? ( sys-boot/efibootmgr ) - ) - !multislot? ( !sys-boot/grub:0 ) -" - -STRIP_MASK="*/grub/*/*.{mod,img}" -RESTRICT="test" - -QA_EXECSTACK=" - usr/bin/grub* - usr/sbin/grub* - usr/lib*/grub/*/*.mod - usr/lib*/grub/*/*.module - usr/lib*/grub/*/kernel.exec - usr/lib*/grub/*/kernel.img -" - -QA_WX_LOAD=" - usr/lib*/grub/*/kernel.exec - usr/lib*/grub/*/kernel.img - usr/lib*/grub/*/*.image -" - -QA_PRESTRIPPED=" - usr/lib.*/grub/.*/kernel.img -" - -pkg_pretend() { - if [[ ${MERGE_TYPE} != binary ]]; then - # Bug 439082 - if $(tc-getLD) --version | grep -q "GNU gold"; then - eerror "GRUB does not function correctly when built with the gold linker." - eerror "Please select the bfd linker with binutils-config." - die "GNU gold detected" - fi - fi -} - -src_prepare() { - [[ ${PATCHES} ]] && epatch "${PATCHES[@]}" - sed -i -e /autoreconf/d autogen.sh || die - if use multislot; then - # fix texinfo file name, bug 416035 - sed -i -e 's/^\* GRUB:/* GRUB2:/' -e 's/(grub)/(grub2)/' docs/grub.texi || die - fi - epatch_user - bash autogen.sh || die - autopoint() { return 0; } - eautoreconf -} - -grub_configure() { - local platform - - case ${MULTIBUILD_VARIANT} in - efi-32) - platform=efi - if [[ ${CTARGET:-${CHOST}} == x86_64* ]]; then - local CTARGET=${CTARGET:-i386} - fi ;; - efi-64) - platform=efi - if [[ ${CTARGET:-${CHOST}} == i?86* ]]; then - local CTARGET=${CTARGET:-x86_64} - local TARGET_CFLAGS="-Os -march=x86-64 ${TARGET_CFLAGS}" - local TARGET_CPPFLAGS="-march=x86-64 ${TARGET_CPPFLAGS}" - export TARGET_CFLAGS TARGET_CPPFLAGS - fi ;; - guessed) ;; - *) platform=${MULTIBUILD_VARIANT} ;; - esac - - local myeconfargs=( - --disable-werror - --program-prefix= - --libdir="${EPREFIX}"/usr/lib - --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html - $(use_enable debug mm-debug) - $(use_enable debug grub-emu-usb) - $(use_enable mount grub-mount) - $(use_enable nls) - $(use_enable truetype grub-mkfont) - $(use_enable libzfs) - $(use sdl && use_enable debug grub-emu-sdl) - ${platform:+--with-platform=}${platform} - - # Let configure detect this where supported - $(usex efiemu '' --disable-efiemu) - ) - - if use multislot; then - myeconfargs+=( - --program-transform-name="s,grub,grub2," - --with-grubdir=grub2 - ) - fi - - autotools-utils_src_configure -} - -src_configure() { - use custom-cflags || unset CCASFLAGS CFLAGS CPPFLAGS LDFLAGS - use static && append-ldflags -static - - tc-export CC NM OBJCOPY STRIP - export TARGET_CC=${TARGET_CC:-${CC}} - - # Portage will take care of cleaning up GRUB_PLATFORMS - MULTIBUILD_VARIANTS=( ${GRUB_PLATFORMS:-guessed} ) - multibuild_parallel_foreach_variant grub_configure -} - -src_compile() { - # Sandbox bug 404013. - use libzfs && addpredict /etc/dfs:/dev/zfs - - multibuild_foreach_variant autotools-utils_src_compile - - use doc && multibuild_for_best_variant \ - autotools-utils_src_compile -C docs html -} - -src_test() { - # The qemu dependency is a bit complex. - # You will need to adjust QEMU_SOFTMMU_TARGETS to match the cpu/platform. - multibuild_foreach_variant autotools-utils_src_test -} - -src_install() { - multibuild_foreach_variant autotools-utils_src_install \ - bashcompletiondir="$(get_bashcompdir)" - - use doc && multibuild_for_best_variant run_in_build_dir \ - emake -C docs DESTDIR="${D}" install-html - - if use multislot; then - mv "${ED%/}"/usr/share/info/grub{,2}.info || die - fi - - insinto /etc/default - newins "${FILESDIR}"/grub.default-2 grub - - cd "${ED}" || die - pax-mark mpes $(scanelf -BF %F usr/{bin,sbin}) -} - -pkg_postinst() { - elog "For information on how to configure grub-2 please refer to the guide:" - elog " http://wiki.gentoo.org/wiki/GRUB2_Quick_Start" - if [[ -z ${REPLACING_VERSIONS} ]]; then - if ! has_version sys-boot/os-prober; then - elog "Install sys-boot/os-prober to enable detection of other operating systems using grub2-mkconfig." - fi - if ! has_version dev-libs/libisoburn; then - elog "Install dev-libs/libisoburn to enable creation of rescue media using grub2-mkrescue." - fi - fi -} diff --git a/sys-boot/grub/grub-2.00_p5107.ebuild b/sys-boot/grub/grub-2.00_p5107.ebuild deleted file mode 100644 index f2efb9b06481..000000000000 --- a/sys-boot/grub/grub-2.00_p5107.ebuild +++ /dev/null @@ -1,264 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-2.00_p5107.ebuild,v 1.1 2013/08/16 00:54:18 floppym Exp $ - -EAPI=5 - -if [[ ${PV} == 9999 ]]; then - AUTOTOOLS_AUTORECONF=1 -fi - -inherit autotools-utils bash-completion-r1 eutils flag-o-matic multibuild pax-utils toolchain-funcs versionator - -if [[ ${PV} != 9999 ]]; then - if [[ ${PV} == *_alpha* || ${PV} == *_beta* || ${PV} == *_rc* ]]; then - MY_P=${P/_/~} - SRC_URI="mirror://gnu-alpha/${PN}/${MY_P}.tar.xz" - S=${WORKDIR}/${MY_P} - else - SRC_URI="mirror://gnu/${PN}/${P}.tar.xz - mirror://gentoo/${P}.tar.xz - http://dev.gentoo.org/~floppym/dist/${P}.tar.xz" - S=${WORKDIR}/${P%_*} - fi - KEYWORDS="~amd64 ~x86" - PATCHES=() -else - inherit bzr - EBZR_REPO_URI="http://bzr.savannah.gnu.org/r/grub/trunk/grub/" -fi - -DESCRIPTION="GNU GRUB boot loader" -HOMEPAGE="http://www.gnu.org/software/grub/" - -LICENSE="GPL-3" -SLOT="2" -IUSE="custom-cflags debug device-mapper doc efiemu mount +multislot nls static sdl test truetype libzfs" - -GRUB_ALL_PLATFORMS=( - # everywhere: - emu - # mips only: - qemu-mips yeeloong - # amd64, x86, ppc, ppc64: - ieee1275 - # amd64, x86: - coreboot multiboot efi-32 pc qemu - # amd64, ia64: - efi-64 -) -IUSE+=" ${GRUB_ALL_PLATFORMS[@]/#/grub_platforms_}" - -REQUIRED_USE="grub_platforms_qemu? ( truetype ) - grub_platforms_yeeloong? ( truetype )" - -# os-prober: Used on runtime to detect other OSes -# xorriso (dev-libs/libisoburn): Used on runtime for mkrescue -RDEPEND=" - app-arch/xz-utils - >=sys-libs/ncurses-5.2-r5 - debug? ( - sdl? ( media-libs/libsdl ) - ) - device-mapper? ( >=sys-fs/lvm2-2.02.45 ) - libzfs? ( sys-fs/zfs ) - mount? ( sys-fs/fuse ) - truetype? ( - media-libs/freetype - media-fonts/dejavu - >=media-fonts/unifont-5 - ) - ppc? ( sys-apps/ibm-powerpc-utils sys-apps/powerpc-utils ) - ppc64? ( sys-apps/ibm-powerpc-utils sys-apps/powerpc-utils ) -" -DEPEND="${RDEPEND} - app-misc/pax-utils - >=dev-lang/python-2.5.2 - sys-devel/flex - sys-devel/bison - sys-apps/help2man - sys-apps/texinfo - static? ( - truetype? ( - app-arch/bzip2[static-libs(+)] - media-libs/freetype[static-libs(+)] - sys-libs/zlib[static-libs(+)] - ) - ) - test? ( - dev-libs/libisoburn - app-emulation/qemu - ) -" -RDEPEND+=" - kernel_linux? ( - grub_platforms_efi-32? ( sys-boot/efibootmgr ) - grub_platforms_efi-64? ( sys-boot/efibootmgr ) - ) - !multislot? ( !sys-boot/grub:0 ) -" - -if [[ -n ${AUTOTOOLS_AUTORECONF} ]]; then - DEPEND+=" >=sys-devel/autogen-5.10" -fi - -STRIP_MASK="*/grub/*/*.{mod,img}" -RESTRICT="test" - -QA_EXECSTACK=" - usr/bin/grub* - usr/sbin/grub* - usr/lib*/grub/*/*.mod - usr/lib*/grub/*/*.module - usr/lib*/grub/*/kernel.exec - usr/lib*/grub/*/kernel.img -" - -QA_WX_LOAD=" - usr/lib*/grub/*/kernel.exec - usr/lib*/grub/*/kernel.img - usr/lib*/grub/*/*.image -" - -QA_PRESTRIPPED=" - usr/lib.*/grub/.*/kernel.img -" - -pkg_pretend() { - if [[ ${MERGE_TYPE} != binary ]]; then - # Bug 439082 - if ! version_is_at_least 4.8 "$(gcc-version)" && - $(tc-getLD) --version | grep -q "GNU gold"; then - eerror "GRUB does not function correctly when built with the gold linker." - eerror "Please select the bfd linker with binutils-config." - die "GNU gold detected" - fi - fi -} - -src_prepare() { - [[ ${PATCHES} ]] && epatch "${PATCHES[@]}" - sed -i -e /autoreconf/d autogen.sh || die - if use multislot; then - # fix texinfo file name, bug 416035 - sed -i -e 's/^\* GRUB:/* GRUB2:/' -e 's/(grub)/(grub2)/' docs/grub.texi || die - fi - epatch_user - if [[ -n ${AUTOTOOLS_AUTORECONF} ]]; then - bash autogen.sh || die - autopoint() { return 0; } - eautoreconf - fi -} - -grub_configure() { - local platform - - case ${MULTIBUILD_VARIANT} in - efi-32) - platform=efi - if [[ ${CTARGET:-${CHOST}} == x86_64* ]]; then - local CTARGET=${CTARGET:-i386} - fi ;; - efi-64) - platform=efi - if [[ ${CTARGET:-${CHOST}} == i?86* ]]; then - local CTARGET=${CTARGET:-x86_64} - local TARGET_CFLAGS="-Os -march=x86-64 ${TARGET_CFLAGS}" - local TARGET_CPPFLAGS="-march=x86-64 ${TARGET_CPPFLAGS}" - export TARGET_CFLAGS TARGET_CPPFLAGS - fi ;; - guessed) ;; - *) platform=${MULTIBUILD_VARIANT} ;; - esac - - local myeconfargs=( - --disable-werror - --program-prefix= - --libdir="${EPREFIX}"/usr/lib - --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html - $(use_enable debug mm-debug) - $(use_enable debug grub-emu-usb) - $(use_enable mount grub-mount) - $(use_enable nls) - $(use_enable truetype grub-mkfont) - $(use_enable libzfs) - $(use sdl && use_enable debug grub-emu-sdl) - ${platform:+--with-platform=}${platform} - - # Let configure detect this where supported - $(usex efiemu '' '--disable-efiemu') - ) - - if use multislot; then - myeconfargs+=( - --program-transform-name="s,grub,grub2," - --with-grubdir=grub2 - ) - fi - - autotools-utils_src_configure -} - -src_configure() { - use custom-cflags || unset CCASFLAGS CFLAGS CPPFLAGS LDFLAGS - use static && append-ldflags -static - - if version_is_at_least 4.8 "$(gcc-version)"; then - export TARGET_LDFLAGS+=" -fuse-ld=bfd" - fi - - tc-export CC NM OBJCOPY STRIP - export TARGET_CC=${TARGET_CC:-${CC}} - - # Portage will take care of cleaning up GRUB_PLATFORMS - MULTIBUILD_VARIANTS=( ${GRUB_PLATFORMS:-guessed} ) - multibuild_parallel_foreach_variant grub_configure -} - -src_compile() { - # Sandbox bug 404013. - use libzfs && addpredict /etc/dfs:/dev/zfs - - multibuild_foreach_variant autotools-utils_src_compile - - use doc && multibuild_for_best_variant \ - autotools-utils_src_compile -C docs html -} - -src_test() { - # The qemu dependency is a bit complex. - # You will need to adjust QEMU_SOFTMMU_TARGETS to match the cpu/platform. - multibuild_foreach_variant autotools-utils_src_test -} - -src_install() { - multibuild_foreach_variant autotools-utils_src_install \ - bashcompletiondir="$(get_bashcompdir)" - - use doc && multibuild_for_best_variant run_in_build_dir \ - emake -C docs DESTDIR="${D}" install-html - - if use multislot; then - mv "${ED%/}"/usr/share/info/grub{,2}.info || die - fi - - insinto /etc/default - newins "${FILESDIR}"/grub.default-2 grub - - cd "${ED}" || die - pax-mark mpes $(scanelf -BF %F usr/{bin,sbin}) -} - -pkg_postinst() { - elog "For information on how to configure grub-2 please refer to the guide:" - elog " http://wiki.gentoo.org/wiki/GRUB2_Quick_Start" - if [[ -z ${REPLACING_VERSIONS} ]]; then - if ! has_version sys-boot/os-prober; then - elog "Install sys-boot/os-prober to enable detection of other operating systems using grub2-mkconfig." - fi - if ! has_version dev-libs/libisoburn; then - elog "Install dev-libs/libisoburn to enable creation of rescue media using grub2-mkrescue." - fi - fi -} diff --git a/sys-boot/grub/grub-2.02_beta1-r1.ebuild b/sys-boot/grub/grub-2.02_beta1-r1.ebuild deleted file mode 100644 index e30f9fe017e6..000000000000 --- a/sys-boot/grub/grub-2.02_beta1-r1.ebuild +++ /dev/null @@ -1,318 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-2.02_beta1-r1.ebuild,v 1.2 2013/12/24 02:41:11 floppym Exp $ - -EAPI=5 - -if [[ ${PV} == 9999 ]]; then - AUTOTOOLS_AUTORECONF=1 - GRUB_AUTOGEN=1 -fi - -if [[ -n ${GRUB_AUTOGEN} ]]; then - PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} ) - inherit python-any-r1 -fi - -inherit autotools-utils bash-completion-r1 eutils flag-o-matic mount-boot multibuild pax-utils toolchain-funcs versionator - -if [[ ${PV} != 9999 ]]; then - if [[ ${PV} == *_alpha* || ${PV} == *_beta* || ${PV} == *_rc* ]]; then - MY_P="${P/_/~}" - SRC_URI="mirror://gnu-alpha/${PN}/${MY_P}.tar.xz" - S=${WORKDIR}/${MY_P} - else - SRC_URI="mirror://gnu/${PN}/${P}.tar.xz - mirror://gentoo/${P}.tar.xz - http://dev.gentoo.org/~floppym/dist/${P}.tar.xz" - S=${WORKDIR}/${P%_*} - fi - KEYWORDS="~amd64 ~x86" - PATCHES=( "${FILESDIR}/${P}-only-use-scripts-that-are-executable.patch" ) -else - inherit git-r3 - EGIT_REPO_URI="git://git.sv.gnu.org/grub.git - http://git.savannah.gnu.org/r/grub.git" -fi - -DEJAVU=dejavu-sans-ttf-2.34 -UNIFONT=unifont-6.3.20131217 -SRC_URI+=" truetype? ( - mirror://sourceforge/dejavu/${DEJAVU}.zip - http://unifoundry.com/pub/${UNIFONT}/${UNIFONT}.pcf.gz -)" - -DESCRIPTION="GNU GRUB boot loader" -HOMEPAGE="http://www.gnu.org/software/grub/" - -# Includes licenses for dejavu and unifont -LICENSE="GPL-3 truetype? ( BitstreamVera GPL-2-with-font-exception )" -SLOT="2" -IUSE="debug device-mapper doc efiemu mount +multislot nls static sdl test truetype libzfs" - -GRUB_ALL_PLATFORMS=( - # everywhere: - emu - # mips only: - qemu-mips yeeloong - # amd64, x86, ppc, ppc64: - ieee1275 - # amd64, x86: - coreboot multiboot efi-32 pc qemu - # amd64, ia64: - efi-64 -) -IUSE+=" ${GRUB_ALL_PLATFORMS[@]/#/grub_platforms_}" - -REQUIRED_USE="grub_platforms_qemu? ( truetype ) - grub_platforms_yeeloong? ( truetype )" - -# os-prober: Used on runtime to detect other OSes -# xorriso (dev-libs/libisoburn): Used on runtime for mkrescue -RDEPEND=" - app-arch/xz-utils - >=sys-libs/ncurses-5.2-r5 - debug? ( - sdl? ( media-libs/libsdl ) - ) - device-mapper? ( >=sys-fs/lvm2-2.02.45 ) - libzfs? ( sys-fs/zfs ) - mount? ( sys-fs/fuse ) - truetype? ( media-libs/freetype ) - ppc? ( sys-apps/ibm-powerpc-utils sys-apps/powerpc-utils ) - ppc64? ( sys-apps/ibm-powerpc-utils sys-apps/powerpc-utils ) -" -DEPEND="${RDEPEND} - ${PYTHON_DEPS} - app-misc/pax-utils - sys-devel/flex - sys-devel/bison - sys-apps/help2man - sys-apps/texinfo - static? ( - app-arch/xz-utils[static-libs(+)] - truetype? ( - app-arch/bzip2[static-libs(+)] - media-libs/freetype[static-libs(+)] - sys-libs/zlib[static-libs(+)] - ) - ) - test? ( - dev-libs/libisoburn - app-emulation/qemu - ) - truetype? ( app-arch/unzip ) -" -RDEPEND+=" - kernel_linux? ( - grub_platforms_efi-32? ( sys-boot/efibootmgr ) - grub_platforms_efi-64? ( sys-boot/efibootmgr ) - ) - !multislot? ( !sys-boot/grub:0 ) -" - -STRIP_MASK="*/grub/*/*.{mod,img}" -RESTRICT="test" - -QA_EXECSTACK=" - usr/bin/grub*-emu* - usr/lib*/grub/*/*.mod - usr/lib*/grub/*/*.module - usr/lib*/grub/*/kernel.exec - usr/lib*/grub/*/kernel.img -" - -QA_WX_LOAD=" - usr/lib*/grub/*/kernel.exec - usr/lib*/grub/*/kernel.img - usr/lib*/grub/*/*.image -" - -QA_PRESTRIPPED=" - usr/lib.*/grub/.*/kernel.img -" - -pkg_pretend() { - if [[ ${MERGE_TYPE} != binary ]]; then - # Bug 439082 - if ! version_is_at_least 4.8 "$(gcc-version)" && - $(tc-getLD) --version | grep -q "GNU gold"; then - eerror "GRUB does not function correctly when built with the gold linker." - eerror "Please select the bfd linker with binutils-config." - die "GNU gold detected" - fi - fi -} - -src_unpack() { - if [[ ${PV} == 9999 ]]; then - git-r3_src_unpack - fi - default_src_unpack -} - -src_prepare() { - [[ ${PATCHES} ]] && epatch "${PATCHES[@]}" - sed -i -e /autoreconf/d autogen.sh || die - if use multislot; then - # fix texinfo file name, bug 416035 - sed -i -e 's/^\* GRUB:/* GRUB2:/' -e 's/(grub)/(grub2)/' docs/grub.texi || die - fi - epatch_user - if [[ -n ${GRUB_AUTOGEN} ]]; then - python_setup - bash autogen.sh || die - fi - if [[ -n ${AUTOTOOLS_AUTORECONF} ]]; then - autopoint() { return 0; } - eautoreconf - fi -} - -setup_fonts() { - ln -s "${WORKDIR}/${DEJAVU}/ttf/DejaVuSans.ttf" DejaVuSans.ttf || die - ln -s "${WORKDIR}/${UNIFONT}.pcf" unifont.pcf || die -} - -grub_configure() { - local platform - - case ${MULTIBUILD_VARIANT} in - efi-32) - platform=efi - if [[ ${CTARGET:-${CHOST}} == x86_64* ]]; then - local CTARGET=${CTARGET:-i386} - fi ;; - efi-64) - platform=efi - if [[ ${CTARGET:-${CHOST}} == i?86* ]]; then - local CTARGET=${CTARGET:-x86_64} - local TARGET_CFLAGS="-Os -march=x86-64 ${TARGET_CFLAGS}" - local TARGET_CPPFLAGS="-march=x86-64 ${TARGET_CPPFLAGS}" - export TARGET_CFLAGS TARGET_CPPFLAGS - fi ;; - guessed) ;; - *) platform=${MULTIBUILD_VARIANT} ;; - esac - - local myeconfargs=( - --disable-werror - --program-prefix= - --libdir="${EPREFIX}"/usr/lib - --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html - $(use_enable debug mm-debug) - $(use_enable debug grub-emu-usb) - $(use_enable device-mapper) - $(use_enable mount grub-mount) - $(use_enable nls) - $(use_enable truetype grub-mkfont) - $(use_enable libzfs) - $(use sdl && use_enable debug grub-emu-sdl) - ${platform:+--with-platform=}${platform} - - # Let configure detect this where supported - $(usex efiemu '' '--disable-efiemu') - ) - - if use multislot; then - myeconfargs+=( --program-transform-name="s,grub,grub2," ) - fi - - if use truetype; then - mkdir -p "${BUILD_DIR}" || die - run_in_build_dir setup_fonts - fi - - autotools-utils_src_configure -} - -src_configure() { - # We don't want to leak flags onto boot code. - export HOST_CCASFLAGS=${CCASFLAGS} - export HOST_CFLAGS=${CFLAGS} - export HOST_CPPFLAGS=${CPPFLAGS} - export HOST_LDFLAGS=${LDFLAGS} - unset CCASFLAGS CFLAGS CPPFLAGS LDFLAGS - - use static && HOST_LDFLAGS+=" -static" - - if version_is_at_least 4.8 "$(gcc-version)"; then - export TARGET_LDFLAGS+=" -fuse-ld=bfd" - fi - - tc-export CC NM OBJCOPY STRIP - export TARGET_CC=${TARGET_CC:-${CC}} - tc-export BUILD_CC # Bug 485592 - - # Portage will take care of cleaning up GRUB_PLATFORMS - MULTIBUILD_VARIANTS=( ${GRUB_PLATFORMS:-guessed} ) - multibuild_parallel_foreach_variant grub_configure -} - -src_compile() { - # Sandbox bug 404013. - use libzfs && addpredict /etc/dfs:/dev/zfs - - multibuild_foreach_variant autotools-utils_src_compile - - use doc && multibuild_for_best_variant \ - autotools-utils_src_compile -C docs html -} - -src_test() { - # The qemu dependency is a bit complex. - # You will need to adjust QEMU_SOFTMMU_TARGETS to match the cpu/platform. - multibuild_foreach_variant autotools-utils_src_test -} - -src_install() { - multibuild_foreach_variant autotools-utils_src_install \ - bashcompletiondir="$(get_bashcompdir)" - - use doc && multibuild_for_best_variant run_in_build_dir \ - emake -C docs DESTDIR="${D}" install-html - - if use multislot; then - mv "${ED%/}"/usr/share/info/grub{,2}.info || die - fi - - insinto /etc/default - newins "${FILESDIR}"/grub.default-3 grub -} - -pkg_postinst() { - mount-boot_mount_boot_partition - - if [[ -e "${ROOT%/}/boot/grub2/grub.cfg" && ! -e "${ROOT%/}/boot/grub/grub.cfg" ]]; then - mkdir -p "${ROOT%/}/boot/grub" - ln -s ../grub2/grub.cfg "${ROOT%/}/boot/grub/grub.cfg" - fi - - mount-boot_pkg_postinst - - elog "For information on how to configure GRUB2 please refer to the guide:" - elog " http://wiki.gentoo.org/wiki/GRUB2_Quick_Start" - - if has_version 'sys-boot/grub:0'; then - elog "A migration guide for GRUB Legacy users is available:" - elog " http://www.gentoo.org/doc/en/grub2-migration.xml" - fi - - if [[ -z ${REPLACING_VERSIONS} ]]; then - if ! has_version sys-boot/os-prober; then - elog "Install sys-boot/os-prober to enable detection of other operating systems using grub2-mkconfig." - fi - if ! has_version dev-libs/libisoburn; then - elog "Install dev-libs/libisoburn to enable creation of rescue media using grub2-mkrescue." - fi - else - local v - for v in ${REPLACING_VERSIONS}; do - if use multislot && ! version_is_at_least 2.00_p5107-r1 ${v}; then - ewarn "The grub directory has changed from /boot/grub2 to /boot/grub." - ewarn "Please run grub2-install and grub2-mkconfig -o /boot/grub/grub.cfg." - break - fi - done - fi -} |