Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 504346 - linux-info.eclass uses eerror if kernel is non-existent even if CONFIG_CHECK is ~
Summary: linux-info.eclass uses eerror if kernel is non-existent even if CONFIG_CHECK ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Kernel Miscellaneous
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-12 19:01 UTC by Toralf Förster
Modified: 2014-03-21 22:03 UTC (History)
1 user (show)

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


Attachments
emerge.log (sys-fs:udev-211:20140312-162854.log.gz,39.16 KB, application/gzip)
2014-03-12 20:15 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2014-03-12 19:01:28 UTC
Within a chrtoot environment of a usre mode linux image I do get (expected) :

ERROR: setup
Unable to find kernel sources at /usr/src/linux

WARN: setup
Unable to calculate Linux Kernel version for build, attempting to use running version

ERROR: setup
  CONFIG_FHANDLE:	 is not set when it should be.






At least the 2nd ERROR does not makes sense IMO.
And the 1st ERROR should rather be a WARN as the following WARN suggests.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2014-03-12 19:07:31 UTC
I don't get it, what's the problem? CONFIG_FHANDLE=y is required for libudev.so*, and the check for it is non-fatal with a ~ in the .ebuild like any others:

From udev-211.ebuild:

CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~!IDE ~INOTIFY_USER ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2 ~SIGNALFD ~EPOLL ~FHANDLE ~NET"

See that ~ which makes the check non-fatal above ^

So unless the build doesn't stop, you are good to go, the check has done it's purpose and let you know udev won't run properly without the kernel option.
Comment 2 Toralf Förster gentoo-dev 2014-03-12 19:19:22 UTC
(In reply to Samuli Suominen from comment #1)
> So unless the build doesn't stop, you are good to go

an ERROR should IMO be a reserved word for a build failure, for warnings ofc the user has to care about.
Comment 3 Toralf Förster gentoo-dev 2014-03-12 19:29:39 UTC
(In reply to Samuli Suominen from comment #1)
> CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~!IDE ~INOTIFY_USER ~!SYSFS_DEPRECATED
> ~!SYSFS_DEPRECATED_V2 ~SIGNALFD ~EPOLL ~FHANDLE ~NET"
> 
> See that ~ which makes the check non-fatal above ^


Fully agree - but from a user perspective h gets an email in the inbox (from elog) with 2 ERRORs ,,,
Comment 4 Alex Xu (Hello71) 2014-03-12 20:05:54 UTC
Please attach the entire build.log.
Comment 5 Toralf Förster gentoo-dev 2014-03-12 20:15:50 UTC
Created attachment 372520 [details]
emerge.log

n22 ~ # emerge --info udev
Portage 2.2.8-r1 (default/linux/x86/13.0, gcc-4.8.2, glibc-2.19, 3.13.6 i686)                                                                          
=================================================================                                                                                      
                         System Settings                                                                                                               
=================================================================                                                                                      
System uname: Linux-3.13.6-i686-Intel-R-_Core-TM-_i5-2540M_CPU_@_2.60GHz-with-gentoo-2.2                                                               
KiB Mem:     8173392 total,   2609604 free                                                                                                             
KiB Swap:    9767516 total,   9355308 free                                                                                                             
Timestamp of tree: Wed, 12 Mar 2014 18:15:01 +0000                                                                                                     
ld GNU ld (GNU Binutils) 2.24                                                                                                                          
app-shells/bash:          4.2_p45-r1                                                                                                                   
dev-lang/python:          2.7.6, 3.3.4                                                                                                                 
dev-util/cmake:           2.8.12.2                                                                                                                     
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19
Repositories: gentoo toralf
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going=y --nospinner --tree --quiet-build --deep"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
USE="acl apache2 berkdb bzip2 cli cracklib crypt cups cxx dri fam fastbuild gdbm gmp iconv ipv6 logrotate mmx modules mysql mysqli ncurses nls nptl openmp pam pcre readline session sse sse2 sse3 ssl ssse3 tcpd threads unicode userlocales webmail x86 xattr xml zlib" ABI_X86="32" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" 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 ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

sys-fs/udev-211 was built with the following:
USE="acl firmware-loader kmod openrc -doc -gudev -introspection (-selinux) -static-libs"
Comment 6 Alex Xu (Hello71) 2014-03-12 20:21:25 UTC
I'm ~90% sure this is WONTFIX. You should fix your system not to error on these message.
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2014-03-12 20:27:36 UTC
There's lately been a lot of noise that udev doesn't print enough warnings or visible enough warnings when kernel options are missing.
This bug seems to be quite the opposite :-)

But with that said, I'm okay if linux-info.eclass maintainers wish to change it's appearance to 'ewarn' from 'eerror'
Maintainers should know to read Portage output when upgrading something boot -related anyways
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2014-03-21 22:03:30 UTC
(In reply to Toralf Förster from comment #0)
> Within a chrtoot environment of a usre mode linux image I do get (expected) :
> 
> ERROR: setup
> Unable to find kernel sources at /usr/src/linux
Fixed in CVS.

> 
> WARN: setup
> Unable to calculate Linux Kernel version for build, attempting to use
> running version
This is correct.
If there is no /usr/src/linux, we fall back to /proc/config.gz.
In your case, that must exist, otherwise you would have gotten:
 * Unable to check for the following kernel config options due
 * to absence of any configured kernel sources or compile
 * config:
 * (config options)

> ERROR: setup
>   CONFIG_FHANDLE:	 is not set when it should be.
This is also correct. /proc/config.gz existed on your system, and did not contain this option.

It's a non-fatal error.


> At least the 2nd ERROR does not makes sense IMO.
> And the 1st ERROR should rather be a WARN as the following WARN suggests.