sys-fs/stratisd: update ebuild with optional initramfs support

This commit is contained in:
Alexander Miroshnichenko 2020-07-14 13:02:16 +03:00
parent 808be0d1f4
commit 101f0541fb
Signed by: alex
GPG Key ID: E93720C6C73A77F4
2 changed files with 14 additions and 9 deletions

View File

@ -155,5 +155,5 @@ DIST winapi-x86_64-pc-windows-gnu-0.3.2.crate 3165198 BLAKE2B 3e1787d5eef457d1f6
DIST wincolor-0.1.6.crate 4799 BLAKE2B 37e72b9603d912b65dd59fe74f1158dd87783ef10511527e50795efc28711348a4c34ee27a2cb4ab523389f443c66ede77c471dd8c2e1bfadb6e8f22726e634e SHA512 d8d9e3a16918844d82cf1cddd7ffdd35cbeb8367b661108cc392d5ce636c270a27a307a4d0307553103356db2958114f269b5a007e4271dd1e6039d7c737e374 DIST wincolor-0.1.6.crate 4799 BLAKE2B 37e72b9603d912b65dd59fe74f1158dd87783ef10511527e50795efc28711348a4c34ee27a2cb4ab523389f443c66ede77c471dd8c2e1bfadb6e8f22726e634e SHA512 d8d9e3a16918844d82cf1cddd7ffdd35cbeb8367b661108cc392d5ce636c270a27a307a4d0307553103356db2958114f269b5a007e4271dd1e6039d7c737e374
EBUILD stratisd-1.0.6-r1.ebuild 2841 BLAKE2B baec1c4246fe28d31af4af533fb1b6ea199be97165ac1454e3fd95e580da5baaa5089ae064798e5411563477dcc160e09be73d039ffbfc61d18040ed02165367 SHA512 405aa9a8c182481e34bd97ecb45349bfc0ddddd2700505632d346b8314b48afe5fcbe08e885d66ad562c23ecfa613a3d3519734ade84e84e350fa2da41e6224e EBUILD stratisd-1.0.6-r1.ebuild 2841 BLAKE2B baec1c4246fe28d31af4af533fb1b6ea199be97165ac1454e3fd95e580da5baaa5089ae064798e5411563477dcc160e09be73d039ffbfc61d18040ed02165367 SHA512 405aa9a8c182481e34bd97ecb45349bfc0ddddd2700505632d346b8314b48afe5fcbe08e885d66ad562c23ecfa613a3d3519734ade84e84e350fa2da41e6224e
EBUILD stratisd-2.0.1-r2.ebuild 3244 BLAKE2B e94f0ecd2b244f9f6af9f66100f0c3a3247f3c55e06db8e88dfadbf96b3c716e201869379e089893dfc9e53715adc867b4303980b83a745975e1cd2b443eb2bd SHA512 0ef8acda0a6cb7ad419d7501a9cf9f98ddf9134ba584090364a92c0bc106e05f6497e9b5979b8df8f155332a40bd806706b1bfc84fe066429206f9e874685409 EBUILD stratisd-2.0.1-r2.ebuild 3244 BLAKE2B e94f0ecd2b244f9f6af9f66100f0c3a3247f3c55e06db8e88dfadbf96b3c716e201869379e089893dfc9e53715adc867b4303980b83a745975e1cd2b443eb2bd SHA512 0ef8acda0a6cb7ad419d7501a9cf9f98ddf9134ba584090364a92c0bc106e05f6497e9b5979b8df8f155332a40bd806706b1bfc84fe066429206f9e874685409
EBUILD stratisd-2.1.0-r1.ebuild 3745 BLAKE2B 65d067c4e90bb79d55e9d24e385b6796a3216a8e5fc3b13a2cb1e821c03624a270c22f29c79e00d5d9e5797030bfc2d9125facc6415e2044b69ddec03237ac69 SHA512 805b8f4aaa63e81a68c63652ef36aafec4d49279e5a9b8e06d1ce58ec6e3ef22b9fe6ed2820de930683deaf9b58ed2504535933c8b01c5f93aac1fc77fbc5e81 EBUILD stratisd-2.1.0-r2.ebuild 3888 BLAKE2B 9d820ef5994400b95388b62294146c8d918516555b7a597d403b3d2e996537123aeead040283f1f5d9eed87ca7ad0f840cc9390a8e3c8bacda260fd01f497d8b SHA512 87df7be861a20171965376510eefb71c3e73117ee50cd70c431cdd1d1668e0de77d756d039fdb81e6f06cbdc234daaa4c0ca3c7699ca2a8cb0726f18ac298f84
MISC metadata.xml 364 BLAKE2B 05556be8a2ea9f74b4592df7eb2038f3baee6c2863129b938540e509c241ede9651e8221dcc9abf13f015af316aafefafcf9e9121034cdaa1d5967b910e67be1 SHA512 ae850f4a01394975342a4e078a1486a179c4155cb262ad89a25073da25823d48989f7cb34673f4c71520f624f8619cb5932bff62b0c912af27ecc71fe8327a52 MISC metadata.xml 364 BLAKE2B 05556be8a2ea9f74b4592df7eb2038f3baee6c2863129b938540e509c241ede9651e8221dcc9abf13f015af316aafefafcf9e9121034cdaa1d5967b910e67be1 SHA512 ae850f4a01394975342a4e078a1486a179c4155cb262ad89a25073da25823d48989f7cb34673f4c71520f624f8619cb5932bff62b0c912af27ecc71fe8327a52

View File

@ -134,7 +134,7 @@ SRC_URI="https://github.com/stratis-storage/${PN}/archive/v${PV}.tar.gz -> ${P}.
LICENSE="MPL-2.0" LICENSE="MPL-2.0"
SLOT="0" SLOT="0"
KEYWORDS="~amd64 ~x86" KEYWORDS="~amd64 ~x86"
IUSE="elibc_musl" IUSE="elibc_musl initramfs"
BDEPEND=" BDEPEND="
>=virtual/rust-1.43.0 >=virtual/rust-1.43.0
@ -156,29 +156,34 @@ RDEPEND="
QA_FLAGS_IGNORED="/sbin/stratisd /usr/libexec/stratisd" QA_FLAGS_IGNORED="/sbin/stratisd /usr/libexec/stratisd"
PATCHES=( PATCHES=(
# Until feature will be released https://github.com/stratis-storage/project/issues/161 # Until feature will be released. https://github.com/stratis-storage/project/issues/161
${FILESDIR}/0001-disable-xfs-uuid-change-after-snapshot-create.patch ${FILESDIR}/0001-disable-xfs-uuid-change-after-snapshot-create.patch
# Until issue will be fixed https://github.com/stratis-storage/stratisd/issues/1780 # Until issue will be fixed. https://github.com/stratis-storage/stratisd/issues/1780
${FILESDIR}/0002-duplicate_check-disable.patch ${FILESDIR}/0002-duplicate_check-disable.patch
) )
src_prepare() { src_prepare() {
default default
# Fix musl build # Fix musl build. https://github.com/stratis-storage/devicemapper-rs/issues/560
cd ${WORKDIR}/cargo_home/gentoo/devicemapper-0.28.0 cd ${WORKDIR}/cargo_home/gentoo/devicemapper-0.28.0
eapply ${FILESDIR}/0001-Fix-issue-of-devicemapper-rs-compatibility-with-musl.patch eapply ${FILESDIR}/0001-Fix-issue-of-devicemapper-rs-compatibility-with-musl.patch
} }
src_compile(){ src_compile(){
if use initramfs; then
cargo_src_compile --no-default-features cargo_src_compile --no-default-features
mv "${S}"/target/release/stratisd "${S}"/target/release/stratisd-init mv "${S}"/target/release/stratisd "${S}"/target/release/stratisd-init || die
fi
cargo_src_compile --all-features cargo_src_compile --all-features
} }
src_install() { src_install() {
if use initramfs; then
exeinto /sbin exeinto /sbin
doexe "${S}"/target/release/stratisd-init doexe "${S}"/target/release/stratisd-init
fi
exeinto /usr/libexec exeinto /usr/libexec
doexe "${S}"/target/release/stratisd doexe "${S}"/target/release/stratisd