[oe] orphaned files

Frans Meulenbroeks fransmeulenbroeks at gmail.com
Fri Aug 20 13:01:40 UTC 2010


2010/8/19 Vitus Jensen <vjensen at gmx.de>:
> On Sun, 15 Aug 2010, Frans Meulenbroeks wrote:
>
>> I've made a list of patch files in recipes (prefixed with file://) and
>> compared it with the list of patch files as appear on disk.
>> Below is the list of 645 files that do not show up in any recipe and
>> as such can be considered as orphaned.
>> Proposal is to remove these files after double checking that they are
>> indeed not used.
>>
>> Do people agree with this? If so can I have an ack?
>>
>> And do we want to have a commit for every file (makes it easy to
>> revert an error) or a big commit with all removals?
>> (removals per dir are also possible but that process is more difficult
>> to automate and hence not my preferred solution.
>>
>> Your opinion is appreciated.
>>
>> Frans
>
> Hello Frans,
>
> how did you create that list?  As I see it, there must be an error in the
> analysis somewhere:

The procedure is described above
more explicit:
something like
grep -"file://.*patch" in recipes/*/* > file1
find recipes | grep patch >file2

in the editor change both file1 and file2 to whack off things like
;apply=yes and a few more things in file1, also discard the file://
section and unify whitespace file layout of both file1 and file2
becomes as listed above.
then run diff file1 file2
visually examine the differences (especially for things like
file://x-${PV}.patch which of course do not match
then anything that appears in file2 and not in file1 is what is in the
list above

>
>> htmldoc paths_1.8.27.patch
>
>
> vitus at asterix:/home/nobkp/oe.dev/recipes/htmldoc$ fgrep -C 1
> paths_1.8.27.patch *
> htmldoc_1.8.27.bb-SRC_URI = "http://..../htmldoc-${PV}-source.tar.bz2 \
> htmldoc_1.8.27.bb:file://paths_1.8.27.patch"
> htmldoc_1.8.27.bb-
> --
> htmldoc-gui_1.8.27.bb-SRC_URI =
> "http://..../${PV}/htmldoc-${PV}-source.tar.bz2 \
> htmldoc-gui_1.8.27.bb:file://paths_1.8.27.patch"
> htmldoc-gui_1.8.27.bb-
> --
> htmldoc-native_1.8.27.bb-SRC_URI = "http://.../htmldoc-${PV}-source.tar.bz2
> \
> htmldoc-native_1.8.27.bb:file://paths_1.8.27.patch"
> htmldoc-native_1.8.27.bb-
> vitus at asterix:/home/nobkp/oe.dev/recipes/htmldoc$ find . -name
> paths_1.8.27.patch
> ./files/paths_1.8.27.patch
> vitus at asterix:/home/nobkp/oe.dev/recipes/htmldoc$
>

I thought I made a mistake in the script, but after verification I have not.
The recipes you mention have been removed a few days ago
http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=e5287904a9dddc8ddc0f486d8526bc8cfda427b7

It there any particular reason why you want to have both the 1.8 and
1.9 versions in the archive?
If so, we should revert the commit above (and then of course the patch
file itself should not be removed either.

Frans




More information about the Openembedded-devel mailing list