Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56873 - lvm2-2.00.15-r1.ebuild (Update)
Summary: lvm2-2.00.15-r1.ebuild (Update)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-13 01:31 UTC by Bruno Redondi
Modified: 2004-07-29 12:33 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for the ebuild (lvm2-2.00.15-r1.diff,320 bytes, patch)
2004-07-13 01:32 UTC, Bruno Redondi
Details | Diff
paatch against lvm2 sources (lvm2-2.00.15-linux-2.6.7.patch,253.44 KB, patch)
2004-07-13 01:33 UTC, Bruno Redondi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno Redondi 2004-07-13 01:31:02 UTC
lvm2 2.00.15 cannot be compiled with linux 2.6.7 due to some naming conflicts between internal structs/macro and the kernel includes. This patch will fix the conflict an make lvm2 buildable.
Comment 1 Bruno Redondi 2004-07-13 01:32:12 UTC
Created attachment 35295 [details, diff]
patch for the ebuild
Comment 2 Bruno Redondi 2004-07-13 01:33:09 UTC
Created attachment 35296 [details, diff]
paatch against lvm2 sources
Comment 3 Xavier Neys (RETIRED) gentoo-dev 2004-07-13 02:49:49 UTC
FWIW, both lvm2-2.00.15 and lvm2-2.00.20 compiled fine on my vanilla 2.6.7 box.
polly root # vgs --version
  LVM version:     2.00.20 (2004-07-03)
  Library version: 1.00.17-ioctl (2004-04-19)
  Driver version:  4.1.0
polly root # uname -a
Linux polly.a.la.maison 2.6.7 #1 SMP Sun Jul 4 14:02:31 CEST 2004 i686 Pentium III (Coppermine) GenuineIntel GNU/Linux
Comment 4 Bruno Redondi 2004-07-13 06:00:36 UTC
I think that LVM get compiled using virtual/os-headers. Are you using linux26-headers?
I just synched my portage this night but I don't have an ebuild for sys-fs/lvm2-2.00.20, how can I get and test it?

This is my configuration and without the patch I cannot build lvm2:

sargas root # vgs --version
  LVM version:     2.00.15 (2004-04-19)
  Library version: 1.00.17-ioctl (2004-04-19)
  Driver version:  4.1.0
sargas root # uname -a
Linux sargas 2.6.7-gentoo-r8 #1 SMP Wed Jul 7 23:45:44 CEST 2004 i686 Pentium III (Katmai) GenuineIntel GNU/Linux
sargas root # ls -l /var/db/pkg/sys-kernel/
total 8
drwxr-xr-x  2 root root 4096 Jul  7 22:53 gentoo-dev-sources-2.6.7-r8
drwxr-xr-x  2 root root 4096 Jul 12 13:36 linux26-headers-2.6.7-r1
sargas root # emerge info
Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-gentoo-r8)
=================================================================
System uname: 2.6.7-gentoo-r8 i686 Pentium III (Katmai)
Gentoo Base System version 1.4.16
distcc 2.13 i686-altarisoluzione-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-altarisoluzione-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache distcc fixpackages sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb bonobo cdr crypt cups dga encode esd foomaticdb gcj gdbm gif gpm gtk gtk2 gtkhtml guile imlib java jpeg kde libg++ libwww mad mailwrapper mbox mikmod milter mmx motif mozilla mpeg ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sasl sdl slang spell sse ssl tcpd truetype x86 xinerama xml2 xmms xv zlib"

sargas root # 
Comment 5 Xavier Neys (RETIRED) gentoo-dev 2004-07-13 09:17:20 UTC
Still using old headers.
To grab the 2.00.20 version, just rename the ebuild.
Comment 6 Xavier Neys (RETIRED) gentoo-dev 2004-07-13 11:11:46 UTC
I just upgraded the box to the latest ~x86 packages + vanilla-2.6.8-rc1.
No problem at all, so far.
lvm2 v20 compiled and booted OK

moose root # emerge -vp glibc linux26-headers lvm2

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] sys-libs/glibc-2.3.4.20040619  -build -debug -debug -erandom -hardened -makecheck -multilib +nls +nptl +pic  0 kB
[ebuild   R   ] sys-kernel/linux26-headers-2.6.6-r1  -build  0 kB
[ebuild   R   ] sys-fs/lvm2-2.00.20   0 kB
Comment 7 Tim Yamin (RETIRED) gentoo-dev 2004-07-29 12:33:52 UTC
linux26-headers-2.6.7-$latest works fine here, and there is no need for a clunky patch. Please reopen this bug if you still have any issues. Thanks!