mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-19 13:31:28 +02:00
Merge pull request #124 from marineam/lvm
bump(sys-fs/lvm2): sync with upstream
This commit is contained in:
commit
0bb9526316
@ -3,10 +3,10 @@ DEPEND=|| ( dev-lang/ruby:2.9 dev-lang/ruby:2.8 dev-lang/ruby:2.7 dev-lang/ruby:
|
||||
DESCRIPTION=A suite of tools for thin provisioning on Linux.
|
||||
EAPI=5
|
||||
HOMEPAGE=https://github.com/jthornber/thin-provisioning-tools
|
||||
KEYWORDS=~alpha amd64 arm hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux
|
||||
KEYWORDS=alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~x86-linux
|
||||
LICENSE=GPL-3
|
||||
RDEPEND=|| ( dev-lang/ruby:2.9 dev-lang/ruby:2.8 dev-lang/ruby:2.7 dev-lang/ruby:2.6 dev-lang/ruby:2.5 dev-lang/ruby:2.4 dev-lang/ruby:2.3 dev-lang/ruby:2.2 dev-lang/ruby:2.1 dev-lang/ruby:2.0 dev-lang/ruby:1.9 dev-lang/ruby:1.8 ) dev-libs/expat
|
||||
SLOT=0
|
||||
SRC_URI=http://github.com/jthornber/thin-provisioning-tools/archive/v0.2.8.tar.gz -> thin-provisioning-tools-0.2.8.tar.gz
|
||||
_eclasses_=autotools 16761a2f972abd686713e5967ff3c754 libtool b1c8688e60f9580bcb9bb46e08737eb1 multilib 892e597faee02a5b94eb02ab512e7622 multiprocessing 89580da5ec17ad687fcde876c542b91e toolchain-funcs 51e6c948e72c43bcc8edc7544411c953
|
||||
_md5_=e5ee1b836da9ab0d719b2e43a54f7638
|
||||
_md5_=ae8dabb509363730cf27e1e46f519810
|
||||
|
@ -4,10 +4,10 @@ DESCRIPTION=A suite of tools for thin provisioning on Linux.
|
||||
EAPI=5
|
||||
HOMEPAGE=https://github.com/jthornber/thin-provisioning-tools
|
||||
IUSE=test
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux
|
||||
KEYWORDS=~alpha amd64 arm hppa ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~amd64-linux ~x86-linux
|
||||
LICENSE=GPL-3
|
||||
RDEPEND=dev-libs/expat
|
||||
SLOT=0
|
||||
SRC_URI=http://github.com/jthornber/thin-provisioning-tools/archive/v0.2.8.tar.gz -> thin-provisioning-tools-0.2.8.tar.gz
|
||||
_eclasses_=autotools 16761a2f972abd686713e5967ff3c754 libtool b1c8688e60f9580bcb9bb46e08737eb1 multilib 892e597faee02a5b94eb02ab512e7622 multiprocessing 89580da5ec17ad687fcde876c542b91e toolchain-funcs 51e6c948e72c43bcc8edc7544411c953
|
||||
_md5_=97eb91a276933d0d08a06f3e3b631690
|
||||
_md5_=95432ba1e1d971205159c0896095cf09
|
||||
|
@ -0,0 +1,13 @@
|
||||
DEFINED_PHASES=compile configure install prepare test unpack
|
||||
DEPEND=dev-libs/expat test? ( || ( dev-lang/ruby:2.9 dev-lang/ruby:2.8 dev-lang/ruby:2.7 dev-lang/ruby:2.6 dev-lang/ruby:2.5 dev-lang/ruby:2.4 dev-lang/ruby:2.3 dev-lang/ruby:2.2 dev-lang/ruby:2.1 dev-lang/ruby:2.0 dev-lang/ruby:1.9 dev-lang/ruby:1.8 ) dev-cpp/gmock dev-util/cucumber dev-util/aruba ) dev-libs/boost || ( >=sys-devel/automake-1.12:1.12 >=sys-devel/automake-1.13:1.13 ) >=sys-devel/autoconf-2.68 sys-devel/libtool
|
||||
DESCRIPTION=A suite of tools for thin provisioning on Linux.
|
||||
EAPI=5
|
||||
HOMEPAGE=https://github.com/jthornber/thin-provisioning-tools
|
||||
IUSE=test
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux
|
||||
LICENSE=GPL-3
|
||||
RDEPEND=dev-libs/expat
|
||||
SLOT=0
|
||||
SRC_URI=http://github.com/jthornber/thin-provisioning-tools/archive/v0.2.8.tar.gz -> thin-provisioning-tools-0.2.8.tar.gz https://github.com/denys-duchier/thin-provisioning-tools/commit/3a4c06b772bc8ca27bcf7c2d82abc46c65c23795.diff -> thin-provisioning-tools-0.2.8-boost.patch
|
||||
_eclasses_=autotools 16761a2f972abd686713e5967ff3c754 base ec46b36a6f6fd1d0b505a33e0b74e413 eutils 4878e7f88afc0ba0866ac112190b0fd4 libtool b1c8688e60f9580bcb9bb46e08737eb1 multilib 892e597faee02a5b94eb02ab512e7622 multiprocessing 89580da5ec17ad687fcde876c542b91e toolchain-funcs 51e6c948e72c43bcc8edc7544411c953 user d0a4d0735a6c0183d707ca919bd72f28
|
||||
_md5_=c7d3a7b1f5ee424c71aee81237a1c8ac
|
@ -0,0 +1,13 @@
|
||||
DEFINED_PHASES=configure install prepare test
|
||||
DEPEND=dev-libs/expat test? ( || ( dev-lang/ruby:2.9 dev-lang/ruby:2.8 dev-lang/ruby:2.7 dev-lang/ruby:2.6 dev-lang/ruby:2.5 dev-lang/ruby:2.4 dev-lang/ruby:2.3 dev-lang/ruby:2.2 dev-lang/ruby:2.1 dev-lang/ruby:2.0 dev-lang/ruby:1.9 dev-lang/ruby:1.8 ) dev-cpp/gmock dev-util/cucumber dev-util/aruba ) dev-libs/boost || ( >=sys-devel/automake-1.12:1.12 >=sys-devel/automake-1.13:1.13 ) >=sys-devel/autoconf-2.68 sys-devel/libtool
|
||||
DESCRIPTION=A suite of tools for thin provisioning on Linux.
|
||||
EAPI=5
|
||||
HOMEPAGE=http://github.com/jthornber/thin-provisioning-tools
|
||||
IUSE=test
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux
|
||||
LICENSE=GPL-3
|
||||
RDEPEND=dev-libs/expat
|
||||
SLOT=0
|
||||
SRC_URI=http://github.com/jthornber/thin-provisioning-tools/archive/v0.3.2.tar.gz -> thin-provisioning-tools-0.3.2.tar.gz
|
||||
_eclasses_=autotools 16761a2f972abd686713e5967ff3c754 eutils 4878e7f88afc0ba0866ac112190b0fd4 libtool b1c8688e60f9580bcb9bb46e08737eb1 multilib 892e597faee02a5b94eb02ab512e7622 multiprocessing 89580da5ec17ad687fcde876c542b91e toolchain-funcs 51e6c948e72c43bcc8edc7544411c953 user d0a4d0735a6c0183d707ca919bd72f28
|
||||
_md5_=03e5a72e86caa0fe5057c4a9d11a6e8a
|
@ -4,10 +4,10 @@ DESCRIPTION=User-land utilities for LVM2 (device-mapper) software.
|
||||
EAPI=5
|
||||
HOMEPAGE=http://sources.redhat.com/lvm2/
|
||||
IUSE=readline static static-libs clvm cman +lvm1 lvm2create_initrd selinux +udev +thin
|
||||
KEYWORDS=~alpha amd64 arm hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux
|
||||
KEYWORDS=alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=clvm? ( cman? ( =sys-cluster/cman-3* ) =sys-cluster/libdlm-3* ) readline? ( sys-libs/readline ) udev? ( >=virtual/udev-200[static-libs?] ) >=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.2.1 )
|
||||
SLOT=0
|
||||
SRC_URI=ftp://sources.redhat.com/pub/lvm2/LVM2.2.02.103.tgz ftp://sources.redhat.com/pub/lvm2/old/LVM2.2.02.103.tgz
|
||||
_eclasses_=autotools 16761a2f972abd686713e5967ff3c754 eutils 4878e7f88afc0ba0866ac112190b0fd4 libtool b1c8688e60f9580bcb9bb46e08737eb1 linux-info a9cbd6bbe2b28166e403321882f3c73c multilib 892e597faee02a5b94eb02ab512e7622 multiprocessing 89580da5ec17ad687fcde876c542b91e systemd 9f063b2cc19c5e8030911372aa246c4e toolchain-funcs 51e6c948e72c43bcc8edc7544411c953 udev a9a8d051efb42bfe884c1db82ce161de user d0a4d0735a6c0183d707ca919bd72f28 versionator 6601b4c5b3f019a993db59a50e1854e4
|
||||
_md5_=43675fd8ae14d35834fd21b0837d6902
|
||||
_eclasses_=autotools 16761a2f972abd686713e5967ff3c754 eutils 4878e7f88afc0ba0866ac112190b0fd4 libtool b1c8688e60f9580bcb9bb46e08737eb1 linux-info 2b8c53f6065bdee2d757472215a3088f multilib 892e597faee02a5b94eb02ab512e7622 multiprocessing 89580da5ec17ad687fcde876c542b91e systemd 9f063b2cc19c5e8030911372aa246c4e toolchain-funcs 51e6c948e72c43bcc8edc7544411c953 udev a9a8d051efb42bfe884c1db82ce161de user d0a4d0735a6c0183d707ca919bd72f28 versionator 6601b4c5b3f019a993db59a50e1854e4
|
||||
_md5_=34f0cf8be6d2e811576c84d4e3ec6d5f
|
||||
|
@ -1,13 +0,0 @@
|
||||
DEFINED_PHASES=compile configure install postinst prepare setup test
|
||||
DEPEND=clvm? ( cman? ( =sys-cluster/cman-3* ) =sys-cluster/libdlm-3* ) readline? ( sys-libs/readline ) udev? ( >=virtual/udev-200[static-libs?] ) virtual/pkgconfig >=sys-devel/binutils-2.20.1-r1 static? ( selinux? ( sys-libs/libselinux[static-libs] ) udev? ( virtual/udev[static-libs] ) ) || ( >=sys-devel/automake-1.12:1.12 >=sys-devel/automake-1.13:1.13 ) >=sys-devel/autoconf-2.68 sys-devel/libtool virtual/pkgconfig virtual/pkgconfig
|
||||
DESCRIPTION=User-land utilities for LVM2 (device-mapper) software.
|
||||
EAPI=5
|
||||
HOMEPAGE=http://sources.redhat.com/lvm2/
|
||||
IUSE=readline static static-libs clvm cman +lvm1 lvm2create_initrd selinux +udev +thin
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=clvm? ( cman? ( =sys-cluster/cman-3* ) =sys-cluster/libdlm-3* ) readline? ( sys-libs/readline ) udev? ( >=virtual/udev-200[static-libs?] ) >=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.2.8-r1 )
|
||||
SLOT=0
|
||||
SRC_URI=ftp://sources.redhat.com/pub/lvm2/LVM2.2.02.104.tgz ftp://sources.redhat.com/pub/lvm2/old/LVM2.2.02.104.tgz
|
||||
_eclasses_=autotools 16761a2f972abd686713e5967ff3c754 eutils 4878e7f88afc0ba0866ac112190b0fd4 libtool b1c8688e60f9580bcb9bb46e08737eb1 linux-info a9cbd6bbe2b28166e403321882f3c73c multilib 892e597faee02a5b94eb02ab512e7622 multiprocessing 89580da5ec17ad687fcde876c542b91e systemd 9f063b2cc19c5e8030911372aa246c4e toolchain-funcs 51e6c948e72c43bcc8edc7544411c953 udev a9a8d051efb42bfe884c1db82ce161de user d0a4d0735a6c0183d707ca919bd72f28 versionator 6601b4c5b3f019a993db59a50e1854e4
|
||||
_md5_=1c93947d940e411fe8dee29d35abb3a5
|
14
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-fs/lvm2-2.02.105-r2
vendored
Normal file
14
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-fs/lvm2-2.02.105-r2
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
DEFINED_PHASES=compile configure install postinst prepare setup test
|
||||
DEPEND=clvm? ( cman? ( =sys-cluster/cman-3* ) =sys-cluster/libdlm-3* ) readline? ( sys-libs/readline ) udev? ( >=virtual/udev-200[static-libs?] ) virtual/pkgconfig >=sys-devel/binutils-2.20.1-r1 static? ( selinux? ( sys-libs/libselinux[static-libs] ) udev? ( virtual/udev[static-libs] ) >=sys-apps/util-linux-2.16[static-libs] ) || ( >=sys-devel/automake-1.12:1.12 >=sys-devel/automake-1.13:1.13 ) >=sys-devel/autoconf-2.68 sys-devel/libtool virtual/pkgconfig virtual/pkgconfig
|
||||
DESCRIPTION=User-land utilities for LVM2 (device-mapper) software.
|
||||
EAPI=5
|
||||
HOMEPAGE=http://sources.redhat.com/lvm2/
|
||||
IUSE=readline static static-libs clvm cman lvm1 lvm2create_initrd selinux +udev +thin device-mapper-only
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=clvm? ( cman? ( =sys-cluster/cman-3* ) =sys-cluster/libdlm-3* ) readline? ( sys-libs/readline ) udev? ( >=virtual/udev-200[static-libs?] ) >=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.2.8-r1 )
|
||||
REQUIRED_USE=device-mapper-only? ( !clvm !cman !lvm1 !lvm2create_initrd !thin )
|
||||
SLOT=0
|
||||
SRC_URI=ftp://sources.redhat.com/pub/lvm2/LVM2.2.02.105.tgz ftp://sources.redhat.com/pub/lvm2/old/LVM2.2.02.105.tgz
|
||||
_eclasses_=autotools 16761a2f972abd686713e5967ff3c754 eutils 4878e7f88afc0ba0866ac112190b0fd4 flag-o-matic 65cef1287b9d62b1a0f180765d1e0c69 libtool b1c8688e60f9580bcb9bb46e08737eb1 linux-info 2b8c53f6065bdee2d757472215a3088f multilib 892e597faee02a5b94eb02ab512e7622 multiprocessing 89580da5ec17ad687fcde876c542b91e systemd 9f063b2cc19c5e8030911372aa246c4e toolchain-funcs 51e6c948e72c43bcc8edc7544411c953 udev a9a8d051efb42bfe884c1db82ce161de user d0a4d0735a6c0183d707ca919bd72f28 versionator 6601b4c5b3f019a993db59a50e1854e4
|
||||
_md5_=ef52786ef518cf886bab6b416e23d6aa
|
14
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-fs/lvm2-2.02.106
vendored
Normal file
14
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-fs/lvm2-2.02.106
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
DEFINED_PHASES=compile configure install postinst prepare setup test
|
||||
DEPEND=clvm? ( cman? ( =sys-cluster/cman-3* ) =sys-cluster/libdlm-3* ) readline? ( sys-libs/readline ) udev? ( >=virtual/udev-200[static-libs?] ) virtual/pkgconfig >=sys-devel/binutils-2.20.1-r1 static? ( selinux? ( sys-libs/libselinux[static-libs] ) udev? ( virtual/udev[static-libs] ) >=sys-apps/util-linux-2.16[static-libs] ) || ( >=sys-devel/automake-1.12:1.12 >=sys-devel/automake-1.13:1.13 ) >=sys-devel/autoconf-2.68 sys-devel/libtool virtual/pkgconfig virtual/pkgconfig
|
||||
DESCRIPTION=User-land utilities for LVM2 (device-mapper) software.
|
||||
EAPI=5
|
||||
HOMEPAGE=http://sources.redhat.com/lvm2/
|
||||
IUSE=readline static static-libs systemd clvm cman lvm1 lvm2create_initrd selinux +udev +thin device-mapper-only
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=clvm? ( cman? ( =sys-cluster/cman-3* ) =sys-cluster/libdlm-3* ) readline? ( sys-libs/readline ) udev? ( >=virtual/udev-200[static-libs?] ) >=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 )
|
||||
REQUIRED_USE=device-mapper-only? ( !clvm !cman !lvm1 !lvm2create_initrd !thin )
|
||||
SLOT=0
|
||||
SRC_URI=ftp://sources.redhat.com/pub/lvm2/LVM2.2.02.106.tgz ftp://sources.redhat.com/pub/lvm2/old/LVM2.2.02.106.tgz
|
||||
_eclasses_=autotools 16761a2f972abd686713e5967ff3c754 eutils 4878e7f88afc0ba0866ac112190b0fd4 flag-o-matic 65cef1287b9d62b1a0f180765d1e0c69 libtool b1c8688e60f9580bcb9bb46e08737eb1 linux-info 2b8c53f6065bdee2d757472215a3088f multilib 892e597faee02a5b94eb02ab512e7622 multiprocessing 89580da5ec17ad687fcde876c542b91e systemd 9f063b2cc19c5e8030911372aa246c4e toolchain-funcs 51e6c948e72c43bcc8edc7544411c953 udev a9a8d051efb42bfe884c1db82ce161de user d0a4d0735a6c0183d707ca919bd72f28 versionator 6601b4c5b3f019a993db59a50e1854e4
|
||||
_md5_=66197242715f060465885efde75aedd0
|
14
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-fs/lvm2-2.02.107
vendored
Normal file
14
sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-fs/lvm2-2.02.107
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
DEFINED_PHASES=compile configure install postinst prepare setup test
|
||||
DEPEND=clvm? ( cman? ( =sys-cluster/cman-3* ) =sys-cluster/libdlm-3* ) readline? ( sys-libs/readline ) udev? ( >=virtual/udev-200[static-libs?] ) virtual/pkgconfig >=sys-devel/binutils-2.20.1-r1 static? ( selinux? ( sys-libs/libselinux[static-libs] ) udev? ( virtual/udev[static-libs] ) >=sys-apps/util-linux-2.16[static-libs] ) || ( >=sys-devel/automake-1.12:1.12 >=sys-devel/automake-1.13:1.13 ) >=sys-devel/autoconf-2.68 sys-devel/libtool virtual/pkgconfig virtual/pkgconfig
|
||||
DESCRIPTION=User-land utilities for LVM2 (device-mapper) software.
|
||||
EAPI=5
|
||||
HOMEPAGE=http://sources.redhat.com/lvm2/
|
||||
IUSE=readline static static-libs systemd clvm cman lvm1 lvm2create_initrd selinux +udev +thin device-mapper-only
|
||||
KEYWORDS=~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=clvm? ( cman? ( =sys-cluster/cman-3* ) =sys-cluster/libdlm-3* ) readline? ( sys-libs/readline ) udev? ( >=virtual/udev-200[static-libs?] ) >=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 )
|
||||
REQUIRED_USE=device-mapper-only? ( !clvm !cman !lvm1 !lvm2create_initrd !thin )
|
||||
SLOT=0
|
||||
SRC_URI=ftp://sources.redhat.com/pub/lvm2/LVM2.2.02.107.tgz ftp://sources.redhat.com/pub/lvm2/old/LVM2.2.02.107.tgz
|
||||
_eclasses_=autotools 16761a2f972abd686713e5967ff3c754 eutils 4878e7f88afc0ba0866ac112190b0fd4 flag-o-matic 65cef1287b9d62b1a0f180765d1e0c69 libtool b1c8688e60f9580bcb9bb46e08737eb1 linux-info 2b8c53f6065bdee2d757472215a3088f multilib 892e597faee02a5b94eb02ab512e7622 multiprocessing 89580da5ec17ad687fcde876c542b91e systemd 9f063b2cc19c5e8030911372aa246c4e toolchain-funcs 51e6c948e72c43bcc8edc7544411c953 udev a9a8d051efb42bfe884c1db82ce161de user d0a4d0735a6c0183d707ca919bd72f28 versionator 6601b4c5b3f019a993db59a50e1854e4
|
||||
_md5_=cdca66fc2bdc60250958157ee4207d3a
|
@ -1,13 +0,0 @@
|
||||
DEFINED_PHASES=compile configure install postinst prepare setup test unpack
|
||||
DEPEND=!!sys-fs/device-mapper readline? ( sys-libs/readline ) clvm? ( =sys-cluster/libdlm-3* cman? ( =sys-cluster/cman-3* ) ) udev? ( virtual/udev[static-libs?] ) virtual/pkgconfig >=sys-devel/binutils-2.20.1-r1 static? ( udev? ( virtual/udev[static-libs] ) selinux? ( sys-libs/libselinux[static-libs] ) ) || ( >=sys-devel/automake-1.12:1.12 >=sys-devel/automake-1.13:1.13 ) >=sys-devel/autoconf-2.68 sys-devel/libtool virtual/pkgconfig
|
||||
DESCRIPTION=User-land utilities for LVM2 (device-mapper) software.
|
||||
EAPI=5
|
||||
HOMEPAGE=http://sources.redhat.com/lvm2/
|
||||
IUSE=readline static static-libs clvm cman +lvm1 selinux +udev +thin
|
||||
KEYWORDS=alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux
|
||||
LICENSE=GPL-2
|
||||
RDEPEND=!!sys-fs/device-mapper readline? ( sys-libs/readline ) clvm? ( =sys-cluster/libdlm-3* cman? ( =sys-cluster/cman-3* ) ) udev? ( virtual/udev[static-libs?] ) !<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 ) !<sys-fs/cryptsetup-1.1.2
|
||||
SLOT=0
|
||||
SRC_URI=ftp://sources.redhat.com/pub/lvm2/LVM2.2.02.97.tgz ftp://sources.redhat.com/pub/lvm2/old/LVM2.2.02.97.tgz
|
||||
_eclasses_=autotools 16761a2f972abd686713e5967ff3c754 eutils 4878e7f88afc0ba0866ac112190b0fd4 libtool b1c8688e60f9580bcb9bb46e08737eb1 linux-info a9cbd6bbe2b28166e403321882f3c73c multilib 892e597faee02a5b94eb02ab512e7622 multiprocessing 89580da5ec17ad687fcde876c542b91e toolchain-funcs 51e6c948e72c43bcc8edc7544411c953 udev a9a8d051efb42bfe884c1db82ce161de user d0a4d0735a6c0183d707ca919bd72f28 versionator 6601b4c5b3f019a993db59a50e1854e4
|
||||
_md5_=8b8ce649ac33132c8c4a503a561a55a9
|
@ -1,6 +1,63 @@
|
||||
# ChangeLog for sys-block/thin-provisioning-tools
|
||||
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-block/thin-provisioning-tools/ChangeLog,v 1.29 2013/11/27 18:49:37 maekke Exp $
|
||||
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-block/thin-provisioning-tools/ChangeLog,v 1.42 2014/05/12 12:16:09 ssuominen Exp $
|
||||
|
||||
*thin-provisioning-tools-0.3.2 (12 May 2014)
|
||||
|
||||
12 May 2014; Samuli Suominen <ssuominen@gentoo.org>
|
||||
+thin-provisioning-tools-0.3.2.ebuild:
|
||||
Version bump; remove use of obsolete base.eclass in favour of calling
|
||||
epatch_user directly.
|
||||
|
||||
10 Mar 2014; Johannes Huber <johu@gentoo.org>
|
||||
thin-provisioning-tools-0.2.8-r1.ebuild:
|
||||
x86 stable, bug #493400
|
||||
|
||||
14 Feb 2014; Akinori Hattori <hattya@gentoo.org>
|
||||
thin-provisioning-tools-0.2.8-r1.ebuild:
|
||||
ia64 stable wrt bug #493400
|
||||
|
||||
02 Feb 2014; Agostino Sarubbo <ago@gentoo.org>
|
||||
thin-provisioning-tools-0.2.8.ebuild:
|
||||
Stable for alpha, wrt bug #486278
|
||||
|
||||
19 Jan 2014; Pacho Ramos <pacho@gentoo.org>
|
||||
thin-provisioning-tools-0.2.8-r1.ebuild:
|
||||
amd64 stable, bug #493400
|
||||
|
||||
19 Jan 2014; Agostino Sarubbo <ago@gentoo.org>
|
||||
thin-provisioning-tools-0.2.8.ebuild:
|
||||
Stable for ppc64, wrt bug #486278
|
||||
|
||||
19 Jan 2014; Agostino Sarubbo <ago@gentoo.org>
|
||||
thin-provisioning-tools-0.2.8.ebuild:
|
||||
Stable for ppc, wrt bug #486278
|
||||
|
||||
19 Jan 2014; Agostino Sarubbo <ago@gentoo.org>
|
||||
thin-provisioning-tools-0.2.8.ebuild:
|
||||
Stable for sparc, wrt bug #486278
|
||||
|
||||
14 Jan 2014; Pacho Ramos <pacho@gentoo.org>
|
||||
thin-provisioning-tools-0.2.8.ebuild:
|
||||
ia64 stable, bug #486278 (thanks to Emeric Maschino for testing)
|
||||
|
||||
*thin-provisioning-tools-0.2.8-r2 (28 Dec 2013)
|
||||
|
||||
28 Dec 2013; Robin H. Johnson <robbat2@gentoo.org>
|
||||
+thin-provisioning-tools-0.2.8-r2.ebuild:
|
||||
Bug #491364: Fix complie with newer boost.
|
||||
|
||||
26 Dec 2013; Markus Meier <maekke@gentoo.org>
|
||||
thin-provisioning-tools-0.2.8-r1.ebuild:
|
||||
arm stable, bug #493400
|
||||
|
||||
22 Dec 2013; Jeroen Roovers <jer@gentoo.org>
|
||||
thin-provisioning-tools-0.2.8-r1.ebuild:
|
||||
Stable for HPPA (bug #493400).
|
||||
|
||||
07 Dec 2013; Pacho Ramos <pacho@gentoo.org>
|
||||
thin-provisioning-tools-0.2.8.ebuild:
|
||||
x86 stable, bug #486278
|
||||
|
||||
27 Nov 2013; Markus Meier <maekke@gentoo.org>
|
||||
thin-provisioning-tools-0.2.8.ebuild:
|
||||
|
@ -2,17 +2,25 @@
|
||||
Hash: SHA256
|
||||
|
||||
AUX thin-provisioning-tools-0.1.5-LDFLAGS.patch 1032 SHA256 83f4549e16da2b9ee3959cafca8c984ce542d7519206c4309d0540ea8c4683c4 SHA512 64edbb725f206f8375bb1061796cc330a0e59fe8a212a9b5b58f2fb38da6a5a7128face4a3d28454eef2ea21bda802cb043c072d2ffc7da156d051f8578aab01 WHIRLPOOL 587a840beea94a6c95c9cd86338dd7feb90abcd855be07a07170906c80312b7b1b776f4b5e3db79009553a051f2083b481cf1ffb2f5651737576ff51c8e59911
|
||||
DIST thin-provisioning-tools-0.2.8-boost.patch 3011 SHA256 abda9d732a1ea988c16e60131e76175fb2dd27ce4c197f571eed1563b5a5080f SHA512 56a08698e63be57b9fc742358e22d5bdaf1470cb42892c98d0296b0c6e85ea92f69d9056cb34b19762f12292c5fd81476e2a880a424d9fc9dc7e49d6df6824f4 WHIRLPOOL 059e94e6c1563cac4f387133fff7901eae6b55e9b69f31c0eca36df1a511844090c073054ce8912656b6f7f40b517812be71e630a8fe628235d3e42013dea8b0
|
||||
DIST thin-provisioning-tools-0.2.8.tar.gz 158332 SHA256 8a5d87b929095a383594b7141b89e51ae42046d7dd254d544330d789b6744344 SHA512 6534bf42ae936f6f32ce05b89eaeb731938b3761e74366d21282a69d74875d1f9d5084590b19969894c9908726e96f17714f051f050a040dd934533830eddfa9 WHIRLPOOL 16bcc268b450938ccec450323ce6dee97a4851c97438115c250c674b930ef8dfd0c7f6507d6c5204b72250da685d35ff57cf72f297abeec6704fb09520307ef2
|
||||
DIST thin-provisioning-tools-0.3.2.tar.gz 175049 SHA256 1b9d8e9269cffe06f3c87214d35436225e12599debefbf1a50194c69cc3404ca SHA512 d6e18c303769b39c5bd48ef30d2819adc57d2d87b3c9b56d5d72468fb35f9b7b2309d35c6c12eabc36d653dd85338b9ad2fca9eed5c738a87b932b71f3a6da4f WHIRLPOOL b1bd87aa1995ba0616001837247c962c492d0029cb8a89b97aa326eb63d8a89113905f5d34490593e0cfcca33ef074e02a50679d22c3b1859d8fe5b97368c608
|
||||
DIST thin-provisioning-tools-v0.1.5.tar.bz2 119902 SHA256 0464ae4253738a3d75605e4e54ccdebccfe8ffab94b464ea6912c333fe4a8b3f SHA512 d620c0190da0f4a151e42eb259d88e3489f62a314823a52021c368f39b9cb5ae1ffc5541f01901ccafd04a0e4a7ba85d38b721954ddf2035fd7af3ad20d783d1 WHIRLPOOL 698036d555c78d32b473e312c010143eb75a9d55a64ea1ccebb8d5ef128f8fc98823b176d7012b582b6520847c68af0eb47a2081e02f9b821780ebaecb7b6191
|
||||
EBUILD thin-provisioning-tools-0.1.5-r1.ebuild 961 SHA256 0e9092f07645bd7cb10da71bfade18e6a145e2a70236a073c94f536fd5303e58 SHA512 06d7e68b9ed515943b4def972c100c06adc42c6df9d08d83556ddddeed328a05a10054e2bd82d6237ba581521c33d8bb7434dadd259d9bf1f65b75e2be3d8e6b WHIRLPOOL 381458b7f8e440ddd2c533623cae4b5f5e32293282cfd3c0c640908fea9c2eef0bdb5245475e5077ab4fade09571f5d6d319b62576b65576616972bb37b40288
|
||||
EBUILD thin-provisioning-tools-0.2.8-r1.ebuild 1383 SHA256 5a85e4f5cddbaa10994cfce42047cfaa02bfc28a03a0feee026b28971beb1a3d SHA512 ef15baf8df7d5e45e2c2f39cb041448f41e5606be45de8256685323249c83313d5f7fe527070fa0b8cad56cdc928dc67b0c35166b7bf85b07fa827a32158b506 WHIRLPOOL 4f01497da5aefe56879e3129ab4be4e4802e46412a1ba92d8794c9f5d461e1fc5f3ca3ddc85e594fd3f6e6cecb3f0c702a816b07956a614e87e2a964e6221414
|
||||
EBUILD thin-provisioning-tools-0.2.8.ebuild 1241 SHA256 ee40287fe0d519746252afdcb3dda9ccde00c6af0aa8572f5073d32619d1c9e3 SHA512 6a9224e466cd20d607749ad6a0e2e7300a2377c51d713a73ab8fa42eff5bc60f26715ab629e53874718f8d48285185c551cf424c6c8d366393acfe9dda5d514c WHIRLPOOL 29509022f128930c51edc91eb4f341caf7b252423b0643656d3a1362011c7f1a16d62d5465fcef8e2df6e9818cf2c8a1781ab617cfb2114eea8458c0598a16c4
|
||||
MISC ChangeLog 4970 SHA256 026dfb5d5109e607dab5bcdb9e649e8d460cc213460d56953e4d74b6ce281f32 SHA512 902b6b4cea43bfee2400a84596f2564def32271585642badd327c4117ff40216722a1831b650621a4394dade7ece8bc3d6ff728daf67e0fbef1898d37c00688e WHIRLPOOL 224157416193af7ca94019e81677c49bb51fd4d4c63b8ebfd136fbd62643ecc79523a779844815006312ffca664571d2e5658218b23b530b24f808724e38f254
|
||||
EBUILD thin-provisioning-tools-0.2.8-r1.ebuild 1375 SHA256 a35353980ef6e726ca3b6ebb22100af6d623e6eeba7fbae417a08cea23416bb9 SHA512 e33e8ea1c9f5ae021d9af04ae94ddd0e38eb399b2ae2d9818d957b3bdf256d585467076ddcc6f9c96704aa3c3ffd60424de622df8a199372c7e1ce5a1e304b3c WHIRLPOOL 7ee773b21531474b851b98604942abb7e4966e0c1a312e854cc41d6f147a5b8c6f4a40d402053920dcc49dfc36c01283dd6611912332498888b93325f535f95c
|
||||
EBUILD thin-provisioning-tools-0.2.8-r2.ebuild 1634 SHA256 09624fe83a489f136d7bcac6d1a94c302e4936fd77df8f10cc3ed4df6924b763 SHA512 1131657c74b65eec0a95d216e67955fe42de52a2fd67ae20592360bec671669149305bc7f1004026cdd4ac337982a66db50127565d6ef727e611cadef76e4e4a WHIRLPOOL b0e71575e9a4109c9a6982ec56a095787016c2a8dbdd2cdbbce92dda595c2739e0519054fc00154c575300205167aa65a493913f748a711dc4222c59b89144cd
|
||||
EBUILD thin-provisioning-tools-0.2.8.ebuild 1233 SHA256 3039a649d3acfcc53ebabf05cd0663ce5fac92325aa51d0674fb39f2b96430e6 SHA512 b0b883acf98a889b0c6d6037235fa6ec58d0de6500d37f9f4d8c1c36301f0216d787ee537be0210514892d09a7a029ce4b48b34c8e73f6ecc93d0d57973817fe WHIRLPOOL 619b3cf40cc2353d004d5030c0f3a6af74a1a8f00ff5f4d572e2542263c02adb1df802c3db164702a2ca3b5278b9e1ed4dfb99e203ff9201c3818b88a453ff9d
|
||||
EBUILD thin-provisioning-tools-0.3.2.ebuild 1418 SHA256 8c2df594d102406553b49c86cebab25a82cea44074a65434206eb93f431cd27b SHA512 fb1f78ef9352aaefba3c1a0d4a2d1e555908793751414885f3bddb111f0ece309935132080119c6d9b5d1105d7068e5be09565f8f70f628321b07d82b14e9450 WHIRLPOOL 3449f5935c8152f3fbd7c538034016ff706d7b81c5f4d91648f41f6ef8926f95bfb201bf899e73973c2acb930552213c903ee984d40d0ad527efbd6c38d5ca88
|
||||
MISC ChangeLog 6775 SHA256 eb4cba37445dbd8f90408984b5b9098136ab80123d27247a0488ea988a533613 SHA512 090708f06bc79a8d4c14063961b4d932fe164aa9de4c2edb02c3a252d7d1fa33bc2d3ac8b1c73c2ee1c2485ae74852a28afdf3a7d1e76b282555b857f589c364 WHIRLPOOL 26fd6a3781fbcdf82384c48c2a5c3f750f404b8d5c4f6ca02e361b8673524acd22b9894cabb4ce58838c5c004ec1c12182065cd2ff1a5bae44c1e95bdf0cfb89
|
||||
MISC metadata.xml 352 SHA256 5c0043176bb3aa5f86c10eda3e3aae3d71374de82b47f7cb07cc4e76337ad4c7 SHA512 8356301004ee2f61b15eb94aad63d7946af41d1171b9b95a4a4bbb1c1bba7670d70b47a81b2003ea80fbd6a7378c2eaedfe4369cfe5520e737324223546dd7e2 WHIRLPOOL b0f917ec1b54c8f3c20bdf6fc15d9d5f23273cf37b09a96f0d06ed315b22c7218ddd4b3523ec8b93ae70bb891202ed72b7fd53741c6ce72b6b4f216ea10dd884
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.22 (GNU/Linux)
|
||||
|
||||
iEYEAREIAAYFAlKWQF8ACgkQkKaRLQcq0GJmGQCdEsbnH0RCgfHRyYAQlqxFMC9k
|
||||
qsoAoLO2bg6tFSuBMHJzJRVm6G5LLCBH
|
||||
=zwXX
|
||||
iQEcBAEBCAAGBQJTcLtRAAoJEEdUh39IaPFNYQQH+gI840XxYBpnJmYiMCcjOoeA
|
||||
OLwGTqHEA0NkpoJ65mqESPQOSW8uf0xKJc5GCTEZ2SGXaXlc9Rt7LCiyMU1zmht+
|
||||
ssBwJdCvtUL+7PC7JPQONK5rW4kmWhuwDq1bnJcWlumBPdc4bqRzqWcnZgBl8afd
|
||||
HtpkjSGk2QXCezWea6ApqSAh1xaMtF8mziPLIv9l6S7iLTAflUmkJv23/eAQYKue
|
||||
jeBquWYfZ2fVTmCOWepkRvKQpaj0rJz9ZoNl9bMF5PVWY1lLrH9EV7ylOOxKDV3v
|
||||
qECl19uqJ8r35Ay0WTG38plsMeSFcoKdTJU+amzrI3WiVP6u576WcgT36wl/Zeo=
|
||||
=X7P6
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-block/thin-provisioning-tools/thin-provisioning-tools-0.2.8-r1.ebuild,v 1.2 2013/11/19 05:43:07 patrick Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-block/thin-provisioning-tools/thin-provisioning-tools-0.2.8-r1.ebuild,v 1.7 2014/03/10 18:28:14 johu Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit autotools
|
||||
@ -12,7 +12,7 @@ SRC_URI="http://github.com/jthornber/${PN}/archive/v${PV}${EXT} -> ${P}${EXT}"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
KEYWORDS="~alpha amd64 arm hppa ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="dev-libs/expat"
|
||||
|
@ -0,0 +1,57 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-block/thin-provisioning-tools/thin-provisioning-tools-0.2.8-r2.ebuild,v 1.1 2013/12/28 00:39:05 robbat2 Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit base autotools
|
||||
|
||||
DESCRIPTION="A suite of tools for thin provisioning on Linux."
|
||||
HOMEPAGE="https://github.com/jthornber/thin-provisioning-tools"
|
||||
EXT=.tar.gz
|
||||
BASE_A=${P}${EXT}
|
||||
SRC_URI="http://github.com/jthornber/${PN}/archive/v${PV}${EXT} -> ${BASE_A}
|
||||
https://github.com/denys-duchier/thin-provisioning-tools/commit/3a4c06b772bc8ca27bcf7c2d82abc46c65c23795.diff -> ${P}-boost.patch"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="dev-libs/expat"
|
||||
# || ( ) is a non-future proof workaround for Portage unefficiency wrt #477050
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
|| ( dev-lang/ruby:2.9 dev-lang/ruby:2.8 dev-lang/ruby:2.7 dev-lang/ruby:2.6 dev-lang/ruby:2.5 dev-lang/ruby:2.4 dev-lang/ruby:2.3 dev-lang/ruby:2.2 dev-lang/ruby:2.1 dev-lang/ruby:2.0 dev-lang/ruby:1.9 dev-lang/ruby:1.8 )
|
||||
dev-cpp/gmock
|
||||
dev-util/cucumber
|
||||
dev-util/aruba
|
||||
)
|
||||
dev-libs/boost"
|
||||
|
||||
PATCHES=( "${DISTDIR}"/${P}-boost.patch )
|
||||
|
||||
src_unpack() {
|
||||
unpack ${BASE_A}
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
base_src_prepare
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--prefix="${EPREFIX}"/ \
|
||||
--bindir="${EPREFIX}"/sbin \
|
||||
--with-optimisation='' \
|
||||
$(use_enable test testing)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake install DESTDIR="${D}" MANDIR=/usr/share/man
|
||||
dodoc README.md TODO.org
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake unit-test
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-block/thin-provisioning-tools/thin-provisioning-tools-0.2.8.ebuild,v 1.5 2013/11/27 18:49:37 maekke Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-block/thin-provisioning-tools/thin-provisioning-tools-0.2.8.ebuild,v 1.11 2014/02/02 11:08:21 ago Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit autotools
|
||||
@ -12,7 +12,7 @@ SRC_URI="http://github.com/jthornber/${PN}/archive/v${PV}${EXT} -> ${P}${EXT}"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
# || ( ) is a non-future proof workaround for Portage unefficiency wrt #477050
|
||||
|
@ -0,0 +1,50 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-block/thin-provisioning-tools/thin-provisioning-tools-0.3.2.ebuild,v 1.1 2014/05/12 12:16:09 ssuominen Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit autotools eutils
|
||||
|
||||
DESCRIPTION="A suite of tools for thin provisioning on Linux."
|
||||
HOMEPAGE="http://github.com/jthornber/thin-provisioning-tools"
|
||||
EXT=.tar.gz
|
||||
BASE_A=${P}${EXT}
|
||||
SRC_URI="http://github.com/jthornber/${PN}/archive/v${PV}${EXT} -> ${BASE_A}"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="dev-libs/expat"
|
||||
# || ( ) is a non-future proof workaround for Portage unefficiency wrt #477050
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
|| ( dev-lang/ruby:2.9 dev-lang/ruby:2.8 dev-lang/ruby:2.7 dev-lang/ruby:2.6 dev-lang/ruby:2.5 dev-lang/ruby:2.4 dev-lang/ruby:2.3 dev-lang/ruby:2.2 dev-lang/ruby:2.1 dev-lang/ruby:2.0 dev-lang/ruby:1.9 dev-lang/ruby:1.8 )
|
||||
dev-cpp/gmock
|
||||
dev-util/cucumber
|
||||
dev-util/aruba
|
||||
)
|
||||
dev-libs/boost"
|
||||
|
||||
src_prepare() {
|
||||
epatch_user
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--prefix="${EPREFIX}"/ \
|
||||
--bindir="${EPREFIX}"/sbin \
|
||||
--with-optimisation='' \
|
||||
$(use_enable test testing)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake install DESTDIR="${D}" MANDIR=/usr/share/man
|
||||
dodoc README.md TODO.org
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake unit-test
|
||||
}
|
@ -1,6 +1,133 @@
|
||||
# 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.329 2013/11/27 18:50:06 maekke Exp $
|
||||
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/ChangeLog,v 1.355 2014/07/16 00:28:28 robbat2 Exp $
|
||||
|
||||
*lvm2-2.02.107 (16 Jul 2014)
|
||||
|
||||
16 Jul 2014; Robin H. Johnson <robbat2@gentoo.org>
|
||||
+files/lvm2-2.02.107-static-pkgconfig-libs.patch, +lvm2-2.02.107.ebuild:
|
||||
Bump per bug #516604.
|
||||
|
||||
20 Jun 2014; Samuli Suominen <ssuominen@gentoo.org> lvm2-2.02.106.ebuild:
|
||||
Always pass --disable-udev-systemd-background-jobs with USE="device-mapper-
|
||||
only" as per lvm2.spec from http://pkgs.fedoraproject.org/cgit/lvm2.git
|
||||
|
||||
20 Jun 2014; Samuli Suominen <ssuominen@gentoo.org> lvm2-2.02.106.ebuild:
|
||||
Introduce USE="systemd" for --enable/--disable-udev-systemd-background-jobs
|
||||
wrt #493936 by Alexander Tsoy
|
||||
|
||||
14 May 2014; Samuli Suominen <ssuominen@gentoo.org> -lvm2-2.02.97-r1.ebuild,
|
||||
-lvm2-2.02.104.ebuild, -lvm2-2.02.105.ebuild, -lvm2-2.02.105-r1.ebuild,
|
||||
-files/lvm2-2.02.88-respect-cc.patch, -files/lvm2-2.02.92-locale-muck.patch,
|
||||
-files/lvm2-2.02.97-selinux-static.patch,
|
||||
-files/lvm2-2.02.97-strict-aliasing.patch,
|
||||
-files/lvm2-2.02.97-udev-static.patch, -files/lvm.rc-2.02.105,
|
||||
-files/lvmetad.initd-2.02.105:
|
||||
old
|
||||
|
||||
13 May 2014; Samuli Suominen <ssuominen@gentoo.org> lvm2-2.02.106.ebuild:
|
||||
Fix install with USE="-thin" wrt #510202 by Patrick Lauer
|
||||
|
||||
12 May 2014; Samuli Suominen <ssuominen@gentoo.org> lvm2-2.02.106.ebuild,
|
||||
metadata.xml:
|
||||
Remove USE="cache" and always enable it, either "shared" or "internal" because
|
||||
it doesn't introduce any dependencies.
|
||||
|
||||
*lvm2-2.02.106 (12 May 2014)
|
||||
|
||||
12 May 2014; Samuli Suominen <ssuominen@gentoo.org>
|
||||
+files/lvm2-2.02.106-pthread-pkgconfig.patch,
|
||||
+files/lvm2-2.02.106-static-pkgconfig-libs.patch, +lvm2-2.02.106.ebuild,
|
||||
metadata.xml:
|
||||
Version bump wrt #507812 by Alexander Tsoy; introduce USE="cache" and refresh
|
||||
2 patches so that they apply again (no real changes in them)
|
||||
|
||||
09 Mar 2014; Mike Frysinger <vapier@gentoo.org>
|
||||
+files/lvm2-2.02.105-readline-6.3.patch, lvm2-2.02.105-r2.ebuild:
|
||||
Add fix from upstream for building w/readline-6.3 #503234 by Thomas D..
|
||||
|
||||
08 Feb 2014; Robin H. Johnson <robbat2@gentoo.org>
|
||||
files/dmeventd.initd-2.02.67-r1, files/lvmetad.initd-2.02.105,
|
||||
files/lvmetad.initd-2.02.105-r2:
|
||||
Bug #479464: change pidfile path to be consistently /run
|
||||
|
||||
04 Feb 2014; Robin H. Johnson <robbat2@gentoo.org> lvm2-2.02.105-r2.ebuild:
|
||||
Bug #448354: Fix cross-compile with thin.
|
||||
|
||||
04 Feb 2014; Robin H. Johnson <robbat2@gentoo.org>
|
||||
files/lvm2-2.02.105-pthread-pkgconfig.patch:
|
||||
Bug #491806: Fix this in more cases for static build.
|
||||
|
||||
04 Feb 2014; Robin H. Johnson <robbat2@gentoo.org> lvm2-2.02.105-r1.ebuild,
|
||||
lvm2-2.02.105-r2.ebuild, lvm2-2.02.105.ebuild:
|
||||
Bug #500058: missing dep for static builds.
|
||||
|
||||
03 Feb 2014; Mike Frysinger <vapier@gentoo.org> lvm2-2.02.103.ebuild,
|
||||
lvm2-2.02.104.ebuild, lvm2-2.02.105-r1.ebuild, lvm2-2.02.105-r2.ebuild,
|
||||
lvm2-2.02.105.ebuild, lvm2-2.02.97-r1.ebuild:
|
||||
Mark s390/sh stable.
|
||||
|
||||
03 Feb 2014; Mike Frysinger <vapier@gentoo.org> lvm2-2.02.103.ebuild,
|
||||
lvm2-2.02.104.ebuild, lvm2-2.02.105-r1.ebuild, lvm2-2.02.105-r2.ebuild,
|
||||
lvm2-2.02.105.ebuild, lvm2-2.02.97-r1.ebuild:
|
||||
Add arm64 love.
|
||||
|
||||
02 Feb 2014; Robin H. Johnson <robbat2@gentoo.org>
|
||||
+files/lvmetad.initd-2.02.105-r2, files/lvmetad.initd-2.02.105,
|
||||
lvm2-2.02.105-r2.ebuild:
|
||||
Bug #500074: lvmetad only supports short options, not long ones.
|
||||
|
||||
*lvm2-2.02.105-r2 (02 Feb 2014)
|
||||
|
||||
02 Feb 2014; Robin H. Johnson <robbat2@gentoo.org>
|
||||
+files/device-mapper.rc-2.02.105-r2, +files/lvm-monitoring.initd-2.02.105-r2,
|
||||
+files/lvm.rc-2.02.105-r2, +lvm2-2.02.105-r2.ebuild:
|
||||
Bug #438262: dmtab multi-line support. Bug #458262: require sysfs mounted. Bug
|
||||
#437718: speed up lvm-monitoring.
|
||||
|
||||
02 Feb 2014; Agostino Sarubbo <ago@gentoo.org> lvm2-2.02.103.ebuild:
|
||||
Stable for alpha, wrt bug #486278
|
||||
|
||||
02 Feb 2014; Patrick Lauer <patrick@gentoo.org> lvm2-2.02.105-r1.ebuild:
|
||||
Whitespace
|
||||
|
||||
*lvm2-2.02.105-r1 (02 Feb 2014)
|
||||
|
||||
02 Feb 2014; Robin H. Johnson <robbat2@gentoo.org> +lvm2-2.02.105-r1.ebuild,
|
||||
metadata.xml:
|
||||
Bug #479950: bring back dmsetup-only build to make some users happy. Please
|
||||
note that this is unsupported at this point, you get to keep the pieces when
|
||||
it breaks.
|
||||
|
||||
02 Feb 2014; Robin H. Johnson <robbat2@gentoo.org> files/lvm.rc-2.02.105:
|
||||
Bug #334125: Ignore an error shutting down last LVs, if they are /usr or / we
|
||||
will not be able to shut them down as we are running from them.
|
||||
|
||||
*lvm2-2.02.105 (02 Feb 2014)
|
||||
|
||||
02 Feb 2014; Robin H. Johnson <robbat2@gentoo.org> +files/lvm.rc-2.02.105,
|
||||
+files/lvm2-2.02.105-pthread-pkgconfig.patch,
|
||||
+files/lvm2-2.02.105-static-pkgconfig-libs.patch,
|
||||
+files/lvmetad.initd-2.02.105, +lvm2-2.02.105.ebuild:
|
||||
Bump per bug #499972. LVM1 support is deprecated upstream and no longer built
|
||||
by default. lvmetad init added. Bug #485082: init ordering adjusted. Bug
|
||||
#492450: pthread fix for static builds. Bug #437714: fix startup/shutdown with
|
||||
multiple VGs.
|
||||
|
||||
19 Jan 2014; Agostino Sarubbo <ago@gentoo.org> lvm2-2.02.103.ebuild:
|
||||
Stable for ppc64, wrt bug #486278
|
||||
|
||||
19 Jan 2014; Agostino Sarubbo <ago@gentoo.org> lvm2-2.02.103.ebuild:
|
||||
Stable for ppc, wrt bug #486278
|
||||
|
||||
19 Jan 2014; Agostino Sarubbo <ago@gentoo.org> lvm2-2.02.103.ebuild:
|
||||
Stable for sparc, wrt bug #486278
|
||||
|
||||
14 Jan 2014; Pacho Ramos <pacho@gentoo.org> lvm2-2.02.103.ebuild:
|
||||
ia64 stable, bug #486278 (thanks to Emeric Maschino for testing)
|
||||
|
||||
07 Dec 2013; Pacho Ramos <pacho@gentoo.org> lvm2-2.02.103.ebuild:
|
||||
x86 stable, bug #486278
|
||||
|
||||
27 Nov 2013; Markus Meier <maekke@gentoo.org> lvm2-2.02.103.ebuild:
|
||||
arm stable, bug #486278
|
||||
|
@ -1,42 +1,39 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
AUX clvmd.confd-2.02.39 213 SHA256 68442d5c9da81bad79fa6b1beaede290f24ea6a4e4415f3d9f4e37ccca6c524a SHA512 9614c4188c9a5bcf398d1f521b52d7e2281fcdf76265fdaca4acda22be282d8468e82b54a2661d5753f4b9a442ebe93a60daf87c846db4e275a283f71c9fd8e2 WHIRLPOOL b429d06a5200d37f46e72190060bc2fe866575ba441b5f92d12d939bdc5d411ef37e895a7369bbaaf733b1a0d0305a05d499c7ae6c7360fe8767e902d2a3bfc4
|
||||
AUX clvmd.rc-2.02.39 3684 SHA256 476289b24539eeff4ff94c34c129da755d8cff11f1e950b40f9fad212ca5c05d SHA512 18879fa7925d6181b9ebfd7a6379ee4f25c9c83474ba69684e63811867754b1c52dd6568324aafd9fe391fd2fd4aadf931870cefc21b72d2f81f9e04ef123f41 WHIRLPOOL 095a313a6c66f0dec1d42233dd1853879ade6334c474ac747c2cd87c24b433381547a6fdecedf784db060549ece8dc24870d4981bcf590bf39e57dd7bad92120
|
||||
AUX device-mapper.conf-1.02.22-r3 15 SHA256 57777904f12a35617e5a4193c964ebb32396452487fd02353e71e16e7b46bc22 SHA512 1846e0ca1be7170d4c0beb694a23aea4d19b24b99a248bb0f4e034286a6beede0a8efc474b0c237e33ee72c86c93b6238f2d5ea23e224765acba99c90633261e WHIRLPOOL a0de185e849cd4d1aab9f145a6330f267ca547ba4ec7720be6f33e2c3c4c182b8674ea220b894f0fc806fe6637ba7bcabd739ca57b53b3efa5fad0cf1e57ba2e
|
||||
AUX device-mapper.rc-2.02.105-r2 3828 SHA256 036b6de05e6cbd921a667d6fc6b01d30c8f9b720e1a0d0e2453ecd62d32573fb SHA512 aa5c73a91a85069782384ab9ecec299d9f036ed8c069ebef66bbedfa9d9ce7c63baa70692148cf4f1b06d6b4e53fc1916ae576ecc005323154a25a686bef33fd WHIRLPOOL bebba4faf498d400c68b8e79a64c90f0b71a3df350895ea4b78efb802600f4179ec0b7507be7ca61bd7444ca8d5c8f8156112a2fa3083e51a6fe8f552db583ba
|
||||
AUX device-mapper.rc-2.02.95-r2 2765 SHA256 e0bff689040746480e2479d1ad57adb5ab23cc0415ab9a8356503aed7a14c658 SHA512 f6e653c6af92debe543bcb48ee36c2bfa0f1ad08d2dfe40455cf9d3b104a1f825a295b43de2a5fa64367c6c2eadb2b36004c7cf51fd3b15191ea6be21d0c5a4f WHIRLPOOL 298548daebf413ea8739c979c23b9ea7cfbcf12437debb8ce7d570b6a8269fbcd4d7b27816734f3728e2d591ef9658a4f4bb0c43299dbf408aeac10ef87e5bf0
|
||||
AUX dmeventd.initd-2.02.67-r1 685 SHA256 dbf81d357446fa555bcd75939af6d5982c10a8235800ddc299d2673b2c694d39 SHA512 0c0399987f7710bd29c5a8a02288927fae5fb54cb42918f2c96c67aae4beedc1c6e6b3f80546799696364c1c40cc03e2cbbede5042caeb519fc0532a0296b7ad WHIRLPOOL aaa0064fc5bcde09814e8ee3535d5348c5b1f0119ccbd961d6423a26fd1e1d654df3e0e1f9dea1725afe7f9e4fe8d1152b8653f6430ad23a7c47e36e61750a3d
|
||||
AUX dmeventd.initd-2.02.67-r1 683 SHA256 0c051388991ba69afbf2f6baf36ba227d7c26fc8f0d7588d8de76d9a74886d79 SHA512 523b54d63592c500394243632f4ed60838d04a8c386a85bb2a0fda6f756607467ec025c1490104d8c73035e37646eeea55dcafd3f05eab85e035bbedcebf0406 WHIRLPOOL 5dcf777e9c736eb4101649e5b0bbb43016c3b7ece77c1bb8afdda63b23b15a37257cdd29c05f82b0ae4f98405067c85a9a6ee8a35d98c4b5fb647ed015c11da7
|
||||
AUX dmtab 416 SHA256 e2e22bbe13fb97ec9a68659daa275b1d22fd0a3fd21e76b1f4bfba504a8bd7b5 SHA512 392b4bd85745bc774245195a1c416ae68efbe5f7b2498f6bfc40021cd2c9f6372fd1c3d346198c7749635b5d9b3f66ba1b963a2e144b4f522d87016ab4777de2 WHIRLPOOL f48c0fda382c7d57bad2ad4a8155189735236d13f24f39b3969736c3ad54d28f92c82174cae5c6775f8bc58506f19025f2cba6433f389c84505552fc8b4d3ed4
|
||||
AUX lvm-monitoring.initd-2.02.105-r2 1088 SHA256 d7655cadd3a3a9d3683a540413365310ca9503c38fd21a9bfccec40630ca72f1 SHA512 3c3f7ec1868e3634be3bb82689d30065dbe0fac3e2dfa22a14acb76c82b102022c280f995f82a1f7c91c905c0ba961bbb2707ddf60ad5fa9d717acdf942855d5 WHIRLPOOL 92e7eedf6add5cba645f74281912713928f694f18155db222352ba8e4a70ac89696f9db3cc2c9fc79fb9ff0f98cb176da8aedb1c5b7b47eecd4ee36360df41f0
|
||||
AUX lvm-monitoring.initd-2.02.67-r2 1183 SHA256 b89971a4f163e1a91df2416ff442cae7209f8343e6c8612eb3174ed8f5c5c788 SHA512 e99d8e0ed2f22e8f3f1e36581ce92bc2196dbebdeb7c301070c5f2e78079804de3ac782c732929e23a3a01536a270236513c849ec1574ff4c72045b8f69c98ed WHIRLPOOL 71eb7d1203bc2b6be22ebb0eb20e3d2e0786036bea9f0beda91c517f47b99374b52ca4c7d5cd76ae6338ddab187b68a7a371a437e5501996454e125e12e998a8
|
||||
AUX lvm.conf-2.02.67.patch 1676 SHA256 0d36c4de0503739d822b3103a62dc0110febc3c56cd25d04443b30f54da6d0cb SHA512 59cb4a4625a7a18ec81b10f4b70a1632cf608d30b1fd827cc7a97692ab3cbbe2e0108001952f5002f1ffe6b354be7b96430e5ce86ed183885afdd1b5f0aa76e4 WHIRLPOOL 71c42b80f390de73b116dbe4808b44559196175465126393128b87826248ac5a34d79c4f64647d6b4541288ae4d25669168120ce8889deb08bfb7919dde249ed
|
||||
AUX lvm.confd-2.02.28-r2 173 SHA256 28370c089c39c248d7ded0960b8d8a9256bada44d44c22ce3cec87d512ef6844 SHA512 67b153cbc5c2327c15f042b3b5590c1d8fdf9823efb19c80192ac4dcf98e530efea8ecae0aaaa4a54b0e3e4907565aa21455b364df1dbe8f2e7dffa1c5d355d0 WHIRLPOOL 06467b28ad2acf36984eef1b7b7e3d88277505760f848a808d85820cd1cccf6bb7397c00624d36961d9bdbb994e55de03444a7cfc97ecefd9bd3b785a3c6fdbf
|
||||
AUX lvm.rc-2.02.105-r2 3071 SHA256 a5754ffa0a05a0c29a9f6b5acf1b21dd313581fd6156c1ef722dc620e0114676 SHA512 9dd321b6d76628376b324de1ff47c4a37b98d3bf406abbf1b1755e20d957a9f1d77ff2e50a99b0c77ca8200800cd6071da5ab83c2f5afb9ff97f31e75671a617 WHIRLPOOL 6ba25a5152bf6f5052481e6ad2b1dc3ea65a818d11bff49e9688f537245c471f5446d4b8d381dba69ab8ece8f16340220f4c8173be096c7cb3d7c4c7fd10cebd
|
||||
AUX lvm.rc-2.02.95-r2 3001 SHA256 66844a70cedf61b2cd3373cdbd8f8c1afa817bde0764fdf5cf488857532d4553 SHA512 e5d34447db2fc050256222eff427703341b839a80c833c8ca2a814663b790bdffad967fa41bda8c182d5217dda629057a571520cb0a2e4cb06d5a8a241746ea3 WHIRLPOOL 102baf82bd5573ce90bdb19307ccf71026b6e03fd9e471a123f17072e0ac3785ecf017bb2cd81adf7a5332f33b42330e7c484c8804ed57d4ad6fb1cdd4c119f7
|
||||
AUX lvm2-2.02.100-selinux_and_udev_static.patch 3223 SHA256 15c20b1e16443932c560164ad9546ab01279601b0f0dd7fdc54f9cf3cd3ffee3 SHA512 232dc2908073254e23878098734cc65449c7be0707f7f0f7e73561e7b204bf71cf75ff5ee143b0f9f301ddabac1595c59cb0ec80c665464e8fe3f1b65a3eb0c2 WHIRLPOOL fdd908aa01cc3790be4ff8e7b2180cd526065c826657924edfccdc53f5c2266a12911c1ebface9de649b1974ff77401e94a64de507b5c72415614e5726dd4a2a
|
||||
AUX lvm2-2.02.105-pthread-pkgconfig.patch 1277 SHA256 29cbbee5b78b248eb1e92b2ad1d90ac115e449b56c50b9cc6dc5dc4e463d16d8 SHA512 8092b9e972f5a7d23666898f06041ed4ef3cf66f824df8dbe9405cbfc0f58a71953d66eb7dae91089f6a00395b8e2fd402f2a77c2d0238934ec5c8dcd0bff25b WHIRLPOOL d0c25bf4b1beeeacd9afb4716870563316321091d412ec481791d96e59b0245b8beff5c34dbfa297cb620c31cc59454a007090df0fa7aabb2653fe64eba76bd3
|
||||
AUX lvm2-2.02.105-readline-6.3.patch 1606 SHA256 0c599fc01ac3a83a0cf16ebbe110854268ad5d8d3019c8edc4fbb80267d3a364 SHA512 f55a9a311a457f4aaafdd11e0a9beda1b9a34ae8c93b313c6d53e25085093ac0755bc416baa6dcd9a4d21713bf94efc6ae1269ca6410ad8de956f6c641912d50 WHIRLPOOL c67c1a20f0abff39c7b93c21e881c97590559c391a540738aba381dee8009044d537c9ab078d2db01992b4e2fb945d9c7f159d2af9ac8cc88d4c64a3eedc38cf
|
||||
AUX lvm2-2.02.105-static-pkgconfig-libs.patch 3382 SHA256 cc3cbe1b1511eac87a4915f18206d045f6192d9815580088bacf760ffee06c4d SHA512 3b2bd8b991c380dee73f848a794fb1c53ef601fbaea85185d2494040c6e70519727211cb3adffb36bb115c0eb774d4e4c1298b7d151b21d25924b492ed51034b WHIRLPOOL d4a8d9448e80148f321d46c55daa662735c9b9d9cb758b944eea8a213e60d270676bed610e9ec22dc970b38424465c12d840aeb9c7bc585b8cc07210cc365828
|
||||
AUX lvm2-2.02.106-pthread-pkgconfig.patch 615 SHA256 a33febfc3afbaaea1806afd252c28e48c7359f6136a1353103ac94d7a681fd71 SHA512 44db7e1c2b19d458d6e71519b1a3b878c20265e0527fb5edbf3874ed1c529383b888568af10e6a2099c3cf683384cc106aef0c392fd60d48a18af8cee89f360c WHIRLPOOL 544c51e7a305400a41869447e0e9bfd015f5a64437acc143ceb1dffd98a05846fdd31f07d0f56028fb6867e34237a487ace16e6afa692e3126e3353ce1e34f10
|
||||
AUX lvm2-2.02.106-static-pkgconfig-libs.patch 3151 SHA256 5215599d8b83e3a73782255747e8fb98faacd6c6606836b4f2ea5ccfd1e98066 SHA512 a00c03a3deae2898f5f3692aa797834601066fa1b444d0606a08e6ed6cfb57e41843da9bda41d2489bf206c6a13149e90d199e75a97ecfa5a05f612a770f4c7a WHIRLPOOL 315daddcd1135d68c0bf433ea913741985d3af1784d2658df02c7c46c5e452c18a6069dfc0ee2261231eedbdca2dde9f2c468bbf177a2135080be058b074e6ae
|
||||
AUX lvm2-2.02.107-static-pkgconfig-libs.patch 3607 SHA256 b3efe76e670fd45e363c62bc8a9965eff4bb1c12e98b6eebdf3b8690de24ddca SHA512 6cd6bbe2ff2dbbe012c20043f3b31e42cacc3379838358c58891ec8ce9593ced29a14fbb9e96b9c76e1b245c5aec2e38a26d3a599c78ff18c3d920e89f1d2f72 WHIRLPOOL 4acf0777694df20886b4e6bf06c91a86041f6e4d888c49dc26f582cd6220504550f54ea5d94c220a3a16b4768933e45e901f274dfaf616083db741aab81b612b
|
||||
AUX lvm2-2.02.56-lvm2create_initrd.patch 2032 SHA256 b892d0544e05350e78ea400c16e6fd3657671d9bdf50bfae70505fd79bdda081 SHA512 b2a1705fa6b962027ebc5047583547489afe8ef8d8977c6284a28d0a8b0e05e20e6c48bd6c02a8bb02de9cfb40ac2d6e2a4b8ed8ef8c4ae7b6ea9a29bc4194de WHIRLPOOL cb533df528be0aae4bf50966285ef7a238f810d955ee86d5b446f43944d093732eff6ef8178d1654c4a2c075049ffc11994a99de6291bab1140cb8812be8b8a0
|
||||
AUX lvm2-2.02.63-always-make-static-libdm.patch 1420 SHA256 1c498b5efce77ed16bbbfcd9e0ec6da404a9c70c7ad0959ed7b60733adfcfc21 SHA512 67735af9e51369d5b3b400cab4f9ffa25f8dea1c1ec3d01855cb3c5aeade5c39a35eeed43f3a665204fe6bbba4ca43baecd845330bf26d023064b94ca3d1317c WHIRLPOOL f273c893acedfd658e7947abb5f4b528f15de9808ae3862ec8a9189ba7de4ea6998dc67dbc7af642ca3a27bba2ef8eabfd48337f532145f88500988f564313b1
|
||||
AUX lvm2-2.02.67-createinitrd.patch 660 SHA256 d59f5642fff9d9575227bfd0b3d103d928a6f7b08b417d6c458704171f11da39 SHA512 17fbba5d34ece5c1c25ef35fa3bbc3d6fcd20b44bd766c049bbc120853a8d60c9544db5790645a7814db5c272fd12d383699a8a9be6f4e9c56a7c0a1bb29ade2 WHIRLPOOL b358a31a9ee669a4fccf42280da5342c214932bfd83deee92d41351eb37dc6c0b2e5dc7419f2304128b5d285fed92db5b2e1634a71bbf1310d36b54d1a353bb0
|
||||
AUX lvm2-2.02.70-asneeded.patch 326 SHA256 b0f84dadc213a9daaa97ae7815f624f0bcdc883d627659c7fcf8b7131538b43e SHA512 e38d8ef5d13c8861f7d1ca5c16271b3da138e8747ba01442de3f55aab45265fdaf42513e596f5af1d024fa2cf0c959bd3e47da52bbe8b13c75e665dd95f81279 WHIRLPOOL 77143f2dafeca221f8b3cda4df1669111de44a4ae4916d9aa2228aa76d94b4d1c556cf90a6f90cae2f1938f7474fb678ec6eab1b4e57f7fd20eab473de667cda
|
||||
AUX lvm2-2.02.88-respect-cc.patch 467 SHA256 a19e1049fc6da2b9feb0898360a86ea3aab715329e294376b0b5fc2e11fc41f0 SHA512 e5224f4826dc1d475519719588a683cbb94d49c5449b22698f52cf7735c2b6a0f758e7a591851a01f3e7065a7adb43232370b25ba26127b75ca6280d0befe36e WHIRLPOOL fb2b1d66fa5af0a177561fc51ec447f550873c220f6344a9e705a4a425f547962eb780266bbc178220ba00a015f4311ca775e9751433fab1739c10a62b3124c1
|
||||
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.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
|
||||
AUX lvm2-2.02.99-example.conf.in.patch 1489 SHA256 55273a2bc6df33057f4efdd947b75f0282a7993acd5e57f0019f8ca57ca7df38 SHA512 0c92a0e454505219653500d4fb2ee57626bb30375782be941bda17d7b841cb05eeebb87bfc4f7aa397b26fb4908bcbd0f69d2c07e63bf4f070756a1894851869 WHIRLPOOL 3f6c94dd63fcf5e2d1406aa074aee27997fa6d58da3db9d22281b3080ec36277bc5225c3b62f042b38f5d0870fb1e3e19433f218f01e03323c7ad1210d45d4b3
|
||||
AUX lvm2-2.02.99-locale-muck.patch 395 SHA256 14e7c65fd9aa71b7f09cc1aecfaccb3048dbb09dd4eb4c342556708aa6adba77 SHA512 4014abbaeb1106dbaa360e2573340651adc0cccc6c0c05cc57695e74e7a3d0b5a73e2b72242bab0d0a10c2506a7c30c2a4de0275c0f81a14dfb068ec91492497 WHIRLPOOL 3383e94ca4dbaefd2c628d3a95b17a14602481c98425caf48f490185289eb3f1af2ef234ff5b5c431ea4624edd8e48764252bdf5b7159ab3bbbad699c3f936ab
|
||||
AUX lvmetad.initd-2.02.105-r2 405 SHA256 60accb4b6114753232f2db0adf3fc3f46d4459bfedf79b888801a13c55d79fa9 SHA512 d9c6f6c68a83b8f391ded7ebe900009a61ff06e92eb68ccb3dcdc8f41e61bbcdf47246e523ea8cfd6e71790376b316b219d4afaf66cf11477e2b54d526b74998 WHIRLPOOL d959d8c8b5f4ef84c26f8e585fe1761ef9bfd37f590e783e937679a863982e7cc4a4e320c3e2e3bd635dbd3486c15baf7c24e1a21325521f4320e643a57fb0e7
|
||||
DIST LVM2.2.02.103.tgz 1343887 SHA256 71c5a2e8842ed2f13f52e02b44eb183110a3410dedd1e117348e4eecc29d3c2a SHA512 1a9920947312e3e248bff7ff5d5eb54dec3f3b05eb3388fa92f95369b26ae8e6838186f87d817b09e8c635ddc3cdf51bc1d07c2a9d65fd7eab33598998bb7afe WHIRLPOOL de96dd8b7fb46ec777f34169759852ee5ef03ccdc93e110bf63c92dddb9cf4f805635444ceeead6b581610d2a23217d3b4729c286f016623f73b99c0b35a42a0
|
||||
DIST LVM2.2.02.104.tgz 1352953 SHA256 0d68b5a5d751a1e595f60ae55babbbf131ac3ace5dcfc7ac35a9eb85ee8647f5 SHA512 5071e1c7ae0a006ea93b72dbbe460037a7fb5a87f3fd4191118b04066bf60318a219c9bc63858d44d1b1cdd8cb7ecc295257585e9d24dd53a9b22f2b5bda16e9 WHIRLPOOL 183bc98dbb4f785d0276620ae8797b9fc8f0a50e0aab772c9e3bceeaf8af70325ff0088c029cb6e215a97e7f52f4a98143a1a7d4b2f5cfdea7834f5abc171558
|
||||
DIST LVM2.2.02.97.tgz 1193141 SHA256 edda82012e8a9e1f0b00ba5a331468d3e0201992be14c0dbea71bf564a51fc2b SHA512 c209054832f36d7b9cbf833c702410ac95c9de1e213b550c01c42f087fcae346d3c931c409184086bc1fcbcbc154c9a4f8b82b06291cefeb7ae22fe7a4c254a0 WHIRLPOOL d4dafde0ae1607cb231acbf07e8aecd579b9e9042e9356df1074a2683f5f2d1036a3483e1799cf7dd14e64f1f4c5506d3628979fd7128cea70ad45b653403dfa
|
||||
EBUILD lvm2-2.02.103.ebuild 7434 SHA256 8c509561c99628734f82521f2d60a625f8c9bc259e1b38e9240d4ea8fa3b9b14 SHA512 117a7fafa9559469525c18f46624ef07d20c2140f20cff73c67ef12282ea0c5eece3edae99391d3cfada8144eb1a17bcaa97a5afe13a5186eeb37094598a0b9e WHIRLPOOL 021b39fc61e8280b5698bcee3c707187935bf4c9a24fa7caca7ee58a2ec376cfe70b6fd4cd1fc8410102a11a0f7a8a7ce92db533ad2f5acaa0377531750afc6e
|
||||
EBUILD lvm2-2.02.104.ebuild 7443 SHA256 49f94841de1fd4a2c8b5275de5d317ea67cb285e8cc89758da8525f869dc0270 SHA512 542035e3dc3117794c2a8e2270f1360cff8aa7edec3c7ad7b51b14535f632b41d3c53f0c214e48bcc000e8946f8a805b8aa4d8b32bcf1abdae3f4223424fa0d9 WHIRLPOOL b17ed1883571c4d794e71a834a3a7105c2d97b32087e4bf5acc2d33be27fd8e1df6f75d50b3a0c064af4c4958f1cb0ff9eecbacd3b1ea7816dd87e0013379988
|
||||
EBUILD lvm2-2.02.97-r1.ebuild 9072 SHA256 616ff463fda707204c5e92c3a22651ec3e87168ead21b859f6ad0f00c2775960 SHA512 d395b0dc1a18846f76bc79f7fef2cbb649bbee179ea800d6b82398ff113d21c84d987107d14397986d2dc7f5127345cde7e1c588ddfcab339e016f3133dc6080 WHIRLPOOL f14c3e31b83d73b4e996e47c1db7e79e293881dfb1bc519383cfdaac35331ff4fb0a735d2c138433855b1795f084552126b340624191ba8aaf0069011eb6d823
|
||||
MISC ChangeLog 63048 SHA256 afc1dda584a37ec782fd3d7105a171937772bba0967cbf372bb2d279da4d991c SHA512 c8cddf9bf9d24597d0ccb5c9591f51c5b4e08d5b482703b693ecea34d1ff22f1f95f4a933fb1a47079191556fa1d02491b788f8c7b70d1c71b67f927033087d7 WHIRLPOOL 655215044f785e4c63df9411ae8256154aba99a244e432b268788b89d8836634a17d4e0e3ebfece76c0ab164f3ad524476de81d766bfee17624a4d0a1df60f34
|
||||
MISC metadata.xml 890 SHA256 939c094b59b429047563482baaa129a54f2328257fc19a0b646c443b77bab434 SHA512 9c676f0c9bf91e5fa82c7ae85c4cd2556f6eee5c6fcb8eeaa8465ba6737fb2c9379412871de2334c3152897f054fcbfab39c4229b9fbaf14345c38b90301fe12 WHIRLPOOL a75625cf26cddb09c24e351a492a2ad7bf357171f19012b62b482971eacd23ef1a069ea3d0ad7b687a7ec77d662bc758dc002e02ff725afe3bb1ab32c07d3a1e
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.22 (GNU/Linux)
|
||||
|
||||
iEYEAREIAAYFAlKWQHwACgkQkKaRLQcq0GJc7gCdHrR+fsbUdN0fj2/+GBKyHsSS
|
||||
pqUAn28vwyOd10yTXeGS612o2xJ6Ac1M
|
||||
=7Man
|
||||
-----END PGP SIGNATURE-----
|
||||
DIST LVM2.2.02.105.tgz 1374752 SHA256 d0700c7000ff6375c1c36cb2a89b97b9ae6757f4219fa9ec65f313d13d71e51e SHA512 fb2f4eaceb8e643c7e081b6d8d77daf387960c39f880f5600df40c7eb32d7908835114b8619805a814fc1c59ce920fa36d9afa72314dfabcb69ddf134833e1fa WHIRLPOOL b0dfea302e0afced489d96d14a04bddc48cfff540d26f69217787fe95b571d5600647162da84a95c6cb42e02fb83473a00257ab73e920b9a1b3c46f5ab12f02d
|
||||
DIST LVM2.2.02.106.tgz 1426030 SHA256 6c83df279c2190543be750cda278c7d3e875dcadb5cbdc44c19f6040d718285b SHA512 52cfbe86ec89cebc639c6446195bba546fc5576165a38c5db6adf0d8aba6309a3140562d9c6a8bdc4ba415d91bb307989cdbb787cf4ec68dcacdcccbda71ae07 WHIRLPOOL 5853cd3e64ede16e21ee66a664cae222f707406e85379e051e72bf9264c8b6da83af9be7634d8d93c07bd772c395dc278ff37b55adc40f50b6e4c432e8e7a593
|
||||
DIST LVM2.2.02.107.tgz 1462424 SHA256 b1d6890e7a23c7a0bb7ed6be7f17a5e8f819da71d93f4a0b123661fe0f028820 SHA512 896c0f34d0134dfd985345e42e1381865e27ebdb7fa33b1e4ccf0b4dbd00bc708931f6827756778567092376ecb7f77bade7f93461a61b5e1e6b15c40b575bdd WHIRLPOOL c85c82e875c52a297cb8fd02eb7942906fee369506e5c51888a06c8c29361f5db2b59161d36ea085326fd83dc6371d6573bf298bd2d21c3aecacfcab674ebf6e
|
||||
EBUILD lvm2-2.02.103.ebuild 7433 SHA256 3ae965eab7c06b32ea1ec3718d4e866b9a53582959957d2e6afdadceb1c68847 SHA512 13c4c12b44bb2a9f46fc12afa5978e15ef31e90be18d917c86189cf02eba3edb6f5e7390cfd38c0d1716ccacdc18582c826b8933f3ecccba1d11cbbbb536d4d8 WHIRLPOOL b88350388468f6a00924e1b0ef2d99eb1b55a763a0951c8b51de621519cffe11ad53b18cc49a02cd8122caf9e4dd97f49b9aae1ac1dbb1c925cac63e82e5927a
|
||||
EBUILD lvm2-2.02.105-r2.ebuild 8540 SHA256 c3d234e184cc6707196343a3215efa289847dd03f35933b3e580b0ab0109a6d6 SHA512 c8a60e153a7f46627c803e8a183defae047c67f66f40578e95a7fe4b5a6830e2167d7081595e5d3f3e6dd55f13c00e7e772713b0e708ec6f32da97ae8ce08337 WHIRLPOOL 16fd1fb43174259cdf7ce9c99711bf2e19d5d726af79762d37f0ce47e92489174a8d2c4519ad40d9f4f184d51bbdd353082bcfe6f93bf9ff7e1f5b1d6ff872ab
|
||||
EBUILD lvm2-2.02.106.ebuild 8865 SHA256 0019f62c2ababadf481a29160134f001ac391da5751349d4fab76122f1341b3d SHA512 12e2bb2f324d8f885441f12c011e10d5a7fb6fe28c2b66c4ad66c5f8a836faae6ae34d522c81cb77afdf7807e57dbd91d2c13fe585cd4e2bff4857c8a86db891 WHIRLPOOL 22a4a20cf7fa1737c7fec5a1e513f01099352f350f1f8a4c95fa42908ff0e4ecb41b0cb94bd02da9a9d7fc45e8e57da3ac87910e0d8a006ead447ba1b044b7c5
|
||||
EBUILD lvm2-2.02.107.ebuild 8863 SHA256 e44b3e7bca76f011293996b870ceca6083a5273d7098e3914f7969ad2f556179 SHA512 ea66057e1d1469852c7eb1a871f74ed0ee986e2b8a751c18254ac4bedd7e421b25ba9b14cd01442ac8f4b958f592a9d4cbfa4414807c7f1c5558263a21f4306b WHIRLPOOL e4fea0962a40883d63369127e4a91b6f7db459b2614f54ed78d063a98046ed2a25d1081498c71f8fb69536c2f65742a4213ccd59f06e3772a075c06fba596912
|
||||
MISC ChangeLog 68425 SHA256 9842f15ea4696d2aaf3434d7f6bee1252b818c592b919d26b979075098b1790a SHA512 4f3ed272214a47af7377c890116fd7daa11f932f4e29fadf6044d88c4f0b7d29647cb6a32043b3f6c4f7fd4bb6c5622b915dd4f3eae7c64735384bea5b58e4ef WHIRLPOOL bdeb973f4f87086cc2a66a41d1ead1d3c9390fa6635c2942fb07fb5a4bca6f46cac337464d8ee295abd0e6ff7241025fd19836384dcf3edcbf9f47798bed9965
|
||||
MISC metadata.xml 995 SHA256 a2be36b695dab8ef65772af8d808cdc7a5c5855e2c9104060e7232e21b984216 SHA512 642abe2a196ffeaf3a67530befa8dc123f1e3e1238bf55d38c0affea82ab5b2f9e56da6b303410845c625494a59323ac8570f40e0f8a406db76295059958361a WHIRLPOOL cba3a6dd12fafc4719050082ee740d03ef0ed68e074b556a0c1f15f4a7b328d9b826d2b7ab3d3f19546de92e907a3fd466792db67423cb8630d5313154d5b6f2
|
||||
|
147
sdk_container/src/third_party/portage-stable/sys-fs/lvm2/files/device-mapper.rc-2.02.105-r2
vendored
Normal file
147
sdk_container/src/third_party/portage-stable/sys-fs/lvm2/files/device-mapper.rc-2.02.105-r2
vendored
Normal file
@ -0,0 +1,147 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/files/device-mapper.rc-2.02.105-r2,v 1.1 2014/02/02 19:52:34 robbat2 Exp $
|
||||
|
||||
depend() {
|
||||
# As of .67-r1, we call ALL lvm start/stop scripts with --sysinit, that
|
||||
# means dmeventd is NOT notified, as it cannot be safely running
|
||||
before dmeventd checkfs fsck
|
||||
after modules
|
||||
}
|
||||
|
||||
dm_in_proc() {
|
||||
local retval=0
|
||||
for x in devices misc ; do
|
||||
grep -qs 'device-mapper' /proc/${x}
|
||||
retval=$((${retval} + $?))
|
||||
done
|
||||
return ${retval}
|
||||
}
|
||||
|
||||
# char **build_dmsetup_command(volume)
|
||||
#
|
||||
# Returns complete dmsetup command given single volume name
|
||||
build_dmsetup_command() {
|
||||
local count dmsetup_cmd
|
||||
|
||||
# Number of lines mentioning volume name
|
||||
count=$(grep -v -e '^[[:space:]]*\(#\|$\)' /etc/dmtab | grep -c ${1})
|
||||
|
||||
# If there's just one line:
|
||||
if [ ${count} -eq 1 ] ; then
|
||||
echo "echo $(grep -v -e '^[[:space:]]*\(#\|$\)' /etc/dmtab | \
|
||||
grep ${1} | awk '{$1=""; print $0}') | /sbin/dmsetup create ${1}"
|
||||
|
||||
# For all cases with more lines:
|
||||
elif [ ${count} -gt 1 ] ; then
|
||||
for c in $( seq 1 ${count} ) ; do
|
||||
if [ ${c} -eq 1 ] ; then
|
||||
# Heavy escaping in awk-statement because we cannot use apostrophes
|
||||
dmsetup_cmd="echo -e $(grep -v -e '^[[:space:]]*\(#\|$\)' /etc/dmtab | \
|
||||
grep ${1} | awk NR==${c}\ \{\$1=\"\"\;\ print\ \$0\})"
|
||||
else
|
||||
# Append starting with newline
|
||||
dmsetup_cmd="${dmsetup_cmd}\\\\n \
|
||||
$(grep -v -e '^[[:space:]]*\(#\|$\)' /etc/dmtab | \
|
||||
grep ${1} | awk NR==${c}\ \{\$1=\"\"\;\ print\ \$0\})"
|
||||
fi
|
||||
done
|
||||
echo "${dmsetup_cmd} | /sbin/dmsetup create ${1}"
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
# char **get_new_dm_volumes(void)
|
||||
#
|
||||
# Return unique volumes from /etc/dmtab
|
||||
get_new_dm_volumes() {
|
||||
local volume
|
||||
|
||||
# Filter comments and blank lines
|
||||
grep -v -e '^[[:space:]]*\(#\|$\)' /etc/dmtab | \
|
||||
awk '{ print $1 }' | \
|
||||
uniq | \
|
||||
while read volume ; do
|
||||
# If it exists, skip it
|
||||
dmvolume_exists "${volume%:}" && continue
|
||||
|
||||
echo "${volume%:}"
|
||||
done
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
# int dmvolume_exists(volume)
|
||||
#
|
||||
# Return true if volume exists in DM table
|
||||
dmvolume_exists() {
|
||||
local x line volume=$1
|
||||
|
||||
[ -z "${volume}" ] && return 1
|
||||
|
||||
/sbin/dmsetup ls 2>/dev/null | \
|
||||
while read line ; do
|
||||
for x in ${line} ; do
|
||||
# the following conditonal return only breaks out
|
||||
# of the while loop, as it is running in a pipe.
|
||||
[ "${x}" = "${volume}" ] && return 1
|
||||
# We only want to check the volume name
|
||||
break
|
||||
done
|
||||
done
|
||||
|
||||
# if 1 was returned from the above loop, then indicate that
|
||||
# volume exists
|
||||
[ $? = 1 ] && return 0
|
||||
|
||||
# otherwise the loop exited normally and the volume does not
|
||||
# exist
|
||||
return 1
|
||||
}
|
||||
|
||||
# int is_empty_dm_volume(volume)
|
||||
#
|
||||
# Return true if the volume exists in DM table, but is empty/non-valid
|
||||
is_empty_dm_volume() {
|
||||
local table volume=$1
|
||||
|
||||
set -- $(/sbin/dmsetup table 2>/dev/null | grep -e "^${volume}:")
|
||||
[ "${volume}" = "$1" -a -z "$2" ]
|
||||
}
|
||||
|
||||
|
||||
start() {
|
||||
if [ -e /proc/modules ] && ! dm_in_proc ; then
|
||||
modprobe dm-mod 2>/dev/null
|
||||
fi
|
||||
# Ensure the dirs exist for locking and running
|
||||
checkpath -q -d -m 0700 -o root:root /run/lvm /run/lock/lvm
|
||||
|
||||
local x volume
|
||||
|
||||
if [ -x /sbin/dmsetup -a -c /dev/mapper/control -a -f /etc/dmtab ] ; then
|
||||
[ -n "$(get_new_dm_volumes)" ] && \
|
||||
einfo " Setting up device-mapper volumes:"
|
||||
|
||||
get_new_dm_volumes | \
|
||||
while read x ; do
|
||||
[ -n "${x}" ] || continue
|
||||
|
||||
volume="${x##* }"
|
||||
|
||||
ebegin " Creating volume: ${volume}"
|
||||
if ! eval $(build_dmsetup_command ${volume}) >/dev/null 2>/dev/null ; then
|
||||
eend 1 " Error creating volume: ${volume}"
|
||||
# dmsetup still adds an empty volume in some cases,
|
||||
# so lets remove it
|
||||
is_empty_dm_volume "${volume}" && \
|
||||
/sbin/dmsetup remove "${volume}" 2>/dev/null
|
||||
else
|
||||
eend 0
|
||||
fi
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
@ -1,7 +1,10 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/files/dmeventd.initd-2.02.67-r1,v 1.2 2013/04/09 11:00:26 ssuominen Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/files/dmeventd.initd-2.02.67-r1,v 1.3 2014/02/08 21:17:46 robbat2 Exp $
|
||||
|
||||
PIDFILE=/run/dmeventd.pid
|
||||
BIN=/sbin/dmeventd
|
||||
|
||||
depend() {
|
||||
# As of .67-r1, we call ALL lvm start/stop scripts with --sysinit, that
|
||||
@ -11,13 +14,13 @@ depend() {
|
||||
|
||||
start() {
|
||||
ebegin "Starting dmeventd"
|
||||
start-stop-daemon --start --exec /sbin/dmeventd --pidfile /var/run/dmeventd.pid
|
||||
start-stop-daemon --start --exec $BIN --pidfile $PIDFILE
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping dmeventd"
|
||||
start-stop-daemon --stop --exec /sbin/dmeventd --pidfile /var/run/dmeventd.pid
|
||||
start-stop-daemon --stop --exec $BIN --pidfile $PIDFILE
|
||||
eend $?
|
||||
}
|
||||
|
||||
|
39
sdk_container/src/third_party/portage-stable/sys-fs/lvm2/files/lvm-monitoring.initd-2.02.105-r2
vendored
Normal file
39
sdk_container/src/third_party/portage-stable/sys-fs/lvm2/files/lvm-monitoring.initd-2.02.105-r2
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/files/lvm-monitoring.initd-2.02.105-r2,v 1.1 2014/02/02 19:52:34 robbat2 Exp $
|
||||
|
||||
# This script is based on upstream file
|
||||
# LVM2.2.02.67/scripts/lvm2_monitoring_init_red_hat.in
|
||||
|
||||
depend() {
|
||||
# As of .67-r1, we call ALL lvm start/stop scripts with --sysinit, that
|
||||
# means dmeventd is NOT notified, as it cannot be safely running
|
||||
need lvm dmeventd
|
||||
}
|
||||
|
||||
VGCHANGE=/sbin/vgchange
|
||||
VGS=/sbin/vgs
|
||||
|
||||
start() {
|
||||
ret=0
|
||||
# TODO do we want to separate out already active groups only?
|
||||
VGSLIST=`$VGS --noheadings -o name --rows 2> /dev/null`
|
||||
ebegin "Starting LVM monitoring for VGs ${VGSLIST}:"
|
||||
$VGCHANGE --monitor y --poll y ${VGSLIST}
|
||||
ret=$?
|
||||
eend $ret
|
||||
return $ret
|
||||
|
||||
}
|
||||
|
||||
stop() {
|
||||
ret=0
|
||||
# TODO do we want to separate out already active groups only?
|
||||
VGSLIST=`$VGS --noheadings -o name --rows 2> /dev/null`
|
||||
ebegin "Stopping LVM monitoring for VGs ${VGSLIST}:"
|
||||
$VGCHANGE --monitor n ${VGSLIST}
|
||||
ret=$?
|
||||
eend $ret
|
||||
return $ret
|
||||
}
|
97
sdk_container/src/third_party/portage-stable/sys-fs/lvm2/files/lvm.rc-2.02.105-r2
vendored
Normal file
97
sdk_container/src/third_party/portage-stable/sys-fs/lvm2/files/lvm.rc-2.02.105-r2
vendored
Normal file
@ -0,0 +1,97 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/files/lvm.rc-2.02.105-r2,v 1.1 2014/02/02 19:52:34 robbat2 Exp $
|
||||
|
||||
depend() {
|
||||
before checkfs fsck
|
||||
after modules device-mapper
|
||||
need lvmetad sysfs
|
||||
}
|
||||
|
||||
config='global { locking_dir = "/run/lock/lvm" }'
|
||||
|
||||
dm_in_proc() {
|
||||
local retval=0
|
||||
for x in devices misc ; do
|
||||
grep -qs 'device-mapper' /proc/${x}
|
||||
retval=$((${retval} + $?))
|
||||
done
|
||||
return ${retval}
|
||||
}
|
||||
|
||||
start() {
|
||||
# LVM support for /usr, /home, /opt ....
|
||||
# This should be done *before* checking local
|
||||
# volumes, or they never get checked.
|
||||
|
||||
# NOTE: Add needed modules for LVM or RAID, etc
|
||||
# to /etc/modules.autoload if needed
|
||||
for lvm_path in /bin/lvm /sbin/lvm ; do
|
||||
[ -x "$lvm_path" ] && break
|
||||
done
|
||||
if [ ! -x "$lvm_path" ]; then
|
||||
eerror "Cannot find lvm binary in /sbin or /bin!"
|
||||
return 1
|
||||
fi
|
||||
if [ -z "${CDBOOT}" ] ; then
|
||||
if [ -e /proc/modules ] && ! dm_in_proc ; then
|
||||
modprobe dm-mod 2>/dev/null
|
||||
fi
|
||||
if [ -d /proc/lvm ] || dm_in_proc ; then
|
||||
ebegin "Setting up the Logical Volume Manager"
|
||||
#still echo stderr for debugging
|
||||
lvm_commands="#! ${lvm_path} --config '${config}'\n"
|
||||
# Extra PV find pass because some devices might not have been available until very recently
|
||||
lvm_commands="${lvm_commands}pvscan\n"
|
||||
# Now make the nodes
|
||||
lvm_commands="${lvm_commands}vgscan --mknodes\n"
|
||||
# And turn them on!
|
||||
lvm_commands="${lvm_commands}vgchange --sysinit -a ly\n"
|
||||
# Order of this is important, have to work around dash and LVM readline
|
||||
printf "%b\n" "${lvm_commands}" | $lvm_path /proc/self/fd/0 --config "${config}" >/dev/null
|
||||
eend $? "Failed to setup the LVM"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
stop() {
|
||||
for lvm_path in /bin/lvm /sbin/lvm ; do
|
||||
[ -x "$lvm_path" ] && break
|
||||
done
|
||||
if [ ! -x "$lvm_path" ]; then
|
||||
eerror "Cannot find lvm binary in /sbin or /bin!"
|
||||
return 1
|
||||
fi
|
||||
# Stop LVM2
|
||||
if [ -x /sbin/vgs ] && \
|
||||
[ -x /sbin/vgchange ] && \
|
||||
[ -x /sbin/lvchange ] && \
|
||||
[ -f /etc/lvmtab -o -d /etc/lvm ] && \
|
||||
[ -d /proc/lvm -o "`grep device-mapper /proc/misc 2>/dev/null`" ]
|
||||
then
|
||||
einfo "Shutting down the Logical Volume Manager"
|
||||
|
||||
|
||||
VGS=$($lvm_path vgs --config "${config}" -o vg_name --noheadings --nosuffix --rows 2> /dev/null)
|
||||
|
||||
if [ "$VGS" ]
|
||||
then
|
||||
ebegin " Shutting Down LVs & VGs"
|
||||
#still echo stderr for debugging
|
||||
lvm_commands="#! ${lvm_path} --config '${config}'\n"
|
||||
# Extra PV find pass because some devices might not have been available until very recently
|
||||
lvm_commands="${lvm_commands}lvchange --sysinit -a ln ${VGS}\n"
|
||||
# Now make the nodes
|
||||
lvm_commands="${lvm_commands}vgchange --sysinit -a ln ${VGS}\n"
|
||||
# Order of this is important, have to work around dash and LVM readline
|
||||
printf "%b\n" "${lvm_commands}" | $lvm_path /proc/self/fd/0 --config "${config}" >/dev/null
|
||||
eend $? "Failed (possibly some LVs still needed for /usr or root)"
|
||||
fi
|
||||
|
||||
einfo "Finished shutting down the Logical Volume Manager"
|
||||
return 0
|
||||
fi
|
||||
}
|
||||
|
||||
# vim:ts=4
|
@ -0,0 +1,36 @@
|
||||
Make sure that libdm usage always brings in pthread libraries, both in
|
||||
pkgconfig and during manual build.
|
||||
|
||||
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
||||
|
||||
diff -Nuar LVM2.2.02.105.orig/libdm/libdevmapper.pc.in LVM2.2.02.105/libdm/libdevmapper.pc.in
|
||||
--- LVM2.2.02.105.orig/libdm/libdevmapper.pc.in 2014-01-20 11:25:30.000000000 -0800
|
||||
+++ LVM2.2.02.105/libdm/libdevmapper.pc.in 2014-02-01 14:50:58.805455421 -0800
|
||||
@@ -8,4 +8,5 @@
|
||||
Version: @DM_LIB_PATCHLEVEL@
|
||||
Cflags: -I${includedir}
|
||||
Libs: -L${libdir} -ldevmapper
|
||||
+Libs.private: -L${libdir} @PTHREAD_LIBS@
|
||||
Requires.private: @SELINUX_PC@ @UDEV_PC@
|
||||
diff -Nuar LVM2.2.02.105/tools/Makefile.in LVM2.2.02.105.orig/tools/Makefile.in
|
||||
--- LVM2.2.02.105/tools/Makefile.in 2014-02-03 18:33:19.032894499 -0800
|
||||
+++ LVM2.2.02.105.orig/tools/Makefile.in 2014-02-03 18:36:41.738459116 -0800
|
||||
@@ -86,6 +86,7 @@
|
||||
INSTALL_LVM_TARGETS += install_tools_static
|
||||
INSTALL_DMSETUP_TARGETS += install_dmsetup_static
|
||||
INSTALL_CMDLIB_TARGETS += install_cmdlib_static
|
||||
+ STATIC_LIBS += @PTHREAD_LIBS@
|
||||
endif
|
||||
|
||||
LVMLIBS = $(LVMINTERNAL_LIBS)
|
||||
@@ -118,6 +119,10 @@
|
||||
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
+ifeq ("@STATIC_LINK@", "yes")
|
||||
+ STATIC_LIBS += @PTHREAD_LIBS@
|
||||
+endif
|
||||
+
|
||||
LIBS += $(UDEV_LIBS) $(BLKID_LIBS)
|
||||
|
||||
device-mapper: $(TARGETS_DM)
|
48
sdk_container/src/third_party/portage-stable/sys-fs/lvm2/files/lvm2-2.02.105-readline-6.3.patch
vendored
Normal file
48
sdk_container/src/third_party/portage-stable/sys-fs/lvm2/files/lvm2-2.02.105-readline-6.3.patch
vendored
Normal file
@ -0,0 +1,48 @@
|
||||
https://bugs.gentoo.org/503234
|
||||
|
||||
From 216c57eed72fee52e99bb5d014c9de535e631f58 Mon Sep 17 00:00:00 2001
|
||||
From: Zdenek Kabelac <zkabelac@redhat.com>
|
||||
Date: Thu, 6 Mar 2014 16:04:19 +0100
|
||||
Subject: [PATCH] readline: switch to new-style readline typedef
|
||||
|
||||
Based on patch:
|
||||
https://www.redhat.com/archives/lvm-devel/2014-March/msg00015.html
|
||||
|
||||
The CPPFunction typedef (among others) have been deprecated in favour of
|
||||
specific prototyped typedefs since readline 4.2 (circa 2001).
|
||||
It's been working since because compatibility typedefs have been in
|
||||
place until they where removed in the recent readline 6.3 release.
|
||||
Switch to the new style to avoid build breakage.
|
||||
|
||||
But also add full backward compatibility with define.
|
||||
|
||||
Signed-off-by: Gustavo Zacarias <gustavo zacarias com ar>
|
||||
---
|
||||
WHATS_NEW | 1 +
|
||||
tools/lvm.c | 3 ++-
|
||||
2 files changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tools/lvm.c b/tools/lvm.c
|
||||
index 51e9293..f9ab438 100644
|
||||
--- a/tools/lvm.c
|
||||
+++ b/tools/lvm.c
|
||||
@@ -27,6 +27,7 @@ int main(int argc, char **argv)
|
||||
# include <readline/history.h>
|
||||
# ifndef HAVE_RL_COMPLETION_MATCHES
|
||||
# define rl_completion_matches(a, b) completion_matches((char *)a, b)
|
||||
+# define rl_completion_func_t CPPFunction
|
||||
# endif
|
||||
|
||||
static struct cmdline_context *_cmdline;
|
||||
@@ -185,7 +186,7 @@ int lvm_shell(struct cmd_context *cmd, struct cmdline_context *cmdline)
|
||||
char *input = NULL, *args[MAX_ARGS], **argv;
|
||||
|
||||
rl_readline_name = "lvm";
|
||||
- rl_attempted_completion_function = (CPPFunction *) _completion;
|
||||
+ rl_attempted_completion_function = (rl_completion_func_t *) _completion;
|
||||
|
||||
_read_history(cmd);
|
||||
|
||||
--
|
||||
1.9.0
|
||||
|
@ -0,0 +1,101 @@
|
||||
diff -Nuar LVM2.2.02.105.orig/configure.in LVM2.2.02.105/configure.in
|
||||
--- LVM2.2.02.105.orig/configure.in 2014-02-01 14:53:32.167236743 -0800
|
||||
+++ LVM2.2.02.105/configure.in 2014-02-01 15:01:45.893192059 -0800
|
||||
@@ -994,6 +994,7 @@
|
||||
])
|
||||
if test x$BLKID_WIPING = xyes; then
|
||||
BLKID_PC="blkid"
|
||||
+ BLKID_STATIC_LIBS=`$PKG_CONFIG --static --libs $BLKID_PC`
|
||||
AC_DEFINE([BLKID_WIPING_SUPPORT], 1, [Define to 1 to use libblkid detection of signatures when wiping.])
|
||||
fi
|
||||
fi
|
||||
@@ -1022,6 +1023,7 @@
|
||||
pkg_config_init
|
||||
fi
|
||||
PKG_CHECK_MODULES(UDEV, libudev >= 143, [UDEV_PC="libudev"])
|
||||
+ UDEV_STATIC_LIBS=`$PKG_CONFIG --static --libs libudev`
|
||||
AC_DEFINE([UDEV_SYNC_SUPPORT], 1, [Define to 1 to enable synchronisation with udev processing.])
|
||||
fi
|
||||
|
||||
@@ -1265,19 +1267,31 @@
|
||||
if test x$SELINUX = xyes; then
|
||||
AC_CHECK_LIB([sepol], [sepol_check_context], [
|
||||
AC_DEFINE([HAVE_SEPOL], 1, [Define to 1 if sepol_check_context is available.])
|
||||
- SELINUX_LIBS="-lsepol"])
|
||||
+ SEPOL_LIBS="-lsepol"])
|
||||
|
||||
+ dnl -- init pkgconfig if required
|
||||
+ if test x$PKGCONFIG_INIT != x1; then
|
||||
+ pkg_config_init
|
||||
+ fi
|
||||
+ PKG_CHECK_MODULES(SELINUX, libselinux, [
|
||||
+ SELINUX_PC="libselinux"
|
||||
+ SELINUX_STATIC_LIBS=`$PKG_CONFIG --static --libs libselinux`
|
||||
+ SELINUX_LIBS="$SELINUX_LIBS $SEPOL_LIBS"
|
||||
+ AC_DEFINE([HAVE_SELINUX], 1, [Define to 1 to include support for selinux.])
|
||||
+ ],[
|
||||
+ dnl -- old non-pkgconfig method, is buggy with static builds
|
||||
AC_CHECK_LIB([selinux], [is_selinux_enabled], [
|
||||
AC_CHECK_HEADERS([selinux/selinux.h],, hard_bailout)
|
||||
AC_CHECK_HEADERS([selinux/label.h])
|
||||
AC_DEFINE([HAVE_SELINUX], 1, [Define to 1 to include support for selinux.])
|
||||
- SELINUX_LIBS="-lselinux $SELINUX_LIBS"
|
||||
+ SELINUX_LIBS="-lselinux $SEPOL_LIBS"
|
||||
SELINUX_PC="libselinux"
|
||||
HAVE_SELINUX=yes ], [
|
||||
AC_MSG_WARN(Disabling selinux)
|
||||
SELINUX_LIBS=
|
||||
SELINUX_PC=
|
||||
HAVE_SELINUX=no ])
|
||||
+ ])
|
||||
fi
|
||||
|
||||
################################################################################
|
||||
@@ -1592,6 +1606,7 @@
|
||||
AC_SUBST(APPLIB)
|
||||
AC_SUBST(AWK)
|
||||
AC_SUBST(BLKID_LIBS)
|
||||
+AC_SUBST(BLKID_STATIC_LIBS)
|
||||
AC_SUBST(BLKID_PC)
|
||||
AC_SUBST(BLKID_WIPING)
|
||||
AC_SUBST(BUILD_CMIRRORD)
|
||||
@@ -1684,6 +1699,7 @@
|
||||
AC_SUBST(SALCK_CFLAGS)
|
||||
AC_SUBST(SALCK_LIBS)
|
||||
AC_SUBST(SELINUX_LIBS)
|
||||
+AC_SUBST(SELINUX_STATIC_LIBS)
|
||||
AC_SUBST(SELINUX_PC)
|
||||
AC_SUBST(SNAPSHOTS)
|
||||
AC_SUBST(STATICDIR)
|
||||
@@ -1695,6 +1711,7 @@
|
||||
AC_SUBST(THIN_DUMP_CMD)
|
||||
AC_SUBST(THIN_REPAIR_CMD)
|
||||
AC_SUBST(UDEV_LIBS)
|
||||
+AC_SUBST(UDEV_STATIC_LIBS)
|
||||
AC_SUBST(UDEV_PC)
|
||||
AC_SUBST(UDEV_RULES)
|
||||
AC_SUBST(UDEV_SYNC)
|
||||
diff -Nuar LVM2.2.02.105.orig/make.tmpl.in LVM2.2.02.105/make.tmpl.in
|
||||
--- LVM2.2.02.105.orig/make.tmpl.in 2014-02-01 14:52:26.779050860 -0800
|
||||
+++ LVM2.2.02.105/make.tmpl.in 2014-02-01 14:57:45.642834111 -0800
|
||||
@@ -44,7 +44,7 @@
|
||||
|
||||
LIBS = @LIBS@
|
||||
# Extra libraries always linked with static binaries
|
||||
-STATIC_LIBS = $(SELINUX_LIBS) $(UDEV_LIBS) $(BLKID_LIBS)
|
||||
+STATIC_LIBS = $(SELINUX_STATIC_LIBS) $(UDEV_STATIC_LIBS) $(BLKID_STATIC_LIBS)
|
||||
DEFS += @DEFS@
|
||||
# FIXME set this only where it's needed, not globally?
|
||||
CFLAGS += @CFLAGS@ @UDEV_CFLAGS@
|
||||
@@ -59,8 +59,11 @@
|
||||
PTHREAD_LIBS = @PTHREAD_LIBS@
|
||||
READLINE_LIBS = @READLINE_LIBS@
|
||||
SELINUX_LIBS = @SELINUX_LIBS@
|
||||
+SELINUX_STATIC_LIBS = @SELINUX_STATIC_LIBS@
|
||||
UDEV_LIBS = @UDEV_LIBS@
|
||||
+UDEV_STATIC_LIBS = @UDEV_STATIC_LIBS@
|
||||
BLKID_LIBS=@BLKID_LIBS@
|
||||
+BLKID_STATIC_LIBS=@BLKID_STATIC_LIBS@
|
||||
TESTING = @TESTING@
|
||||
|
||||
# Setup directory variables
|
@ -0,0 +1,24 @@
|
||||
Make sure that libdm usage always brings in pthread libraries, both in
|
||||
pkgconfig and during manual build.
|
||||
|
||||
--- tools/Makefile.in
|
||||
+++ tools/Makefile.in
|
||||
@@ -87,6 +87,7 @@
|
||||
INSTALL_LVM_TARGETS += install_tools_static
|
||||
INSTALL_DMSETUP_TARGETS += install_dmsetup_static
|
||||
INSTALL_CMDLIB_TARGETS += install_cmdlib_static
|
||||
+ STATIC_LIBS += @PTHREAD_LIBS@
|
||||
endif
|
||||
|
||||
LVMLIBS = $(LVMINTERNAL_LIBS)
|
||||
@@ -118,6 +119,10 @@
|
||||
|
||||
include $(top_builddir)/make.tmpl
|
||||
|
||||
+ifeq ("@STATIC_LINK@", "yes")
|
||||
+ STATIC_LIBS += @PTHREAD_LIBS@
|
||||
+endif
|
||||
+
|
||||
device-mapper: $(TARGETS_DM)
|
||||
|
||||
CFLAGS_dmsetup.o += $(UDEV_CFLAGS) $(EXTRA_EXEC_CFLAGS)
|
@ -0,0 +1,102 @@
|
||||
--- configure.in
|
||||
+++ configure.in
|
||||
@@ -1040,6 +1040,7 @@
|
||||
])
|
||||
if test x$BLKID_WIPING = xyes; then
|
||||
BLKID_PC="blkid"
|
||||
+ BLKID_STATIC_LIBS=`$PKG_CONFIG --static --libs $BLKID_PC`
|
||||
AC_DEFINE([BLKID_WIPING_SUPPORT], 1, [Define to 1 to use libblkid detection of signatures when wiping.])
|
||||
fi
|
||||
fi
|
||||
@@ -1068,6 +1069,7 @@
|
||||
pkg_config_init
|
||||
fi
|
||||
PKG_CHECK_MODULES(UDEV, libudev >= 143, [UDEV_PC="libudev"])
|
||||
+ UDEV_STATIC_LIBS=`$PKG_CONFIG --static --libs libudev`
|
||||
AC_DEFINE([UDEV_SYNC_SUPPORT], 1, [Define to 1 to enable synchronisation with udev processing.])
|
||||
fi
|
||||
|
||||
@@ -1312,19 +1314,32 @@
|
||||
if test x$SELINUX = xyes; then
|
||||
AC_CHECK_LIB([sepol], [sepol_check_context], [
|
||||
AC_DEFINE([HAVE_SEPOL], 1, [Define to 1 if sepol_check_context is available.])
|
||||
- SELINUX_LIBS="-lsepol"])
|
||||
+ SEPOL_LIBS="-lsepol"])
|
||||
+
|
||||
+ dnl -- init pkgconfig if required
|
||||
+ if test x$PKGCONFIG_INIT != x1; then
|
||||
+ pkg_config_init
|
||||
+ fi
|
||||
+ PKG_CHECK_MODULES(SELINUX, libselinux, [
|
||||
+ SELINUX_PC="libselinux"
|
||||
+ SELINUX_STATIC_LIBS=`$PKG_CONFIG --static --libs libselinux`
|
||||
+ SELINUX_LIBS="$SELINUX_LIBS $SEPOL_LIBS"
|
||||
+ AC_DEFINE([HAVE_SELINUX], 1, [Define to 1 to include support for selinux.])
|
||||
+ ],[
|
||||
+ dnl -- old non-pkgconfig method, is buggy with static builds
|
||||
|
||||
AC_CHECK_LIB([selinux], [is_selinux_enabled], [
|
||||
AC_CHECK_HEADERS([selinux/selinux.h],, hard_bailout)
|
||||
AC_CHECK_HEADERS([selinux/label.h])
|
||||
AC_DEFINE([HAVE_SELINUX], 1, [Define to 1 to include support for selinux.])
|
||||
- SELINUX_LIBS="-lselinux $SELINUX_LIBS"
|
||||
+ SELINUX_LIBS="-lselinux $SEPOL_LIBS"
|
||||
SELINUX_PC="libselinux"
|
||||
HAVE_SELINUX=yes ], [
|
||||
AC_MSG_WARN(Disabling selinux)
|
||||
SELINUX_LIBS=
|
||||
SELINUX_PC=
|
||||
HAVE_SELINUX=no ])
|
||||
+ ])
|
||||
fi
|
||||
|
||||
################################################################################
|
||||
@@ -1638,6 +1653,7 @@
|
||||
################################################################################
|
||||
AC_SUBST(APPLIB)
|
||||
AC_SUBST(AWK)
|
||||
+AC_SUBST(BLKID_STATIC_LIBS)
|
||||
AC_SUBST(BLKID_PC)
|
||||
AC_SUBST(BLKID_WIPING)
|
||||
AC_SUBST(BUILD_CMIRRORD)
|
||||
@@ -1731,6 +1747,7 @@
|
||||
AC_SUBST(SALCK_CFLAGS)
|
||||
AC_SUBST(SALCK_LIBS)
|
||||
AC_SUBST(SELINUX_LIBS)
|
||||
+AC_SUBST(SELINUX_STATIC_LIBS)
|
||||
AC_SUBST(SELINUX_PC)
|
||||
AC_SUBST(SNAPSHOTS)
|
||||
AC_SUBST(STATICDIR)
|
||||
@@ -1740,6 +1757,7 @@
|
||||
AC_SUBST(THIN_CHECK_CMD)
|
||||
AC_SUBST(THIN_DUMP_CMD)
|
||||
AC_SUBST(THIN_REPAIR_CMD)
|
||||
+AC_SUBST(UDEV_STATIC_LIBS)
|
||||
AC_SUBST(UDEV_PC)
|
||||
AC_SUBST(UDEV_RULES)
|
||||
AC_SUBST(UDEV_SYNC)
|
||||
--- make.tmpl.in
|
||||
+++ make.tmpl.in
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
LIBS = @LIBS@
|
||||
# Extra libraries always linked with static binaries
|
||||
-STATIC_LIBS = $(SELINUX_LIBS) $(UDEV_LIBS) $(BLKID_LIBS)
|
||||
+STATIC_LIBS = $(SELINUX_STATIC_LIBS) $(UDEV_STATIC_LIBS) $(BLKID_STATIC_LIBS)
|
||||
DEFS += @DEFS@
|
||||
# FIXME set this only where it's needed, not globally?
|
||||
CFLAGS += @CFLAGS@
|
||||
@@ -57,10 +57,13 @@
|
||||
PTHREAD_LIBS = @PTHREAD_LIBS@
|
||||
READLINE_LIBS = @READLINE_LIBS@
|
||||
SELINUX_LIBS = @SELINUX_LIBS@
|
||||
+SELINUX_STATIC_LIBS = @SELINUX_STATIC_LIBS@
|
||||
UDEV_CFLAGS = @UDEV_CFLAGS@
|
||||
UDEV_LIBS = @UDEV_LIBS@
|
||||
+UDEV_STATIC_LIBS = @UDEV_STATIC_LIBS@
|
||||
BLKID_CFLAGS = @BLKID_CFLAGS@
|
||||
BLKID_LIBS = @BLKID_LIBS@
|
||||
+BLKID_STATIC_LIBS = @BLKID_STATIC_LIBS@
|
||||
TESTING = @TESTING@
|
||||
|
||||
# Setup directory variables
|
@ -0,0 +1,104 @@
|
||||
diff -Nuar --exclude '*.orig' --exclude '*.rej' LVM2.2.02.107.orig/configure.in LVM2.2.02.107/configure.in
|
||||
--- LVM2.2.02.107.orig/configure.in 2014-07-15 12:57:55.867439868 -0700
|
||||
+++ LVM2.2.02.107/configure.in 2014-07-15 17:24:02.662666091 -0700
|
||||
@@ -997,6 +997,7 @@
|
||||
fi])
|
||||
if test "$BLKID_WIPING" = yes; then
|
||||
BLKID_PC="blkid"
|
||||
+ BLKID_STATIC_LIBS=`$PKG_CONFIG --static --libs $BLKID_PC`
|
||||
AC_DEFINE([BLKID_WIPING_SUPPORT], 1, [Define to 1 to use libblkid detection of signatures when wiping.])
|
||||
fi
|
||||
fi
|
||||
@@ -1022,6 +1023,7 @@
|
||||
if test "$UDEV_SYNC" = yes; then
|
||||
pkg_config_init
|
||||
PKG_CHECK_MODULES(UDEV, libudev >= 143, [UDEV_PC="libudev"])
|
||||
+ UDEV_STATIC_LIBS=`$PKG_CONFIG --static --libs libudev`
|
||||
AC_DEFINE([UDEV_SYNC_SUPPORT], 1, [Define to 1 to enable synchronisation with udev processing.])
|
||||
fi
|
||||
|
||||
@@ -1242,19 +1244,32 @@
|
||||
if test "$SELINUX" = yes; then
|
||||
AC_CHECK_LIB([sepol], [sepol_check_context], [
|
||||
AC_DEFINE([HAVE_SEPOL], 1, [Define to 1 if sepol_check_context is available.])
|
||||
- SELINUX_LIBS="-lsepol"])
|
||||
+ SEPOL_LIBS="-lsepol"])
|
||||
+
|
||||
+ dnl -- init pkgconfig if required
|
||||
+ if test x$PKGCONFIG_INIT != x1; then
|
||||
+ pkg_config_init
|
||||
+ fi
|
||||
+ PKG_CHECK_MODULES(SELINUX, libselinux, [
|
||||
+ SELINUX_PC="libselinux"
|
||||
+ SELINUX_STATIC_LIBS=`$PKG_CONFIG --static --libs libselinux`
|
||||
+ SELINUX_LIBS="$SELINUX_LIBS $SEPOL_LIBS"
|
||||
+ AC_DEFINE([HAVE_SELINUX], 1, [Define to 1 to include support for selinux.])
|
||||
+ ],[
|
||||
+ dnl -- old non-pkgconfig method, is buggy with static builds
|
||||
|
||||
AC_CHECK_LIB([selinux], [is_selinux_enabled], [
|
||||
AC_CHECK_HEADERS([selinux/selinux.h],, hard_bailout)
|
||||
AC_CHECK_HEADERS([selinux/label.h])
|
||||
AC_DEFINE([HAVE_SELINUX], 1, [Define to 1 to include support for selinux.])
|
||||
- SELINUX_LIBS="-lselinux $SELINUX_LIBS"
|
||||
+ SELINUX_LIBS="-lselinux $SEPOL_LIBS"
|
||||
SELINUX_PC="libselinux"
|
||||
HAVE_SELINUX=yes ], [
|
||||
AC_MSG_WARN(Disabling selinux)
|
||||
SELINUX_LIBS=
|
||||
SELINUX_PC=
|
||||
HAVE_SELINUX=no ])
|
||||
+ ])
|
||||
fi
|
||||
|
||||
################################################################################
|
||||
@@ -1556,6 +1571,7 @@
|
||||
################################################################################
|
||||
AC_SUBST(APPLIB)
|
||||
AC_SUBST(AWK)
|
||||
+AC_SUBST(BLKID_STATIC_LIBS)
|
||||
AC_SUBST(BLKID_PC)
|
||||
AC_SUBST(BLKID_WIPING)
|
||||
AC_SUBST(BUILD_CMIRRORD)
|
||||
@@ -1651,6 +1667,7 @@
|
||||
AC_SUBST(SALCK_CFLAGS)
|
||||
AC_SUBST(SALCK_LIBS)
|
||||
AC_SUBST(SELINUX_LIBS)
|
||||
+AC_SUBST(SELINUX_STATIC_LIBS)
|
||||
AC_SUBST(SELINUX_PC)
|
||||
AC_SUBST(SNAPSHOTS)
|
||||
AC_SUBST(STATICDIR)
|
||||
@@ -1662,6 +1679,7 @@
|
||||
AC_SUBST(THIN_DUMP_CMD)
|
||||
AC_SUBST(THIN_REPAIR_CMD)
|
||||
AC_SUBST(THIN_RESTORE_CMD)
|
||||
+AC_SUBST(UDEV_STATIC_LIBS)
|
||||
AC_SUBST(UDEV_PC)
|
||||
AC_SUBST(UDEV_RULES)
|
||||
AC_SUBST(UDEV_SYNC)
|
||||
diff -Nuar --exclude '*.orig' --exclude '*.rej' LVM2.2.02.107.orig/make.tmpl.in LVM2.2.02.107/make.tmpl.in
|
||||
--- LVM2.2.02.107.orig/make.tmpl.in 2014-07-15 12:57:55.868439884 -0700
|
||||
+++ LVM2.2.02.107/make.tmpl.in 2014-07-15 17:23:24.060055838 -0700
|
||||
@@ -44,7 +44,7 @@
|
||||
|
||||
LIBS = @LIBS@
|
||||
# Extra libraries always linked with static binaries
|
||||
-STATIC_LIBS = $(SELINUX_LIBS) $(UDEV_LIBS) $(BLKID_LIBS)
|
||||
+STATIC_LIBS = $(SELINUX_STATIC_LIBS) $(UDEV_STATIC_LIBS) $(BLKID_STATIC_LIBS)
|
||||
DEFS += @DEFS@
|
||||
# FIXME set this only where it's needed, not globally?
|
||||
CFLAGS += @CFLAGS@
|
||||
@@ -59,10 +59,13 @@
|
||||
PTHREAD_LIBS = @PTHREAD_LIBS@
|
||||
READLINE_LIBS = @READLINE_LIBS@
|
||||
SELINUX_LIBS = @SELINUX_LIBS@
|
||||
+SELINUX_STATIC_LIBS = @SELINUX_STATIC_LIBS@
|
||||
UDEV_CFLAGS = @UDEV_CFLAGS@
|
||||
UDEV_LIBS = @UDEV_LIBS@
|
||||
+UDEV_STATIC_LIBS = @UDEV_STATIC_LIBS@
|
||||
BLKID_CFLAGS = @BLKID_CFLAGS@
|
||||
BLKID_LIBS = @BLKID_LIBS@
|
||||
+BLKID_STATIC_LIBS = @BLKID_STATIC_LIBS@
|
||||
TESTING = @TESTING@
|
||||
|
||||
# Setup directory variables
|
@ -1,17 +0,0 @@
|
||||
GNU make always defaults CC to "cc", so using "?=" with the CC variable
|
||||
will never override the internal make value. since @CC@ comes from the
|
||||
configure script, and that respects the $CC env var, don't bother trying
|
||||
to handle it in make too. it's not like we do this with any other build
|
||||
variable after all.
|
||||
|
||||
--- a/make.tmpl.in
|
||||
+++ b/make.tmpl.in
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
-CC ?= @CC@
|
||||
+CC = @CC@
|
||||
RANLIB = @RANLIB@
|
||||
INSTALL = @INSTALL@
|
||||
MKDIR_P = @MKDIR_P@
|
@ -1,12 +0,0 @@
|
||||
diff -Nuar LVM2.2.02.92.orig/make.tmpl.in LVM2.2.02.92/make.tmpl.in
|
||||
--- LVM2.2.02.92.orig/make.tmpl.in 2012-02-20 15:46:46.008422005 -0800
|
||||
+++ LVM2.2.02.92/make.tmpl.in 2012-02-20 15:47:19.639959941 -0800
|
||||
@@ -382,7 +382,7 @@
|
||||
( cat $(srcdir)/.exported_symbols; \
|
||||
if test x$(EXPORTED_HEADER) != x; then \
|
||||
$(CC) -E -P $(INCLUDES) $(DEFS) $(EXPORTED_HEADER) | \
|
||||
- $(SED) -ne "/^typedef|}/!s/.*[ \*]\(\$(EXPORTED_FN_PREFIX)_[a-z0-9_]*\)(.*/\1/p"; \
|
||||
+ LC_ALL=C $(SED) -ne "/^typedef|}/!s/.*[ \*]\(\$(EXPORTED_FN_PREFIX)_[a-z0-9_]*\)(.*/\1/p"; \
|
||||
fi \
|
||||
) > $@
|
||||
|
@ -1,91 +0,0 @@
|
||||
diff -Naur LVM2.2.02.97/configure.in LVM2.2.02.97.new/configure.in
|
||||
--- LVM2.2.02.97/configure.in 2013-07-31 20:14:50.989498543 -0400
|
||||
+++ LVM2.2.02.97.new/configure.in 2013-07-31 20:58:36.195546461 -0400
|
||||
@@ -927,7 +927,6 @@
|
||||
UDEV_STATIC_LIBS=`$PKG_CONFIG --static --libs libudev`
|
||||
AC_DEFINE([UDEV_SYNC_SUPPORT], 1, [Define to 1 to enable synchronisation with udev processing.])
|
||||
fi
|
||||
-AC_SUBST(UDEV_STATIC_LIBS)
|
||||
|
||||
dnl -- Enable udev rules
|
||||
AC_MSG_CHECKING(whether to enable installation of udev rules required for synchronisation)
|
||||
@@ -1130,19 +1129,32 @@
|
||||
if test x$SELINUX = xyes; then
|
||||
AC_CHECK_LIB([sepol], [sepol_check_context], [
|
||||
AC_DEFINE([HAVE_SEPOL], 1, [Define to 1 if sepol_check_context is available.])
|
||||
- SELINUX_LIBS="-lsepol"])
|
||||
+ SEPOL_LIBS="-lsepol"])
|
||||
|
||||
- AC_CHECK_LIB([selinux], [is_selinux_enabled], [
|
||||
- AC_CHECK_HEADERS([selinux/selinux.h],, hard_bailout)
|
||||
- AC_CHECK_HEADERS([selinux/label.h])
|
||||
- AC_DEFINE([HAVE_SELINUX], 1, [Define to 1 to include support for selinux.])
|
||||
- SELINUX_LIBS="-lselinux $SELINUX_LIBS"
|
||||
+ dnl -- init pkgconfig if required
|
||||
+ if test x$PKGCONFIG_INIT != x1; then
|
||||
+ pkg_config_init
|
||||
+ fi
|
||||
+ PKG_CHECK_MODULES(SELINUX, libselinux, [
|
||||
SELINUX_PC="libselinux"
|
||||
- HAVE_SELINUX=yes ], [
|
||||
- AC_MSG_WARN(Disabling selinux)
|
||||
- SELINUX_LIBS=
|
||||
- SELINUX_PC=
|
||||
- HAVE_SELINUX=no ])
|
||||
+ SELINUX_STATIC_LIBS=`$PKG_CONFIG --static --libs libselinux`
|
||||
+ SELINUX_LIBS="$SELINUX_LIBS $SEPOL_LIBS"
|
||||
+ AC_DEFINE([HAVE_SELINUX], 1, [Define to 1 to include support for selinux.])
|
||||
+ ],[
|
||||
+ dnl -- old non-pkgconfig method, is buggy with static builds
|
||||
+ AC_CHECK_LIB([selinux], [is_selinux_enabled], [
|
||||
+ AC_CHECK_HEADERS([selinux/selinux.h],, hard_bailout)
|
||||
+ AC_CHECK_HEADERS([selinux/label.h])
|
||||
+ AC_DEFINE([HAVE_SELINUX], 1, [Define to 1 to include support for selinux.])
|
||||
+ SELINUX_LIBS="-lselinux $SEPOL_LIBS"
|
||||
+ SELINUX_STATIC_LIBS="$SELINUX_LIBS"
|
||||
+ SELINUX_PC="libselinux"
|
||||
+ HAVE_SELINUX=yes ], [
|
||||
+ AC_MSG_WARN(Disabling selinux)
|
||||
+ SELINUX_LIBS=
|
||||
+ SELINUX_PC=
|
||||
+ HAVE_SELINUX=no ])
|
||||
+ ])
|
||||
fi
|
||||
|
||||
################################################################################
|
||||
@@ -1531,6 +1543,7 @@
|
||||
AC_SUBST(SALCK_CFLAGS)
|
||||
AC_SUBST(SALCK_LIBS)
|
||||
AC_SUBST(SELINUX_LIBS)
|
||||
+AC_SUBST(SELINUX_STATIC_LIBS)
|
||||
AC_SUBST(SELINUX_PC)
|
||||
AC_SUBST(SNAPSHOTS)
|
||||
AC_SUBST(STATICDIR)
|
||||
@@ -1540,6 +1553,7 @@
|
||||
AC_SUBST(THIN)
|
||||
AC_SUBST(THIN_CHECK_CMD)
|
||||
AC_SUBST(UDEV_LIBS)
|
||||
+AC_SUBST(UDEV_STATIC_LIBS)
|
||||
AC_SUBST(UDEV_PC)
|
||||
AC_SUBST(UDEV_RULES)
|
||||
AC_SUBST(UDEV_SYNC)
|
||||
diff -Naur LVM2.2.02.97/make.tmpl.in LVM2.2.02.97.new/make.tmpl.in
|
||||
--- LVM2.2.02.97/make.tmpl.in 2013-07-31 20:14:50.988498543 -0400
|
||||
+++ LVM2.2.02.97.new/make.tmpl.in 2013-07-31 20:49:32.291536533 -0400
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
LIBS = @LIBS@
|
||||
# Extra libraries always linked with static binaries
|
||||
-STATIC_LIBS = $(SELINUX_LIBS) $(UDEV_STATIC_LIBS)
|
||||
+STATIC_LIBS = $(SELINUX_STATIC_LIBS) $(UDEV_STATIC_LIBS)
|
||||
DEFS += @DEFS@
|
||||
CFLAGS += @CFLAGS@
|
||||
CLDFLAGS += @CLDFLAGS@
|
||||
@@ -45,6 +45,7 @@
|
||||
PTHREAD_LIBS = @PTHREAD_LIBS@
|
||||
READLINE_LIBS = @READLINE_LIBS@
|
||||
SELINUX_LIBS = @SELINUX_LIBS@
|
||||
+SELINUX_STATIC_LIBS = @SELINUX_STATIC_LIBS@
|
||||
UDEV_LIBS = @UDEV_LIBS@
|
||||
UDEV_STATIC_LIBS = @UDEV_STATIC_LIBS@
|
||||
TESTING = @TESTING@
|
@ -1,77 +0,0 @@
|
||||
From 6595cae6e9b65658430714b9731b604c036d0816 Mon Sep 17 00:00:00 2001
|
||||
From: Zdenek Kabelac <zkabelac@redhat.com>
|
||||
Date: Sat, 13 Oct 2012 18:51:07 +0000
|
||||
Subject: cleanup: resolve dereferencing type-punned pointer
|
||||
|
||||
fix gcc warning:
|
||||
dereferencing type-punned pointer will break strict-aliasing rules
|
||||
Replace call by value and pass just const pointer to pvid.
|
||||
---
|
||||
diff --git a/lib/cache/lvmetad.c b/lib/cache/lvmetad.c
|
||||
index 1a52787..a3b45d5 100644
|
||||
--- a/lib/cache/lvmetad.c
|
||||
+++ b/lib/cache/lvmetad.c
|
||||
@@ -444,7 +444,7 @@ int lvmetad_vg_update(struct volume_group *vg)
|
||||
|
||||
dm_list_iterate_items(pvl, &vg->pvs) {
|
||||
/* NB. the PV fmt pointer is sometimes wrong during vgconvert */
|
||||
- if (pvl->pv->dev && !lvmetad_pv_found(pvl->pv->id, pvl->pv->dev,
|
||||
+ if (pvl->pv->dev && !lvmetad_pv_found(&pvl->pv->id, pvl->pv->dev,
|
||||
vg->fid ? vg->fid->fmt : pvl->pv->fmt,
|
||||
pvl->pv->label_sector, NULL, NULL))
|
||||
return 0;
|
||||
@@ -657,7 +657,7 @@ static int _extract_mdas(struct lvmcache_info *info, struct dm_config_tree *cft,
|
||||
return 1;
|
||||
}
|
||||
|
||||
-int lvmetad_pv_found(struct id pvid, struct device *device, const struct format_type *fmt,
|
||||
+int lvmetad_pv_found(const struct id *pvid, struct device *device, const struct format_type *fmt,
|
||||
uint64_t label_sector, struct volume_group *vg, activation_handler handler)
|
||||
{
|
||||
char uuid[64];
|
||||
@@ -670,7 +670,7 @@ int lvmetad_pv_found(struct id pvid, struct device *device, const struct format_
|
||||
if (!lvmetad_active() || test_mode())
|
||||
return 1;
|
||||
|
||||
- if (!id_write_format(&pvid, uuid, sizeof(uuid)))
|
||||
+ if (!id_write_format(pvid, uuid, sizeof(uuid)))
|
||||
return_0;
|
||||
|
||||
pvmeta = dm_config_create();
|
||||
@@ -848,7 +848,7 @@ int lvmetad_pvscan_single(struct cmd_context *cmd, struct device *dev,
|
||||
* *exact* image of the system, the lvmetad instance that went out of
|
||||
* sync needs to be killed.
|
||||
*/
|
||||
- if (!lvmetad_pv_found(*(struct id *)dev->pvid, dev, lvmcache_fmt(info),
|
||||
+ if (!lvmetad_pv_found((const struct id *) &dev->pvid, dev, lvmcache_fmt(info),
|
||||
label->sector, baton.vg, handler)) {
|
||||
release_vg(baton.vg);
|
||||
goto_bad;
|
||||
diff --git a/lib/cache/lvmetad.h b/lib/cache/lvmetad.h
|
||||
index 724922d..5f0f552 100644
|
||||
--- a/lib/cache/lvmetad.h
|
||||
+++ b/lib/cache/lvmetad.h
|
||||
@@ -93,7 +93,7 @@ int lvmetad_vg_remove(struct volume_group *vg);
|
||||
* number on the cached and on the discovered PV match but the metadata content
|
||||
* does not.
|
||||
*/
|
||||
-int lvmetad_pv_found(struct id pvid, struct device *device,
|
||||
+int lvmetad_pv_found(const struct id *pvid, struct device *device,
|
||||
const struct format_type *fmt, uint64_t label_sector,
|
||||
struct volume_group *vg, activation_handler handler);
|
||||
|
||||
diff --git a/lib/metadata/metadata.c b/lib/metadata/metadata.c
|
||||
index 5a633b6..c210a63 100644
|
||||
--- a/lib/metadata/metadata.c
|
||||
+++ b/lib/metadata/metadata.c
|
||||
@@ -3807,7 +3807,7 @@ int pv_write(struct cmd_context *cmd __attribute__((unused)),
|
||||
if (!pv->fmt->ops->pv_write(pv->fmt, pv))
|
||||
return_0;
|
||||
|
||||
- if (!lvmetad_pv_found(pv->id, pv->dev, pv->fmt, pv->label_sector,
|
||||
+ if (!lvmetad_pv_found(&pv->id, pv->dev, pv->fmt, pv->label_sector,
|
||||
NULL, NULL))
|
||||
return_0;
|
||||
|
||||
--
|
||||
cgit v0.9.0.3
|
@ -1,34 +0,0 @@
|
||||
--- a/LVM2.2.02.98/make.tmpl.in 2013-07-31 18:36:16.313390582 -0400
|
||||
+++ b/LVM2.2.02.98/make.tmpl.in 2013-07-31 18:35:26.524389673 -0400
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
LIBS = @LIBS@
|
||||
# Extra libraries always linked with static binaries
|
||||
-STATIC_LIBS = $(SELINUX_LIBS) $(UDEV_LIBS)
|
||||
+STATIC_LIBS = $(SELINUX_LIBS) $(UDEV_STATIC_LIBS)
|
||||
DEFS += @DEFS@
|
||||
CFLAGS += @CFLAGS@
|
||||
CLDFLAGS += @CLDFLAGS@
|
||||
@@ -47,6 +47,7 @@
|
||||
READLINE_LIBS = @READLINE_LIBS@
|
||||
SELINUX_LIBS = @SELINUX_LIBS@
|
||||
UDEV_LIBS = @UDEV_LIBS@
|
||||
+UDEV_STATIC_LIBS = @UDEV_STATIC_LIBS@
|
||||
TESTING = @TESTING@
|
||||
|
||||
# Setup directory variables
|
||||
--- a/LVM2.2.02.98/configure.in 2013-07-31 18:36:16.291390582 -0400
|
||||
+++ b/LVM2.2.02.98/configure.in 2013-07-31 18:32:18.849386248 -0400
|
||||
@@ -930,9 +930,11 @@
|
||||
if test x$PKGCONFIG_INIT != x1; then
|
||||
pkg_config_init
|
||||
fi
|
||||
PKG_CHECK_MODULES(UDEV, libudev >= 143, [UDEV_PC="libudev"])
|
||||
+ UDEV_STATIC_LIBS=`$PKG_CONFIG --static --libs libudev`
|
||||
AC_DEFINE([UDEV_SYNC_SUPPORT], 1, [Define to 1 to enable synchronisation with udev processing.])
|
||||
fi
|
||||
+AC_SUBST(UDEV_STATIC_LIBS)
|
||||
|
||||
dnl -- Enable udev rules
|
||||
AC_MSG_CHECKING(whether to enable installation of udev rules required for synchronisation)
|
||||
|
13
sdk_container/src/third_party/portage-stable/sys-fs/lvm2/files/lvmetad.initd-2.02.105-r2
vendored
Executable file
13
sdk_container/src/third_party/portage-stable/sys-fs/lvm2/files/lvmetad.initd-2.02.105-r2
vendored
Executable file
@ -0,0 +1,13 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/files/lvmetad.initd-2.02.105-r2,v 1.2 2014/02/08 21:17:46 robbat2 Exp $
|
||||
|
||||
pidfile="/run/lvmetad.pid"
|
||||
command="/sbin/lvmetad"
|
||||
command_args="${LVMETAD_OPTS:=-p ${pidfile}}"
|
||||
start_stop_daemon_args="--pidfile ${pidfile}"
|
||||
|
||||
depend() {
|
||||
:
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# 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.103.ebuild,v 1.4 2013/11/27 18:50:06 maekke Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/lvm2-2.02.103.ebuild,v 1.12 2014/02/03 15:57:15 vapier Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit autotools eutils linux-info multilib systemd toolchain-funcs udev
|
||||
@ -12,7 +12,7 @@ SRC_URI="ftp://sources.redhat.com/pub/lvm2/${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"
|
||||
KEYWORDS="alpha amd64 arm arm64 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* )
|
||||
|
@ -1,9 +1,9 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# 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.104.ebuild,v 1.1 2013/11/19 11:02:09 ssuominen Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/lvm2-2.02.105-r2.ebuild,v 1.6 2014/03/09 07:01:44 vapier Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit autotools eutils linux-info multilib systemd toolchain-funcs udev
|
||||
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/"
|
||||
@ -12,8 +12,9 @@ SRC_URI="ftp://sources.redhat.com/pub/lvm2/${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"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~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 device-mapper-only"
|
||||
REQUIRED_USE="device-mapper-only? ( !clvm !cman !lvm1 !lvm2create_initrd !thin )"
|
||||
|
||||
DEPEND_COMMON="clvm? ( cman? ( =sys-cluster/cman-3* ) =sys-cluster/libdlm-3* )
|
||||
readline? ( sys-libs/readline )
|
||||
@ -36,6 +37,7 @@ DEPEND="${DEPEND_COMMON}
|
||||
static? (
|
||||
selinux? ( sys-libs/libselinux[static-libs] )
|
||||
udev? ( virtual/udev[static-libs] )
|
||||
>=sys-apps/util-linux-2.16[static-libs]
|
||||
)"
|
||||
|
||||
S=${WORKDIR}/${PN/lvm/LVM}.${PV}
|
||||
@ -73,7 +75,7 @@ src_prepare() {
|
||||
-e "s:CC ?= @CC@:CC = $(tc-getCC):" \
|
||||
make.tmpl.in || die #444082
|
||||
|
||||
sed -i -e '/FLAG/s:-O2::' configure{,.in} || die #480212
|
||||
sed -i -e '/FLAG/s:-O2::' configure{.in,} || die #480212
|
||||
|
||||
# For upstream -- review and forward:
|
||||
epatch "${FILESDIR}"/${PN}-2.02.63-always-make-static-libdm.patch
|
||||
@ -82,20 +84,24 @@ src_prepare() {
|
||||
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.100-selinux_and_udev_static.patch #370217, #439414
|
||||
#epatch "${FILESDIR}"/${PN}-2.02.100-selinux_and_udev_static.patch #370217, #439414
|
||||
epatch "${FILESDIR}"/${PN}-2.02.105-static-pkgconfig-libs.patch #370217, #439414 + blkid
|
||||
epatch "${FILESDIR}"/${PN}-2.02.105-pthread-pkgconfig.patch #492450
|
||||
epatch "${FILESDIR}"/${PN}-2.02.105-readline-6.3.patch #503234
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
filter-flags -flto
|
||||
local myconf
|
||||
local buildmode
|
||||
|
||||
myconf="${myconf} --enable-dmeventd"
|
||||
myconf="${myconf} --enable-cmdlib"
|
||||
myconf="${myconf} --enable-applib"
|
||||
myconf="${myconf} --enable-fsadm"
|
||||
myconf="${myconf} --enable-lvmetad"
|
||||
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)"
|
||||
|
||||
# Most of this package does weird stuff.
|
||||
# The build options are tristate, and --without is NOT supported
|
||||
@ -107,14 +113,20 @@ src_configure() {
|
||||
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=internal"
|
||||
myconf="${myconf} --with-snapshots=internal"
|
||||
use thin \
|
||||
&& myconf="${myconf} --with-thin=internal" \
|
||||
|| myconf="${myconf} --with-thin=none"
|
||||
myconf="${myconf} --with-mirrors=${dmbuildmode}"
|
||||
myconf="${myconf} --with-snapshots=${dmbuildmode}"
|
||||
if use thin; then
|
||||
myconf="${myconf} --with-thin=internal"
|
||||
myconf="${myconf} --with-thin-check=${EPREFIX}/sbin/thin_check"
|
||||
myconf="${myconf} --with-thin-dump=${EPREFIX}/sbin/thin_dump"
|
||||
myconf="${myconf} --with-thin-repair=${EPREFIX}/sbin/thin_repair"
|
||||
else
|
||||
myconf="${myconf} --with-thin=none"
|
||||
fi
|
||||
|
||||
if use lvm1; then
|
||||
myconf="${myconf} --with-lvm1=${buildmode}"
|
||||
@ -174,25 +186,33 @@ src_compile() {
|
||||
emake
|
||||
popd >/dev/null
|
||||
|
||||
emake
|
||||
emake CC="$(tc-getCC)" -C scripts lvm2_activation_generator_systemd_red_hat
|
||||
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
|
||||
for inst in install install_systemd_units install_systemd_generators install_tmpfiles_configuration; do
|
||||
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}"/lvm.rc-2.02.95-r2 lvm
|
||||
newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm
|
||||
|
||||
newinitd "${FILESDIR}"/lvm-monitoring.initd-2.02.67-r2 lvm-monitoring
|
||||
|
||||
newinitd "${FILESDIR}"/device-mapper.rc-2.02.95-r2 device-mapper
|
||||
newinitd "${FILESDIR}"/device-mapper.rc-2.02.105-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 !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
|
261
sdk_container/src/third_party/portage-stable/sys-fs/lvm2/lvm2-2.02.106.ebuild
vendored
Normal file
261
sdk_container/src/third_party/portage-stable/sys-fs/lvm2/lvm2-2.02.106.ebuild
vendored
Normal file
@ -0,0 +1,261 @@
|
||||
# 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.106.ebuild,v 1.5 2014/06/20 16:55:47 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 )"
|
||||
|
||||
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 -- 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/udev[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.99-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
|
||||
|
||||
# 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.106-static-pkgconfig-libs.patch #370217, #439414 + blkid
|
||||
epatch "${FILESDIR}"/${PN}-2.02.106-pthread-pkgconfig.patch #492450
|
||||
# Upstream never tested with USE="-thin" wrt #510202
|
||||
sed -i -e 's|_man7: $(MAN8)|_man7: $(MAN7)|' man/Makefile.in || die
|
||||
use thin || { sed -i -e '/^install_lvm2/s:install_man7::' man/Makefile.in || die; }
|
||||
|
||||
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"
|
||||
myconf="${myconf} --with-thin-check=${EPREFIX}/sbin/thin_check"
|
||||
myconf="${myconf} --with-thin-dump=${EPREFIX}/sbin/thin_dump"
|
||||
myconf="${myconf} --with-thin-repair=${EPREFIX}/sbin/thin_repair"
|
||||
else
|
||||
myconf="${myconf} --with-thin=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
|
||||
|
||||
myconf="${myconf} --with-cache=${buildmode}"
|
||||
|
||||
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"
|
||||
}
|
261
sdk_container/src/third_party/portage-stable/sys-fs/lvm2/lvm2-2.02.107.ebuild
vendored
Normal file
261
sdk_container/src/third_party/portage-stable/sys-fs/lvm2/lvm2-2.02.107.ebuild
vendored
Normal file
@ -0,0 +1,261 @@
|
||||
# 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.107.ebuild,v 1.1 2014/07/16 00:28:28 robbat2 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 )"
|
||||
|
||||
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 -- 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/udev[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.99-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
|
||||
|
||||
# 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.107-static-pkgconfig-libs.patch #370217, #439414 + blkid
|
||||
epatch "${FILESDIR}"/${PN}-2.02.106-pthread-pkgconfig.patch #492450
|
||||
# Upstream never tested with USE="-thin" wrt #510202
|
||||
sed -i -e 's|_man7: $(MAN8)|_man7: $(MAN7)|' man/Makefile.in || die
|
||||
use thin || { sed -i -e '/^install_lvm2/s:install_man7::' man/Makefile.in || die; }
|
||||
|
||||
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"
|
||||
myconf="${myconf} --with-thin-check=${EPREFIX}/sbin/thin_check"
|
||||
myconf="${myconf} --with-thin-dump=${EPREFIX}/sbin/thin_dump"
|
||||
myconf="${myconf} --with-thin-repair=${EPREFIX}/sbin/thin_repair"
|
||||
else
|
||||
myconf="${myconf} --with-thin=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
|
||||
|
||||
myconf="${myconf} --with-cache=${buildmode}"
|
||||
|
||||
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"
|
||||
}
|
@ -1,289 +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.97-r1.ebuild,v 1.17 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_unpack() {
|
||||
unpack ${A}
|
||||
}
|
||||
|
||||
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
|
||||
epatch "${FILESDIR}"/${P}-strict-aliasing.patch
|
||||
|
||||
# for https://bugs.gentoo.org/370217
|
||||
epatch "${FILESDIR}"/${P}-udev-static.patch
|
||||
# for https://bugs.gentoo.org/439414
|
||||
epatch "${FILESDIR}"/${P}-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"
|
||||
}
|
@ -16,6 +16,7 @@
|
||||
<flag name='lvm1'>Allow users to build lvm2 with lvm1 support</flag>
|
||||
<flag name='lvm2create_initrd'>Install lvm2create_initrd script and pull in <pkg>sys-apps/makedev</pkg> for the /sbin/MAKEDEV command</flag>
|
||||
<flag name='thin'>Support for thin volumes</flag>
|
||||
<flag name='device-mapper-only'>Build only device-mapper and not the rest of LVM2 (UNSUPPORTED)</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="cpe">cpe:/a:heinz_mauelshagen:lvm2</remote-id>
|
||||
|
Loading…
x
Reference in New Issue
Block a user