summaryrefslogtreecommitdiff
path: root/sys-fs
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2013-08-14 16:17:28 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2013-08-14 16:17:28 +0000
commitb2d87764c0eb3f8c0b70f7dbf1787a0b6ef37535 (patch)
treee46b0023e6b393b41d1864b2b17ef3fef5df5b17 /sys-fs
parentUpstream patch for "Fix metadata area offset/size overflow if it's >= 4g and ... (diff)
downloadhistorical-b2d87764c0eb3f8c0b70f7dbf1787a0b6ef37535.tar.gz
historical-b2d87764c0eb3f8c0b70f7dbf1787a0b6ef37535.tar.bz2
historical-b2d87764c0eb3f8c0b70f7dbf1787a0b6ef37535.zip
old
Package-Manager: portage-2.2.0/cvs/Linux x86_64 Manifest-Sign-Key: 0x4868F14D
Diffstat (limited to 'sys-fs')
-rw-r--r--sys-fs/lvm2/ChangeLog7
-rw-r--r--sys-fs/lvm2/Manifest21
-rw-r--r--sys-fs/lvm2/files/lvm2-2.02.95-udev185.patch208
-rw-r--r--sys-fs/lvm2/lvm2-2.02.98.ebuild285
-rw-r--r--sys-fs/lvm2/lvm2-2.02.99-r1.ebuild251
-rw-r--r--sys-fs/lvm2/lvm2-2.02.99.ebuild242
6 files changed, 14 insertions, 1000 deletions
diff --git a/sys-fs/lvm2/ChangeLog b/sys-fs/lvm2/ChangeLog
index d99c3f6e19aa..aacdb72cf44d 100644
--- a/sys-fs/lvm2/ChangeLog
+++ b/sys-fs/lvm2/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-fs/lvm2
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/ChangeLog,v 1.314 2013/08/14 16:14:29 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/ChangeLog,v 1.315 2013/08/14 16:17:19 ssuominen Exp $
+
+ 14 Aug 2013; Samuli Suominen <ssuominen@gentoo.org>
+ -files/lvm2-2.02.95-udev185.patch, -lvm2-2.02.98.ebuild,
+ -lvm2-2.02.99-r1.ebuild, -lvm2-2.02.99.ebuild:
+ old
*lvm2-2.02.99-r2 (14 Aug 2013)
diff --git a/sys-fs/lvm2/Manifest b/sys-fs/lvm2/Manifest
index fec1e9b27ea1..499e5f0360e1 100644
--- a/sys-fs/lvm2/Manifest
+++ b/sys-fs/lvm2/Manifest
@@ -19,7 +19,6 @@ AUX lvm2-2.02.88-respect-cc.patch 467 SHA256 a19e1049fc6da2b9feb0898360a86ea3aab
AUX lvm2-2.02.92-dynamic-static-ldflags.patch 3031 SHA256 90b880572186d4d1abf049d39e5f11e4cfedb3707c29eeb9740ceccdb3b62468 SHA512 edb78081d12bebaccd31c2474cb531563b729f1ad966afaff7892556177ee7a68217cc699c65383318066139ba62183adc8334f46f8f8933d62b6b5dcd11a023 WHIRLPOOL 6880a29dfb6747f167c41506e1472c0d48ef7af3a545238c733949f85f3f8f36110fb6908c6f626260f7ed975e56a4e8ccf42ece4d758fa3570154cbe970f2a3
AUX lvm2-2.02.92-locale-muck.patch 570 SHA256 3b24abd3c1254de1727a91b6ade26c36dc8dbee8ecbfab4bf6afbad21fdd59ff SHA512 2496cd39b06a69441dc7fe223eab4da25ca76e9f79be85d0f162dba784c3a86afaf430a366dac83354e07dcf07a486d5abee2bb4c677a84c13bd22998cfdfd39 WHIRLPOOL ed28aa549983fb9c1b1e1fe17bf2eca624dec43400fe1c8b67b00e010c3d745ec5f29479e7b4bed67ac2d4d1d6237df91eba7318e33d5e592893f76b17e9074a
AUX lvm2-2.02.95-lvmpath.patch 1247 SHA256 48d65570cbf86dcf749a0e77a1c57e26170ee90ddb8d8800988eab451f402456 SHA512 92b104476911882d0dae97251942a0dbf6c58d6d5c5af77e74b3e41de95a155966392fb539affef3de6def107168b436c54e5ee000bdff0c4701748481940eb4 WHIRLPOOL 26d00f35cdd4a0bbdabdda0a5a69956e7c7ed90dd3e774cfac46c4eb0e339a09e03dcd617b49863a550e79c72d327b3007ffa17ecd27750bf3a759058c4c9e7e
-AUX lvm2-2.02.95-udev185.patch 6792 SHA256 3067d45a2829f94b9c5f7f5d38cceb2c36bdf181417aaab7d45e359df501099f SHA512 2296344ca2746f71a12874723b2bbed218bd3114144329b3f0d0910512bd61d85b81d2e72fbb0e27d6c618fcb93be6ac05c95d32c3972a3df55357d004d7e713 WHIRLPOOL b7d971f7818384572c9307f828360d2faf395f949832560bbeeb647da7e0ebba6f4cca5dc2a40080e9ad440f8a6ca193076794e5be4d927ed40efa214e0e37c2
AUX lvm2-2.02.97-selinux-static.patch 3194 SHA256 ec63bdee4fbea1ac2b97abd5d56ec599aaa1b022d40ec12bb541ad8cdea261ee SHA512 f59628618a053fb07bc8ccd6461296ae2425e750d770a850febca551560cc8f0f60f58943078141065c881249aa9541998b1d6e4acd4a80af74ab33b24b0f472 WHIRLPOOL 427d272eb3c66eded41ecc59fd48601f5650899a69ece55fba1740d54a0d324cfb013ff9681905ef9c8a62a61f40e72f15ba8c5de5991c5f78c48182a0cff68f
AUX lvm2-2.02.97-strict-aliasing.patch 3142 SHA256 a4c799777c8e5a83fe1af52ed623ba472b859b5a0356dab2b53b31837b3a582e SHA512 7828562bb0fb95f3f75d08845b8c4767815dd74e117795ec873ea11135deaf389d6f0f8d66cf3c9b3843d6fa977c4be1a341013bcf4f016299e238c0d90be878 WHIRLPOOL 84f957d7b833896fe86fa9bf4c83183a8fb3c96780fd387288371df4fbf697f1ecc1c554862ea749ec72728bd608c1c8a1776cd26185903b53d559e3760d743c
AUX lvm2-2.02.97-udev-static.patch 1170 SHA256 a797b0d767c7df83653b9da996b47425ad1d0d6bd79371c231b8f6480a013f41 SHA512 7c45fcccd4cd5097e88bef014fdff0bfde3959c57cffb34657674c4f557b36f4df73a2f3a8af17a12c1b0f52e4b5d99806f6f82c5ae60417ebcbf72b82616c89 WHIRLPOOL 4f303960be89b5e37d3f700eeb6e534c40750a8a486c33f21605d53dabef487b5a00e2bcda42d3dcbe60ebba3e444cea8a2375901bd92b9047b040584c66faea
@@ -28,23 +27,19 @@ AUX lvm2-2.02.99-fix-mda-offset-size-overflow-4g-with-lvmetad.patch 1311 SHA256
AUX lvm2-2.02.99-locale-muck.patch 395 SHA256 14e7c65fd9aa71b7f09cc1aecfaccb3048dbb09dd4eb4c342556708aa6adba77 SHA512 4014abbaeb1106dbaa360e2573340651adc0cccc6c0c05cc57695e74e7a3d0b5a73e2b72242bab0d0a10c2506a7c30c2a4de0275c0f81a14dfb068ec91492497 WHIRLPOOL 3383e94ca4dbaefd2c628d3a95b17a14602481c98425caf48f490185289eb3f1af2ef234ff5b5c431ea4624edd8e48764252bdf5b7159ab3bbbad699c3f936ab
AUX lvm2-2.02.99-selinux-static.patch 4695 SHA256 62571ea45660dc518b36128d929927a7bdd0476c6ecb1ab091807e5fbd091287 SHA512 94d6e29147d9c258f5cf00245b6b341ac301a0da1c0388c363f2dbb59eef69ab6bd4e6213b1fbcd749861d71a78d4f4ac2b4295074efc259bb9586d746ec1349 WHIRLPOOL c752bf942b9edc0ea43d5a0ae1394f8f037dbb74ce299dae0bff7f011e6182dbfe35131bd4496793cd1d55711837599f9ea448265e22523963acc0088fb5b253
DIST LVM2.2.02.97.tgz 1193141 SHA256 edda82012e8a9e1f0b00ba5a331468d3e0201992be14c0dbea71bf564a51fc2b SHA512 c209054832f36d7b9cbf833c702410ac95c9de1e213b550c01c42f087fcae346d3c931c409184086bc1fcbcbc154c9a4f8b82b06291cefeb7ae22fe7a4c254a0 WHIRLPOOL d4dafde0ae1607cb231acbf07e8aecd579b9e9042e9356df1074a2683f5f2d1036a3483e1799cf7dd14e64f1f4c5506d3628979fd7128cea70ad45b653403dfa
-DIST LVM2.2.02.98.tgz 1227919 SHA256 71030a58fef7e00d82ca4144334548e46aad24551a3cfbe7c3059b1bd137d864 SHA512 9dd1f98f47af1724a2ff64c6d728a03254c46a499a21d48d305a34ae5728ff7b51ef4d32646a96e424c21a44fc8abc87ab5a25e59fcb75beabbf0d3446e41d7b WHIRLPOOL 5abe78134f81bd19a5bc1a53575f3afe03dd8c71f081fe61a6f6de99804f376413a02fd4d33310d5c7ba05509ad7905f8fe8061c2bf85c15d73bfd02295aef56
DIST LVM2.2.02.99.tgz 1317810 SHA256 493c9ad85bada036418671072355b2fc57fc30eb5a63fd14a7dfe8ed28dca040 SHA512 665c8be867b44a258e37e12f2202352dfe0d4b7a5018e041ef01ce53d59b88dd96195943f12bd6915ebadbc605340de138bb2268527fd830d35deb4d43ab561b WHIRLPOOL 13fbb82cada1b8c08c881070ce5400517e44b287402ff1e5637ba4b684b4af22a3c7197a0a004d4a43f3584ae257307bb3734e9f3152733368e39a1b7f8c9d89
EBUILD lvm2-2.02.97-r1.ebuild 9072 SHA256 616ff463fda707204c5e92c3a22651ec3e87168ead21b859f6ad0f00c2775960 SHA512 d395b0dc1a18846f76bc79f7fef2cbb649bbee179ea800d6b82398ff113d21c84d987107d14397986d2dc7f5127345cde7e1c588ddfcab339e016f3133dc6080 WHIRLPOOL f14c3e31b83d73b4e996e47c1db7e79e293881dfb1bc519383cfdaac35331ff4fb0a735d2c138433855b1795f084552126b340624191ba8aaf0069011eb6d823
-EBUILD lvm2-2.02.98.ebuild 9057 SHA256 d333bceffbd63be4e525ed7bcb43e9e7f596e96f69cc69a5de1f44803773c504 SHA512 01ab4555de80fef975cbf5844e427984f5de1472dfda3fe51f1870688bc1d59cb5f12ebb100f05c23bc21433ece13b5b8bc093460d299f03efe39fdf4fef006f WHIRLPOOL 03c4d68b1f0d927e62026cfc4279324eb50c7bb86cb6e67b6ba24bc409b6035954b00e63415429c952d10f45377a272d3df88fffc7d30369f104e382b75384e6
-EBUILD lvm2-2.02.99-r1.ebuild 8111 SHA256 4440cb8ad76609da3b72be51d0c1f682b290844a3b6d8553955e6883d3de4249 SHA512 1f44015b63c018975f01cca9a5f30611bf30ab9cf03f53c54d9667de22fa5270cb5b3881fcfafe6f08f55a25b96601cbe85cea4c42038b3880a0243649a32e68 WHIRLPOOL 7e4426631eb1ccfcc217e5255bae48eb73758c41de48d9c3c6d3911c500eff8eb858a019a249966844a83b8a856148c9752fd22ac23069d132abc04f8cdedfcf
EBUILD lvm2-2.02.99-r2.ebuild 8217 SHA256 3b2b043cb028b55af42e88a5567267ac837f648e4c5f6327b2e97989eb86d444 SHA512 1f831d00e140b6ffe5ba64a48bfef8ec11ae66981451c9d64d50a6e60c04ba05a4bdfda38400a4d1501e7d4c150e745d0e3ed9512e0f4294fa79286237b66f5a WHIRLPOOL a92d6ad1769a239a65312065074730e9ccc7149b4d71dd19cbee5eafa334c703dad24a8a55e039f0ecfa6187d5cf1e69f3ffcd022485f5f7f2498da0d6e8c929
-EBUILD lvm2-2.02.99.ebuild 7907 SHA256 59a6d71918ceacc37c0cd290c6feb52bd54c8e61bafe3cebb3e81c69e516a5b4 SHA512 2e9df6e861bb120b96251a6fa86f17097cf2e49dd0ab9bc9be590af445a55f9eaa2123be319a700a3bd3e1135fd2d02c89786c55f9ddfaa18aeea3940bd853d7 WHIRLPOOL 9662aab31f17b88fda144a872266a364fe2baafc1338905b43552c507a44d24e6ed6408fa60a667b0f0f4ee220922fe8a3ac0d4c69022648be0e4bd724c7b1d5
-MISC ChangeLog 59768 SHA256 9a5273499fd8e0f1bb2a7219c608af2777457f7fc34931de35e031c7e9ce1365 SHA512 01baeb7945021cc0211c053053f017188645e59861a4e836500a9cac17d1daafa6923f09901b8e30674239dca55a790f313e6f08925a7ec1875e24b71a1ff05d WHIRLPOOL 80cbbed2591ac0284013ed1940f239d204cee635246158779c46df641311d1e42628ff2b673ae5cd9cb084f7a412d11be5ef92d0d57ca0c248db7dc0b40035ce
+MISC ChangeLog 59937 SHA256 976bb747128320cfb86a28f38d4c11377cad928d1c7650e5d4058067da5108f5 SHA512 02d4738918bc1e366703b0bf42e4553dc99be79c53c5538fa6a5d1bca3c4ebff3acb545c8437a5b68b99415626173f43407c6b20cd15ec93b66a130b02000a3b WHIRLPOOL 784396c227a465a77ff75c3123de29245aa289db7cdd89a9b446e036a409e39d5db869a67cdd15bc7fde7002b96512528f38178a8d3656004936663201f6a6db
MISC metadata.xml 984 SHA256 8f554d97062552d62ce2d81c8e4536b3e97539a497dd8cddda3eeab24b4ef73a SHA512 9c0a10af6149817269590cd28e7dc7eb84539184d41123b12bfada3857f87d813199cfbecd7c8219ce1b6a70f4ee72cf7a911854fcdb1fbfd90e3146122bca7f WHIRLPOOL e98d441e34d6a8fe540c7526da3418417cfc10e31c52b42d7827b151f7e3e20f8b088ee49b3ebd67ec304143593a6319c8ea42094d62315e47f210b0e52fe149
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)
-iQEcBAEBCAAGBQJSC6xTAAoJEEdUh39IaPFNxLgH/2b0PMMM/AeTiCTr31159Jcb
-/YCQND0YY8KvoatD4uPLF252xX/NIH08Z6saUL0qij8ZFZiw6qA1UT+uFJAkwkvW
-dK9DS9FKTLfCorG3jwwWOh1WKV+7qvUSIP+/tQuu2KolGr5UPruObfgMCUWwF41d
-OAkVG2rRfbh1f4+ymejB19N3LwYM13OLuFTAZI6KWEaPGwjJVENRKKxDznrM3uPw
-Q7cIMnVppVCQhHDF1/ImSPfq7RlaJ9YaXuuNQ83IFlWzgb0ht7QXMhDPIfyI1Gj6
-Hysb7GGfCgxSU1jRLczoh0kN4RZ3N6OCHZkDYQZOG/Oo61uy870vowCdWZNtVYA=
-=CycY
+iQEcBAEBCAAGBQJSC6z9AAoJEEdUh39IaPFNymsH/0U9hFqpEbweWoK+UcHh+ZT2
+/RzeZZMge+oMEw5GxaM8QFYLt63a2dL6+qI75rnpUcDekDzKIBR2xF5i/ByNTP1V
+XedXAjY9fX/LHf3xI+al3BwxzTTaVZrbSB4IgKNsgH1aiW5VkaFFrLVq3Ub2IlGU
+LzsvdCI0D8NrzNJpM14TLofYEsNugn+y8/WDKAHe7R2HXHbFR2WTWP5BMoE//Gap
+KUwSJqinX1Cem7FmoKS30fH09SKJ6IT2SNjt5KwWG7hmq8G01wgS1jwxbd9s0H3r
+ZTZwJB9esiT/M6rBtJaU4LlYhAeL3uBxEWHTWoiKr1Bphil3XKu+Q1oYsoNuVpo=
+=k9V/
-----END PGP SIGNATURE-----
diff --git a/sys-fs/lvm2/files/lvm2-2.02.95-udev185.patch b/sys-fs/lvm2/files/lvm2-2.02.95-udev185.patch
deleted file mode 100644
index ba7e40deea64..000000000000
--- a/sys-fs/lvm2/files/lvm2-2.02.95-udev185.patch
+++ /dev/null
@@ -1,208 +0,0 @@
-From 06738cac051b671ed26bd137676713eab457b37f Mon Sep 17 00:00:00 2001
-From: Peter Rajnoha <prajnoha@redhat.com>
-Date: Tue, 29 May 2012 08:09:10 +0000
-Subject: [PATCH] Remove unsupported udev_get_dev_path libudev call used for checking udev dir.
-
-With latest changes in the udev, some deprecated functions were removed
-from libudev amongst which there was the "udev_get_dev_path" function
-we used to compare a device directory used in udev and directore set in
-libdevmapper. The "/dev" is hardcoded in udev now (udev version >= 183).
-
-Amongst other changes and from packager's point of view, it's also
-important to note that the libudev development library ("libudev-devel")
-could now be a part of the systemd development library ("systemd-devel")
-because of the udev + systemd merge.
----
- WHATS_NEW_DM | 1 +
- lib/commands/toolcontext.c | 28 ++++++++++++++++------------
- lib/misc/lvm-wrappers.c | 14 --------------
- lib/misc/lvm-wrappers.h | 1 -
- libdm/libdevmapper.h | 3 +++
- tools/dmsetup.c | 30 ++++++++++++------------------
- 6 files changed, 32 insertions(+), 45 deletions(-)
-
-diff --git a/lib/commands/toolcontext.c b/lib/commands/toolcontext.c
-index 78f0801..cc23163 100644
---- a/lib/commands/toolcontext.c
-+++ b/lib/commands/toolcontext.c
-@@ -650,9 +650,9 @@ static int _init_dev_cache(struct cmd_context *cmd)
- {
- const struct dm_config_node *cn;
- const struct dm_config_value *cv;
-- size_t uninitialized_var(udev_dir_len), len;
-+ size_t len, udev_dir_len = strlen(DM_UDEV_DEV_DIR);
-+ int len_diff;
- int device_list_from_udev;
-- const char *uninitialized_var(udev_dir);
-
- init_dev_disable_after_error_count(
- find_config_tree_int(cmd, "devices/disable_after_error_count",
-@@ -661,13 +661,9 @@ static int _init_dev_cache(struct cmd_context *cmd)
- if (!dev_cache_init(cmd))
- return_0;
-
-- if ((device_list_from_udev = udev_is_running() ?
-+ device_list_from_udev = udev_is_running() ?
- find_config_tree_bool(cmd, "devices/obtain_device_list_from_udev",
-- DEFAULT_OBTAIN_DEVICE_LIST_FROM_UDEV) : 0)) {
-- if (!(udev_dir = udev_get_dev_dir()))
-- stack;
-- udev_dir_len = (udev_dir) ? strlen(udev_dir) : 0;
-- }
-+ DEFAULT_OBTAIN_DEVICE_LIST_FROM_UDEV) : 0;
- init_obtain_device_list_from_udev(device_list_from_udev);
-
- if (!(cn = find_config_tree_node(cmd, "devices/scan"))) {
-@@ -688,11 +684,19 @@ static int _init_dev_cache(struct cmd_context *cmd)
- return 0;
- }
-
-- if (device_list_from_udev && udev_dir) {
-+ if (device_list_from_udev) {
- len = strlen(cv->v.str);
-- len = udev_dir_len > len ? len : udev_dir_len;
-- if (strncmp(udev_dir, cv->v.str, len) ||
-- udev_dir[len] != cv->v.str[len]) {
-+
-+ /*
-+ * DM_UDEV_DEV_DIR always has '/' at its end.
-+ * If the item in the conf does not have it, be sure
-+ * to make the right comparison without the '/' char!
-+ */
-+ len_diff = len && cv->v.str[len - 1] != '/' ?
-+ udev_dir_len - 1 != len :
-+ udev_dir_len != len;
-+
-+ if (len_diff || strncmp(DM_UDEV_DEV_DIR, cv->v.str, len)) {
- device_list_from_udev = 0;
- init_obtain_device_list_from_udev(0);
- }
-diff --git a/lib/misc/lvm-wrappers.c b/lib/misc/lvm-wrappers.c
-index 84f61a6..6cffae3 100644
---- a/lib/misc/lvm-wrappers.c
-+++ b/lib/misc/lvm-wrappers.c
-@@ -65,16 +65,6 @@ bad:
- return 0;
- }
-
--const char *udev_get_dev_dir(void)
--{
-- if (!_udev) {
-- log_debug(_no_context_msg);
-- return NULL;
-- }
--
-- return udev_get_dev_path(_udev);
--}
--
- struct udev* udev_get_library_context(void)
- {
- return _udev;
-@@ -96,10 +86,6 @@ int udev_is_running(void)
- return 0;
- }
-
--const char *udev_get_dev_dir(void)
--{
-- return NULL;
--}
- #endif
-
- int lvm_getpagesize(void)
-diff --git a/lib/misc/lvm-wrappers.h b/lib/misc/lvm-wrappers.h
-index f5b381c..e43f831 100644
---- a/lib/misc/lvm-wrappers.h
-+++ b/lib/misc/lvm-wrappers.h
-@@ -24,7 +24,6 @@ struct udev *udev_get_library_context(void);
- int udev_init_library_context(void);
- void udev_fin_library_context(void);
- int udev_is_running(void);
--const char *udev_get_dev_dir(void);
-
- int lvm_getpagesize(void);
-
-diff --git a/libdm/libdevmapper.h b/libdm/libdevmapper.h
-index 7df4db8..1f780a3 100644
---- a/libdm/libdevmapper.h
-+++ b/libdm/libdevmapper.h
-@@ -1500,6 +1500,9 @@ struct dm_config_node *dm_config_clone_node(struct dm_config_tree *cft, const st
-
- struct dm_pool *dm_config_memory(struct dm_config_tree *cft);
-
-+/* Udev device directory. */
-+#define DM_UDEV_DEV_DIR "/dev/"
-+
- /* Cookie prefixes.
- *
- * The cookie value consists of a prefix (16 bits) and a base (16 bits).
-diff --git a/tools/dmsetup.c b/tools/dmsetup.c
-index 6934de8..2787b76 100644
---- a/tools/dmsetup.c
-+++ b/tools/dmsetup.c
-@@ -1008,11 +1008,9 @@ static int _udevcookies(CMD_ARGS)
- #else /* UDEV_SYNC_SUPPORT */
- static int _set_up_udev_support(const char *dev_dir)
- {
-- struct udev *udev;
-- const char *udev_dev_dir;
-- size_t udev_dev_dir_len;
- int dirs_diff;
- const char *env;
-+ size_t len = strlen(dev_dir), udev_dir_len = strlen(DM_UDEV_DEV_DIR);
-
- if (_switches[NOUDEVSYNC_ARG])
- dm_udev_set_sync_support(0);
-@@ -1030,14 +1028,6 @@ static int _set_up_udev_support(const char *dev_dir)
- " defined by --udevcookie option.",
- _udev_cookie);
-
-- if (!(udev = udev_new()) ||
-- !(udev_dev_dir = udev_get_dev_path(udev)) ||
-- !*udev_dev_dir) {
-- log_error("Could not get udev dev path.");
-- return 0;
-- }
-- udev_dev_dir_len = strlen(udev_dev_dir);
--
- /*
- * Normally, there's always a fallback action by libdevmapper if udev
- * has not done its job correctly, e.g. the nodes were not created.
-@@ -1049,12 +1039,17 @@ static int _set_up_udev_support(const char *dev_dir)
- * is the same as "dev path" used by libdevmapper.
- */
-
-- /* There's always a slash at the end of dev_dir. But check udev_dev_dir! */
-- if (udev_dev_dir[udev_dev_dir_len - 1] != '/')
-- dirs_diff = strncmp(dev_dir, udev_dev_dir, udev_dev_dir_len);
-- else
-- dirs_diff = strcmp(dev_dir, udev_dev_dir);
-
-+ /*
-+ * DM_UDEV_DEV_DIR always has '/' at its end.
-+ * If the dev_dir does not have it, be sure
-+ * to make the right comparison without the '/' char!
-+ */
-+ if (dev_dir[len - 1] != '/')
-+ udev_dir_len--;
-+
-+ dirs_diff = udev_dir_len != len ||
-+ strncmp(DM_UDEV_DEV_DIR, dev_dir, len);
- _udev_only = !dirs_diff && (_udev_cookie || !_switches[VERIFYUDEV_ARG]);
-
- if (dirs_diff) {
-@@ -1064,11 +1059,10 @@ static int _set_up_udev_support(const char *dev_dir)
- "about udev not working correctly while processing "
- "particular nodes will be suppressed. These nodes "
- "and symlinks will be managed in each directory "
-- "separately.", dev_dir, udev_dev_dir);
-+ "separately.", dev_dir, DM_UDEV_DEV_DIR);
- dm_udev_set_checking(0);
- }
-
-- udev_unref(udev);
- return 1;
- }
-
---
-1.7.2.1
-
diff --git a/sys-fs/lvm2/lvm2-2.02.98.ebuild b/sys-fs/lvm2/lvm2-2.02.98.ebuild
deleted file mode 100644
index 54546476daa5..000000000000
--- a/sys-fs/lvm2/lvm2-2.02.98.ebuild
+++ /dev/null
@@ -1,285 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/lvm2-2.02.98.ebuild,v 1.7 2013/08/06 18:08:30 axs Exp $
-
-EAPI=5
-inherit eutils multilib toolchain-funcs autotools linux-info udev
-
-DESCRIPTION="User-land utilities for LVM2 (device-mapper) software."
-HOMEPAGE="http://sources.redhat.com/lvm2/"
-SRC_URI="ftp://sources.redhat.com/pub/lvm2/${PN/lvm/LVM}.${PV}.tgz
- ftp://sources.redhat.com/pub/lvm2/old/${PN/lvm/LVM}.${PV}.tgz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
-
-IUSE="readline static static-libs clvm cman +lvm1 selinux +udev +thin"
-
-DEPEND_COMMON="!!sys-fs/device-mapper
- readline? ( sys-libs/readline )
- clvm? ( =sys-cluster/libdlm-3*
- cman? ( =sys-cluster/cman-3* ) )
- udev? ( virtual/udev[static-libs?] )"
-
-# /run is now required for locking during early boot. /var cannot be assumed to
-# be available.
-RDEPEND="${DEPEND_COMMON}
- !<sys-apps/openrc-0.10.1
- >=sys-apps/baselayout-2.1-r1
- !!sys-fs/lvm-user
- !!sys-fs/clvm
- >=sys-apps/util-linux-2.16
- thin? ( sys-block/thin-provisioning-tools )"
-
-# Upgrading to this LVM will break older cryptsetup
-RDEPEND="${RDEPEND}
- !<sys-fs/cryptsetup-1.1.2"
-
-DEPEND="${DEPEND_COMMON}
- virtual/pkgconfig
- >=sys-devel/binutils-2.20.1-r1
- static? (
- udev? ( virtual/udev[static-libs] )
- selinux? ( sys-libs/libselinux[static-libs] )
- )"
-
-S="${WORKDIR}/${PN/lvm/LVM}.${PV}"
-
-pkg_setup() {
- local CONFIG_CHECK="~SYSVIPC"
- use udev && local WARNING_SYSVIPC="CONFIG_SYSVIPC:\tis not set (required for udev sync)\n"
- check_extra_config
- # 1. Genkernel no longer copies /sbin/lvm blindly.
- if use static; then
- elog "Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with"
- elog "their static versions. If you need the static binaries,"
- elog "you must append .static to the filename!"
- fi
-}
-
-src_prepare() {
- epatch "${FILESDIR}"/lvm.conf-2.02.67.patch
-
- # Should not be needed due to upstream re-arrangement of build
- #epatch "${FILESDIR}"/${PN}-2.02.56-dmeventd.patch
- # Should not be need with new upstream udev rules
- #epatch "${FILESDIR}"/${PN}-2.02.56-device-mapper-export-format.patch
-
- # Merged upstream:
- #epatch "${FILESDIR}"/${PN}-2.02.51-as-needed.patch
- # Merged upstream:
- #epatch "${FILESDIR}"/${PN}-2.02.48-fix-pkgconfig.patch
- # Merged upstream:
- #epatch "${FILESDIR}"/${PN}-2.02.51-fix-pvcreate.patch
- # Fixed differently upstream:
- #epatch "${FILESDIR}"/${PN}-2.02.51-dmsetup-selinux-linking-fix-r3.patch
-
- epatch "${FILESDIR}"/${PN}-2.02.63-always-make-static-libdm.patch
- epatch "${FILESDIR}"/lvm2-2.02.56-lvm2create_initrd.patch
- # bug 318513 - merged upstream
- #epatch "${FILESDIR}"/${PN}-2.02.64-dmeventd-libs.patch
- # bug 301331
- epatch "${FILESDIR}"/${PN}-2.02.67-createinitrd.patch
- # bug 330373
- epatch "${FILESDIR}"/${PN}-2.02.92-locale-muck.patch
- # --as-needed
- epatch "${FILESDIR}"/${PN}-2.02.70-asneeded.patch
- # bug 332905
- epatch "${FILESDIR}"/${PN}-2.02.92-dynamic-static-ldflags.patch
- # bug 361429 - merged upstream in .85
- #epatch "${FILESDIR}"/${PN}-2.02.84-udev-pkgconfig.patch
-
- # Merged upstream
- #epatch "${FILESDIR}"/${PN}-2.02.73-asneeded.patch
-
- epatch "${FILESDIR}"/${PN}-2.02.88-respect-cc.patch
-
- # Upstream bug of LVM path
- # Merged upstream
- #epatch "${FILESDIR}"/${PN}-2.02.95-lvmpath.patch
-
- # Upstream patch for http://bugs.gentoo.org/424810
- # Merged upstream
- #epatch "${FILESDIR}"/${PN}-2.02.95-udev185.patch
-
- # Upstream patch for https://bugs.gentoo.org/444328
- # Merged upstream
- #epatch "${FILESDIR}"/${PN}-2.02.97-strict-aliasing.patch
-
- # for https://bugs.gentoo.org/370217
- epatch "${FILESDIR}"/${PN}-2.02.97-udev-static.patch
- epatch "${FILESDIR}"/${PN}-2.02.97-selinux-static.patch
-
- # Fix calling AR directly with USE static, bug #444082
- if use static ; then
- sed -i -e "s:\$(AR) rs \$@ \$(OBJECTS) lvmcmdlib.o lvm2cmd-static.o:$(tc-getAR) rs \$@ \$(OBJECTS) lvmcmdlib.o lvm2cmd-static.o:" \
- tools/Makefile.in || die "sed failed"
- fi
-
- eautoreconf
-}
-
-src_configure() {
- local myconf
- local buildmode
-
- myconf="${myconf} --enable-dmeventd"
- myconf="${myconf} --enable-cmdlib"
- myconf="${myconf} --enable-applib"
- myconf="${myconf} --enable-fsadm"
- myconf="${myconf} --enable-lvmetad"
-
- # Most of this package does weird stuff.
- # The build options are tristate, and --without is NOT supported
- # options: 'none', 'internal', 'shared'
- if use static ; then
- einfo "Building static LVM, for usage inside genkernel"
- buildmode="internal"
- # This only causes the .static versions to become available
- # We explicitly provide the .static versions so that they can be included in
- # initramfs environments.
- myconf="${myconf} --enable-static_link"
- else
- ewarn "Building shared LVM, it will not work inside genkernel!"
- buildmode="shared"
- fi
-
- # dmeventd requires mirrors to be internal, and snapshot available
- # so we cannot disable them
- myconf="${myconf} --with-mirrors=internal"
- myconf="${myconf} --with-snapshots=internal"
- use thin \
- && myconf="${myconf} --with-thin=internal" \
- || myconf="${myconf} --with-thin=none"
-
- if use lvm1 ; then
- myconf="${myconf} --with-lvm1=${buildmode}"
- else
- myconf="${myconf} --with-lvm1=none"
- fi
-
- # disable O_DIRECT support on hppa, breaks pv detection (#99532)
- use hppa && myconf="${myconf} --disable-o_direct"
-
- if use clvm; then
- myconf="${myconf} --with-cluster=${buildmode}"
- # 4-state! Make sure we get it right, per bug 210879
- # Valid options are: none, cman, gulm, all
- #
- # 2009/02:
- # gulm is removed now, now dual-state:
- # cman, none
- # all still exists, but is not needed
- #
- # 2009/07:
- # TODO: add corosync and re-enable ALL
- local clvmd=""
- use cman && clvmd="cman"
- #clvmd="${clvmd/cmangulm/all}"
- [ -z "${clvmd}" ] && clvmd="none"
- myconf="${myconf} --with-clvmd=${clvmd}"
- myconf="${myconf} --with-pool=${buildmode}"
- else
- myconf="${myconf} --with-clvmd=none --with-cluster=none"
- fi
-
- local udevdir="${EPREFIX}/lib/udev/rules.d"
- use udev && udevdir="${EPREFIX}/$(udev_get_udevdir)/rules.d"
-
- econf \
- $(use_enable readline) \
- $(use_enable selinux) \
- --enable-pkgconfig \
- --with-confdir="${EPREFIX}/etc" \
- --sbindir="${EPREFIX}/sbin" \
- --with-staticdir="${EPREFIX}/sbin" \
- --libdir="${EPREFIX}/$(get_libdir)" \
- --with-usrlibdir="${EPREFIX}/usr/$(get_libdir)" \
- --with-default-run-dir=/run/lvm \
- --with-default-locking-dir=/run/lock/lvm \
- --with-dmeventd-path=/sbin/dmeventd \
- $(use_enable udev udev_rules) \
- $(use_enable udev udev_sync) \
- $(use_with udev udevdir "${udevdir}") \
- ${myconf} \
- CLDFLAGS="${LDFLAGS}"
-}
-
-src_compile() {
- einfo "Doing symlinks"
- pushd include
- emake || die "Failed to prepare symlinks"
- popd
-
- einfo "Starting main build"
- emake AR="$(tc-getAR)" || die "compile fail"
-}
-
-src_install() {
- emake DESTDIR="${D}" install
-
- dodoc README VERSION* WHATS_NEW WHATS_NEW_DM doc/*.{conf,c,txt}
- newinitd "${FILESDIR}"/lvm.rc-2.02.95-r2 lvm
- newinitd "${FILESDIR}"/lvm-monitoring.initd-2.02.67-r2 lvm-monitoring
- newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm
- if use clvm; then
- newinitd "${FILESDIR}"/clvmd.rc-2.02.39 clvmd
- newconfd "${FILESDIR}"/clvmd.confd-2.02.39 clvmd
- fi
-
- # move shared libs to /lib(64)
- if use static-libs; then
- dolib.a libdm/ioctl/libdevmapper.a || die "dolib.a libdevmapper.a"
- #gen_usr_ldscript libdevmapper.so
- fi
-
- dosbin "${S}"/scripts/lvm2create_initrd/lvm2create_initrd
- doman "${S}"/scripts/lvm2create_initrd/lvm2create_initrd.8
- newdoc "${S}"/scripts/lvm2create_initrd/README README.lvm2create_initrd
-
- insinto /etc
- doins "${FILESDIR}"/dmtab
-
- # Device mapper stuff
- newinitd "${FILESDIR}"/device-mapper.rc-2.02.95-r2 device-mapper
- newconfd "${FILESDIR}"/device-mapper.conf-1.02.22-r3 device-mapper
-
- newinitd "${FILESDIR}"/dmeventd.initd-2.02.67-r1 dmeventd
- if use static-libs; then
- dolib.a daemons/dmeventd/libdevmapper-event.a \
- || die "dolib.a libdevmapper-event.a"
- #gen_usr_ldscript libdevmapper-event.so
- fi
-
- use static-libs || \
- rm -f "${D}"/usr/$(get_libdir)/{libdevmapper-event,liblvm2cmd,liblvm2app,libdevmapper}.a
-
- #insinto /etc/udev/rules.d/
- #newins "${FILESDIR}"/64-device-mapper.rules-2.02.56-r3 64-device-mapper.rules
-
- # do not rely on /lib -> /libXX link
- sed -i \
- -e "s|/lib/rcscripts/|/$(get_libdir)/rcscripts/|" \
- "${ED}"/etc/init.d/* || die
-
- elog "USE flag nocman is deprecated and replaced"
- elog "with the cman USE flag."
- elog ""
- elog "USE flags clvm and cman are masked"
- elog "by default and need to be unmasked to be used"
- elog ""
- elog "If you are using genkernel and root-on-LVM, rebuild the initramfs."
-}
-
-pkg_postinst() {
- elog "lvm volumes are no longer automatically created for"
- elog "baselayout-2 users. If you are using baselayout-2, be sure to"
- elog "run: # rc-update add lvm boot"
- elog "Do NOT add it if you are still using baselayout-1."
-}
-
-src_test() {
- einfo "Testcases disabled because of device-node mucking"
- einfo "If you want them, compile the package and see ${S}/tests"
-}
diff --git a/sys-fs/lvm2/lvm2-2.02.99-r1.ebuild b/sys-fs/lvm2/lvm2-2.02.99-r1.ebuild
deleted file mode 100644
index 4dd6cd59b446..000000000000
--- a/sys-fs/lvm2/lvm2-2.02.99-r1.ebuild
+++ /dev/null
@@ -1,251 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/lvm2-2.02.99-r1.ebuild,v 1.3 2013/08/07 11:31:59 ssuominen Exp $
-
-EAPI=5
-inherit eutils multilib toolchain-funcs autotools linux-info udev systemd
-
-DESCRIPTION="User-land utilities for LVM2 (device-mapper) software."
-HOMEPAGE="http://sources.redhat.com/lvm2/"
-SRC_URI="ftp://sources.redhat.com/pub/lvm2/${PN/lvm/LVM}.${PV}.tgz
- ftp://sources.redhat.com/pub/lvm2/old/${PN/lvm/LVM}.${PV}.tgz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
-
-IUSE="readline static static-libs clvm cman +lvm1 lvm2create_initrd selinux +udev +thin"
-
-DEPEND_COMMON="clvm? ( cman? ( =sys-cluster/cman-3* ) =sys-cluster/libdlm-3* )
- readline? ( sys-libs/readline )
- udev? ( >=virtual/udev-200[static-libs?] )"
-# /run is now required for locking during early boot. /var cannot be assumed to
-# be available.
-RDEPEND="${DEPEND_COMMON}
- !<sys-apps/openrc-0.10.1
- >=sys-apps/baselayout-2.1-r1
- !!sys-fs/lvm-user
- !!sys-fs/clvm
- >=sys-apps/util-linux-2.16
- lvm2create_initrd? ( sys-apps/makedev )
- thin? ( sys-block/thin-provisioning-tools )"
-# Upgrading to this LVM will break older cryptsetup
-RDEPEND="${RDEPEND}
- !<sys-fs/cryptsetup-1.1.2"
-DEPEND="${DEPEND_COMMON}
- virtual/pkgconfig
- >=sys-devel/binutils-2.20.1-r1
- static? (
- udev? ( virtual/udev[static-libs] )
- selinux? ( sys-libs/libselinux[static-libs] )
- )"
-
-S=${WORKDIR}/${PN/lvm/LVM}.${PV}
-
-pkg_setup() {
- local CONFIG_CHECK="~SYSVIPC"
-
- if use udev; then
- local WARNING_SYSVIPC="CONFIG_SYSVIPC:\tis not set (required for udev sync)\n"
- if linux_config_exists; then
- local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH)
- if [ -n "${uevent_helper_path}" ] && [ "${uevent_helper_path}" != '""' ]; then
- ewarn "It's recommended to set an empty value to the following kernel config option:"
- ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}"
- fi
- fi
- fi
-
- check_extra_config
-
- # 1. Genkernel no longer copies /sbin/lvm blindly.
- if use static; then
- elog "Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with"
- elog "their static versions. If you need the static binaries,"
- elog "you must append .static to the filename!"
- fi
-}
-
-src_prepare() {
- # Gentoo specific modification(s)
- epatch "${FILESDIR}"/${PN}-2.02.99-example.conf.in.patch
-
- # Not merged upstream, should be reviewed and forwarded:
- epatch \
- "${FILESDIR}"/${PN}-2.02.63-always-make-static-libdm.patch \
- "${FILESDIR}"/${PN}-2.02.56-lvm2create_initrd.patch \
- "${FILESDIR}"/${PN}-2.02.88-respect-cc.patch
- epatch "${FILESDIR}"/${PN}-2.02.67-createinitrd.patch #301331
- epatch "${FILESDIR}"/${PN}-2.02.99-locale-muck.patch #330373
- epatch "${FILESDIR}"/${PN}-2.02.70-asneeded.patch # -Wl,--as-needed
- epatch "${FILESDIR}"/${PN}-2.02.92-dynamic-static-ldflags.patch #332905
- epatch "${FILESDIR}"/${PN}-2.02.97-udev-static.patch #370217
- epatch "${FILESDIR}"/${PN}-2.02.99-selinux-static.patch #439414
-
- sed -i -e 's:/usr/sbin/lvm:/sbin/lvm:' scripts/lvm2_activation_generator_systemd_red_hat.c || die #479626
-
- # Fix calling AR directly with USE static, bug #444082, convert to patch and forward to upstream
- if use static ; then
- sed -i -e "s:\$(AR) rs \$@ \$(OBJECTS) lvmcmdlib.o lvm2cmd-static.o:$(tc-getAR) rs \$@ \$(OBJECTS) lvmcmdlib.o lvm2cmd-static.o:" \
- tools/Makefile.in || die
- fi
-
- eautoreconf
-}
-
-src_configure() {
- local myconf
- local buildmode
-
- myconf="${myconf} --enable-dmeventd"
- myconf="${myconf} --enable-cmdlib"
- myconf="${myconf} --enable-applib"
- myconf="${myconf} --enable-fsadm"
- myconf="${myconf} --enable-lvmetad"
-
- # Most of this package does weird stuff.
- # The build options are tristate, and --without is NOT supported
- # options: 'none', 'internal', 'shared'
- if use static ; then
- buildmode="internal"
- # This only causes the .static versions to become available
- myconf="${myconf} --enable-static_link"
- else
- buildmode="shared"
- fi
-
- # dmeventd requires mirrors to be internal, and snapshot available
- # so we cannot disable them
- myconf="${myconf} --with-mirrors=internal"
- myconf="${myconf} --with-snapshots=internal"
- use thin \
- && myconf="${myconf} --with-thin=internal" \
- || myconf="${myconf} --with-thin=none"
-
- if use lvm1 ; then
- myconf="${myconf} --with-lvm1=${buildmode}"
- else
- myconf="${myconf} --with-lvm1=none"
- fi
-
- # disable O_DIRECT support on hppa, breaks pv detection (#99532)
- use hppa && myconf="${myconf} --disable-o_direct"
-
- if use clvm; then
- myconf="${myconf} --with-cluster=${buildmode}"
- # 4-state! Make sure we get it right, per bug 210879
- # Valid options are: none, cman, gulm, all
- #
- # 2009/02:
- # gulm is removed now, now dual-state:
- # cman, none
- # all still exists, but is not needed
- #
- # 2009/07:
- # TODO: add corosync and re-enable ALL
- local clvmd=""
- use cman && clvmd="cman"
- #clvmd="${clvmd/cmangulm/all}"
- [ -z "${clvmd}" ] && clvmd="none"
- myconf="${myconf} --with-clvmd=${clvmd}"
- myconf="${myconf} --with-pool=${buildmode}"
- else
- myconf="${myconf} --with-clvmd=none --with-cluster=none"
- fi
-
- local udevdir="${EPREFIX}/lib/udev/rules.d"
- use udev && udevdir="${EPREFIX}/$(get_udevdir)/rules.d"
-
- econf \
- $(use_enable readline) \
- $(use_enable selinux) \
- --enable-pkgconfig \
- --with-confdir="${EPREFIX}/etc" \
- --sbindir="${EPREFIX}/sbin" \
- --with-staticdir="${EPREFIX}/sbin" \
- --libdir="${EPREFIX}/$(get_libdir)" \
- --with-usrlibdir="${EPREFIX}/usr/$(get_libdir)" \
- --with-default-dm-run-dir=/run \
- --with-default-run-dir=/run/lvm \
- --with-default-locking-dir=/run/lock/lvm \
- --with-dmeventd-path=/sbin/dmeventd \
- --with-default-pid-dir=/run \
- $(use_enable udev udev_rules) \
- $(use_enable udev udev_sync) \
- $(use_with udev udevdir "${udevdir}") \
- "$(systemd_with_unitdir)" \
- ${myconf} \
- CLDFLAGS="${LDFLAGS}"
-}
-
-src_compile() {
- pushd include >/dev/null
- emake
- popd >/dev/null
-
- emake AR="$(tc-getAR)"
- emake CC="$(tc-getCC)" -C scripts lvm2_activation_generator_systemd_red_hat
-}
-
-src_install() {
- local inst
- for inst in install install_systemd_units install_systemd_generators install_tmpfiles_configuration; do
- emake DESTDIR="${D}" ${inst}
- done
-
- dodoc README VERSION* WHATS_NEW WHATS_NEW_DM doc/*.{c,txt} conf/*.conf
- newinitd "${FILESDIR}"/lvm.rc-2.02.95-r2 lvm
- newinitd "${FILESDIR}"/lvm-monitoring.initd-2.02.67-r2 lvm-monitoring
- newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm
- if use clvm; then
- newinitd "${FILESDIR}"/clvmd.rc-2.02.39 clvmd
- newconfd "${FILESDIR}"/clvmd.confd-2.02.39 clvmd
- fi
-
- # move shared libs to /lib(64)
- if use static-libs; then
- dolib.a libdm/ioctl/libdevmapper.a
- dolib.a libdaemon/client/libdaemonclient.a #462908
- #gen_usr_ldscript libdevmapper.so
- fi
-
- if use lvm2create_initrd; then
- dosbin "${S}"/scripts/lvm2create_initrd/lvm2create_initrd
- doman "${S}"/scripts/lvm2create_initrd/lvm2create_initrd.8
- newdoc "${S}"/scripts/lvm2create_initrd/README README.lvm2create_initrd
- fi
-
- insinto /etc
- doins "${FILESDIR}"/dmtab
-
- # Device mapper stuff
- newinitd "${FILESDIR}"/device-mapper.rc-2.02.95-r2 device-mapper
- newconfd "${FILESDIR}"/device-mapper.conf-1.02.22-r3 device-mapper
-
- newinitd "${FILESDIR}"/dmeventd.initd-2.02.67-r1 dmeventd
- if use static-libs; then
- dolib.a daemons/dmeventd/libdevmapper-event.a
- #gen_usr_ldscript libdevmapper-event.so
- fi
-
- use static-libs || \
- rm -f "${D}"/usr/$(get_libdir)/{libdevmapper-event,liblvm2cmd,liblvm2app,libdevmapper}.a
-
- # do not rely on /lib -> /libXX link
- sed -i \
- -e "s|/lib/rcscripts/|/$(get_libdir)/rcscripts/|" \
- "${ED}"/etc/init.d/* || die
-}
-
-pkg_postinst() {
- ewarn "Make sure the \"lvm\" init script is in the runlevels:"
- ewarn "# rc-update add lvm boot"
- ewarn
- ewarn "Make sure to enable lvmetad in /etc/lvm/lvm.conf if you want"
- ewarn "to enable lvm autoactivation and metadata caching."
-}
-
-src_test() {
- einfo "Tests are disabled because of device-node mucking, if you want to"
- einfo "run tests, compile the package and see ${S}/tests"
-}
diff --git a/sys-fs/lvm2/lvm2-2.02.99.ebuild b/sys-fs/lvm2/lvm2-2.02.99.ebuild
deleted file mode 100644
index 618271710844..000000000000
--- a/sys-fs/lvm2/lvm2-2.02.99.ebuild
+++ /dev/null
@@ -1,242 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/lvm2-2.02.99.ebuild,v 1.6 2013/08/06 18:08:30 axs Exp $
-
-EAPI=5
-inherit eutils multilib toolchain-funcs autotools linux-info udev systemd
-
-DESCRIPTION="User-land utilities for LVM2 (device-mapper) software."
-HOMEPAGE="http://sources.redhat.com/lvm2/"
-SRC_URI="ftp://sources.redhat.com/pub/lvm2/${PN/lvm/LVM}.${PV}.tgz
- ftp://sources.redhat.com/pub/lvm2/old/${PN/lvm/LVM}.${PV}.tgz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
-
-IUSE="readline static static-libs clvm cman +lvm1 selinux +udev +thin"
-
-DEPEND_COMMON="clvm? ( cman? ( =sys-cluster/cman-3* ) =sys-cluster/libdlm-3* )
- readline? ( sys-libs/readline )
- udev? ( >=virtual/udev-200[static-libs?] )"
-# /run is now required for locking during early boot. /var cannot be assumed to
-# be available.
-RDEPEND="${DEPEND_COMMON}
- !<sys-apps/openrc-0.10.1
- >=sys-apps/baselayout-2.1-r1
- !!sys-fs/lvm-user
- !!sys-fs/clvm
- >=sys-apps/util-linux-2.16
- thin? ( sys-block/thin-provisioning-tools )"
-# Upgrading to this LVM will break older cryptsetup
-RDEPEND="${RDEPEND}
- !<sys-fs/cryptsetup-1.1.2"
-DEPEND="${DEPEND_COMMON}
- virtual/pkgconfig
- >=sys-devel/binutils-2.20.1-r1
- static? (
- udev? ( virtual/udev[static-libs] )
- selinux? ( sys-libs/libselinux[static-libs] )
- )"
-
-S=${WORKDIR}/${PN/lvm/LVM}.${PV}
-
-#QA_MULTILIB_PATHS="usr/lib/systemd/system-generators/.*" #479520
-
-pkg_setup() {
- local CONFIG_CHECK="~SYSVIPC"
- use udev && local WARNING_SYSVIPC="CONFIG_SYSVIPC:\tis not set (required for udev sync)\n"
- check_extra_config
- # 1. Genkernel no longer copies /sbin/lvm blindly.
- if use static; then
- elog "Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with"
- elog "their static versions. If you need the static binaries,"
- elog "you must append .static to the filename!"
- fi
-}
-
-src_prepare() {
- # Gentoo specific modification(s)
- epatch "${FILESDIR}"/${PN}-2.02.99-example.conf.in.patch
-
- # Not merged upstream, should be reviewed and forwarded:
- epatch \
- "${FILESDIR}"/${PN}-2.02.63-always-make-static-libdm.patch \
- "${FILESDIR}"/${PN}-2.02.56-lvm2create_initrd.patch \
- "${FILESDIR}"/${PN}-2.02.88-respect-cc.patch
- epatch "${FILESDIR}"/${PN}-2.02.67-createinitrd.patch #301331
- epatch "${FILESDIR}"/${PN}-2.02.99-locale-muck.patch #330373
- epatch "${FILESDIR}"/${PN}-2.02.70-asneeded.patch # -Wl,--as-needed
- epatch "${FILESDIR}"/${PN}-2.02.92-dynamic-static-ldflags.patch #332905
- epatch "${FILESDIR}"/${PN}-2.02.97-udev-static.patch #370217
- epatch "${FILESDIR}"/${PN}-2.02.99-selinux-static.patch #439414
-
- # Fix calling AR directly with USE static, bug #444082, convert to patch and forward to upstream
- if use static ; then
- sed -i -e "s:\$(AR) rs \$@ \$(OBJECTS) lvmcmdlib.o lvm2cmd-static.o:$(tc-getAR) rs \$@ \$(OBJECTS) lvmcmdlib.o lvm2cmd-static.o:" \
- tools/Makefile.in || die
- fi
-
- eautoreconf
-}
-
-src_configure() {
- local myconf
- local buildmode
-
- myconf="${myconf} --enable-dmeventd"
- myconf="${myconf} --enable-cmdlib"
- myconf="${myconf} --enable-applib"
- myconf="${myconf} --enable-fsadm"
- myconf="${myconf} --enable-lvmetad"
-
- # Most of this package does weird stuff.
- # The build options are tristate, and --without is NOT supported
- # options: 'none', 'internal', 'shared'
- if use static ; then
- einfo "Building static LVM, for usage inside genkernel"
- buildmode="internal"
- # This only causes the .static versions to become available
- # We explicitly provide the .static versions so that they can be included in
- # initramfs environments.
- myconf="${myconf} --enable-static_link"
- else
- ewarn "Building shared LVM, it will not work inside genkernel!"
- buildmode="shared"
- fi
-
- # dmeventd requires mirrors to be internal, and snapshot available
- # so we cannot disable them
- myconf="${myconf} --with-mirrors=internal"
- myconf="${myconf} --with-snapshots=internal"
- use thin \
- && myconf="${myconf} --with-thin=internal" \
- || myconf="${myconf} --with-thin=none"
-
- if use lvm1 ; then
- myconf="${myconf} --with-lvm1=${buildmode}"
- else
- myconf="${myconf} --with-lvm1=none"
- fi
-
- # disable O_DIRECT support on hppa, breaks pv detection (#99532)
- use hppa && myconf="${myconf} --disable-o_direct"
-
- if use clvm; then
- myconf="${myconf} --with-cluster=${buildmode}"
- # 4-state! Make sure we get it right, per bug 210879
- # Valid options are: none, cman, gulm, all
- #
- # 2009/02:
- # gulm is removed now, now dual-state:
- # cman, none
- # all still exists, but is not needed
- #
- # 2009/07:
- # TODO: add corosync and re-enable ALL
- local clvmd=""
- use cman && clvmd="cman"
- #clvmd="${clvmd/cmangulm/all}"
- [ -z "${clvmd}" ] && clvmd="none"
- myconf="${myconf} --with-clvmd=${clvmd}"
- myconf="${myconf} --with-pool=${buildmode}"
- else
- myconf="${myconf} --with-clvmd=none --with-cluster=none"
- fi
-
- local udevdir="${EPREFIX}/lib/udev/rules.d"
- use udev && udevdir="${EPREFIX}/$(get_udevdir)/rules.d"
-
- econf \
- $(use_enable readline) \
- $(use_enable selinux) \
- --enable-pkgconfig \
- --with-confdir="${EPREFIX}/etc" \
- --sbindir="${EPREFIX}/sbin" \
- --with-staticdir="${EPREFIX}/sbin" \
- --libdir="${EPREFIX}/$(get_libdir)" \
- --with-usrlibdir="${EPREFIX}/usr/$(get_libdir)" \
- --with-default-run-dir=/run/lvm \
- --with-default-locking-dir=/run/lock/lvm \
- --with-dmeventd-path=/sbin/dmeventd \
- --with-default-pid-dir=/run \
- $(use_enable udev udev_rules) \
- $(use_enable udev udev_sync) \
- $(use_with udev udevdir "${udevdir}") \
- "$(systemd_with_unitdir)" \
- ${myconf} \
- CLDFLAGS="${LDFLAGS}"
-}
-
-src_compile() {
- pushd include >/dev/null
- emake
- popd >/dev/null
-
- emake AR="$(tc-getAR)"
- emake CC="$(tc-getCC)" -C scripts lvm2_activation_generator_systemd_red_hat
-}
-
-src_install() {
- local inst
- for inst in install install_systemd_units install_systemd_generators install_tmpfiles_configuration; do
- emake DESTDIR="${D}" ${inst}
- done
-
- dodoc README VERSION* WHATS_NEW WHATS_NEW_DM doc/*.{c,txt} conf/*.conf
- newinitd "${FILESDIR}"/lvm.rc-2.02.95-r2 lvm
- newinitd "${FILESDIR}"/lvm-monitoring.initd-2.02.67-r2 lvm-monitoring
- newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm
- if use clvm; then
- newinitd "${FILESDIR}"/clvmd.rc-2.02.39 clvmd
- newconfd "${FILESDIR}"/clvmd.confd-2.02.39 clvmd
- fi
-
- # move shared libs to /lib(64)
- if use static-libs; then
- dolib.a libdm/ioctl/libdevmapper.a
- dolib.a libdaemon/client/libdaemonclient.a #462908
- #gen_usr_ldscript libdevmapper.so
- fi
-
- dosbin "${S}"/scripts/lvm2create_initrd/lvm2create_initrd
- doman "${S}"/scripts/lvm2create_initrd/lvm2create_initrd.8
- newdoc "${S}"/scripts/lvm2create_initrd/README README.lvm2create_initrd
-
- insinto /etc
- doins "${FILESDIR}"/dmtab
-
- # Device mapper stuff
- newinitd "${FILESDIR}"/device-mapper.rc-2.02.95-r2 device-mapper
- newconfd "${FILESDIR}"/device-mapper.conf-1.02.22-r3 device-mapper
-
- newinitd "${FILESDIR}"/dmeventd.initd-2.02.67-r1 dmeventd
- if use static-libs; then
- dolib.a daemons/dmeventd/libdevmapper-event.a
- #gen_usr_ldscript libdevmapper-event.so
- fi
-
- use static-libs || \
- rm -f "${D}"/usr/$(get_libdir)/{libdevmapper-event,liblvm2cmd,liblvm2app,libdevmapper}.a
-
- #insinto /etc/udev/rules.d/
- #newins "${FILESDIR}"/64-device-mapper.rules-2.02.56-r3 64-device-mapper.rules
-
- # do not rely on /lib -> /libXX link
- sed -i \
- -e "s|/lib/rcscripts/|/$(get_libdir)/rcscripts/|" \
- "${ED}"/etc/init.d/* || die
-}
-
-pkg_postinst() {
- ewarn "Make sure the \"lvm\" init script is in the runlevels:"
- ewarn "# rc-update add lvm boot"
- ewarn
- ewarn "Make sure to enable lvmetad in /etc/lvm/lvm.conf if you want"
- ewarn "to enable lvm autoactivation and metadata caching."
-}
-
-src_test() {
- einfo "Tests are disabled because of device-node mucking, if you want to"
- einfo "run tests, compile the package and see ${S}/tests"
-}