diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2016-08-17 14:31:25 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2016-08-22 16:43:26 +0000 |
commit | 60f9d69e016b11c468c98ea75ba0a60c44afbbc4 (patch) | |
tree | ecb49581a9e41a37943c22cd9ef3f63451b20ee7 /import-layers/yocto-poky/meta/recipes-devtools/opkg-utils/opkg-utils/opkg-build-Exit-when-fail-to-list-files.patch | |
parent | e18c61205e0234b03697129c20cc69c9b3940efc (diff) | |
download | blackbird-openbmc-60f9d69e016b11c468c98ea75ba0a60c44afbbc4.tar.gz blackbird-openbmc-60f9d69e016b11c468c98ea75ba0a60c44afbbc4.zip |
yocto-poky: Move to import-layers subdir
We are going to import additional layers, so create a subdir to
hold all of the layers that we import with git-subtree.
Change-Id: I6f732153a22be8ca663035c518837e3cc5ec0799
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Diffstat (limited to 'import-layers/yocto-poky/meta/recipes-devtools/opkg-utils/opkg-utils/opkg-build-Exit-when-fail-to-list-files.patch')
-rw-r--r-- | import-layers/yocto-poky/meta/recipes-devtools/opkg-utils/opkg-utils/opkg-build-Exit-when-fail-to-list-files.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/import-layers/yocto-poky/meta/recipes-devtools/opkg-utils/opkg-utils/opkg-build-Exit-when-fail-to-list-files.patch b/import-layers/yocto-poky/meta/recipes-devtools/opkg-utils/opkg-utils/opkg-build-Exit-when-fail-to-list-files.patch new file mode 100644 index 000000000..6c66902ef --- /dev/null +++ b/import-layers/yocto-poky/meta/recipes-devtools/opkg-utils/opkg-utils/opkg-build-Exit-when-fail-to-list-files.patch @@ -0,0 +1,45 @@ +We have an issue when ls segfaults in some cases [1] so it's +better to detect the failure at this level instead of continue +the build process. + +[YOCTO #8926] + +Upstream-Status: Submitted [2] + +[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=8926#c0 +[2] https://groups.google.com/forum/#!topic/opkg-devel/cmX02bgHZms + +Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> +--- + opkg-build | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/opkg-build b/opkg-build +index 98008b6..a9ccad2 100755 +--- a/opkg-build ++++ b/opkg-build +@@ -53,6 +53,10 @@ pkg_appears_sane() { + echo "*** Warning: The following files have names ending in '~'. + You probably want to remove them: " >&2 + ls -ld $tilde_files ++ if [ $? -ne 0 ]; then ++ echo "*** Error: Fail to list files have names ending in '~'." ++ exit 1 ++ fi + echo >&2 + else + echo "*** Removing the following files: $tilde_files" +@@ -66,6 +70,10 @@ You probably want to remove them: " >&2 + echo "*** Warning: The following files have a UID greater than 99. + You probably want to chown these to a system user: " >&2 + ls -ld $large_uid_files ++ if [ $? -ne 0 ]; then ++ echo "*** Error: Fail to list files have a UID greater than 99." ++ exit 1 ++ fi + echo >&2 + fi + +-- +2.1.4 + |