summaryrefslogtreecommitdiff
path: root/sys-fs
diff options
context:
space:
mode:
authorThomas Sachau <tommy@gentoo.org>2010-12-15 17:25:09 +0000
committerThomas Sachau <tommy@gentoo.org>2010-12-15 17:25:09 +0000
commitfd9ca53b8bac1081372b26b55d007b5a6dacc9c1 (patch)
treed477c719c055b1b0d16f1841190ac48077c68a87 /sys-fs
parentReturn false for non-existant cpv. Stops backtrace (diff)
downloadhistorical-fd9ca53b8bac1081372b26b55d007b5a6dacc9c1.tar.gz
historical-fd9ca53b8bac1081372b26b55d007b5a6dacc9c1.tar.bz2
historical-fd9ca53b8bac1081372b26b55d007b5a6dacc9c1.zip
proxy commit: Revision bump, fixes bug 347712
Package-Manager: portage-2.2.0_alpha7-r1/cvs/Linux x86_64
Diffstat (limited to 'sys-fs')
-rw-r--r--sys-fs/dmraid/ChangeLog9
-rw-r--r--sys-fs/dmraid/Manifest17
-rw-r--r--sys-fs/dmraid/dmraid-1.0.0_rc16-r3.ebuild94
-rw-r--r--sys-fs/dmraid/files/dmraid-1.0.0_rc16-static-build-fixes.patch110
-rw-r--r--sys-fs/dmraid/metadata.xml7
5 files changed, 229 insertions, 8 deletions
diff --git a/sys-fs/dmraid/ChangeLog b/sys-fs/dmraid/ChangeLog
index bf3e704ae04f..75c1382ef625 100644
--- a/sys-fs/dmraid/ChangeLog
+++ b/sys-fs/dmraid/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-fs/dmraid
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/dmraid/ChangeLog,v 1.23 2010/08/17 19:47:55 tommy Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/dmraid/ChangeLog,v 1.24 2010/12/15 17:25:09 tommy Exp $
+
+*dmraid-1.0.0_rc16-r3 (15 Dec 2010)
+
+ 15 Dec 2010; Thomas Sachau (Tommy[D]) <tommy@gentoo.org>
+ +dmraid-1.0.0_rc16-r3.ebuild,
+ +files/dmraid-1.0.0_rc16-static-build-fixes.patch:
+ proxy commit: Revision bump, fixes bug 347712
*dmraid-1.0.0_rc16-r2 (17 Aug 2010)
diff --git a/sys-fs/dmraid/Manifest b/sys-fs/dmraid/Manifest
index dfba088455af..706a83ad5f6c 100644
--- a/sys-fs/dmraid/Manifest
+++ b/sys-fs/dmraid/Manifest
@@ -5,22 +5,25 @@ AUX dmraid-1.0.0_rc15-devsk-isw.patch 723 RMD160 e5843d1f06eb78db37281a22571905d
AUX dmraid-1.0.0_rc15-undo-p-rename.patch 531 RMD160 118b97bb99868033d37c8ce7bebb485f4600af2f SHA1 cbcc203e42894b936ce3adce0ff36eaf1ebe7edf SHA256 5eb8d6b268249fe3ef9e184376dfc04a2b8cffb4204c41d69480f3ae09caa670
AUX dmraid-1.0.0_rc16-as-needed2.patch 429 RMD160 f78e5cafba9bda8bd1d82820755752435c20dead SHA1 b430be423178b8419253b89893f308be8c6e27e7 SHA256 d66d681b126c3fbdd34a177436b6ee7f925403467b65ce688bd957cfd28560ee
AUX dmraid-1.0.0_rc16-return-all-sets.patch 283 RMD160 04fceadf5893d2860e74f9966d8010e39c0939a4 SHA1 79cb330ed0576381b98544f0b7fd9a672d5ba976 SHA256 a45054960405e41ec81bfe113adbf273d5c3292897233d58500ea12305c3c7cc
+AUX dmraid-1.0.0_rc16-static-build-fixes.patch 3840 RMD160 42b442d4e20f9571b757d1b7876d0febb14df61f SHA1 684f79bd14743f0c7cc76c2a8788854155bcbd0b SHA256 ba062ea97d9193f3bf567e031077393890349f01dad3c5864556e82d4d44f767
AUX dmraid-1.0.0_rc16-undo-p-rename.patch 531 RMD160 118b97bb99868033d37c8ce7bebb485f4600af2f SHA1 cbcc203e42894b936ce3adce0ff36eaf1ebe7edf SHA256 5eb8d6b268249fe3ef9e184376dfc04a2b8cffb4204c41d69480f3ae09caa670
AUX dmraid-destdir-fix.patch 902 RMD160 8641454fcab27ff5f122e50cc1cdc4559e484692 SHA1 8dac0fd6d374cbdd490f101817677ac66dfc87ce SHA256 4a275211bd2036ceec2181e1ac1bc4d14d522cb254c81e596af6e1481db1d667
DIST dmraid-1.0.0.rc14.tar.bz2 164234 RMD160 9cd238a981cfef9c5c1f2f1d6466b70c95ec9c7c SHA1 2b3284db46a995967d88993ae5ae36b57c513bc4 SHA256 a777354d6d69a9b58d84966cc7b37bc3f5c89539f885ad25fd874ed1c388fbec
DIST dmraid-1.0.0.rc15.tar.bz2 190475 RMD160 045a58855a93082a7758cfedc6f9cd4cfd91668b SHA1 3fa1f184a497fd2cc6cefa4cb2892ffb1ede64bf SHA256 30847258b7f946ed908e79af4058bbf2c9a3791728b8231f7c490ca601566c05
+DIST dmraid-1.0.0.rc16-3.tar.bz2 232743 RMD160 b661f5c465a11a4dcbb17db6b6632b32bcb7b723 SHA1 162b6173b91a0121a52402d2ed939b43d74ff605 SHA256 93421bd169d71ff5e7d2db95b62b030bfa205a12010b6468dcdef80337d6fbd8
DIST dmraid-1.0.0.rc16.tar.bz2 1042907 RMD160 b5fe992f4bc2e1a0716fc0c9e689b214667982d1 SHA1 99e76332bb03c5a79406e3c8cb12b6746288635d SHA256 f849c44d041f8891c61419ddf906e6e34b44948939ae9e550be662ffc2492255
EBUILD dmraid-1.0.0_rc14.ebuild 2209 RMD160 06b4fd23216718242e2f9c20ce2e85b243f0bb43 SHA1 f1635d2629fcb946f251fc0f28a3a85d326d22f2 SHA256 557dc539b6a138f061a1a5e27aa0395c62a225e7ae4f2fa5944e182fc347eb5f
EBUILD dmraid-1.0.0_rc15.ebuild 2223 RMD160 69c0ff36a37bf9f683dec8bcdfb74a458f4a2ed8 SHA1 203f1c99bdf68f86aff8a017084d75be71e94346 SHA256 c85c488dc8e0b7455651722e54fe00ec5382cee373af5f198146e75187d50fef
EBUILD dmraid-1.0.0_rc16-r2.ebuild 2673 RMD160 240238c981b1da6636ea44bf399f7490b95bb50c SHA1 851a30bb65f417716be5f65b81ba90659ca8998f SHA256 2e998793256150b29470a00a15fa9f202dde2952e659f7f00890bf09cc6d0804
-MISC ChangeLog 5041 RMD160 042e246f2f86c548dfbde5a07f2d5dbb59e969a4 SHA1 6c1e158378750f772d5dff2026875a46a1e18d44 SHA256 2232399c73bf9439d38d0fe9fadbf3c03fd814c79292cd6e00d2dac0eb35d07a
-MISC metadata.xml 641 RMD160 0d68aa675dd3761869e561d052545cda545ad6a8 SHA1 204907c6eef47ce8dabcc8014a2158a7e5fb720f SHA256 1b896ee56e674a91567b4817566fd038f0ccf40046dd920eed13dbafb93bcc18
+EBUILD dmraid-1.0.0_rc16-r3.ebuild 3097 RMD160 cbf63b308f1eff5b78914a14e141e30039ae2042 SHA1 596640f9e9ecb1ef72c3de3276a7da0270ae11ae SHA256 6f5828699ce990f0fd159097ba6cc192c78de66364b0f9be33a818367b13478a
+MISC ChangeLog 5271 RMD160 6026f676a118612e32f47858f2953432b9480818 SHA1 273aac461d26d5640e18ce22ab905dcdbaf10564 SHA256 46b7a3a5113ad0ac0ce51d2c71c588beba96db0d43fd5593330c240d42179ed6
+MISC metadata.xml 992 RMD160 6a5cb6511829ba8b625ddd7dced77c7030f8fb5f SHA1 d8ddbb045cbf69b6c73929e1e42bf1feec56df0f SHA256 e1c5476ff8e33f0b9ecf82d2f896827b3ff2d105c494d07bb193c33ed77c74f9
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
-iJwEAQECAAYFAkxq53YACgkQG7kqcTWJkGeEOAQAmhoItf27lp9dbtDfqDbQMLcs
-2yIS0X6KtV020uNAHjIt8yOjQozMqKjvZrr80mxSgHv5c+dJBm8u+PN0LLoFsPjG
-1FV/+ZHJYb4PqIrzumJDJbEfpwY6P4DxKS4JFKVjWMSx0bFhKO+wUFKH1z1jA7md
-28dUIlAGnVkCkCojeTM=
-=rHkc
+iJwEAQECAAYFAk0I+g0ACgkQG7kqcTWJkGcLEQQAqVVTQNK48BmDaC4Gi5D0YMPw
+/SE/Sle5IKGWxvBwfCZCWZiYmPiTf1Y8MbHC/MaIR5cm1zviHVBkdil5YJHoPcCM
+9TQrwUOv5Il5fC9kCQBIatUzFikjn0po4BsyNXI9y2ZMfwnrm1vPlfkFIH4Yz6HC
+eHFgH0TNAfV13IswJaI=
+=4wIL
-----END PGP SIGNATURE-----
diff --git a/sys-fs/dmraid/dmraid-1.0.0_rc16-r3.ebuild b/sys-fs/dmraid/dmraid-1.0.0_rc16-r3.ebuild
new file mode 100644
index 000000000000..6d8019a52751
--- /dev/null
+++ b/sys-fs/dmraid/dmraid-1.0.0_rc16-r3.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/dmraid/dmraid-1.0.0_rc16-r3.ebuild,v 1.1 2010/12/15 17:25:09 tommy Exp $
+
+EAPI="2"
+
+inherit autotools linux-info flag-o-matic
+
+MY_PV=${PV/_/.}-3
+
+DESCRIPTION="Device-mapper RAID tool and library"
+HOMEPAGE="http://people.redhat.com/~heinzm/sw/dmraid/"
+SRC_URI="http://people.redhat.com/~heinzm/sw/dmraid/src/${PN}-${MY_PV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="dietlibc intel_led klibc led mini static"
+
+RDEPEND="|| ( >=sys-fs/lvm2-2.02.45
+ sys-fs/device-mapper )
+ klibc? ( dev-libs/klibc )
+ dietlibc? ( dev-libs/dietlibc )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+S=${WORKDIR}/${PN}/${MY_PV}/${PN}
+
+pkg_setup() {
+ if kernel_is lt 2 6 ; then
+ ewarn "You are using a kernel < 2.6"
+ ewarn "DMraid uses recently introduced Device-Mapper features."
+ ewarn "These might be unavailable in the kernel you are running now."
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-undo-p-rename.patch \
+ "${FILESDIR}"/${P}-return-all-sets.patch \
+ "${FILESDIR}"/${P}-static-build-fixes.patch
+ # pkg_check_modules is not in aclocal.m4 by default, and eautoreconf doesnt add it
+ elog "Appending pkg.m4 from system to aclocal.m4"
+ cat "${ROOT}"/usr/share/aclocal/pkg.m4 >>"${S}"/aclocal.m4 || die "Could not append pkg.m4"
+ eautoreconf
+
+ elog "Creating prepatched source archive for use with Genkernel"
+ # archive the patched source for use with genkernel
+ cd "${WORKDIR}"
+ mkdir -p "tmp/${PN}"
+ cp -a "${PN}/${MY_PV}/${PN}" "tmp/${PN}"
+ mv "tmp/${PN}/${PN}" "tmp/${PN}/${MY_PV}"
+ cd tmp
+ tar -jcf ${PN}-${MY_PV}-prepatched.tar.bz2 ${PN} || die
+ mv ${PN}-${MY_PV}-prepatched.tar.bz2 ..
+}
+
+src_configure() {
+ local mylibc
+ if use klibc && use dietlibc; then
+ ewarn "Cannot compile against both klibc and dietlibc -- choosing klibc."
+ mylibc="--enable-klibc --disable-dietlibc"
+ else
+ mylibc="$(use_enable klibc) $(use_enable dietlibc)"
+ fi
+ econf --with-usrlibdir='${prefix}'/$(get_libdir) \
+ $(use_enable static static_link) \
+ $(use_enable mini) \
+ $(use_enable led) \
+ $(use_enable intel_led) \
+ ${mylibc}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc CHANGELOG README TODO KNOWN_BUGS doc/* || die "dodoc failed"
+ insinto /usr/share/${PN}
+ doins "${WORKDIR}"/${PN}-${MY_PV}-prepatched.tar.bz2 || die
+}
+
+pkg_postinst() {
+ elog "For booting Gentoo from Device-Mapper RAID you can use Genkernel."
+ elog " "
+ elog "Genkernel will generate the kernel and the initrd with a statically "
+ elog "linked dmraid binary (its own version which may not be the same as this version):"
+ elog "\t emerge -av sys-kernel/genkernel"
+ elog "\t genkernel --dmraid all"
+ elog " "
+ elog "If you would rather use this version of DMRAID with Genkernel, update the following"
+ elog "in /etc/genkernel.conf:"
+ elog "\t DMRAID_VER=\"${MY_PV}\""
+ elog "\t DMRAID_SRCTAR=\"/usr/share/${PN}/${PN}-${MY_PV}-prepatched.tar.bz2\""
+ elog " "
+ ewarn "DMRAID should be safe to use, but no warranties can be given"
+}
diff --git a/sys-fs/dmraid/files/dmraid-1.0.0_rc16-static-build-fixes.patch b/sys-fs/dmraid/files/dmraid-1.0.0_rc16-static-build-fixes.patch
new file mode 100644
index 000000000000..298811701e4e
--- /dev/null
+++ b/sys-fs/dmraid/files/dmraid-1.0.0_rc16-static-build-fixes.patch
@@ -0,0 +1,110 @@
+--- tools/Makefile.in.old 2010-05-31 07:18:31.000000000 -0400
++++ tools/Makefile.in 2010-12-13 13:15:22.000000000 -0500
+@@ -60,17 +60,23 @@
+ ifeq ("@KLIBC@", "no")
+ ifeq ("@STATIC_LINK@", "no")
+ LDFLAGS += -rdynamic
++ MYLIBOBJ=$(top_builddir)/lib/libdmraid.so
+ else
+ LDFLAGS += -static
++ MYLIBOBJ=$(top_builddir)/lib/libdmraid.a
++ DMRAIDLIBS += \
++ $(DEVMAPPEREVENT_LIBS) \
++ $(DEVMAPPER_LIBS) \
++ $(DL_LIBS)
+ endif
+ endif
+
+ .PHONY: install_dmraid_tools
+
+-dmraid: $(OBJECTS) $(top_builddir)/lib/libdmraid.a
++dmraid: $(OBJECTS) $(MYLIBOBJ)
+ $(CC) -o $@ $(OBJECTS) $(LDFLAGS) -L$(top_builddir)/lib $(DMRAIDLIBS) $(LIBS)
+
+-dmevent_tool: $(OBJECTS2) $(top_builddir)/lib/libdmraid.a
++dmevent_tool: $(OBJECTS2) $(MYLIBOBJ)
+ $(CC) -o $@ $(OBJECTS2) $(INCLUDES) $(LDFLAGS) -L$(top_builddir)/lib \
+ $(DMEVENTTOOLLIBS) $(DMRAIDLIBS) $(LIBS)
+
+--- lib/Makefile.in.old 2010-10-27 07:31:46.000000000 -0400
++++ lib/Makefile.in 2010-12-13 13:04:16.000000000 -0500
+@@ -60,11 +60,11 @@
+ USRLIB_RELPATH = $(shell echo $(abspath $(usrlibdir) $(libdir)) | \
+ $(AWK) -f $(top_srcdir)/tools/relpath.awk)
+
+-TARGETS = $(LIB_STATIC)
++TARGETS = $(LIB_STATIC) $(LIB_SHARED) $(LIB_EVENTS_SHARED)
+
+ ifeq ("@KLIBC@", "no")
+ ifeq ("@STATIC_LINK@", "no")
+- TARGETS += $(LIB_SHARED) $(LIB_EVENTS_SHARED)
++ TARGETS = $(LIB_SHARED) $(LIB_EVENTS_SHARED)
+ endif
+ endif
+
+--- configure.in 2010-05-31 07:18:30.000000000 -0400
++++ configure.in.new 2010-12-07 13:30:40.000000000 -0500
+@@ -155,6 +155,15 @@
+ Default is dynamic linking]),
+ [STATIC_LINK=$enableval], [STATIC_LINK=no])
+
++if test "x$STATIC_LINK" != "xno"; then
++ if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
++ AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
++ fi
++ PKG_CONFIG="${PKG_CONFIG} --static"
++ ac_cv_env_PKG_CONFIG_set=set
++fi
++PKG_PROG_PKG_CONFIG([0.2])
++
+ dnl Enables shared libdmraid
+ AC_ARG_ENABLE(shared_lib,
+ AC_HELP_STRING([--enable-shared_lib], [Use this to generate shared
+@@ -248,23 +257,31 @@
+ AC_HELP_STRING([--with-devmapper-prefix=PFX],
+ [Where is devmapper library installed]),
+ [DEVMAPPER_LIBS="-L$withval/lib"
+- DEVMAPPER_CFLAGS="-I$withval/include"],
++ DEVMAPPER_CFLAGS="-I$withval/include"
++ dmprefix=$withval],
+ [DEVMAPPER_LIBS=
+- DEVMAPPER_CFLAGS=])
+-save_LDFLAGS=$LDFLAGS
+-save_CPPFLAGS=$CPPFLAGS
+-LDFLAGS="$LDFLAGS $DEVMAPPER_LIBS"
+-CPPFLAGS="$CPPFLAGS $DEVMAPPER_CFLAGS"
+-AC_CHECK_LIB(devmapper-event, dm_event_handler_create,
+- [DEVMAPPEREVENT_LIBS="$DEVMAPPER_LIBS -ldevmapper-event"],
+- [AC_MSG_ERROR([device-mapper-event library is either missing or is too old and badly linked])])
+-AC_CHECK_LIB(devmapper, dm_task_set_name,
+- [DEVMAPPER_LIBS="$DEVMAPPER_LIBS -ldevmapper"],
+- [AC_MSG_ERROR([device-mapper library is missing])])
+-AC_CHECK_HEADERS(libdevmapper.h libdevmapper-event.h,,
+- [AC_MSG_ERROR([Missing headers device-mapper headers])])
+-CPPFLAGS=$save_CPPFLAGS
+-LDFLAGS=$save_LDFLAGS
++ DEVMAPPER_CFLAGS=
++ dmprefix=no])
++if test "x$dmprefix" = xno ; then
++ PKG_CHECK_MODULES([DEVMAPPER],[devmapper],
++ [PKG_CHECK_MODULES([DEVMAPPEREVENT],[devmapper-event])
++ ])
++else
++ save_LDFLAGS=$LDFLAGS
++ save_CPPFLAGS=$CPPFLAGS
++ LDFLAGS="$LDFLAGS $DEVMAPPER_LIBS"
++ CPPFLAGS="$CPPFLAGS $DEVMAPPER_CFLAGS"
++ AC_CHECK_LIB(devmapper-event, dm_event_handler_create,
++ [DEVMAPPEREVENT_LIBS="$DEVMAPPER_LIBS -ldevmapper-event"],
++ [AC_MSG_ERROR([device-mapper-event library is either missing or is too old and badly linked])])
++ AC_CHECK_LIB(devmapper, dm_task_set_name,
++ [DEVMAPPER_LIBS="$DEVMAPPER_LIBS -ldevmapper"],
++ [AC_MSG_ERROR([device-mapper library is missing])])
++ AC_CHECK_HEADERS(libdevmapper.h libdevmapper-event.h,,
++ [AC_MSG_ERROR([Missing headers device-mapper headers])])
++ CPPFLAGS=$save_CPPFLAGS
++ LDFLAGS=$save_LDFLAGS
++fi
+
+ VERSION=$srcdir/tools/VERSION
+ DMRAID_LIB_MAJOR=$(cut -d. -f1 $VERSION) \ No newline at end of file
diff --git a/sys-fs/dmraid/metadata.xml b/sys-fs/dmraid/metadata.xml
index 7879ce6c954a..e690154a5e21 100644
--- a/sys-fs/dmraid/metadata.xml
+++ b/sys-fs/dmraid/metadata.xml
@@ -2,6 +2,13 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>no-herd</herd>
+ <use>
+ <flag name='dietlibc'>Compile against <pkg>dev-libs/dietlibc</pkg></flag>
+ <flag name='intel_led'>Enable Intel LED support</flag>
+ <flag name='klibc'>Compile against <pkg>dev-libs/klibc</pkg></flag>
+ <flag name='led'>Enable LED support</flag>
+ <flag name='mini'>Create a minimal binary suitable for early boot environments</flag>
+ </use>
<maintainer>
<email>ian@aerobiology.ca</email>
<name>Ian Stakenvicius</name>