diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-05-14 11:09:11 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-05-14 11:09:11 +0100 |
commit | deba8115d2c2af26df42966b91ef04ff4dd79cde (patch) | |
tree | 9a48f42594e1a9e6b2020d5535a784314434d7a7 /sys-fs/multipath-tools | |
parent | 38423c67c8a23f6a1bc42038193182e2da3116eb (diff) |
gentoo resync : 14.05.2020
Diffstat (limited to 'sys-fs/multipath-tools')
-rw-r--r-- | sys-fs/multipath-tools/Manifest | 13 | ||||
-rw-r--r-- | sys-fs/multipath-tools/files/multipath-tools-0.8.3-fix-gcc-10-compatibility.patch | 11 | ||||
-rw-r--r-- | sys-fs/multipath-tools/files/multipath-tools-0.8.3-json-c-0.14.patch | 28 | ||||
-rw-r--r-- | sys-fs/multipath-tools/files/multipath-tools-0.8.4-parallel_make_fix.patch | 85 | ||||
-rw-r--r-- | sys-fs/multipath-tools/files/multipath-tools-0.8.4-respect-flags.patch | 19 | ||||
-rw-r--r-- | sys-fs/multipath-tools/multipath-tools-0.8.1.ebuild | 94 | ||||
-rw-r--r-- | sys-fs/multipath-tools/multipath-tools-0.8.2.ebuild | 94 | ||||
-rw-r--r-- | sys-fs/multipath-tools/multipath-tools-0.8.3-r2.ebuild (renamed from sys-fs/multipath-tools/multipath-tools-0.8.3-r1.ebuild) | 6 | ||||
-rw-r--r-- | sys-fs/multipath-tools/multipath-tools-0.8.4.ebuild (renamed from sys-fs/multipath-tools/multipath-tools-0.8.3.ebuild) | 20 |
9 files changed, 166 insertions, 204 deletions
diff --git a/sys-fs/multipath-tools/Manifest b/sys-fs/multipath-tools/Manifest index f5b66d3676c5..ee3617b12bfa 100644 --- a/sys-fs/multipath-tools/Manifest +++ b/sys-fs/multipath-tools/Manifest @@ -1,19 +1,20 @@ AUX multipath-tools-0.6.2-ignore-modprobe-failures.patch 831 BLAKE2B e30f06a67f8e5f00156f35abf4c60dec71f5b3f8487b8a6822a0a5eae32f6b034fd2be98da34aad085db933a0cef592d0056075819a9e8985a8aab7b3743cfd4 SHA512 62e40c6577bc7cd24f3283de94692cc7550d39a9caa255ca5d77c2d3c324a85c0364fca73b154f17197cf38b82b171eae759f9eb1ecf8ab5801afafd42b1b156 AUX multipath-tools-0.6.4-sysmacros.patch 1554 BLAKE2B d293a6a72fbf0480c711af66b8bbb78da3584270c766cbcdd096bbd46b2f34170a68c459c5cc9b4d472359a80aeb108498209ac926623eb09277af18a5ff1170 SHA512 1f6c862e0fc73859b670d2917b2e0d63731714edb07098929dbd46e7cc61f9d354f30558034993c8e719de103d4b37c16a34483236a040db28a983416772634e AUX multipath-tools-0.7.5-respect-flags.patch 660 BLAKE2B 1efc793d9741b1a732895cbd7cfb4fbf04026db24f834a5bec25c33413132b39e0afe46f8851a6dfd6bd05fe88bfc15fd8cc24f03df435f75c209c401bd68b6a SHA512 58a44988a5c9a82affa3fdc969eaac87b5672a743434f2c8cab269b0b526f1c150bc10655bccccc1e8a26e3237350d4824b0497bb29c925cd42a084f84268fcf +AUX multipath-tools-0.8.3-fix-gcc-10-compatibility.patch 434 BLAKE2B 2ebda2c60d3f2dd1152a1a6291d2ef476ad7e2ec96aa05a31353dedd22be7383e93f792498e7d73a017f1a66856caab582946b27df7bcdc50485816c97090710 SHA512 97bba4b041bac4cfa934148136cdd4795a09136d3671ba9c508f1e08516dc7515e3d7ff5ec5c79187f530afc22c46c8a7817449a763b200062f821c168fcb352 +AUX multipath-tools-0.8.3-json-c-0.14.patch 1125 BLAKE2B 70d5d1eb8b96e92f9bd2ec637b460784759e9a68970400d3007a21fcdd4e9ea4d27a9b2ced6c14d6a02d6331f38bce35ca13e5ca13284077f04d701c021b5b69 SHA512 d743ee4f31949ca8c65c536e379781394ab5de79e47e59b0ccef92d5581243edde0de641756ca28c902f6cba0d3c0fd0d51029e0fe3985fb3a353f7e3cf10c77 AUX multipath-tools-0.8.3-no-gziped-docs.patch 6302 BLAKE2B 4d571d856d47cbb7cf6cf421a142fdb5d93fb891ae3c0c15abe8d74e6aeb35b02cbb70a80cede18f1dbd615581744f4144c0b03791aa6268c10e8bc08922bbeb SHA512 126245660ba589635437be32c7a7e72636e0bdcd72c177a6252b8e0c71e90426d12e78c10314d878d2e5a5b37b51db488c5fab8c1aae4f655650539ef1d1cd83 +AUX multipath-tools-0.8.4-parallel_make_fix.patch 3422 BLAKE2B 763460e1ee8d5df6a6b3ad0b742b3cf617e3f49f7001f7d951ee1f335a94aae773be40712bff26c8d83e380908a3a46bb26d6cf476e7ba6c9f6d33cd78539e13 SHA512 b68b196a3bc833d05d871b5e8d9abb93922a610b86c66f40db8defe446ca741415bb2ffb9083b45159700f5b1d82ba494efdf2407a26d2956e57428d38d5f59a +AUX multipath-tools-0.8.4-respect-flags.patch 736 BLAKE2B 43530a05c438385a90e198631effe0c90a7789b2ad441260788529bd5b9e9c7f3f085ad396211cf0fbe6842d95cd5f59ad6e358d5f9d302c72449b673660df72 SHA512 f9e3596518011fb8b96323b52292978c46a06ce4c6b273469077507b68bbb25aff087e5b170f8def4621a635676a4fc82ea960e3359b73c5a5d23786903724ed AUX multipath.rc 565 BLAKE2B efb26199eddb75c5e87d1ab40aa8cb4fbaf9f7a2bfd7a20add6d55997d25de9a3dbf0d032c977593c2ee8d447539a34be0294ee3a80a80fb004dc2c51c8c64b5 SHA512 f08833fc3c928900f8c29438208b9715581bae426b1f45c246e8c418b210f7f9d35517ef9ad44db3d88944183b34e3411ece909b56892a9f3b7250fed49e43fe AUX multipathd-r1.rc 264 BLAKE2B f08733746c702da27e002b2cb07bbc1a1925002b1592c2f566aa8d66c71da5fd39fd6389636fc49b602f9051190ee5f7f85ad9ff35b924f51a2698e1a6654f0e SHA512 8cf764b59ed4bb13c3c2143cd83ee39bc87eca85c40acb3ed1dcd7cf4c39ecbdea7974b9705231d48377266c034a8623157648b9a99b6cef73617e4b37ad377e AUX rc-multipathd 402 BLAKE2B c44befc14ff361d27278bd7850aada4fb8e309c0459d9d1bdb3ca1a670929b2d8b40275c73cd937ab3245b95460b3e9e12ecf199532ec916e1cf5f3e634d3bbb SHA512 466296ff69c0f56c312a8b88445ca0719c8c6b794511f7e228812d63b859bd120b965301c8923e3411a3e1b196e7fb9c48dd7dbe004efe4c65ee7f9798cc3e11 DIST multipath-tools-0.6.4.tar.gz 285448 BLAKE2B 1b63c4e712e682965c595ed988a6590e181abd4d37779b72b52f4e415d4caba33df518a1ea1e3b460d15b5a78f4db5a75c1066439eb40c503023007c1f70752a SHA512 ec35c6c26c3b233ebece7136ea99dd4c0dff2927e7b543e7091219dc7065fe87e609a1eda9ab6d08399d44fe882d70c8dbe6be9ab175d154c5dd2d12ee1d86ea DIST multipath-tools-0.7.9.tar.gz 419377 BLAKE2B 29003b7ce2d673eb59d869e2165028654361ca31f49b8e810d90611db249a5183492959d3aef778b870df7c1d283004bda88f3cc6f760569247f1ccc61617379 SHA512 6b237f148c239938b9f46a1a8118fc070372d5f2cfe2021c26ad9ca15d37e8866390168b6a4f13adcc5538001354247e072559a0add33ce1fe8245ae64ed0a3c -DIST multipath-tools-0.8.1.tar.gz 447883 BLAKE2B c840ede03fd15763cd947a71596bf3a2e5935433d956208225f4fd6ed55074e2d9709f8b0e6c059a58d44b6649f52b3564d6651ea1af6186138357ba37f86b14 SHA512 1f87f974aace746ecac8af6ae330de16affe49cc89a5660b28be3b1c4a69f822da01042432176e64b5de6ad3a6568044954fdce8e3aa31e85611a595a4939947 -DIST multipath-tools-0.8.2.tar.gz 458879 BLAKE2B a5aae1c9b211c788b658cf53e1c966bb9dd39dbe3e81058d6c758ba11cfd77ebfbc9d70bfde5b41d00fb1d4fbf31f3d2e6d58c69179e8842b9f5b8e9edd0b755 SHA512 c809e652479a8b6b141fd69810dbba316d93368ec6cf1c57f479ccde50e3ccf0bebe1b62e9db4791135aec45a90761f9100635f0ffa4b175ce9c2d82ebcea5c9 DIST multipath-tools-0.8.3.tar.gz 465248 BLAKE2B 21a7a18c70150b4422bdd0ae02f26f491845eb06928ab74e631df8c6b3c110d10f43f75b9f8289a7134826c923b7ba58ce54c40497c3b7e6211e53902c8a1b5f SHA512 d9fdc2763f5a1efa15ee07c5d863008c9694623935f62a0e0b56f941df4e0d0ca3f86056fefc9b5ca828b47782127e3d55f2f925b1ed957e02b675bef36f4cae +DIST multipath-tools-0.8.4.tar.gz 480994 BLAKE2B be8368df049218e2eaa1749e7b1c7a930da15f0311ab549b1bbba9c019dcfe39f90a05fd621e0703301ef1d55c98ac8cc74231d82950d9066f19d8764421704b SHA512 720823188c053c1c50269a30e34a9d69099098495bfd607076bcfa2c079565e3f0580c91783f19d42ed82290c0db98e4e19ef620eca4ee5ec7885c49c72d2307 EBUILD multipath-tools-0.6.4-r1.ebuild 2545 BLAKE2B f22afaabe21080d64175063c82e5a731d9e789968d1502b3771ade1eeb3ba3bf539d9cd1d100b75875a5f86fe85ef1ed77b8fee5178829ae301df23eadb0765c SHA512 21c5474be753c3762af2e1b73aab89d666d6f477d04b612360925ff10d994b1fd1152204a5254a39d87438cce274c0d57cb7003e37679b49d22b159fe5c0cfce EBUILD multipath-tools-0.7.9.ebuild 2068 BLAKE2B ec54d156a55c25a9c7cc9c6c3854a48c8bb1d404119398bfdb9defcb5c011e1824ce82f53cd5cc4d8e81a63bb412d11cb79ac276406e140f2808b911f7912947 SHA512 8e1fff8d8c71b2cac948e5501edef63acb7e0ba760e7b56a22644e0e08ce3cb9b70c29e69550f6a356113154f740a4e95199ac14e44b3d2db338605954d19be4 -EBUILD multipath-tools-0.8.1.ebuild 2068 BLAKE2B 5c9ca01560d80aeb6a2bb008f029f3782e539f41b5705c2cfacc428203572d5f343555b41107964c5082c476230f4b270293c49d2553ffb8f1e972ee1b54dcb7 SHA512 e23cdd535e66844c1ec622b896449184f950112a28e603361c76ad44b6e35591b0c8d0600758611be157ce49f919167b893d5b7346756902925bc3c39d8e578f -EBUILD multipath-tools-0.8.2.ebuild 2077 BLAKE2B f6ec67513e237d0c85116baf9fc020bc32354682ca1cfb2bef0bd14df783d2b3ad2a832ef7cada9e47dfa23111f6eee53acc8cf82c928b1b5fff3278e640903c SHA512 44bb10811f8f7595ab32e6770b12cfe4d666cdea0c480453c5a9d7ce3af0fddc34974433d43000714b34baa7f428c1f8d2dcf8dc9325b6537732cc0b3c74baee -EBUILD multipath-tools-0.8.3-r1.ebuild 2116 BLAKE2B aa717fcf5827ba3b15129c38cde240737647817c709ec2f670512a26150436f99ae2823887358bdf5e9e54f2f3297bcb2619a19d88cb84a81c43af9a5ecec38a SHA512 2094b50a0d0aabb690f92528f9709c3e10924e2f46001668bb11666661f0b945e178d1ba5b8581ada3472386d180a90471b8d150f4ff71c4e350958a91f8e41a -EBUILD multipath-tools-0.8.3.ebuild 2046 BLAKE2B 3e791221e228741e0bb937c3bd14d9d2a688e8d8eae244ef92e980fbc5e35a784fe435e03c0a34b3802eb6869e711bfd9fcdc3876430cc6b535a6a4477c67ea9 SHA512 72662ebf3c684dbe19ef4b64b204f985f1c918b2d1c9ad162fbf964b5f2ecce64c121961fb6d02f1ad74324869a1319c984f4fa63b75176b53b9282fe70dd83b +EBUILD multipath-tools-0.8.3-r2.ebuild 2215 BLAKE2B 6df0b2588f7838f365a942b7f8cc47e7aa369b53b0c2d364bfe083b08a9930143a1ad99aaeb795c2eb84a3f7ba558b93c213110f4fa8b58a53150c8c5912d63f SHA512 4f483b7f0231483a7597b436d3e2eeffeee57626937238565978f5733b9892f88b09bd599f7e473092ccdbbf1d19d3a87b26c88dbe6bb9574b98261c902a7f9c +EBUILD multipath-tools-0.8.4.ebuild 2214 BLAKE2B 90daeab97f15ecfe9ffae2158825dce22578cf0d77c6bc576ad55d643a88759083c4270c3923d587ce7aa78709f2d14957c16209c745273ef085011b39e4f0aa SHA512 c748accc0babbe40ab7e8c5950a12df281bdf47a700e62d9b24c4737d5df967fbf23e5ca3902cf13c2d86fe9c26b9be8f15d1ac4b5f8d829e6a50382d5615409 MISC metadata.xml 364 BLAKE2B d1d285f68ff773055f374ad7f6790708b7fed62a0d9787aff638c6ced762ff34d62a94a90d79426dbf4a81d86cf2447f41947d7650d3f1bc366a9d3338af94ce SHA512 91654145796f3e879d14dc7aab2261099dc0e2cb44e7563bf3c006893b81aa0f84fdd52870aaf317197b87e6c4d9e1341e456daeb2f3b40c926bdaf31c797134 diff --git a/sys-fs/multipath-tools/files/multipath-tools-0.8.3-fix-gcc-10-compatibility.patch b/sys-fs/multipath-tools/files/multipath-tools-0.8.3-fix-gcc-10-compatibility.patch new file mode 100644 index 000000000000..18ed8d65e0f9 --- /dev/null +++ b/sys-fs/multipath-tools/files/multipath-tools-0.8.3-fix-gcc-10-compatibility.patch @@ -0,0 +1,11 @@ +--- a/libmultipath/structs.h ++++ b/libmultipath/structs.h +@@ -106,7 +106,7 @@ enum yes_no_undef_states { + * _FIND_MULTIPATHS_F must have the same value as YNU_YES. + * Generate a compile time error if that isn't the case. + */ +-char ___error1___[-(_FIND_MULTIPATHS_F != YNU_YES)]; ++extern char ___error1___[-(_FIND_MULTIPATHS_F != YNU_YES)]; + + #define find_multipaths_on(conf) \ + (!!((conf)->find_multipaths & _FIND_MULTIPATHS_F)) diff --git a/sys-fs/multipath-tools/files/multipath-tools-0.8.3-json-c-0.14.patch b/sys-fs/multipath-tools/files/multipath-tools-0.8.3-json-c-0.14.patch new file mode 100644 index 000000000000..34d02f7b5d7f --- /dev/null +++ b/sys-fs/multipath-tools/files/multipath-tools-0.8.3-json-c-0.14.patch @@ -0,0 +1,28 @@ +From 8438a9cd8d7ed88645fa8e6a8f19c0fd9ae872a7 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org> +Date: Mon, 13 Apr 2020 19:22:02 +0200 +Subject: [PATCH] Add support for upcoming json-c 0.14.0. + +TRUE/FALSE are not defined anymore. 1 and 0 are used instead. +This is backwards compatible, as earlier versions of json-c are +using the same integer values in their present definitions. +--- + libdmmp/libdmmp_private.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libdmmp/libdmmp_private.h b/libdmmp/libdmmp_private.h +index ac85b63f..4378962b 100644 +--- a/libdmmp/libdmmp_private.h ++++ b/libdmmp/libdmmp_private.h +@@ -82,7 +82,7 @@ static out_type func_name(struct dmmp_context *ctx, const char *var_name) { \ + do { \ + json_type j_type = json_type_null; \ + json_object *j_obj_tmp = NULL; \ +- if (json_object_object_get_ex(j_obj, key, &j_obj_tmp) != TRUE) { \ ++ if (json_object_object_get_ex(j_obj, key, &j_obj_tmp) != 1) { \ + _error(ctx, "Invalid JSON output from multipathd IPC: " \ + "key '%s' not found", key); \ + rc = DMMP_ERR_IPC_ERROR; \ +-- +2.26.0 + diff --git a/sys-fs/multipath-tools/files/multipath-tools-0.8.4-parallel_make_fix.patch b/sys-fs/multipath-tools/files/multipath-tools-0.8.4-parallel_make_fix.patch new file mode 100644 index 000000000000..651cd04f59fd --- /dev/null +++ b/sys-fs/multipath-tools/files/multipath-tools-0.8.4-parallel_make_fix.patch @@ -0,0 +1,85 @@ +From 041472afebd1e621be1143f2bfb4c5650df171cc Mon Sep 17 00:00:00 2001 +From: Lars Wendler <polynomial-c@gentoo.org> +Date: Mon, 11 May 2020 11:49:58 +0200 +Subject: [PATCH] multipath-tools: Fix parallel make issues + +build is broken like this (tested with -j16): + + x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -shared -lpthread -ldevmapper -ldl -L../libmultipath -lmultipath -L../libmpathcmd -lmpathcmd -Wl,-soname=libmpathpersist.so.0 -o libmpathpersist.so.0 mpath_persist.o mpath_updatepr.o mpath_pr_ioctl.o + building defaults.o because of defaults.c + ... + /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmultipath + collect2: error: ld returned 1 exit status + make[1]: *** [Makefile:17: libmpathpersist.so.0] Error 1 + make: *** [Makefile:29: libmpathpersist] Error 2 + make: *** Waiting for unfinished jobs.... + +install is broken like this: + + install -m 755 libprio*.so /var/tmp/portage/sys-fs/multipath-tools-0.8.4/image/lib64/multipath + install -m 755 libcheckcciss_tur.so libcheckreadsector0.so libchecktur.so libcheckdirectio.so libcheckemc_clariion.so libcheckhp_sw.so libcheckrdac.so /var/tmp/portage/sys-fs/multipath-tools-0.8.4/image/lib64/multipath + ... + /usr/bin/install: target '/var/tmp/portage/sys-fs/multipath-tools-0.8.4/image/lib64/multipath' is not a directory + /usr/bin/install: target '/var/tmp/portage/sys-fs/multipath-tools-0.8.4/image/lib64/multipath' is not a directory + make[1]: *** [Makefile:28: install] Error 1 + make[1]: *** [Makefile:38: install] Error 1 +--- + Makefile | 3 ++- + libmultipath/checkers/Makefile | 1 + + libmultipath/foreign/Makefile | 1 + + libmultipath/prioritizers/Makefile | 1 + + 4 files changed, 5 insertions(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 1dee3680..a9ade94f 100644 +--- a/Makefile ++++ b/Makefile +@@ -29,7 +29,8 @@ $(BUILDDIRS): + $(MAKE) -C $@ + + multipath multipathd mpathpersist: libmultipath +-mpathpersist: libmpathpersist ++libmpathpersist: libmultipath ++mpathpersist: libmultipath libmpathpersist + + $(BUILDDIRS.clean): + $(MAKE) -C ${@:.clean=} clean +diff --git a/libmultipath/checkers/Makefile b/libmultipath/checkers/Makefile +index 02caea64..f201ca4c 100644 +--- a/libmultipath/checkers/Makefile ++++ b/libmultipath/checkers/Makefile +@@ -24,6 +24,7 @@ libcheck%.so: libsg.o %.o + $(CC) $(LDFLAGS) $(SHARED_FLAGS) -o $@ $^ + + install: ++ $(INSTALL_PROGRAM) -m 755 -d $(DESTDIR)$(libdir) + $(INSTALL_PROGRAM) -m 755 $(LIBS) $(DESTDIR)$(libdir) + + uninstall: +diff --git a/libmultipath/foreign/Makefile b/libmultipath/foreign/Makefile +index fae58a0d..567deebd 100644 +--- a/libmultipath/foreign/Makefile ++++ b/libmultipath/foreign/Makefile +@@ -14,6 +14,7 @@ libforeign-%.so: %.o + $(CC) $(LDFLAGS) $(SHARED_FLAGS) -o $@ $^ + + install: ++ $(INSTALL_PROGRAM) -m 755 -d $(DESTDIR)$(libdir) + $(INSTALL_PROGRAM) -m 755 $(LIBS) $(DESTDIR)$(libdir) + + uninstall: +diff --git a/libmultipath/prioritizers/Makefile b/libmultipath/prioritizers/Makefile +index 9d0fe03c..b0b0b522 100644 +--- a/libmultipath/prioritizers/Makefile ++++ b/libmultipath/prioritizers/Makefile +@@ -35,6 +35,7 @@ libprio%.so: %.o + $(CC) $(LDFLAGS) $(SHARED_FLAGS) -o $@ $^ + + install: $(LIBS) ++ $(INSTALL_PROGRAM) -m 755 -d $(DESTDIR)$(libdir) + $(INSTALL_PROGRAM) -m 755 libprio*.so $(DESTDIR)$(libdir) + + uninstall: +-- +2.26.2 + diff --git a/sys-fs/multipath-tools/files/multipath-tools-0.8.4-respect-flags.patch b/sys-fs/multipath-tools/files/multipath-tools-0.8.4-respect-flags.patch new file mode 100644 index 000000000000..5e5258405b4f --- /dev/null +++ b/sys-fs/multipath-tools/files/multipath-tools-0.8.4-respect-flags.patch @@ -0,0 +1,19 @@ +--- multipath-tools-0.8.4-d491591/Makefile.inc ++++ multipath-tools-0.8.4-d491591/Makefile.inc +@@ -99,12 +99,13 @@ + -Werror=cast-qual $(ERROR_DISCARDED_QUALIFIERS) \ + $(STACKPROT) --param=ssp-buffer-size=4 + CPPFLAGS := -Wp,-D_FORTIFY_SOURCE=2 +-CFLAGS := $(OPTFLAGS) -DBIN_DIR=\"$(bindir)\" -DLIB_STRING=\"${LIB}\" -DRUN_DIR=\"${RUN}\" \ +- -MMD -MP $(CFLAGS) ++CFLAGS ?= $(OPTFLAGS) ++CFLAGS += -DBIN_DIR=\"$(bindir)\" -DLIB_STRING=\"${LIB}\" -DRUN_DIR=\"${RUN}\" \ ++ -MMD -MP + BIN_CFLAGS = -fPIE -DPIE + LIB_CFLAGS = -fPIC + SHARED_FLAGS = -shared +-LDFLAGS = -Wl,-z,relro -Wl,-z,now ++LDFLAGS += -Wl,-z,relro -Wl,-z,now + BIN_LDFLAGS = -pie + + # Check whether a function with name $1 has been declared in header file $2. diff --git a/sys-fs/multipath-tools/multipath-tools-0.8.1.ebuild b/sys-fs/multipath-tools/multipath-tools-0.8.1.ebuild deleted file mode 100644 index 956caa89e080..000000000000 --- a/sys-fs/multipath-tools/multipath-tools-0.8.1.ebuild +++ /dev/null @@ -1,94 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" - -inherit linux-info systemd toolchain-funcs udev vcs-snapshot toolchain-funcs - -DESCRIPTION="Device mapper target autoconfig" -HOMEPAGE="http://christophe.varoqui.free.fr/" -SRC_URI="https://git.opensvc.com/?p=multipath-tools/.git;a=snapshot;h=${PV};sf=tgz -> ${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86" -IUSE="systemd rbd" - -RDEPEND=" - dev-libs/json-c:= - dev-libs/libaio - dev-libs/userspace-rcu:= - >=sys-fs/lvm2-2.02.45 - >=virtual/udev-171 - sys-libs/readline:0= - rbd? ( sys-cluster/ceph ) - systemd? ( sys-apps/systemd ) -" -DEPEND=" - ${RDEPEND} - virtual/pkgconfig -" - -CONFIG_CHECK="~DM_MULTIPATH" - -RESTRICT="test" - -PATCHES=( "${FILESDIR}"/${PN}-0.7.5-respect-flags.patch ) - -get_systemd_pv() { - use systemd && \ - $(tc-getPKG_CONFIG) --modversion systemd -} - -pkg_pretend() { - linux-info_pkg_setup -} - -pkg_setup() { - linux-info_pkg_setup -} - -src_prepare() { - default - - # The upstream lacks any way to configure the build at present - # and ceph is a huge dependency, so we're using sed to make it - # optional until the upstream has a proper configure system - if ! use rbd ; then - sed \ - -e "s/libcheckrbd.so/# libcheckrbd.so/" \ - -e "s/-lrados//" \ - -i libmultipath/checkers/Makefile \ - || die - fi -} - -src_compile() { - # LIBDM_API_FLUSH involves grepping files in /usr/include, - # so force the test to go the way we want #411337. - emake \ - CC="$(tc-getCC)" \ - LIBDM_API_FLUSH=1 SYSTEMD="$(get_systemd_pv)" -} - -src_install() { - dodir /sbin /usr/share/man/man{5,8} - emake \ - DESTDIR="${D}" \ - SYSTEMD=$(get_systemd_pv) \ - unitdir="$(systemd_get_systemunitdir)" \ - libudevdir='${prefix}'/"$(get_udevdir)" \ - install - - newinitd "${FILESDIR}"/rc-multipathd multipathd - newinitd "${FILESDIR}"/multipath.rc multipath - - einstalldocs -} - -pkg_postinst() { - if [[ -z ${REPLACING_VERSIONS} ]]; then - elog "If you need multipath on your system, you must" - elog "add 'multipath' into your boot runlevel!" - fi -} diff --git a/sys-fs/multipath-tools/multipath-tools-0.8.2.ebuild b/sys-fs/multipath-tools/multipath-tools-0.8.2.ebuild deleted file mode 100644 index fe7820dee263..000000000000 --- a/sys-fs/multipath-tools/multipath-tools-0.8.2.ebuild +++ /dev/null @@ -1,94 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" - -inherit linux-info systemd toolchain-funcs udev vcs-snapshot toolchain-funcs - -DESCRIPTION="Device mapper target autoconfig" -HOMEPAGE="http://christophe.varoqui.free.fr/" -SRC_URI="https://git.opensvc.com/?p=multipath-tools/.git;a=snapshot;h=${PV};sf=tgz -> ${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86" -IUSE="systemd rbd" - -RDEPEND=" - dev-libs/json-c:= - dev-libs/libaio - dev-libs/userspace-rcu:= - >=sys-fs/lvm2-2.02.45 - >=virtual/udev-171 - sys-libs/readline:0= - rbd? ( sys-cluster/ceph ) - systemd? ( sys-apps/systemd ) -" -DEPEND="${RDEPEND}" -BDEPEND=" - virtual/pkgconfig -" - -CONFIG_CHECK="~DM_MULTIPATH" - -RESTRICT="test" - -PATCHES=( "${FILESDIR}"/${PN}-0.7.5-respect-flags.patch ) - -get_systemd_pv() { - use systemd && \ - $(tc-getPKG_CONFIG) --modversion systemd -} - -pkg_pretend() { - linux-info_pkg_setup -} - -pkg_setup() { - linux-info_pkg_setup -} - -src_prepare() { - default - - # The upstream lacks any way to configure the build at present - # and ceph is a huge dependency, so we're using sed to make it - # optional until the upstream has a proper configure system - if ! use rbd ; then - sed \ - -e "s/libcheckrbd.so/# libcheckrbd.so/" \ - -e "s/-lrados//" \ - -i libmultipath/checkers/Makefile \ - || die - fi -} - -src_compile() { - # LIBDM_API_FLUSH involves grepping files in /usr/include, - # so force the test to go the way we want #411337. - emake \ - CC="$(tc-getCC)" \ - LIBDM_API_FLUSH=1 SYSTEMD="$(get_systemd_pv)" -} - -src_install() { - dodir /sbin /usr/share/man/man{5,8} - emake \ - DESTDIR="${D}" \ - SYSTEMD=$(get_systemd_pv) \ - unitdir="$(systemd_get_systemunitdir)" \ - libudevdir='${prefix}'/"$(get_udevdir)" \ - install - - newinitd "${FILESDIR}"/rc-multipathd multipathd - newinitd "${FILESDIR}"/multipath.rc multipath - - einstalldocs -} - -pkg_postinst() { - if [[ -z ${REPLACING_VERSIONS} ]]; then - elog "If you need multipath on your system, you must" - elog "add 'multipath' into your boot runlevel!" - fi -} diff --git a/sys-fs/multipath-tools/multipath-tools-0.8.3-r1.ebuild b/sys-fs/multipath-tools/multipath-tools-0.8.3-r2.ebuild index ac5a16737ab5..d1edcd936a90 100644 --- a/sys-fs/multipath-tools/multipath-tools-0.8.3-r1.ebuild +++ b/sys-fs/multipath-tools/multipath-tools-0.8.3-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="7" @@ -11,7 +11,7 @@ SRC_URI="https://git.opensvc.com/?p=multipath-tools/.git;a=snapshot;h=${PV};sf=t LICENSE="GPL-2" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86" +KEYWORDS="~alpha amd64 ~arm ~arm64 ~ia64 ppc ppc64 x86" IUSE="systemd rbd" BDEPEND="virtual/pkgconfig" @@ -36,6 +36,8 @@ RESTRICT="test" PATCHES=( "${FILESDIR}"/${PN}-0.7.5-respect-flags.patch "${FILESDIR}"/${PN}-0.8.3-no-gziped-docs.patch + "${FILESDIR}"/${PN}-0.8.3-json-c-0.14.patch + "${FILESDIR}"/${PN}-0.8.3-fix-gcc-10-compatibility.patch ) get_systemd_pv() { diff --git a/sys-fs/multipath-tools/multipath-tools-0.8.3.ebuild b/sys-fs/multipath-tools/multipath-tools-0.8.4.ebuild index 8be358bc905e..ab4f6f9cd3c8 100644 --- a/sys-fs/multipath-tools/multipath-tools-0.8.3.ebuild +++ b/sys-fs/multipath-tools/multipath-tools-0.8.4.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="7" @@ -14,28 +14,30 @@ SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86" IUSE="systemd rbd" +BDEPEND="virtual/pkgconfig" + RDEPEND=" dev-libs/json-c:= dev-libs/libaio dev-libs/userspace-rcu:= >=sys-fs/lvm2-2.02.45 - >=virtual/udev-171 + >=virtual/libudev-232-r3 sys-libs/readline:0= rbd? ( sys-cluster/ceph ) systemd? ( sys-apps/systemd ) " + DEPEND="${RDEPEND}" -BDEPEND=" - virtual/pkgconfig -" CONFIG_CHECK="~DM_MULTIPATH" RESTRICT="test" PATCHES=( - "${FILESDIR}"/${PN}-0.7.5-respect-flags.patch + "${FILESDIR}"/${PN}-0.8.4-respect-flags.patch "${FILESDIR}"/${PN}-0.8.3-no-gziped-docs.patch + "${FILESDIR}"/${PN}-0.8.3-json-c-0.14.patch + "${FILESDIR}"/${PN}-0.8.4-parallel_make_fix.patch ) get_systemd_pv() { @@ -67,15 +69,17 @@ src_compile() { } src_install() { - dodir /sbin /usr/share/man/man{5,8} + dodir /sbin /usr/share/man/man{3,5,8} emake \ DESTDIR="${D}" \ + RUN=run \ SYSTEMD=$(get_systemd_pv) \ unitdir="$(systemd_get_systemunitdir)" \ libudevdir='${prefix}'/"$(get_udevdir)" \ + pkgconfdir='${prefix}'/usr/'${LIB}'/pkgconfig \ install - newinitd "${FILESDIR}"/rc-multipathd multipathd + newinitd "${FILESDIR}"/multipathd-r1.rc multipathd newinitd "${FILESDIR}"/multipath.rc multipath einstalldocs |