Bug 199485 - files remain in scripts/ and tools/ after make mrproper and removal of the original source files
Summary: files remain in scripts/ and tools/ after make mrproper and removal of the or...
Status: NEW
Alias: None
Product: Other
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: other_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-23 13:58 UTC by calimeroteknik
Modified: 2018-05-11 16:07 UTC (History)
1 user (show)

See Also:
Kernel Version: 4.14.35
Subsystem:
Regression: No
Bisected commit-id:


Attachments
config file used (192.97 KB, text/x-mpsub)
2018-04-23 13:58 UTC, calimeroteknik
Details

Description calimeroteknik 2018-04-23 13:58:07 UTC
Created attachment 275529 [details]
config file used

This can be tested by comparing the state of the tree
- just after extracting
- after dropping a .config and running `make olddefconfig && make && make mrproper`

For version 4.14.35 I have these extra files remaining:
linux-4.14.35/tools/objtool/arch/x86/lib/inat-tables.c
linux-4.14.35/tools/objtool/fixdep
linux-4.14.35/tools/objtool/objtool


At version 4.14.33 I thought this was getting fixed, but the remaining files were back one version later. Therefore marked as a regression.


Here are the leftovers I got for the previous version, running `make mrproper` and uninstalling the files from the sources archive:

linux-4.14.34-leftovers
├── scripts
│   └── dtc
│       └── include-prefixes
└── tools
    └── objtool
        ├── arch
        │   └── x86
        │       └── lib
        │           └── inat-tables.c
        ├── fixdep
        └── objtool

8 directories, 3 files
Comment 1 Randy Dunlap 2018-05-11 01:03:00 UTC
Hi. How do you generate the leftovers listing?
Comment 2 calimeroteknik 2018-05-11 16:07:26 UTC
First I noticed this on gentoo, where there is a package for the linux sources : files would remain after uninstalling the package.

Then I actually used overlayfs to test it independently on unpatched sources from kernel.org: the lower branch (ro) was the linux tree, and the upper branch (rw) contained the above listing, after running `make olddefconfig && make && make mrproper`.

The last listing is the output of `tree` on the upper branch of the overlayfs.

The first listing is a simple diff on the output of `find` before and after creating .config (attached) and running `make olddefconfig && make && make mrproper`.

This last method is easiest.

Note You need to log in before you can comment on or make changes to this bug.