Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 251270 - Netbeans installs files for invalid archs.
Summary: Netbeans installs files for invalid archs.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Miroslav Šulc
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-17 01:41 UTC by Jory A. Pratt
Modified: 2011-03-15 03:22 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jory A. Pratt gentoo-dev 2008-12-17 01:41:44 UTC
* --- --- RWX usr/share/netbeans-6.5/cnd2/bin/unbuffer-SunOS-x86.so
 * --- --- RWX usr/share/netbeans-6.5/cnd2/bin/GdbHelper-SunOS-x86.so
 * --- --- RWX usr/share/netbeans-6.5/cnd2/bin/GdbHelper-SunOS-sparc.so
 * --- --- RWX usr/share/netbeans-6.5/cnd2/bin/unbuffer-SunOS-sparc_64.so
 * --- --- RWX usr/share/netbeans-6.5/cnd2/bin/unbuffer-SunOS-sparc.so

These files should not be included on amd64 we can not even read the file makes them useless to have around. these files should only be installed if we are installing on a sparc machine.

Reproducible: Always
Comment 1 Miroslav Šulc gentoo-dev 2008-12-17 11:17:45 UTC
Thank you for reporting. Fixed in netbeans-6.5-r4.

I removed both SunOS and Mac files as these are useless on linux system. The code for removal of these file was already in the ebuild but there was a bug in it.
Comment 2 David Carlos Manuelda 2011-03-15 03:21:07 UTC
Happens again in netbeans-6.9.1:
scanelf: rpath_security_checks(): Security problem NULL DT_RPATH in /var/tmp/portage/dev-util/netbeans-6.9.1/image/usr/share/netbeans-6.9/profiler/lib/deployed/jdk15/hpux-pa_risc2.0w/libprofilerinterface.sl
scanelf: rpath_security_checks(): Security problem NULL DT_RPATH in /var/tmp/portage/dev-util/netbeans-6.9.1/image/usr/share/netbeans-6.9/profiler/lib/deployed/jdk16/hpux-pa_risc2.0w/libprofilerinterface.sl

 * QA Notice: The following files contain insecure RUNPATHs
 *  Please file a bug about this at http://bugs.gentoo.org/
 *  with the maintaining herd of the package.
 * /usr/lib/pa20_64:/opt/langtools/lib/pa20_64: usr/share/netbeans-6.9/profiler/lib/deployed/jdk15/hpux-pa_risc2.0w/libprofilerinterface.sl
 * /usr/lib/pa20_64:/opt/langtools/lib/pa20_64: usr/share/netbeans-6.9/profiler/lib/deployed/jdk16/hpux-pa_risc2.0w/libprofilerinterface.sl

Auto fixing rpaths for /usr/lib/pa20_64:/opt/langtools/lib/pa20_64: usr/share/netbeans-6.9/profiler/lib/deployed/jdk15/hpux-pa_risc2.0w/libprofilerinterface.sl
/usr/lib/pa20_64:/opt/langtools/lib/pa20_64: usr/share/netbeans-6.9/profiler/lib/deployed/jdk16/hpux-pa_risc2.0w/libprofilerinterface.sl

Please, reopen.
Comment 3 David Carlos Manuelda 2011-03-15 03:22:39 UTC
There are more:

* QA Notice: The following files contain runtime text relocations
 *  Text relocations force the dynamic linker to perform extra
 *  work at startup, waste system resources, and may pose a security
 *  risk.  On some architectures, the code may not even function
 *  properly, if at all.
 *  For more information, see http://hardened.gentoo.org/pic-fix-guide.xml
 *  Please include the following list of files in your report:
 * TEXTREL usr/share/netbeans-6.9/ide/bin/nativeexecution/SunOS-x86_64/pty
 * TEXTREL usr/share/netbeans-6.9/ide/bin/nativeexecution/SunOS-x86/pty
 * TEXTREL usr/share/netbeans-6.9/ide/bin/nativeexecution/SunOS-x86/privp
 * TEXTREL usr/share/netbeans-6.9/ide/bin/nativeexecution/SunOS-x86/pty_open
 * TEXTREL usr/share/netbeans-6.9/ide/bin/nativeexecution/SunOS-x86/process_start
 * TEXTREL usr/share/netbeans-6.9/profiler/lib/deployed/jdk15/solaris-sparc/libprofilerinterface.so
 * TEXTREL usr/share/netbeans-6.9/profiler/lib/deployed/jdk15/solaris-i386/libprofilerinterface.so
 * TEXTREL usr/share/netbeans-6.9/profiler/lib/deployed/jdk16/solaris-sparc/libprofilerinterface.so
 * TEXTREL usr/share/netbeans-6.9/profiler/lib/deployed/jdk16/solaris-i386/libprofilerinterface.so