Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 365137 - app-admin/logrotate-3.7.9 requires kernel 2.6.23 or newer
Summary: app-admin/logrotate-3.7.9 requires kernel 2.6.23 or newer
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Daniel Gryniewicz (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-27 20:27 UTC by Mark Wagner
Modified: 2011-04-29 00:04 UTC (History)
0 users

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


Attachments
Patch that permits logrotate-3.7.9-r1 to build on 2.4.37.11 (logrotate-3.7.9-cloexec.patch,495 bytes, patch)
2011-04-27 20:30 UTC, Mark Wagner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Wagner 2011-04-27 20:27:33 UTC
app-admin/logrotate-3.7.9 uses the O_CLOEXEC feature, new in kernel 2.6.23, when opening its config file.  This results in it not compiling on systems running the still-supported sys-kernel/vanilla-sources-2.4.37.11 (and possibly sys-kernel/gentoo-sources-2.6.16-r13).

Reproducible: Always

Steps to Reproduce:
1. On a 2.4.37.11 machine, "emerge =app-admin/logrotate-3.7.9-r1"

Actual Results:  
i586-pc-linux-gnu-gcc -Wall -D_GNU_SOURCE -DLinux -DVERSION=\"3.7.9\" -march=i586 -pipe -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64   -c -o config.o config.c
config.c: In function `readConfigFile':
config.c:532: error: `O_CLOEXEC' undeclared (first use in this function)
config.c:532: error: (Each undeclared identifier is reported only once
config.c:532: error: for each function it appears in.)
make: *** [config.o] Error 1
emake failed

Expected Results:  
The package compiles and installs, or Portage notifies the user that the package requires a 2.6.23 or newer kernel

emerge --info

Portage 2.1.9.42 (default/linux/x86/10.0, gcc-3.4.6, glibc-2.5-r4, 2.4.37.11 i586)
=================================================================
System uname: Linux-2.4.37.11-i586-Pentium_MMX-with-gentoo-1.12.14
Timestamp of tree: Mon, 25 Apr 2011 19:30:01 +0000
app-shells/bash:     4.1_p9
dev-lang/python:     2.6.6-r1
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       3.4.6-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
sys-kernel/linux-headers: 2.4.36
virtual/os-headers:  2.4.36 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-Os -march=i586 -fomit-frame-pointer -pipe"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-Os -march=i586 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news nodoc noinfo parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="berkdb cli cxx dri gd gdbm gif iconv ipv6 jpeg libwww mmx modules mudflap mysql ncurses old-linux pam pcre perl png pppd python readline session ssl sysfs tcpd unicode utf8 x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_default authn_file authz_default authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif status unique_id userdir vhost_alias" APACHE2_MPMS="prefork" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Mark Wagner 2011-04-27 20:30:45 UTC
Created attachment 271369 [details, diff]
Patch that permits logrotate-3.7.9-r1 to build on 2.4.37.11
Comment 2 Daniel Gryniewicz (RETIRED) gentoo-dev 2011-04-29 00:04:09 UTC
Fixed without a bump.