Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 184443 - Kernel modules should be filtered out from QA checks
Summary: Kernel modules should be filtered out from QA checks
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: X11 External Driver Maintainers
Keywords: InVCS
Depends on:
Blocks: 181949
  Show dependency tree
Reported: 2007-07-06 19:35 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2007-08-24 18:45 UTC (History)
2 users (show)

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

portage-qa-ignores.patch (portage-qa-ignores.patch,3.01 KB, patch)
2007-08-12 02:04 UTC, SpanKY
Details | Diff
portage-ignore-kernel-modules.patch (portage-ignore-kernel-modules.patch,1.00 KB, patch)
2007-08-12 14:11 UTC, SpanKY
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-06 19:35:03 UTC
* QA Notice: The following files contain executable stacks
*  Files with executable stacks will not work properly (or at all!)
*  on some architectures/operating systems.  A bug should be filed
*  at to make sure the file is fixed.
*  For more information, see
*  Please include this file in your report:
* /var/tmp/portage/x11-drivers/nvidia-drivers-100.14.11/temp/scanelf-execstack.log
* !WX --- --- lib/modules/2.6.21-suspend2-r6-AFTA/video/nvidia.ko

$ emerge --info -v | grep ARCH=
$ cat /var/tmp/portage/x11-drivers/nvidia-drivers-100.14.11/temp/scanelf-execstack.log
--- --- RWX temp/
--- --- RWX work/NVIDIA-Linux-x86-100.14.11-pkg0/usr/lib/
--- --- RWX work/NVIDIA-Linux-x86-100.14.11-pkg0/usr/lib/
--- --- RWX work/NVIDIA-Linux-x86-100.14.11-pkg0/usr/X11R6/lib/modules/extensions/
!WX --- --- work/NVIDIA-Linux-x86-100.14.11-pkg0/usr/src/nv/nvidia.o
!WX --- --- work/NVIDIA-Linux-x86-100.14.11-pkg0/usr/src/nv/nv-kernel.o
!WX --- --- work/NVIDIA-Linux-x86-100.14.11-pkg0/usr/src/nv/nvidia.ko
!WX --- --- image/lib/modules/2.6.21-suspend2-r6-AFTA/video/nvidia.ko
--- --- RWX image/usr/lib/opengl/nvidia/lib/
--- --- RWX image/usr/lib/opengl/nvidia/lib/
--- --- RWX image/usr/lib/opengl/nvidia/extensions/

--- x11-drivers/nvidia-drivers-100.14.11.ebuild
+++ x11-drivers/nvidia-drivers-100.14.11.ebuild
@@ -62,6 +62,8 @@


I don't have possibility to check it on other architectures.
Comment 1 Paul Bredbury 2007-07-06 23:22:48 UTC
On x86, I *don't* see this message. I use sys-apps/portage-
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2007-07-12 16:47:18 UTC
can't duplicate the message. please provide the required emerge --info output to all ebuilds, once you have pasted that reopen the bug.
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-12 18:24:25 UTC
Portage 7243-svn (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.21-suspend2-r6-AFTA i686)
System uname: 2.6.21-suspend2-r6-AFTA i686 AMD Sempron(tm) Processor 2800+
Gentoo Base System release 1.12.10
Timestamp of tree: Thu, 12 Jul 2007 11:50:01 +0000
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-r5
dev-util/ccache:     2.4-r7
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/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
CFLAGS="-march=athlon64 -msse3 -pipe -O3 -fomit-frame-pointer"
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/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=athlon64 -msse3 -pipe -O3 -fomit-frame-pointer"
FEATURES="buildsyspkg ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
LINGUAS="pl en la lt"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude=/manifest1_obsolete --prune-empty-dirs"
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-*"
USE="3dnow X a52 aac aalib acl acpi alsa arts audiofile bash-completion berkdb bzip2 cairo caps cddb cdparanoia cdr cracklib crypt cscope ctype cups curl curlwrappers dbus directfb dri dts dvb dvd dvdr dvdread emboss encode exif expat fam fbcon ffmpeg firefox flac foomaticdb ftp gcj gd gdbm ggi gif glut gmp gnutls gpm graphviz gstreamer gtk guile hal hardened iconv idn imagemagick imlib ipv6 java javascript jbig jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility lash lcms ldap libcaca lm_sensors mad matroska matrox memlimit mhash mikmod mime mmap mmx mng motif mp3 mpeg mpi mplayer musepack ncurses netcdf nls nptl nsplugin odbc ogg openal openexr opengl pam pcntl pcre pda pdf perl png portaudio posix ppds profile python qt3 qt4 quicktime rdesktop readline recode ruby scanner sdl session sharedmem shorten simplexml slang slp sndfile soap sockets speex spell sse sse2 ssl svg svga symlink szip tcl tcpd theora threads tiff tk truetype unicode usb vcd vim-syntax vorbis win32codecs wmf wxwindows x264 x86 xcomposite xine xml xmlrpc xpm xprint xsl xv xvid zlib" ALSA_CARDS="hda-intel virmidi" 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="keyboard mouse" KERNEL="linux" LINGUAS="pl en la lt" USERLAND="GNU" VIDEO_CARDS="fbdev nv nvidia vesa"
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-12 18:30:29 UTC
This problem only exist with later binutils. It's also with

Please reassign this bug to toolchain herd.
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2007-07-12 18:46:41 UTC
per user comments.

Seems possible to me, what's being marked as having executable stacks is the actual compiled part of the driver.

Granted, his mile long line of LDFLAGS could be the issue.
Comment 6 SpanKY gentoo-dev 2007-07-12 18:56:33 UTC
kernel modules shouldnt be checked in the first place as those sections are ignored ...
Comment 7 Doug Goldstein (RETIRED) gentoo-dev 2007-07-12 19:04:28 UTC
so is the ebuild doing something wrong or does Portage need to get spanked?
Comment 8 SpanKY gentoo-dev 2007-07-12 20:14:09 UTC
i'll have to play/research ... this came up before and i forget how we resolved it in the other package
Comment 9 SpanKY gentoo-dev 2007-08-12 02:04:32 UTC
Created attachment 127805 [details, diff]

try this patch
Comment 10 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-08-12 12:52:42 UTC
(In reply to comment #9)
> Created an attachment (id=127805) [edit]
> portage-qa-ignores.patch
> try this patch

$ patch -p0 < ~/portage-qa-ignores.patch
patching file
Hunk #1 FAILED at 1095.
Hunk #2 FAILED at 1132.
Hunk #3 FAILED at 1171.
Hunk #4 FAILED at 1202.
4 out of 4 hunks FAILED -- saving rejects to file
$ head -n4 ~/portage-qa-ignores.patch
---   (revision 2825)
+++   (working copy)
$ svnversion

Did you run `svn up`?
Comment 11 SpanKY gentoo-dev 2007-08-12 14:11:11 UTC
Created attachment 127866 [details, diff]

nah, i just posted the wrong patch ... that other one i already committed a long time ago
Comment 12 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-08-12 16:24:35 UTC
(In reply to comment #11)
> Created an attachment (id=127866) [edit]
> portage-ignore-kernel-modules.patch

It doesn't work.

info bash:
3.5.8 Filename Expansion
When matching a file name, the slash character must always be matched explicitly.
Comment 13 SpanKY gentoo-dev 2007-08-12 16:52:29 UTC
bash rules of matching are irrelevant ... bash isnt used for wildcard matching
Comment 14 SpanKY gentoo-dev 2007-08-16 18:31:03 UTC
in the patch, try using:

in other words, drop that leading / ...
Comment 15 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-08-16 21:12:46 UTC
(In reply to comment #14)
> in the patch, try using:
> lib*/modules/*.ko
> in other words, drop that leading / ...

It seems to work.
Comment 16 SpanKY gentoo-dev 2007-08-17 23:30:45 UTC
merged then into current svn
Comment 17 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-08-19 17:39:50 UTC
(In reply to comment #16)
> merged then into current svn

Comment 18 Zac Medico gentoo-dev 2007-08-24 18:45:49 UTC
This has been released in