Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 458216 - sys-fs/mdadm-3.2.6-r1 - Patch to build static executable
Summary: sys-fs/mdadm-3.2.6-r1 - Patch to build static executable
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-02-19 02:02 UTC by Joe M
Modified: 2013-02-20 06:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to build mdadm.static (0001-updated-mdadm-build-to-build-mdadm.static.patch,6.17 KB, patch)
2013-02-19 02:03 UTC, Joe M
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joe M 2013-02-19 02:02:54 UTC
Hello,

"make mdadm.static" builds mdadm.static, without any library dependencies.

Added the above to the ebuild. Below is the patch to do the above.

Thanks
Joe
From 7d2a23ce3e00905a69f4cc770b4392cd534658b3 Mon Sep 17 00:00:00 2001
From: joe9 <joe9mail@gmail.com>
Date: Mon, 18 Feb 2013 20:56:16 -0500
Subject: [PATCH] updated mdadm build to build mdadm.static

---
 sys-fs/mdadm/Manifest              | 18 ++----------------
 sys-fs/mdadm/mdadm-3.2.6-r1.ebuild |  3 ++-
 2 files changed, 4 insertions(+), 17 deletions(-)

diff --git a/sys-fs/mdadm/Manifest b/sys-fs/mdadm/Manifest
index ec60a0c..a4f9193 100644
--- a/sys-fs/mdadm/Manifest
+++ b/sys-fs/mdadm/Manifest
@@ -1,6 +1,3 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA256
-
 AUX mdadm-2.6-syslog-updates.patch 1117 SHA256 207fd5ec76829fed5310f766001686807c623fe3eee541701f3366f96ef77b86 SHA512 268838ff1ff262b4ce6fdfda16b5b062b4debf0e4a9fa7b9e6e129d3ee60bac96f461ca02fa5663e166678cc03ef488eb24d160486a7504366deaedc42c05d83 WHIRLPOOL a2a806eab4fe0c116ce4c0d9d50ad6b70a1f2f9a1351622f1536f84764382bcb0fd53891e121d6b05349ae423ea0f455dd94027e51ccf09d661c4cf29a375c46
 AUX mdadm-2.6.4-mdassemble.patch 465 SHA256 015321cbb219f80444c9d56d01bde36f828d2814c57712a7655bdbae811ff8c4 SHA512 95e405b04fd7ed944e8c80840ada3b32e35c86aa260b27e827f2e8021a90d03ff644eba00fcfcd9def4ed7e1e672aba0ccb68bbb5840b34a34a68a8cb68cf727 WHIRLPOOL 9fde86d14b32e6c8345df0ca4d6baecb433389ebbb2b035c8142c2b85ccdecebd0bdf7f8edbe092c65420213ca43289055d80beee2a65c10ee484f259c42e102
 AUX mdadm-3.0-dont-make-man.patch 278 SHA256 bfc42300913a178c3bcd5f9af4c721893224b2741beddcfba6498d012b1d5679 SHA512 571a022b92c090e743adfdf2f7e0609d86c2bf729bcff42a002f2bfc999d5f814540753cd44b04eb4656e53b70679ab7381e688399a6cdd992a433cde3612140 WHIRLPOOL 0808d47b9a48fd799368d1e4334de8dd54e12f04aeb0458a7cbf87e2a502aa7084b9d1f8c97feaf32f438a645dab314e400c7c99b743f094e25992b136ef3ec0
@@ -25,18 +22,7 @@ EBUILD mdadm-3.1.4.ebuild 2277 SHA256 63890f88df3b70f7ccc7584f99a6c66ae7435eb4e4
 EBUILD mdadm-3.1.5.ebuild 2235 SHA256 038781a904accd76b9484df7317765c374d5c910beb0c0f7ec57deaafd0737a8 SHA512 ea4a730844ef093defd9a91acedbd00865a1d35eec9f378484c5290959685727d1ef38c4d7056584fe647fc034ae81b21ba504f2e25f7f77a1a310bf7e9ba889 WHIRLPOOL 39f25b4c53fbe3caa8a577b5089f3c8d79c32c49930c5166ee674250d3969b5a7ca7af013d0793da06be59170179779b9175af5d3b8def7d26dcd32d8829564b
 EBUILD mdadm-3.2.3-r2.ebuild 2018 SHA256 6607052b8b7d8260ba6362cf893065e39850b04bce4319ecb6da81b1d1c399d9 SHA512 10fa169071206d997e8b45838c9e16acd5670ab1404d75a9f4881b8d5730b7fa3c24966ee343cbc008c05a388b28f38c0c9efab29ce3320836450fe176404044 WHIRLPOOL 13de1db4fb8727fd1a6d20239098705aca111fb35e97adc8a7c20b743c030b55ddd9b9190df7206f7f1787a161636bcbf9b4c6cd0b4060de27f33b38b9b4f2b5
 EBUILD mdadm-3.2.5-r1.ebuild 1989 SHA256 6cc4f775d1bc3bb6204f80db64c14104da5f13aa3a0a5245577a845063f37211 SHA512 d1f784fbefafe5393a97313dfc372201ace3d7f2caa10f52eb81a6bf9d004e17b5cf2efdd83fc2e165ecb1051a60db6494d8d79bb59446fbb2cb5943668678a9 WHIRLPOOL 3df9ab6b72c2b582bbd16576e25c9533587bdc421a57e4086a41a53388a6a7e2a3abe404fe103df60700803b1c94a2752ae05660bcc257d448b33aa8509989e7
-EBUILD mdadm-3.2.6-r1.ebuild 1955 SHA256 b54b8c459d7183170188ac03a14df56fddea0ab8d2af5a220abfde9cf842fbc1 SHA512 02d17f7ff3b7b0b662f2a19089d888c17ba1042db70e4929c4735297d6a0e87fe10d124d4131413dca2253e05b30e69ba70451b39c208bb39ae62601e58d24ff WHIRLPOOL 88212e2ca04facb59d11ea2f90a748fff6fa0c5c899915e93c9633a9443dbbb5fc62298a9a67c57bcb2c9cf9ee7cf554b1de5bb68296bc1dc88445e84adb8a4d
-EBUILD mdadm-3.2.6.ebuild 1960 SHA256 6acbe9258f052b821d6396b7565684a1a2bad0caf9c2c73e7d84d37c98071569 SHA512 aaa111b614a1cccd30143da2d9fef989960ac4897dc97d84d8af536681ab7be562ef59d0d3978a092a194fe700807e5f5ffd67bbf82e01338bd5b8b4384e2a17 WHIRLPOOL 11a5ff3ca2fb7e71ff0c48567079aa2a3a460aaea85d566ef8354be6ad1ca494c61ac90e545ce0bff04af432948e8d19bd859469c09157ad65098f8b1c560662
+EBUILD mdadm-3.2.6-r1.ebuild 1989 SHA256 18a2a9cf4a905cbc49a158d073fd2fb87572740867c1c4e1653f49d12b6febca SHA512 19386d2c9dfc1568d508eec93fb0b933ffc432c9514e5e9330757033ece5adfca80d5c959afd8c54695b0559d576d3d271ab02adf5ad916c018401d1c8cb8853 WHIRLPOOL b4baa0018de16638618cd79d1eb6b245fb304a09c37ac5779d4b660c5a094fc5b17fb92c1bb1c82ce09a8f036d868272e3741a0d22f65c45d53a792c25040e03
+EBUILD mdadm-3.2.6.ebuild 1994 SHA256 fe1c34d4eed4bf39a5892f75a1ae41d74862f4b7e6a779d22d99064aa25ffcde SHA512 63712d998bd733f1c74ee69cd06a545c0a3edeefedb0421b7fe634cdc20bcbfbd571741e2813038179d7b6ca1f026265f4c4dcc043d005f786087d758bec99f4 WHIRLPOOL 7cde95ea538206c730ec64538d2a4d21e94a3233fcacd21649bbe035c2b4da8e520c83c7a9292650fe72d8e45b53987119d2a2e0a4f817b3f532da5a52409dc6
 MISC ChangeLog 24815 SHA256 e4c7b1a7995103e0aa6446238ae038930982234b4f39108c8cd01ba91cf968ac SHA512 1275ffa5bb66a98a83160e4eff0d23b49af1dc8c817e2710343b7e3b7a9b367a9d56db474226f225354597a28998de321635d570435ad795687dd32f2765deb1 WHIRLPOOL d33597524ae3dd26d632c64b687dd7f43279d95390d0c84d95505323507f630f7b66710e39aa8199fa91052103da6e933a4c5843ad9e20290e222b8e8b52e609
 MISC metadata.xml 164 SHA256 f5f2891f2a4791cd31350bb2bb572131ad7235cd0eeb124c9912c187ac10ce92 SHA512 8eb0d5153d388f6ea069c64b93882244816a0a09aecc0d73cb872121ce0eb24c5ccafa96aad0b620b2300f319e1af101fa7fa6c5d0d561719d49bb07da0a2eca WHIRLPOOL 11a1441bddb7a6c69653c663902b7da5767ae6ad515ac2aabfc42fe37927a1ccc21472deeee454009ff720201a41c3e4a912df42661a0a87150fb46126da2d52
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.19 (GNU/Linux)
-
-iQEcBAEBCAAGBQJRFQFSAAoJEEdUh39IaPFN95MH/2WgqDZoQMSqbSb+fKn3J+R7
-Dmm0utCIOCGkn2STbeYC6JSMfo8a3eYGzXFkbfLfhX3yB5JQ8n8wpPFqikIfgRNd
-OH8U5Rn709B2DcHS4OKjohkJ1RpAzCGLrQCXAPiESLBaDA8yMyHMJY0z9C7wERJ0
-70SQNwHXalMGuw53hEhiLfMkLMtuslc4jNTINYYpl8gslUxXGk8YFXzBHf2F85aj
-1GkKOAu8Xo22qweg1K3vIGjks641Gfq+pbvOkDGyURb5R2qL4CrJnKK1wEGDdiMk
-y9x+GyUh9byOK/WtunA3Oi8S1o4YCqmN6JxLwns4rq16IBMVtWmD7Fdf+IJuz/A=
-=SEsx
------END PGP SIGNATURE-----
diff --git a/sys-fs/mdadm/mdadm-3.2.6-r1.ebuild b/sys-fs/mdadm/mdadm-3.2.6-r1.ebuild
index 52376cc..909df95 100644
--- a/sys-fs/mdadm/mdadm-3.2.6-r1.ebuild
+++ b/sys-fs/mdadm/mdadm-3.2.6-r1.ebuild
@@ -40,7 +40,7 @@ mdadm_emake() {
 
 src_compile() {
 	use static && append-ldflags -static
-	mdadm_emake all mdassemble
+	mdadm_emake all mdassemble mdadm.static
 }
 
 src_test() {
@@ -53,6 +53,7 @@ src_install() {
 	emake DESTDIR="${D}" install
 	into /
 	dosbin mdassemble
+	dosbin mdadm.static
 	dodoc ChangeLog INSTALL TODO README* ANNOUNCE-${PV}
 
 	insinto /etc
-- 
1.7.12.4




Reproducible: Always




From 7d2a23ce3e00905a69f4cc770b4392cd534658b3 Mon Sep 17 00:00:00 2001
From: joe9 <joe9mail@gmail.com>
Date: Mon, 18 Feb 2013 20:56:16 -0500
Subject: [PATCH] updated mdadm build to build mdadm.static

---
 sys-fs/mdadm/Manifest              | 18 ++----------------
 sys-fs/mdadm/mdadm-3.2.6-r1.ebuild |  3 ++-
 2 files changed, 4 insertions(+), 17 deletions(-)

diff --git a/sys-fs/mdadm/Manifest b/sys-fs/mdadm/Manifest
index ec60a0c..a4f9193 100644
--- a/sys-fs/mdadm/Manifest
+++ b/sys-fs/mdadm/Manifest
@@ -1,6 +1,3 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA256
-
 AUX mdadm-2.6-syslog-updates.patch 1117 SHA256 207fd5ec76829fed5310f766001686807c623fe3eee541701f3366f96ef77b86 SHA512 268838ff1ff262b4ce6fdfda16b5b062b4debf0e4a9fa7b9e6e129d3ee60bac96f461ca02fa5663e166678cc03ef488eb24d160486a7504366deaedc42c05d83 WHIRLPOOL a2a806eab4fe0c116ce4c0d9d50ad6b70a1f2f9a1351622f1536f84764382bcb0fd53891e121d6b05349ae423ea0f455dd94027e51ccf09d661c4cf29a375c46
 AUX mdadm-2.6.4-mdassemble.patch 465 SHA256 015321cbb219f80444c9d56d01bde36f828d2814c57712a7655bdbae811ff8c4 SHA512 95e405b04fd7ed944e8c80840ada3b32e35c86aa260b27e827f2e8021a90d03ff644eba00fcfcd9def4ed7e1e672aba0ccb68bbb5840b34a34a68a8cb68cf727 WHIRLPOOL 9fde86d14b32e6c8345df0ca4d6baecb433389ebbb2b035c8142c2b85ccdecebd0bdf7f8edbe092c65420213ca43289055d80beee2a65c10ee484f259c42e102
 AUX mdadm-3.0-dont-make-man.patch 278 SHA256 bfc42300913a178c3bcd5f9af4c721893224b2741beddcfba6498d012b1d5679 SHA512 571a022b92c090e743adfdf2f7e0609d86c2bf729bcff42a002f2bfc999d5f814540753cd44b04eb4656e53b70679ab7381e688399a6cdd992a433cde3612140 WHIRLPOOL 0808d47b9a48fd799368d1e4334de8dd54e12f04aeb0458a7cbf87e2a502aa7084b9d1f8c97feaf32f438a645dab314e400c7c99b743f094e25992b136ef3ec0
@@ -25,18 +22,7 @@ EBUILD mdadm-3.1.4.ebuild 2277 SHA256 63890f88df3b70f7ccc7584f99a6c66ae7435eb4e4
 EBUILD mdadm-3.1.5.ebuild 2235 SHA256 038781a904accd76b9484df7317765c374d5c910beb0c0f7ec57deaafd0737a8 SHA512 ea4a730844ef093defd9a91acedbd00865a1d35eec9f378484c5290959685727d1ef38c4d7056584fe647fc034ae81b21ba504f2e25f7f77a1a310bf7e9ba889 WHIRLPOOL 39f25b4c53fbe3caa8a577b5089f3c8d79c32c49930c5166ee674250d3969b5a7ca7af013d0793da06be59170179779b9175af5d3b8def7d26dcd32d8829564b
 EBUILD mdadm-3.2.3-r2.ebuild 2018 SHA256 6607052b8b7d8260ba6362cf893065e39850b04bce4319ecb6da81b1d1c399d9 SHA512 10fa169071206d997e8b45838c9e16acd5670ab1404d75a9f4881b8d5730b7fa3c24966ee343cbc008c05a388b28f38c0c9efab29ce3320836450fe176404044 WHIRLPOOL 13de1db4fb8727fd1a6d20239098705aca111fb35e97adc8a7c20b743c030b55ddd9b9190df7206f7f1787a161636bcbf9b4c6cd0b4060de27f33b38b9b4f2b5
 EBUILD mdadm-3.2.5-r1.ebuild 1989 SHA256 6cc4f775d1bc3bb6204f80db64c14104da5f13aa3a0a5245577a845063f37211 SHA512 d1f784fbefafe5393a97313dfc372201ace3d7f2caa10f52eb81a6bf9d004e17b5cf2efdd83fc2e165ecb1051a60db6494d8d79bb59446fbb2cb5943668678a9 WHIRLPOOL 3df9ab6b72c2b582bbd16576e25c9533587bdc421a57e4086a41a53388a6a7e2a3abe404fe103df60700803b1c94a2752ae05660bcc257d448b33aa8509989e7
-EBUILD mdadm-3.2.6-r1.ebuild 1955 SHA256 b54b8c459d7183170188ac03a14df56fddea0ab8d2af5a220abfde9cf842fbc1 SHA512 02d17f7ff3b7b0b662f2a19089d888c17ba1042db70e4929c4735297d6a0e87fe10d124d4131413dca2253e05b30e69ba70451b39c208bb39ae62601e58d24ff WHIRLPOOL 88212e2ca04facb59d11ea2f90a748fff6fa0c5c899915e93c9633a9443dbbb5fc62298a9a67c57bcb2c9cf9ee7cf554b1de5bb68296bc1dc88445e84adb8a4d
-EBUILD mdadm-3.2.6.ebuild 1960 SHA256 6acbe9258f052b821d6396b7565684a1a2bad0caf9c2c73e7d84d37c98071569 SHA512 aaa111b614a1cccd30143da2d9fef989960ac4897dc97d84d8af536681ab7be562ef59d0d3978a092a194fe700807e5f5ffd67bbf82e01338bd5b8b4384e2a17 WHIRLPOOL 11a5ff3ca2fb7e71ff0c48567079aa2a3a460aaea85d566ef8354be6ad1ca494c61ac90e545ce0bff04af432948e8d19bd859469c09157ad65098f8b1c560662
+EBUILD mdadm-3.2.6-r1.ebuild 1989 SHA256 18a2a9cf4a905cbc49a158d073fd2fb87572740867c1c4e1653f49d12b6febca SHA512 19386d2c9dfc1568d508eec93fb0b933ffc432c9514e5e9330757033ece5adfca80d5c959afd8c54695b0559d576d3d271ab02adf5ad916c018401d1c8cb8853 WHIRLPOOL b4baa0018de16638618cd79d1eb6b245fb304a09c37ac5779d4b660c5a094fc5b17fb92c1bb1c82ce09a8f036d868272e3741a0d22f65c45d53a792c25040e03
+EBUILD mdadm-3.2.6.ebuild 1994 SHA256 fe1c34d4eed4bf39a5892f75a1ae41d74862f4b7e6a779d22d99064aa25ffcde SHA512 63712d998bd733f1c74ee69cd06a545c0a3edeefedb0421b7fe634cdc20bcbfbd571741e2813038179d7b6ca1f026265f4c4dcc043d005f786087d758bec99f4 WHIRLPOOL 7cde95ea538206c730ec64538d2a4d21e94a3233fcacd21649bbe035c2b4da8e520c83c7a9292650fe72d8e45b53987119d2a2e0a4f817b3f532da5a52409dc6
 MISC ChangeLog 24815 SHA256 e4c7b1a7995103e0aa6446238ae038930982234b4f39108c8cd01ba91cf968ac SHA512 1275ffa5bb66a98a83160e4eff0d23b49af1dc8c817e2710343b7e3b7a9b367a9d56db474226f225354597a28998de321635d570435ad795687dd32f2765deb1 WHIRLPOOL d33597524ae3dd26d632c64b687dd7f43279d95390d0c84d95505323507f630f7b66710e39aa8199fa91052103da6e933a4c5843ad9e20290e222b8e8b52e609
 MISC metadata.xml 164 SHA256 f5f2891f2a4791cd31350bb2bb572131ad7235cd0eeb124c9912c187ac10ce92 SHA512 8eb0d5153d388f6ea069c64b93882244816a0a09aecc0d73cb872121ce0eb24c5ccafa96aad0b620b2300f319e1af101fa7fa6c5d0d561719d49bb07da0a2eca WHIRLPOOL 11a1441bddb7a6c69653c663902b7da5767ae6ad515ac2aabfc42fe37927a1ccc21472deeee454009ff720201a41c3e4a912df42661a0a87150fb46126da2d52
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.19 (GNU/Linux)
-
-iQEcBAEBCAAGBQJRFQFSAAoJEEdUh39IaPFN95MH/2WgqDZoQMSqbSb+fKn3J+R7
-Dmm0utCIOCGkn2STbeYC6JSMfo8a3eYGzXFkbfLfhX3yB5JQ8n8wpPFqikIfgRNd
-OH8U5Rn709B2DcHS4OKjohkJ1RpAzCGLrQCXAPiESLBaDA8yMyHMJY0z9C7wERJ0
-70SQNwHXalMGuw53hEhiLfMkLMtuslc4jNTINYYpl8gslUxXGk8YFXzBHf2F85aj
-1GkKOAu8Xo22qweg1K3vIGjks641Gfq+pbvOkDGyURb5R2qL4CrJnKK1wEGDdiMk
-y9x+GyUh9byOK/WtunA3Oi8S1o4YCqmN6JxLwns4rq16IBMVtWmD7Fdf+IJuz/A=
-=SEsx
------END PGP SIGNATURE-----
diff --git a/sys-fs/mdadm/mdadm-3.2.6-r1.ebuild b/sys-fs/mdadm/mdadm-3.2.6-r1.ebuild
index 52376cc..909df95 100644
--- a/sys-fs/mdadm/mdadm-3.2.6-r1.ebuild
+++ b/sys-fs/mdadm/mdadm-3.2.6-r1.ebuild
@@ -40,7 +40,7 @@ mdadm_emake() {
 
 src_compile() {
 	use static && append-ldflags -static
-	mdadm_emake all mdassemble
+	mdadm_emake all mdassemble mdadm.static
 }
 
 src_test() {
@@ -53,6 +53,7 @@ src_install() {
 	emake DESTDIR="${D}" install
 	into /
 	dosbin mdassemble
+	dosbin mdadm.static
 	dodoc ChangeLog INSTALL TODO README* ANNOUNCE-${PV}
 
 	insinto /etc
-- 
1.7.12.4
Comment 1 Joe M 2013-02-19 02:03:26 UTC
Created attachment 339326 [details, diff]
patch to build mdadm.static
Comment 2 SpanKY gentoo-dev 2013-02-19 07:02:37 UTC
there is already a USE=static flag
Comment 3 Joe M 2013-02-20 03:08:45 UTC
Hello,

> --- Comment #2 from SpanKY <vapier@gentoo.org> ---
> there is already a USE=static flag
>

But, the USE=static seems to be building all the executables as static executables. I need only mdadm to be static as it can then be copied to initramfs.

Thanks for checking it out,
Joe
Comment 4 SpanKY gentoo-dev 2013-02-20 06:23:49 UTC
(In reply to comment #3)

sorry, but there are no plans to support that