Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 31963 Details for
Bug 44094
sys-fs/lvm-user (LVM1) and sys-fs/lvm2 (LVM2) don't mix
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
New ebuild for sys-fs/lvm2 including lvm1 binaries as fallback for 2.4 kernels
lvm2-2.00.15-r1.ebuild (text/plain), 3.54 KB, created by
Sascha Silbe
on 2004-05-24 16:05:29 UTC
(
hide
)
Description:
New ebuild for sys-fs/lvm2 including lvm1 binaries as fallback for 2.4 kernels
Filename:
MIME Type:
Creator:
Sascha Silbe
Created:
2004-05-24 16:05:29 UTC
Size:
3.54 KB
patch
obsolete
># Copyright 1999-2004 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># $Header: /home/cvsroot/gentoo-x86/sys-fs/lvm2/lvm2-2.00.15.ebuild,v 1.3 2004/04/26 14:39:05 agriffis Exp $ > >DESCRIPTION="User-land utilities for LVM2 (device-mapper) software." >HOMEPAGE="http://sources.redhat.com/lvm2/" >LVM1PV="1.0.7" >SRC_URI="ftp://sources.redhat.com/pub/lvm2/${PN/lvm/LVM}.${PV}.tgz > lvm1? (ftp://ftp.sistina.com/pub/LVM/1.0/lvm_${LVM1PV}.tar.gz)" > >SLOT="0" >LICENSE="GPL-2" >KEYWORDS="~x86 ~amd64 ~sparc ~ppc" > >DEPEND=">=sys-apps/sed-4.0 > >=sys-libs/device-mapper-1.00.17" >RDEPEND="${DEPEND} > !sys-fs/lvm-user" > >KS=/usr/src/linux >S="${WORKDIR}/${PN/lvm/LVM}.${PV}" >S1="${WORKDIR}/LVM/${LVM1PV}" >IUSE="lvm1 static" > >inherit flag-o-matic eutils > >pkg_setup() { > check_KV >} > >src_unpack() { > unpack ${A} > > cd ${S} > epatch ${FILESDIR}/${PN/lvm/LVM}.${PV}-static.patch > > use lvm1 && ( > cd ${S1} > # bug 29694 -- make static vgscan and vgchange for initrds > use static || epatch ${FILESDIR}/lvm-user-1.0.7-statics.diff > ) >} > >src_compile() { > local myconf > > # LVM2 > cd $S > use lvm1 && myconf="--enable-lvm1_fallback" > > # always build static binaries (needed for initrd) > econf --enable-static_link --prefix=/ --with-staticdir=/sbin $myconf > emake -j1 || die "Failed to compile!" > > # only build dynamic binaries if USE=-static > if [ -z "`use static`" ] ; then > econf --disable-static_link --prefix=/ $myconf > emake -j1 || die "Failed to compile!" > fi > > # lvm1 userspace tools for unpatched 2.4 kernels > use lvm1 && ( > local myconf > > # bug 598 -- -pipe used by default > filter-flags "-fomit-frame-pointer -pipe" > > cd $S1 > > if use static; then > myconf="--enable-static_link" > fi > > ./configure --prefix=/ \ > --mandir=/usr/share/man \ > --with-kernel_dir="${KS}" ${myconf} || die "configure failed" > > # Fix flags > sed -i -e "54,56d" -e "73d" make.tmpl > > make || die "Make failed" > ) >} > >src_install() { > if [ -z "`use static`" ] ; then > # install dynamic binary, libs, config > einstall sbindir="${D}/sbin" confdir="${D}/etc/lvm" > > # install static binary > into / > dosbin tools/lvm.static > else > # install static binary, libs, config > einstall sbindir="${D}/sbin" confdir="${D}/etc/lvm" staticdir="${D}/sbin" > # dynamic binary also get installed, fix that up > rm "${D}/sbin/lvm" > # fix symlinks > find "${D}/sbin" -lname lvm -exec ln -sf lvm.static \{\} \; > fi > > # create links for static binaries needed in initrd > into / > dosym lvm.static /sbin/vgscan.static > dosym lvm.static /sbin/vgchange.static > > > dodoc COPYING* INSTALL README VERSION WHATS_NEW doc/*.{conf,c,txt} > > use lvm1 && ( > cd "${S1}" > make -C tools/lib install libdir="${D}/lib" staticlibdir="${D}/usr/lib" > > # "./configure --program-suffix=.lvm1" does not work, so we need to do it manually... > for b in e2fsadm lvchange lvcreate lvdisplay lvextend lvmchange lvmcreate_initrd lvmdiskscan lvmsadc lvmsar lvreduce lvremove lvrename lvscan pvchange pvcreate pvdata pvdisplay pvmove pvscan vgcfgbackup vgcfgrestore vgchange vgck vgcreate vgdisplay vgexport vgextend vgimport vgmerge vgmknodes vgreduce vgremove vgrename vgscan vgsplit ; do > install -m0755 -o root -g root "tools/${b}" "${D}/sbin/${b}.lvm1" > done > > if use static; then > # already static, make symlinks > dosym vgscan.lvm1 /sbin/vgscan.static.lvm1 > dosym vgchange.lvm1 /sbin/vgchange.static.lvm1 > else > # install vgscan.static and vgchange.static > install -m0755 -o root -g root "tools/vgscan.static" "${D}/sbin/vgscan.static.lvm1" > install -m0755 -o root -g root "tools/vgchange.static" "${D}/sbin/vgchange.static.lvm1" > fi > ) >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 44094
: 31963