Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 529478 - sys-kernel/gentoo-sources leaves files in arch/x86/vdso/
Summary: sys-kernel/gentoo-sources leaves files in arch/x86/vdso/
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: https://bugzilla.kernel.org/show_bug....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-16 11:38 UTC by Mark Dominik Bürkle
Modified: 2015-06-29 22:33 UTC (History)
0 users

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 Mark Dominik Bürkle 2014-11-16 11:38:58 UTC
After "make distclean" and uninstalling gentoo-sources, files remain on disk:
lapmdb-hpl ~ #>> find /usr/src/linux-3.17.2-gentoo/ -ls | awk '{$1="";$2="";print}'
  drwxr-xr-x 3 root root 4096 Nov 16 11:53 /usr/src/linux-3.17.2-gentoo/
  drwxr-xr-x 3 root root 4096 Nov 16 11:53 /usr/src/linux-3.17.2-gentoo/arch
  drwxr-xr-x 3 root root 4096 Nov 16 11:53 /usr/src/linux-3.17.2-gentoo/arch/x86
  drwxr-xr-x 2 root root 4096 Nov 16 11:53 /usr/src/linux-3.17.2-gentoo/arch/x86/vdso
  -rw-r--r-- 1 root root 22076 Nov 2 12:40 /usr/src/linux-3.17.2-gentoo/arch/x86/vdso/vdso-image-32-syscall.c
  -rw-r--r-- 1 root root 29185 Nov 2 12:40 /usr/src/linux-3.17.2-gentoo/arch/x86/vdso/vdso-image-64.c
  -rwxr-xr-x 1 root root 5937 Nov 2 12:40 /usr/src/linux-3.17.2-gentoo/arch/x86/vdso/vdso64.so.dbg
  -rw-r--r-- 1 root root 22000 Nov 2 12:40 /usr/src/linux-3.17.2-gentoo/arch/x86/vdso/vdso-image-32-int80.c
  -rw-r--r-- 1 root root 22140 Nov 2 12:40 /usr/src/linux-3.17.2-gentoo/arch/x86/vdso/vdso-image-32-sysenter.c
  -rwxr-xr-x 1 root root 4632 Nov 2 12:40 /usr/src/linux-3.17.2-gentoo/arch/x86/vdso/vdso64.so
lapmdb-hpl ~ #>> 


Reproducible: Always

Steps to Reproduce:
1. emerge =sys-kernel/gentoo-sources-3.17.2 (v1.16.0 up to v1.17.2, most likely 1.17.3 as well)
2. cd /usr/src/linux-3.17.2-gentoo
3. copy old .config
4a. make oldconfig
4b. make bzImage modules # "make modules_prepare" is not sufficient for demo
5. make distclean
6. emerge -C =sys-kernel/gentoo-sources-3.17.2

Actual Results:  
some files remain on disk, emerge complains about "remaining files"

Expected Results:  
all files should be removed, emerge should run silently

This is an upstream error. Some kernel makefile (in arch/x86/vdso/) is missing a rule to clean up.

I'm reporting this only to make sure that gentoo doesn't have any influence on this (I expect not), before reporting upstream.

Easy workaround: remove the remaining files "by hand", e.g. "rm -rf /usr/src/linux-3.17.2-gentoo/" after unmerging the package.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-17 13:20:13 UTC
(In reply to Mark Dominik Bürkle from comment #0)
> some files remain on disk, emerge complains about "remaining files"
> 
> Expected Results:  
> all files should be removed, emerge should run silently
> 
> This is an upstream error. Some kernel makefile (in arch/x86/vdso/) is
> missing a rule to clean up.

It's an upstream error?

> I'm reporting this only to make sure that gentoo doesn't have any influence
> on this (I expect not), before reporting upstream.

It's not an upstream error?

> Easy workaround: remove the remaining files "by hand", e.g. "rm -rf
> /usr/src/linux-3.17.2-gentoo/" after unmerging the package.

It's not an error?
Comment 2 Mark Dominik Bürkle 2014-11-17 14:45:00 UTC
(In reply to Jeroen Roovers from comment #1)
> It's an upstream error?

Yes, I think so.

lapmdb-hpl ~ #>> ACCEPT_KEYWORDS=~amd64 USE=-symlink emerge -av vanilla-sources

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] sys-kernel/vanilla-sources-3.17.3:3.17.3  USE="-build -deblob -symlink" 165 kB

Total: 1 package (1 new), Size of downloads: 165 kB

Would you like to merge these packages? [Yes/No] <return>
...
lapmdb-hpl ~ #>> cd /usr/src/linux-3.17.3
lapmdb-hpl linux-3.17.3 #>> cp -a ../linux-3.17.3-gentoo/.config .
lapmdb-hpl linux-3.17.3 #>> make oldconfig
...
lapmdb-hpl linux-3.17.3 #>> make localyesconfig
...
lapmdb-hpl linux-3.17.3 #>> make -j5 bzImage modules
...
Kernel: arch/x86/boot/bzImage is ready  (#1)
lapmdb-hpl linux-3.17.3 #>> make distclean
...
lapmdb-hpl linux-3.17.3 #>> cd
lapmdb-hpl ~ #>> emerge -C vanilla-sources
 * This action can remove important packages! In order to be safer, use
 * `emerge -pv --depclean <atom>` to check for reverse dependencies before
 * removing packages.

 sys-kernel/vanilla-sources
    selected: 3.17.3 
   protected: none 
     omitted: none 

All selected packages: sys-kernel/vanilla-sources-3.17.3

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 4 3 2 1
>>> Unmerging (1 of 1) sys-kernel/vanilla-sources-3.17.3...

 * Note: Even though you have successfully unmerged 
 * your kernel package, directories in kernel source location: 
 * /usr/src/linux-3.17.3
 * with modified files will remain behind. By design, package managers
 * will not remove these modified files and the directories they reside in.


 * Messages for package sys-kernel/vanilla-sources-3.17.3:

 * Note: Even though you have successfully unmerged 
 * your kernel package, directories in kernel source location: 
 * /usr/src/linux-3.17.3
 * with modified files will remain behind. By design, package managers
 * will not remove these modified files and the directories they reside in.

 * GNU info directory index is up-to-date.

!!! existing preserved libs:
... (oracle-instantclient-basic-11.2.0.3 requires libaio.so.1.0.1)
lapmdb-hpl ~ #>> find /usr/src/linux-3.17.3
/usr/src/linux-3.17.3
/usr/src/linux-3.17.3/arch
/usr/src/linux-3.17.3/arch/x86
/usr/src/linux-3.17.3/arch/x86/vdso
/usr/src/linux-3.17.3/arch/x86/vdso/vdso-image-32-syscall.c
/usr/src/linux-3.17.3/arch/x86/vdso/vdso-image-64.c
/usr/src/linux-3.17.3/arch/x86/vdso/vdso64.so.dbg
/usr/src/linux-3.17.3/arch/x86/vdso/vdso-image-32-int80.c
/usr/src/linux-3.17.3/arch/x86/vdso/vdso-image-32-sysenter.c
/usr/src/linux-3.17.3/arch/x86/vdso/vdso64.so
lapmdb-hpl ~ #>> 

https://bugzilla.kernel.org/show_bug.cgi?id=88351
Comment 3 Mike Pagano gentoo-dev 2014-11-21 18:48:41 UTC
We'll watch the upstream bug for any fixes.
Comment 4 Mark Dominik Bürkle 2015-06-29 22:33:09 UTC
fixed in kernel-4.1.0
so this is relevant for kernel series 3.16, 3.17, 3.18, 3.19 and 4.0.

I closed the upstream Bug as "resolved obsolete".

Kind regards,
mdbuerkle