Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 189561

Summary: sys-fs/cloop-2.05: Does not build with Kernel 2.6.22; Patch included
Product: Gentoo Linux Reporter: Alexander Skwar <askwar>
Component: Current packagesAssignee: Stefan Schweizer (RETIRED) <genstef>
Status: RESOLVED FIXED    
Severity: normal CC: kernel-misc
Priority: High    
Version: 2007.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 184683    
Attachments: cloop-2.05-kernel_2.6.22.patch
updated cloop-2.05.ebuild, which uses the attached patch

Description Alexander Skwar 2007-08-20 07:45:01 UTC
I tried to build sys-fs/cloop-2.0.5 and this failed:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... /Gentoo/Portage/build/portage/sys-fs/cloop-2.05/work/cloop-2.05~20060829/compressed_loop.c: In function 'clo_clr_fd':
/Gentoo/Portage/build/portage/sys-fs/cloop-2.05/work/cloop-2.05~20060829/compressed_loop.c:628: error: too many arguments to function 'invalidate_bdev'

[...]

config.status: creating config.h
 * 
 * ERROR: sys-fs/cloop-2.05 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_compile
 *   ebuild.sh, line 990:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   ebuild.sh, line 1334:   Called linux-mod_src_compile
 *   linux-mod.eclass, line 516:   Called die
 * 
 * Unable to make  KVERSION=2.6.22-gentoo-r2.r08.mit-ide-mod KERNEL_DIR=/usr/src/linux all.
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/Gentoo/Portage/logs/sys-fs:cloop-2.05:20070820-074322.log'.
 * 

 * Messages for package sys-fs/cloop-2.05:

 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.22-gentoo-r2.r08.mit-ide-mod
 * Checking for suitable kernel configuration options...
 * Preparing cloop module
 * 
 * ERROR: sys-fs/cloop-2.05 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_compile
 *   ebuild.sh, line 990:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   ebuild.sh, line 1334:   Called linux-mod_src_compile
 *   linux-mod.eclass, line 516:   Called die
 * 
 * Unable to make  KVERSION=2.6.22-gentoo-r2.r08.mit-ide-mod KERNEL_DIR=/usr/src/linux all.
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/Gentoo/Portage/logs/sys-fs:cloop-2.05:20070820-074322.log'.
 * 


Attached is a patch against compressed_loop.c and also a new ebuild. This patch should only be used with kernel versions >= 2.6.22

--($:/Gentoo/Portage/local-tree/misc/sys-fs)-- emerge info
*** Deprecated use of action 'info', use '--info' instead
Portage 2.1.3.6 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r2.r08.mit-ide-mod i686)
=================================================================
System uname: 2.6.22-gentoo-r2.r08.mit-ide-mod i686 Genuine Intel(R) CPU T2400 @ 1.83GHz
Gentoo Base System release 1.12.10
Timestamp of tree: Mon, 20 Aug 2007 05:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
DISTDIR="/Gentoo/Portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="        http://gentoo.supp.name/        http://ftp.heanet.ie/pub/gentoo/        http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/      http://ftp.gentoo.or.kr/        http://ftp.uni-erlangen.de/pub/mirrors/gentoo/  http://distfiles.gentoo.org/ "
LANG="de_CH.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/Gentoo/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="/Gentoo/Portage/build"
PORTDIR="/Gentoo/Portage/tree"
PORTDIR_OVERLAY="/usr/portage/local/layman/java-overlay /Gentoo/Portage/local-tree/misc"
SYNC="rsync://winds03:10873/gentoo-portage"
USE="X acpi alsa berkdb bitmap-fonts bluetooth cairo cdr cli cracklib crypt cups dbus dmi doc dri dvd dvdr dvdread encode fam firefox fortran gdbm gif gnome gnutls gpm gstreamer gtk hal iconv isdnlog jpeg kde kdeenablefinal kdehiddenvisibility ldap libnotify mad midi mmx mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcmcia pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session spell spl sse sse2 ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode vorbis wifi win32codecs x86 xine xinerama xml xorg xv zlib" ALSA_CARDS="dummy hda-intel intel8x0 intel8x0m usb-audio usb-usx3y" 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="dummy none nv nvidia vga"
Unset:  CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Alexander Skwar 2007-08-20 07:46:19 UTC
Created attachment 128643 [details, diff]
cloop-2.05-kernel_2.6.22.patch
Comment 2 Alexander Skwar 2007-08-20 07:47:17 UTC
Created attachment 128645 [details]
updated cloop-2.05.ebuild, which uses the attached patch
Comment 3 Stefan Schweizer (RETIRED) gentoo-dev 2007-08-29 18:32:58 UTC
thank you committed.