Fix: stage hidden files as well
The following patch is a proposed patch to fix the problem where hidden files are sometimes missed during staging. A specific example is that the symbolic link ".config" is not copied to the kernel staging area, which causes madwifi-ng to fail to build.
classes/staging.bbclass +7 -0
@@ -35,6 +35,13 @@ sysroot_stage_dir() { if [ -d "$src" ]; then mkdir -p "$dest" cp -fpPR "$src"/* "$dest" + # Get hidden files as well, but carefully + for i in "$src"/.* + do + if [ "$i" != "$src"/. -a "$i" != "$src"/.. ]; then + cp -fpPR "$i" "$dest" + fi + done fi }
If anyone has a better way to address the copy operations above, that would be great.
-Mike (mwester)
Quoted 23 lines · Mike Westerhof
The following patch is a proposed patch to fix the problem where hidden files are sometimes missed during staging. A specific example is that the symbolic link ".config" is not copied to the kernel staging area, which causes madwifi-ng to fail to build.
classes/staging.bbclass +7
-0@@ -35,6 +35,13 @@ sysroot_stage_dir() { if [ -d "$src" ]; then mkdir -p "$dest" cp -fpPR "$src"/* "$dest" + # Get hidden files as well, but carefully + for i in "$src"/.* + do + if [ "$i" != "$src"/. -a "$i" != "$src"/.. ]; then + cp -fpPR "$i" "$dest" + fi + done fi }
Quoted 2 lines
If anyone has a better way to address the copy operations above, that would be great.
So, I said this on IRC, but more formally, how about just for i in "$src"/.??* do as this lets us know we don't have '.' or '..', and if we skip out on '.a' or something being installed, that reeks of a bug in the program in question that should be fixed anyways (and would catch .config and others).
Signature · 2 lines
Tom Rini <[email protected]> Mentor Graphics Corporation
Quoted 25 lines · Tom Rini
Quoted 10 lines · Mike Westerhof
The following patch is a proposed patch to fix the problem where hidden files are sometimes missed during staging. A specific example is that the symbolic link ".config" is not copied to the kernel staging area, which causes madwifi-ng to fail to build.
classes/staging.bbclass +0
-0classes/staging.bbclass sysroot_stage_dir() { · line 41
Quoted 7 lines
classes/staging.bbclass +4
-0@@ -35,6 +35,13 @@ sysroot_stage_dir() { if [ -d "$src" ]; then mkdir -p "$dest" cp -fpPR "$src"/* "$dest" + # Get hidden files as well, but carefully + for i in "$src"/.* + do + if [ "$i" != "$src"/. -a "$i" != "$src"/.. ];then
Quoted 6 lines
classes/staging.bbclass +3
-0+ cp -fpPR "$i" "$dest" + fi + done fi }
Quoted 8 lines
Quoted 2 lines
If anyone has a better way to address the copy operations above, that would be great.
So, I said this on IRC, but more formally, how about just for i in "$src"/.??* do as this lets us know we don't have '.' or '..', and if we skip out on '.a' or something being installed, that reeks of a bug in the program in question that should be fixed anyways (and would catch .config and others).
Alternatively, could for i in "$src".[a-zA-Z]*, I doubt we care about dotfiles starting with a number.
Signature · 5 lines
Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 37 lines · Chris Larson
Quoted 25 lines · Tom Rini
Quoted 10 lines · Mike Westerhof
The following patch is a proposed patch to fix the problem where hidden files are sometimes missed during staging. A specific example is that the symbolic link ".config" is not copied to the kernel staging area, which causes madwifi-ng to fail to build.
classes/staging.bbclass +0
-0classes/staging.bbclass sysroot_stage_dir() { · line 41
Quoted 7 lines
classes/staging.bbclass +4
-0@@ -35,6 +35,13 @@ sysroot_stage_dir() { if [ -d "$src" ]; then mkdir -p "$dest" cp -fpPR "$src"/* "$dest" + # Get hidden files as well, but carefully + for i in "$src"/.* + do + if [ "$i" != "$src"/. -a "$i" != "$src"/.. ];then
Quoted 6 lines
classes/staging.bbclass +3
-0+ cp -fpPR "$i" "$dest" + fi + done fi }Quoted 8 lines
Quoted 2 lines
If anyone has a better way to address the copy operations above, that would be great.
So, I said this on IRC, but more formally, how about just for i in "$src"/.??* do as this lets us know we don't have '.' or '..', and if we skip out on '.a' or something being installed, that reeks of a bug in the program in question that should be fixed anyways (and would catch .config and others).
Quoted 2 lines
Alternatively, could for i in "$src".[a-zA-Z]*, I doubt we care about dotfiles starting with a number.
rm_work needs a similar fix. In webkit gtk we set S to WORKDIR and rm_work skips the 2 gigabyte .libs directory.
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFL2S+6MkyGM64RGpERAgmlAJ4yDKxJ/JDNf71meEOkVK+iUHPXpQCgt1ex U3fzV/UiLdmSYklkcU1seMw=
=bpD4
-----END PGP SIGNATURE-----