QA Notice: pre-stripped files found: /var/tmp/portage/brltty-3.7.2/image/bin/brltty /var/tmp/portage/brltty-3.7.2/image/bin/xbrlapi /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttysfv.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttybeu.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttyscb.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttybfs.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttyses.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttybvr.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttybcb.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttybbd.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttybtn.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttysgs.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttybvo.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttybht.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttybbn.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttybmd.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttysal.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttyxsc.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttybat.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttybba.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttybmn.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttybbm.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttybvd.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttybxw.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttybts.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttybpm.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttyxlx.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttybal.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttybmb.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttybvs.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttybbl.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttyxas.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttyblt.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttysbl.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttybec.so /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttybtt.so /var/tmp/portage/brltty-3.7.2/image/lib/libbrlapi.so.0.4.1 strip: i686-pc-linux-gnu-strip --strip-unneeded lib/libbrlapi.a QA Notice: excessive files found in the / partition /var/tmp/portage/brltty-3.7.2/image/lib/libbrlapi.a scanelf: rpath_security_checks(): Security problem with relative DT_RPATH '../../Programs' in /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttybba.so scanelf: rpath_security_checks(): Security problem with relative DT_RUNPATH '../../Programs' in /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttybba.so root@kali ~ # emerge --info Portage 2.1-r1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.3.6-r4, 2.6.17-gentoo-r4 i686) ================================================================= System uname: 2.6.17-gentoo-r4 i686 Intel(R) Pentium(R) D CPU 3.00GHz Gentoo Base System version 1.6.15 ccache version 2.3 [enabled] app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=prescott -fomit-frame-pointer -pipe -fno-ident" 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/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=prescott -fomit-frame-pointer -pipe -fno-ident" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache collision-protect digest distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS=" http://gentoo.osuosl.org/ http://gentoo.chem.wisc.edu/gentoo/ ftp://cs.ubishops.ca/pub/gentoo" LDFLAGS="-Wl,-O1" LINGUAS="en en_US en_GB" 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'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/home/dirtyepic/overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X a52 aac acpi alsa audiofile berkdb blas bzip2 cdparanoia cdr crypt curl dbus dri dts dvd dvdr dvdread eds encode expat fam ffmpeg firefox flac fortran gd gdbm gif glut gmp gnome gnutls gpm graphviz gstreamer gtk hal imagemagick imlib java jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility lcms logrotate mad mikmod mmap mmx mng mono mp3 mpeg mpi ncurses nptl nsplugin ogg opengl pam pdf perl pic png python qt3 quicktime readline ruby sdl sndfile snmp spell sqlite sse sse2 ssl svg symlink tcl tcltk tcpd theora threads tiff tk truetype urandom usb vcd vorbis win32codecs wmf wxwindows xcomposite xine xml xosd xv xvid zlib elibc_glibc input_devices_mouse input_devices_keyboard kernel_linux linguas_en linguas_en_US linguas_en_GB userland_GNU video_cards_radeon" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
I am working on a revision bump to resolve these issues. I have resolved the pre-stripped files issue; however, I still get the following messages: QA Notice: excessive files found in the / partition /var/tmp/portage/brltty-3.7.2/image/lib/libbrlapi.a scanelf: rpath_security_checks(): Security problem with relative DT_RPATH '../../Programs' in /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttybba.so scanelf: rpath_security_checks(): Security problem with relative DT_RUNPATH '../../Programs' in /var/tmp/portage/brltty-3.7.2/image/lib/brltty/libbrlttybba.so Can anyone suggest how to resolve these?
Created attachment 95243 [details] brltty-3.7.2-r1.ebuild This is the revision bump ebuild that I have so far. It resolves the pre-stripped binary issue, but I'm not sure how to resolve the others. Can someone please comment on the bug and point me in the right direction for this?
Created attachment 97288 [details, diff] brltty-3.7.2-nostrip.patch Attached are how I work around the strip and rpath problem. This QA check is new to me. I have see/understand what it really means before I can attach a fix for it. QA Notice: excessive files found in the / partition /var/tmp/portage/brltty-3.7.2/image/lib/libbrlapi.a
Created attachment 97289 [details] brltty-3.7.2.ebuild And the ebuild part which fixes/works around the rpath problems.
Note: for the rpath part. scanelf is now provided by the base system and is required for portage for all but osx. Due to there being no osx keywords I did not add an explicit depend upon scanelf.
Here we go.. To fix the other QA problem add an inherit multilib and in the src_install something like this after the make install/scanelf, libdir="$(get_libdir)" mkdir -p ${D}/usr/${libdir}/ mv ${D}/${libdir}/*.a ${D}/usr/${libdir}/
This is now resolved. Thanks, Solar, for the patches.