Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 202023 - virtualbox-modules-1.5.2-r1 does not compile with linux-2.6.24-gentoo-rc4 and rc5
Summary: virtualbox-modules-1.5.2-r1 does not compile with linux-2.6.24-gentoo-rc4 and...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Markus Ullmann (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 203893
Blocks:
  Show dependency tree
 
Reported: 2007-12-12 09:52 UTC by Lubos Kolouch
Modified: 2008-03-04 07:22 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lubos Kolouch 2007-12-12 09:52:06 UTC
The patch for 2.6.24 does not seem to work with rc4 and rc5

Reproducible: Always

Steps to Reproduce:
1.emerge --oneshot virtualbox-modules

Actual Results:  
>>> Emerging (1 of 1) app-emulation/virtualbox-modules-1.5.2-r1 to /
 * vbox-kernel-module-src-1.5.2.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                  [ ok ]
 * checking ebuild checksums ;-) ...                                                                    [ ok ]
 * checking auxfile checksums ;-) ...                                                                   [ ok ]
 * checking miscfile checksums ;-) ...                                                                  [ ok ]
 * checking vbox-kernel-module-src-1.5.2.tar.gz ;-) ...                                                 [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.24-rc5
>>> Unpacking source...
>>> Unpacking vbox-kernel-module-src-1.5.2.tar.gz to /home/portage/portage/app-emulation/virtualbox-modules-1.5.2-r1/work
 * Applying virtualbox-modules_2.6.24.patch ...

 * Failed Patch: virtualbox-modules_2.6.24.patch !
 *  ( /usr/portage/app-emulation/virtualbox-modules/files/virtualbox-modules_2.6.24.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /home/portage/portage/app-emulation/virtualbox-modules-1.5.2-r1/temp/virtualbox-modules_2.6.24.patch-11666.out

 * 
 * ERROR: app-emulation/virtualbox-modules-1.5.2-r1 failed.
 * Call stack:
 *               ebuild.sh, line   46:  Called src_unpack
 *             environment, line 3090:  Called epatch 'src_unpack'
 *             environment, line 1451:  Called die
 * The specific snippet of code:
 *                   diefunc "$FUNCNAME" "$LINENO" "$?" "Failed Patch: ${patchname}!";
 *  The die message:
 *   Failed Patch: virtualbox-modules_2.6.24.patch!
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/home/portage/portage/app-emulation/virtualbox-modules-1.5.2-r1/temp/build.log'.
 * The ebuild environment file is located at '/home/portage/portage/app-emulation/virtualbox-modules-1.5.2-r1/temp/environment'.
 * 

 * Messages for package app-emulation/virtualbox-modules-1.5.2-r1:

 * Failed Patch: virtualbox-modules_2.6.24.patch !
 *  ( /usr/portage/app-emulation/virtualbox-modules/files/virtualbox-modules_2.6.24.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /home/portage/portage/app-emulation/virtualbox-modules-1.5.2-r1/temp/virtualbox-modules_2.6.24.patch-11666.out
 * 
 * ERROR: app-emulation/virtualbox-modules-1.5.2-r1 failed.
 * Call stack:
 *               ebuild.sh, line   46:  Called src_unpack
 *             environment, line 3090:  Called epatch 'src_unpack'
 *             environment, line 1451:  Called die
 * The specific snippet of code:
 *                   diefunc "$FUNCNAME" "$LINENO" "$?" "Failed Patch: ${patchname}!";
 *  The die message:
 *   Failed Patch: virtualbox-modules_2.6.24.patch!
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/home/portage/portage/app-emulation/virtualbox-modules-1.5.2-r1/temp/build.log'.
 * The ebuild environment file is located at '/home/portage/portage/app-emulation/virtualbox-modules-1.5.2-r1/temp/environment'.
 * 


Expected Results:  
expected - module compiles
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-12-12 11:39:14 UTC
> * Include in your bugreport the contents of:
> /home/portage/portage/app-emulation/virtualbox-modules-1.5.2-r1/temp/virtualbox-modules_2.6.24.patch-11666.out

Please do it. Also emerge --info output missing.
Comment 2 Lubos Kolouch 2007-12-12 11:48:34 UTC
***** virtualbox-modules_2.6.24.patch *****

===========================================

PATCH COMMAND:	 patch -p0 -g0 -E --no-backup-if-mismatch < /usr/portage/app-emulation/virtualbox-modules/files/virtualbox-modules_2.6.24.patch

===========================================
patching file include/iprt/types.h
patching file include/iprt/types.h
Hunk #1 FAILED at 71.
1 out of 1 hunk FAILED -- saving rejects to file include/iprt/types.h.rej
can't find file to patch at input line 43
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: Config.kmk
|===================================================================
|--- Config.kmk	(revision 5764)
|+++ Config.kmk	(revision 5765)
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
===========================================

PATCH COMMAND:	 patch -p1 -g0 -E --no-backup-if-mismatch < /usr/portage/app-emulation/virtualbox-modules/files/virtualbox-modules_2.6.24.patch

===========================================
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: include/iprt/types.h
|===================================================================
|--- include/iprt/types.h	(revision 5703)
|+++ include/iprt/types.h	(revision 5704)
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 31
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: include/iprt/types.h
|===================================================================
|--- include/iprt/types.h	(revision 5764)
|+++ include/iprt/types.h	(revision 5765)
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 43 of patch
can't find file to patch at input line 43
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: Config.kmk
|===================================================================
|--- Config.kmk	(revision 5764)
|+++ Config.kmk	(revision 5765)
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
===========================================

PATCH COMMAND:	 patch -p2 -g0 -E --no-backup-if-mismatch < /usr/portage/app-emulation/virtualbox-modules/files/virtualbox-modules_2.6.24.patch

===========================================
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: include/iprt/types.h
|===================================================================
|--- include/iprt/types.h	(revision 5703)
|+++ include/iprt/types.h	(revision 5704)
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 31
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: include/iprt/types.h
|===================================================================
|--- include/iprt/types.h	(revision 5764)
|+++ include/iprt/types.h	(revision 5765)
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 43 of patch
can't find file to patch at input line 43
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: Config.kmk
|===================================================================
|--- Config.kmk	(revision 5764)
|+++ Config.kmk	(revision 5765)
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
===========================================

PATCH COMMAND:	 patch -p3 -g0 -E --no-backup-if-mismatch < /usr/portage/app-emulation/virtualbox-modules/files/virtualbox-modules_2.6.24.patch

===========================================
missing header for unified diff at line 5 of patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: include/iprt/types.h
|===================================================================
|--- include/iprt/types.h	(revision 5703)
|+++ include/iprt/types.h	(revision 5704)
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
missing header for unified diff at line 31 of patch
can't find file to patch at input line 31
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: include/iprt/types.h
|===================================================================
|--- include/iprt/types.h	(revision 5764)
|+++ include/iprt/types.h	(revision 5765)
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 43 of patch
can't find file to patch at input line 43
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: Config.kmk
|===================================================================
|--- Config.kmk	(revision 5764)
|+++ Config.kmk	(revision 5765)
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
===========================================

PATCH COMMAND:	 patch -p4 -g0 -E --no-backup-if-mismatch < /usr/portage/app-emulation/virtualbox-modules/files/virtualbox-modules_2.6.24.patch

===========================================
missing header for unified diff at line 5 of patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: include/iprt/types.h
|===================================================================
|--- include/iprt/types.h	(revision 5703)
|+++ include/iprt/types.h	(revision 5704)
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
missing header for unified diff at line 31 of patch
can't find file to patch at input line 31
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: include/iprt/types.h
|===================================================================
|--- include/iprt/types.h	(revision 5764)
|+++ include/iprt/types.h	(revision 5765)
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
missing header for unified diff at line 43 of patch
can't find file to patch at input line 43
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: Config.kmk
|===================================================================
|--- Config.kmk	(revision 5764)
|+++ Config.kmk	(revision 5765)
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
Comment 3 Lubos Kolouch 2007-12-12 11:49:35 UTC
emerge --info
Portage 2.1.4_rc9 (default-linux/x86/2007.0, gcc-4.2.2, glibc-2.7-r1, 2.6.23-gentoo-r3 i686)
=================================================================
System uname: 2.6.23-gentoo-r3 i686 Genuine Intel(R) CPU U2500 @ 1.20GHz
Timestamp of tree: Wed, 12 Dec 2007 09:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.3
dev-lang/python:     2.4.4-r5, 2.5.1-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="cs en de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/home/portage/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/gnome-experimental"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X a52 aac aalib accessibility acl acpi additions alsa amr audiofile bash-completion battery berkdb bitmap-fonts bluetooth bonobo bzip2 calendar cddb cdinstall cdparanoia cdr chm clamav cli cpufreq cracklib crypt cups dbus dell dga directory dri dvb dvd dvdr dvdread enblend encode exif extras fam fat fax ffmpeg firefox flac foomaticdb fortran ftp gdbm gif gnome gnutls gpgme gphoto2 gpm gtk hal hddtemp iconv icq imagemagick imlib ipw3945 isdnlog jabber java javascript jfs jpeg jpeg2k kqemu libgda libnotify lm_sensors maildir mbox midi mime mmx mmxext mono mp3 mpeg mplayer msn mudflap ncurses nls nocd nptl nptlonly nsplugin ntfs offensive ogg ole opengl openmp pam pcmcia pcre pdf perl plugins pmu png pop ppds pppd python quicktime radio rar rdesktop readline real reflection reiserfs samba scanner sdl session sidebar sift slang smime smtp snmp spell spl sse sse2 ssl synaptics szip tcpd tetex tiff timidity toolbar truetype truetype-fonts type1-fonts unicode usb v4l v4l2 video vorbis wifi win32codecs x86 xcomposite xfce xfs xorg xrandr xscreensaver xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon adc65 agfa cl20 aox barbie casio clicksmart310 digigr8 digita dimera directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 kodak konica largan lg_gsm mars minolta mustek panasonic pccam300 pccam600 polaroid ptp2 ricoh samsung sierra sipix smal sonix sonydscf1 sonydscf55 soundvision spca50x sq905 tv0674 stv0680 sx330z template toshiba" ELIBC="glibc" INPUT_DEVICES="synaptics keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs en de" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 impulze 2007-12-14 13:27:12 UTC
from #199798

in fact, the patch couldn't find any file to patch though i had to rewrite the
patch:

diff -Naur vboxdrv/include/iprt/types.h vboxdrv.new/include/iprt/types.h
--- vboxdrv/include/iprt/types.h        2007-10-18 19:07:37.000000000 +0200
+++ vboxdrv.new/include/iprt/types.h    2007-12-13 22:12:04.000000000 +0100
@@ -58,8 +58,9 @@
     /*
      * Kludge for the linux kernel:
      *   1. sys/types.h doesn't mix with the kernel.
-     *   2. Starting with 2.6.19 linux/types.h typedefs bool and
linux/stddef.h
+     *   2. Starting with 2.6.19, linux/types.h typedefs bool and
linux/stddef.h
      *      declares false and true as enum values.
+     *   3. Starting with 2.6.24, linux/types.h typedefs uintptr_t.
      * We work around these issues here and nowhere else.
      */
 #  include <stddef.h>
@@ -69,8 +70,11 @@
 #  define bool linux_bool
 #  define true linux_true
 #  define false linux_false
+#  define uintptr_t linux_uintptr_t
+#  include <linux/autoconf.h>
 #  include <linux/types.h>
 #  include <linux/stddef.h>
+#  undef uintptr_t
 #  undef false
 #  undef true
 #  undef bool


here's the patch: http://bugs.gentoo.org/attachment.cgi?id=138413&action=view
Comment 5 Özgür ERİŞEN 2007-12-15 07:51:36 UTC
Here is a workaround for this issue from vboxusers list
http://vbox.innotek.de/pipermail/vbox-users/2007-October/002372.html
Comment 6 Özgür ERİŞEN 2007-12-15 07:52:34 UTC
Sorry for the second post but it seems it resolves the virtualbox-modules compilation issue

Comment 7 W. Elschner 2007-12-16 11:08:16 UTC
I tested the following two steps on my system (AMD64, 2.6.24-rc5) without any problems. Maybe the files in portage snapshot could be updated(?)

1. Replace app-emulation/virtualbox-modules/files/virtualbox-modules_2.6.24.patch with the file from Comment #4
2. Fix a bug  in the ebuild (see http://bugs.gentoo.org/show_bug.cgi?id=199798#c16)
Comment 8 Alessio Cassibba (X-Drum) 2008-01-03 01:14:19 UTC
hi,
the problem should be fixed in virtualbox-1.5.4,
it builds fine with sys-kernel/vanilla-sources-2.6.24_rc5

there is a revision bump available on jokey's overlay[1] for testing


[1] http://overlays.gentoo.org/dev/jokey/browser/trunk/app-emulation
Comment 9 Markus Ullmann (RETIRED) gentoo-dev 2008-01-13 16:36:20 UTC
As no further issue is reported, marking as FIXED