diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2014-08-27 07:26:34 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2014-08-27 07:26:34 +0000 |
commit | afe125dfeb9bd74b2fa07900cf14877c90a2f357 (patch) | |
tree | c9a25b5746f5b552f7a806fe4d79cbd2c0df9d6e /sys-fs/lvm2 | |
parent | Version bump. (diff) | |
download | historical-afe125dfeb9bd74b2fa07900cf14877c90a2f357.tar.gz historical-afe125dfeb9bd74b2fa07900cf14877c90a2f357.tar.bz2 historical-afe125dfeb9bd74b2fa07900cf14877c90a2f357.zip |
Revision bump for last correction in files/lvm2-2.02.106-pthread-pkgconfig.patch and to have ~arch version with REQUIRED_USE blocking usage of USE="static udev" wrt #520450.
Package-Manager: portage-2.2.10/cvs/Linux x86_64
Manifest-Sign-Key: 0x4868F14D
Diffstat (limited to 'sys-fs/lvm2')
-rw-r--r-- | sys-fs/lvm2/ChangeLog | 9 | ||||
-rw-r--r-- | sys-fs/lvm2/Manifest | 17 | ||||
-rw-r--r-- | sys-fs/lvm2/lvm2-2.02.109-r1.ebuild | 270 |
3 files changed, 287 insertions, 9 deletions
diff --git a/sys-fs/lvm2/ChangeLog b/sys-fs/lvm2/ChangeLog index 7c15885f6dc4..f85421ae3882 100644 --- a/sys-fs/lvm2/ChangeLog +++ b/sys-fs/lvm2/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sys-fs/lvm2 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/ChangeLog,v 1.367 2014/08/24 17:24:16 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/ChangeLog,v 1.368 2014/08/27 07:26:17 ssuominen Exp $ + +*lvm2-2.02.109-r1 (27 Aug 2014) + + 27 Aug 2014; Samuli Suominen <ssuominen@gentoo.org> +lvm2-2.02.109-r1.ebuild: + Revision bump for last correction in files/lvm2-2.02.106-pthread- + pkgconfig.patch and to have ~arch version with REQUIRED_USE blocking usage of + USE="static udev" wrt #520450. 24 Aug 2014; Samuli Suominen <ssuominen@gentoo.org> files/lvm2-2.02.106-pthread-pkgconfig.patch: diff --git a/sys-fs/lvm2/Manifest b/sys-fs/lvm2/Manifest index 72e7ceb9c9ab..607d6055c43d 100644 --- a/sys-fs/lvm2/Manifest +++ b/sys-fs/lvm2/Manifest @@ -29,17 +29,18 @@ AUX lvmetad.initd-2.02.105-r2 405 SHA256 60accb4b6114753232f2db0adf3fc3f46d4459b DIST LVM2.2.02.103.tgz 1343887 SHA256 71c5a2e8842ed2f13f52e02b44eb183110a3410dedd1e117348e4eecc29d3c2a SHA512 1a9920947312e3e248bff7ff5d5eb54dec3f3b05eb3388fa92f95369b26ae8e6838186f87d817b09e8c635ddc3cdf51bc1d07c2a9d65fd7eab33598998bb7afe WHIRLPOOL de96dd8b7fb46ec777f34169759852ee5ef03ccdc93e110bf63c92dddb9cf4f805635444ceeead6b581610d2a23217d3b4729c286f016623f73b99c0b35a42a0 DIST LVM2.2.02.109.tgz 1482167 SHA256 7bc95ba5209c8aa5bd492167b2e2797f156852ed11cfc63fb783070ade8e65e7 SHA512 210645cccf297112ffdbc63e0336385c31b2d17d226ae10813ba8ffd4f01ce07af44a4134e60644283e4360e10e925113e867378502ae0166f3fc91258caea68 WHIRLPOOL 7f2d91446f502440b2ed73df0f2ce29069364bbb198e675223b61c17e5cc6e1c162ce60a977cb07b71e44d672c688bbbf0247380f1b9c5adf325cf324f4c4bb7 EBUILD lvm2-2.02.103.ebuild 7448 SHA256 d1ff4dabde2e227336466ab1d375b746032f2ba394614fd2aec2ab074e7047de SHA512 9d5b0f2df95d7c248ec92e1826f617f37c8e1b486170df09c923ef54e92977207db9134b975554f3720db19aee9234caf6a637bb706a6f69122595b900ddf474 WHIRLPOOL e718bb0a35fc3e25707c30b008d4a32e12ecb71dcb5382e0bb29eefe06999a4a6f322df39b935fb606d7396db6e4cda7dccd5b0a588a7910846ffc0e7da8bfac +EBUILD lvm2-2.02.109-r1.ebuild 9187 SHA256 ddfa1d7d013b7747117f28174d7e27fa3d031bdc663f266c1fe41a105d971b0b SHA512 b30bbeb4760308b2c463e73fc9769babac830e52e899afa58f499b492f67e922de923769d7514c252f6cbb6573c279464dd7a7e32e601d7105176e0fd1658d2e WHIRLPOOL 09749a969fcbbeee358ca08dfffeeb108b801a30be6c67fbae99d52379d974618c18b6c22fb08752b2ae73ac59160ace5e7ccec284aa68fb5340ccf64438ec2f EBUILD lvm2-2.02.109.ebuild 9148 SHA256 b534de057ea68fd8a3fbe7e490550775e4397544c23b255584573f6ef91ce2a9 SHA512 4f04bbb46022c6a9b4d11bf2db7f319fd9ba4fcb9c41f974ba173f998b559c6f5dc23b955f0b81c41cedf3f05eb9056c62dfdab75b5218325f556fca271d0a4d WHIRLPOOL 68ba666abe8843503a7142b0053036a2bbed87ddd9e560845a2b6b52ea23c7bf95bbf94fcd794113df434838ed7ba1998fa754a279ff14e4d9cf7cf8c03776c4 -MISC ChangeLog 70938 SHA256 fa6d4202f4f896e82f1c1a76d1444ae17474f5417747963f2218e43db850aec5 SHA512 b4a1d0d1afc504a0b2fbc13b64ac7591a689bdb318a9c1654c6d92af8a416dfedaf541a0f86ed69e21d0b2e818ae053e0df84e167819a72c2a331e5734b9233d WHIRLPOOL afc42915e1f139052731ab21dcf15042bb19de5f28f2c840d5a8b990a9c608bc6a359bcde0579898309db874a257bea5d01dce7b094c9f0913ab61228849e876 +MISC ChangeLog 71233 SHA256 8def218e7cfda0f8737b778586919142eb054dfd43c4e680fae6bf33cfed2841 SHA512 4b2f592867f57ec3c59fed2727638134db7d2b9e1b2338aa0c33c2de5c0a5a33fce28b30d9651d34f6d6291204b0eff2186e26bd08956fa3d5974b2cd37d9832 WHIRLPOOL b0618619d127d3f76bd72921e190082fc09d9fbdde66d1d3b50185364238ea5710d820cd463f7ee934a9e20e642dec9a536c9f989beb55ac67e55baf93254cb3 MISC metadata.xml 995 SHA256 a2be36b695dab8ef65772af8d808cdc7a5c5855e2c9104060e7232e21b984216 SHA512 642abe2a196ffeaf3a67530befa8dc123f1e3e1238bf55d38c0affea82ab5b2f9e56da6b303410845c625494a59323ac8570f40e0f8a406db76295059958361a WHIRLPOOL cba3a6dd12fafc4719050082ee740d03ef0ed68e074b556a0c1f15f4a7b328d9b826d2b7ab3d3f19546de92e907a3fd466792db67423cb8630d5313154d5b6f2 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 -iQEcBAEBCAAGBQJT+h9DAAoJEEdUh39IaPFNrLcH/0tiTjaKI8+gEQPjJl6TBrIH -RdCT9bCYn6qYecytBmWJej0CBQYLfxvYIjuP1TmH5vM0QVykEo7b82X7rIWzZtAM -QVYyLygpGOnULmc5fBEXVL0TSrrKv2Y2M4RwGyIWOv1khoKcLoLG9+1f6sg4mnKe -TXlWiiktOjzz8BCG1oXTcZrsVZ/iyn3paK15U5BIegdxU2jCOh4n13J75PdtjavR -6X6FnZRVng5nH2O81hU3ANbl1zZKe0dznmIeRfeQ09CBMYvfIOjzPVboFHRphp39 -3T+IaZ2HQK095tlRMt0mRRTybnUekXPz3SMoX+bfxzOYsqBK/9U11QtUQIVwNq8= -=dzbR +iQEcBAEBCAAGBQJT/YeRAAoJEEdUh39IaPFNk2QH+QHQKK26G+zLLi5e2KrTp9AL +uN5z6ICBB1QdI+oahrk+Jd2mEon48Aa97/9LAEne2P+SxwvNmaYJTFnUFGm71zbu +IqLdmDi9zJMiWXri0rVZUbw+zo3j7sfbgmXkdhB1Rcf3/V9/6cy1bxQRkTTECmvf +4i90ioAuj9nKN5dMFcr2DHdRG/gsq5JpUOlndfCSBU76U+vNYwkFym6SAGiAPXI9 +9OJ1OhAumjP2WXU0Wc25JeeNEXdjltjYMfzrVrsZJfHbbYwagsk3XMx38MslMvv+ +6NzLlRuekON9/HnSFuSTXBCBkXnEzr9UQTGeNSa3o7PEyCiJGfh7YYDr/vZnoqM= +=D2Dl -----END PGP SIGNATURE----- diff --git a/sys-fs/lvm2/lvm2-2.02.109-r1.ebuild b/sys-fs/lvm2/lvm2-2.02.109-r1.ebuild new file mode 100644 index 000000000000..4cceda2afbae --- /dev/null +++ b/sys-fs/lvm2/lvm2-2.02.109-r1.ebuild @@ -0,0 +1,270 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/lvm2-2.02.109-r1.ebuild,v 1.1 2014/08/27 07:26:17 ssuominen Exp $ + +EAPI=5 +inherit autotools eutils linux-info multilib systemd toolchain-funcs udev flag-o-matic + +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 ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="readline static static-libs systemd clvm cman lvm1 lvm2create_initrd selinux +udev +thin device-mapper-only" +REQUIRED_USE="device-mapper-only? ( !clvm !cman !lvm1 !lvm2create_initrd !thin ) + static? ( !udev )" #520450 + +DEPEND_COMMON="clvm? ( cman? ( =sys-cluster/cman-3* ) =sys-cluster/libdlm-3* ) + readline? ( sys-libs/readline ) + udev? ( >=virtual/libudev-208:=[static-libs?] )" +# /run is now required for locking during early boot. /var cannot be assumed to +# be available -- thus, pull in recent enough baselayout for /run. +# This version of LVM is incompatible with cryptsetup <1.1.2. +RDEPEND="${DEPEND_COMMON} + >=sys-apps/baselayout-2.2 + !<sys-apps/openrc-0.11 + !<sys-fs/cryptsetup-1.1.2 + !!sys-fs/clvm + !!sys-fs/lvm-user + >=sys-apps/util-linux-2.16 + lvm2create_initrd? ( sys-apps/makedev ) + thin? ( >=sys-block/thin-provisioning-tools-0.3.0 )" +# note: thin- 0.3.0 is required to avoid --disable-thin_check_needs_check +DEPEND="${DEPEND_COMMON} + virtual/pkgconfig + >=sys-devel/binutils-2.20.1-r1 + static? ( + selinux? ( sys-libs/libselinux[static-libs] ) + udev? ( >=virtual/libudev-208:=[static-libs] ) + >=sys-apps/util-linux-2.16[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.108-example.conf.in.patch + + sed -i \ + -e "1iAR = $(tc-getAR)" \ + -e "s:CC ?= @CC@:CC = $(tc-getCC):" \ + make.tmpl.in || die #444082 + + sed -i -e '/FLAG/s:-O2::' configure{.in,} || die #480212 + + if use systemd && ! use device-mapper-only; then + sed -i -e '/use_lvmetad =/s:0:1:' conf/example.conf.in || die #514196 + fi + + sed -i -e "s:/usr/bin/true:$(type -P true):" scripts/blk_availability_systemd_red_hat.service.in || die #517514 + + # For upstream -- review and forward: + epatch "${FILESDIR}"/${PN}-2.02.63-always-make-static-libdm.patch + epatch "${FILESDIR}"/${PN}-2.02.56-lvm2create_initrd.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.108-static-pkgconfig-libs.patch #370217, #439414 + blkid + epatch "${FILESDIR}"/${PN}-2.02.106-pthread-pkgconfig.patch #492450 + + # Without thin-privision-tools, there is nothing to install for target install_man7: + use thin || { sed -i -e '/^install_lvm2/s:install_man7::' man/Makefile.in || die; } + + sed -i -e 's:|share):|shared):' configure.in || die #520640 + + eautoreconf +} + +src_configure() { + filter-flags -flto + local myconf + local buildmode + + myconf="${myconf} $(use_enable !device-mapper-only dmeventd)" + myconf="${myconf} $(use_enable !device-mapper-only cmdlib)" + myconf="${myconf} $(use_enable !device-mapper-only applib)" + myconf="${myconf} $(use_enable !device-mapper-only fsadm)" + myconf="${myconf} $(use_enable !device-mapper-only lvmetad)" + use device-mapper-only && myconf="${myconf} --disable-udev-systemd-background-jobs" + + # 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 + dmbuildmode=$(use !device-mapper-only && echo internal || echo none) + + # dmeventd requires mirrors to be internal, and snapshot available + # so we cannot disable them + myconf="${myconf} --with-mirrors=${dmbuildmode}" + myconf="${myconf} --with-snapshots=${dmbuildmode}" + if use thin; then + myconf="${myconf} --with-thin=internal --with-cache=internal" + local texec + for texec in check dump repair restore; do + myconf="${myconf} --with-thin-${texec}=${EPREFIX}/sbin/thin_${texec}" + myconf="${myconf} --with-cache-${texec}=${EPREFIX}/sbin/cache_${texec}" + done + else + myconf="${myconf} --with-thin=none --with-cache=none" + fi + + 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 + + econf \ + $(use_enable readline) \ + $(use_enable selinux) \ + --enable-pkgconfig \ + --with-confdir="${EPREFIX}"/etc \ + --exec-prefix="${EPREFIX}" \ + --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-default-pid-dir=/run \ + $(use_enable udev udev_rules) \ + $(use_enable udev udev_sync) \ + $(use_with udev udevdir "$(get_udevdir)"/rules.d) \ + $(use_enable systemd udev-systemd-background-jobs) \ + "$(systemd_with_unitdir)" \ + ${myconf} \ + CLDFLAGS="${LDFLAGS}" +} + +src_compile() { + pushd include >/dev/null + emake + popd >/dev/null + + if use device-mapper-only ; then + emake device-mapper + else + emake + emake CC="$(tc-getCC)" -C scripts lvm2_activation_generator_systemd_red_hat + fi +} + +src_install() { + local inst + INSTALL_TARGETS="install install_systemd_units install_systemd_generators install_tmpfiles_configuration" + use device-mapper-only && INSTALL_TARGETS="install_device-mapper" + for inst in ${INSTALL_TARGETS}; do + emake DESTDIR="${D}" ${inst} + done + + newinitd "${FILESDIR}"/device-mapper.rc-2.02.105-r2 device-mapper + newconfd "${FILESDIR}"/device-mapper.conf-1.02.22-r3 device-mapper + + if use !device-mapper-only ; then + newinitd "${FILESDIR}"/dmeventd.initd-2.02.67-r1 dmeventd + newinitd "${FILESDIR}"/lvm.rc-2.02.105-r2 lvm + newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm + + newinitd "${FILESDIR}"/lvm-monitoring.initd-2.02.105-r2 lvm-monitoring + newinitd "${FILESDIR}"/lvmetad.initd-2.02.105-r2 lvmetad + fi + + if use clvm; then + newinitd "${FILESDIR}"/clvmd.rc-2.02.39 clvmd + newconfd "${FILESDIR}"/clvmd.confd-2.02.39 clvmd + fi + + if use static-libs; then + dolib.a libdm/ioctl/libdevmapper.a + dolib.a libdaemon/client/libdaemonclient.a #462908 + #gen_usr_ldscript libdevmapper.so + dolib.a daemons/dmeventd/libdevmapper-event.a + #gen_usr_ldscript libdevmapper-event.so + else + rm -f "${ED}"usr/$(get_libdir)/{libdevmapper-event,liblvm2cmd,liblvm2app,libdevmapper}.a + fi + + if use lvm2create_initrd; then + dosbin scripts/lvm2create_initrd/lvm2create_initrd + doman scripts/lvm2create_initrd/lvm2create_initrd.8 + newdoc scripts/lvm2create_initrd/README README.lvm2create_initrd + fi + + insinto /etc + doins "${FILESDIR}"/dmtab + + dodoc README VERSION* WHATS_NEW WHATS_NEW_DM doc/*.{c,txt} conf/*.conf +} + +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" +} |