Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 146093

Summary: sys-apps/portage -: running ebuild install twice makes portage complain about pre-stripped files
Product: Portage Development Reporter: Petteri Räty (RETIRED) <betelgeuse>
Component: Core - Ebuild SupportAssignee: Portage team <dev-portage>
Status: RESOLVED WONTFIX    
Severity: normal CC: jer
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info

Description Petteri Räty (RETIRED) gentoo-dev 2006-09-02 23:51:25 UTC
pena ndiswrapper # ebuild ndiswrapper-1.23.ebuild clean install
 * ndiswrapper-1.23.tar.gz MD5 ;-) ...                                                                                                                                                                 [ ok ]
 * ndiswrapper-1.23.tar.gz RMD160 ;-) ...                                                                                                                                                              [ ok ]
 * ndiswrapper-1.23.tar.gz SHA1 ;-) ...                                                                                                                                                                [ ok ]
 * ndiswrapper-1.23.tar.gz SHA256 ;-) ...                                                                                                                                                              [ ok ]
 * ndiswrapper-1.23.tar.gz size ;-) ...                                                                                                                                                                [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                                                   [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                                  [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                                 [ ok ]
 * checking ndiswrapper-1.23.tar.gz ;-) ...                                                                                                                                                            [ ok ]
 * See http://www.gentoo.org/doc/en/gentoo-kernel.xml for a list of supported kernels.

 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.17-gentoo-r6
 * Checking for suitable kernel configuration options...                                                                                                                                               [ ok ]
>>> Unpacking source...
>>> Unpacking ndiswrapper-1.23.tar.gz to /var/tmp/portage/ndiswrapper-1.23/work
 * Applying ndiswrapper-1.2-suspend2.patch ...                                                                                                                                                         [ ok ]
 * Converting ndiswrapper-1.23/driver/Makefile to use M= instead of SUBDIRS= ...                                                                                                                       [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/ndiswrapper-1.23/work/ndiswrapper-1.23 ...
 * Preparing ndiswrapper module


*** WARNING: This kernel seems to use 4K stack size option (CONFIG_4KSTACKS); many Windows drivers will not work with this option enabled. Disable CONFIG_4KSTACKS option, recompile and install kernel


  Building modules, stage 2.
>>> Source compiled.
>>> Test phase [not enabled]: net-wireless/ndiswrapper-1.23

>>> Install ndiswrapper-1.23 into /var/tmp/portage/ndiswrapper-1.23/image/ category net-wireless
 * Installing ndiswrapper module
 * Preparing file for modules.d ...                                                                                                                                                                    [ ok ]

NOTE: Windows driver configuration file format has changed since 1.5. You must re-install Windows drivers if they were installed before.
>>> Completed installing ndiswrapper-1.23 into /var/tmp/portage/ndiswrapper-1.23/image/

man:
gzipping man page: ndiswrapper.8
strip: i686-pc-linux-gnu-strip --strip-unneeded
   sbin/loadndisdriver
pena ndiswrapper # ebuild ndiswrapper-1.23.ebuild install
 * ndiswrapper-1.23.tar.gz MD5 ;-) ...                                                                                                                                                                 [ ok ]
 * ndiswrapper-1.23.tar.gz RMD160 ;-) ...                                                                                                                                                              [ ok ]
 * ndiswrapper-1.23.tar.gz SHA1 ;-) ...                                                                                                                                                                [ ok ]
 * ndiswrapper-1.23.tar.gz SHA256 ;-) ...                                                                                                                                                              [ ok ]
 * ndiswrapper-1.23.tar.gz size ;-) ...                                                                                                                                                                [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                                                   [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                                  [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                                 [ ok ]
 * checking ndiswrapper-1.23.tar.gz ;-) ...                                                                                                                                                            [ ok ]
 * See http://www.gentoo.org/doc/en/gentoo-kernel.xml for a list of supported kernels.

 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.17-gentoo-r6
 * Checking for suitable kernel configuration options...                                                                                                                                               [ ok ]
>>> Checking ndiswrapper-1.23.tar.gz's mtime...
>>> WORKDIR is up-to-date, keeping...
>>> It appears that ndiswrapper is already compiled; skipping.
>>> (clean to force compilation)
>>> It appears that ndiswrapper has already been tested; skipping.
>>> It appears that 'ndiswrapper-1.23' is already installed; skipping.
>>> Remove '/var/tmp/portage/ndiswrapper-1.23/.installed' to force install.
man:

QA Notice: pre-stripped files found:
/var/tmp/portage/ndiswrapper-1.23/image/sbin/loadndisdriver
strip: i686-pc-linux-gnu-strip --strip-unneeded
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2006-09-02 23:52:15 UTC
Created attachment 95813 [details]
emerge --info
Comment 2 Zac Medico gentoo-dev 2006-09-03 00:28:54 UTC
(In reply to comment #0)
> >>> It appears that ndiswrapper has already been tested; skipping.
> >>> It appears that 'ndiswrapper-1.23' is already installed; skipping.
> >>> Remove '/var/tmp/portage/ndiswrapper-1.23/.installed' to force install.
> man:
> 
> QA Notice: pre-stripped files found:
> /var/tmp/portage/ndiswrapper-1.23/image/sbin/loadndisdriver
> strip: i686-pc-linux-gnu-strip --strip-unneeded

Maybe that behavior is okay?  If you remove the .installed file then it will force the install phase to run again and replace those stripped binaries.

I suppose we could skip the qa check if the .installed file exists.  We'd have to move he .installed check to the python side and that's annoying because all of the similar checks are currently done on the bash side in ebuild.sh.
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2007-01-11 08:32:42 UTC
Or maybe remove .installed if the user calls `ebuild install` explicitly (like I did for test).
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2009-09-01 14:33:21 UTC
*** Bug 283415 has been marked as a duplicate of this bug. ***
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-31 16:03:21 UTC
I don't really view this as supported or a bug.