All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] opkg-utils: re-do find/ls code to not fail on filenames with spaces
@ 2016-04-08  4:57 Denys Dmytriyenko
  2016-04-11 16:13 ` Alejandro del Castillo
  2016-04-11 16:52 ` Burton, Ross
  0 siblings, 2 replies; 5+ messages in thread
From: Denys Dmytriyenko @ 2016-04-08  4:57 UTC (permalink / raw)
  To: openembedded-core; +Cc: Denys Dmytriyenko

From: Denys Dmytriyenko <denys@ti.com>

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
---
 ...re-do-find-ls-code-to-not-fail-on-filenam.patch | 56 ++++++++++++++++++++++
 meta/recipes-devtools/opkg-utils/opkg-utils_git.bb |  3 +-
 2 files changed, 58 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-devtools/opkg-utils/opkg-utils/0001-opkg-build-re-do-find-ls-code-to-not-fail-on-filenam.patch

diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils/0001-opkg-build-re-do-find-ls-code-to-not-fail-on-filenam.patch b/meta/recipes-devtools/opkg-utils/opkg-utils/0001-opkg-build-re-do-find-ls-code-to-not-fail-on-filenam.patch
new file mode 100644
index 0000000..5cbb55a
--- /dev/null
+++ b/meta/recipes-devtools/opkg-utils/opkg-utils/0001-opkg-build-re-do-find-ls-code-to-not-fail-on-filenam.patch
@@ -0,0 +1,56 @@
+From 8e424296ce2af4a5a7392c38a31f8723f9b9fbda Mon Sep 17 00:00:00 2001
+From: Denys Dmytriyenko <denys@ti.com>
+Date: Thu, 7 Apr 2016 20:43:13 -0400
+Subject: [PATCH] opkg-build: re-do find/ls code to not fail on filenames with
+ spaces
+
+Signed-off-by: Denys Dmytriyenko <denys@ti.com>
+---
+ opkg-build | 9 ++++-----
+ 1 file changed, 4 insertions(+), 5 deletions(-)
+
+diff --git a/opkg-build b/opkg-build
+index a9ccad2..07305b2 100755
+--- a/opkg-build
++++ b/opkg-build
+@@ -6,7 +6,6 @@
+ # 2003-04-25 rea@sr.unh.edu
+ #   Updated to work on Familiar Pre0.7rc1, with busybox tar.
+ #   Note it Requires: binutils-ar (since the busybox ar can't create)
+-#   For UID debugging it needs a better "find".
+ set -e
+ 
+ version=1.0
+@@ -47,12 +46,12 @@ pkg_appears_sane() {
+ 
+ 	PKG_ERROR=0
+ 
+-	tilde_files=`find . -name '*~'`
++	tilde_files=`find . -name '*~' -ls -printf '\\\n'`
+ 	if [ -n "$tilde_files" ]; then
+ 	    if [ "$noclean" = "1" ]; then
+ 		echo "*** Warning: The following files have names ending in '~'.
+ You probably want to remove them: " >&2
+-		ls -ld $tilde_files
++		echo -e $tilde_files
+ 		if [ $? -ne 0 ]; then
+ 			echo "*** Error: Fail to list files have names ending in '~'."
+ 			exit 1
+@@ -64,12 +63,12 @@ You probably want to remove them: " >&2
+ 	    fi
+ 	fi
+ 
+-	large_uid_files=`find . -uid +99 || true`
++	large_uid_files=`find . -uid +99 -ls -printf '\\\n' || true`
+ 
+ 	if [ "$ogargs" = "" ]  && [ -n "$large_uid_files" ]; then
+ 		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
++		echo -e $large_uid_files
+ 		if [ $? -ne 0 ]; then
+ 			echo "*** Error: Fail to list files have a UID greater than 99."
+ 			exit 1
+-- 
+2.2.0
+
diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
index 22f45a1..8873b28 100644
--- a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
+++ b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
@@ -11,7 +11,8 @@ SRCREV = "53274f087565fd45d8452c5367997ba6a682a37a"
 PV = "0.1.8+git${SRCPV}"
 
 SRC_URI = "git://git.yoctoproject.org/opkg-utils \
-           file://opkg-build-Exit-when-fail-to-list-files.patch"
+           file://opkg-build-Exit-when-fail-to-list-files.patch \
+           file://0001-opkg-build-re-do-find-ls-code-to-not-fail-on-filenam.patch"
 SRC_URI_append_class-native = " file://tar_ignore_error.patch"
 
 S = "${WORKDIR}/git"
-- 
2.2.0



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] opkg-utils: re-do find/ls code to not fail on filenames with spaces
  2016-04-08  4:57 [PATCH] opkg-utils: re-do find/ls code to not fail on filenames with spaces Denys Dmytriyenko
@ 2016-04-11 16:13 ` Alejandro del Castillo
  2016-04-11 16:59   ` Denys Dmytriyenko
  2016-04-11 16:52 ` Burton, Ross
  1 sibling, 1 reply; 5+ messages in thread
From: Alejandro del Castillo @ 2016-04-11 16:13 UTC (permalink / raw)
  To: Denys Dmytriyenko, openembedded-core; +Cc: Denys Dmytriyenko



On 04/07/2016 11:57 PM, Denys Dmytriyenko wrote:
> From: Denys Dmytriyenko <denys@ti.com>
> 
> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
> ---

do you mind posting the patch to the opkg-devel@googlegroups.com list too?

-- 
Cheers,

Alejandro


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] opkg-utils: re-do find/ls code to not fail on filenames with spaces
  2016-04-08  4:57 [PATCH] opkg-utils: re-do find/ls code to not fail on filenames with spaces Denys Dmytriyenko
  2016-04-11 16:13 ` Alejandro del Castillo
@ 2016-04-11 16:52 ` Burton, Ross
  1 sibling, 0 replies; 5+ messages in thread
From: Burton, Ross @ 2016-04-11 16:52 UTC (permalink / raw)
  To: Denys Dmytriyenko; +Cc: Denys Dmytriyenko, OE-core

[-- Attachment #1: Type: text/plain, Size: 454 bytes --]

On 8 April 2016 at 05:57, Denys Dmytriyenko <denis@denix.org> wrote:

> +From 8e424296ce2af4a5a7392c38a31f8723f9b9fbda Mon Sep 17 00:00:00 2001
> +From: Denys Dmytriyenko <denys@ti.com>
> +Date: Thu, 7 Apr 2016 20:43:13 -0400
> +Subject: [PATCH] opkg-build: re-do find/ls code to not fail on filenames
> with
> + spaces
> +
> +Signed-off-by: Denys Dmytriyenko <denys@ti.com>
>

Speaking of which, this is missing an Upstream-Status.

Ross

[-- Attachment #2: Type: text/html, Size: 941 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] opkg-utils: re-do find/ls code to not fail on filenames with spaces
  2016-04-11 16:13 ` Alejandro del Castillo
@ 2016-04-11 16:59   ` Denys Dmytriyenko
  0 siblings, 0 replies; 5+ messages in thread
From: Denys Dmytriyenko @ 2016-04-11 16:59 UTC (permalink / raw)
  To: Alejandro del Castillo; +Cc: Denys Dmytriyenko, openembedded-core

On Mon, Apr 11, 2016 at 11:13:42AM -0500, Alejandro del Castillo wrote:
> On 04/07/2016 11:57 PM, Denys Dmytriyenko wrote:
> > From: Denys Dmytriyenko <denys@ti.com>
> > 
> > Signed-off-by: Denys Dmytriyenko <denys@ti.com>
> > ---
> 
> do you mind posting the patch to the opkg-devel@googlegroups.com list too?

Sure, will do.

-- 
Denys


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] opkg-utils: re-do find/ls code to not fail on filenames with spaces
@ 2016-04-08  5:55 Denys Dmytriyenko
  0 siblings, 0 replies; 5+ messages in thread
From: Denys Dmytriyenko @ 2016-04-08  5:55 UTC (permalink / raw)
  To: meta-arago

From: Denys Dmytriyenko <denys@ti.com>

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
---
 ...re-do-find-ls-code-to-not-fail-on-filenam.patch | 56 ++++++++++++++++++++++
 .../opkg-utils/opkg-utils_%.bbappends              |  5 ++
 2 files changed, 61 insertions(+)
 create mode 100644 meta-arago-distro/recipes-devtools/opkg-utils/opkg-utils/0001-opkg-build-re-do-find-ls-code-to-not-fail-on-filenam.patch
 create mode 100644 meta-arago-distro/recipes-devtools/opkg-utils/opkg-utils_%.bbappends

diff --git a/meta-arago-distro/recipes-devtools/opkg-utils/opkg-utils/0001-opkg-build-re-do-find-ls-code-to-not-fail-on-filenam.patch b/meta-arago-distro/recipes-devtools/opkg-utils/opkg-utils/0001-opkg-build-re-do-find-ls-code-to-not-fail-on-filenam.patch
new file mode 100644
index 0000000..5cbb55a
--- /dev/null
+++ b/meta-arago-distro/recipes-devtools/opkg-utils/opkg-utils/0001-opkg-build-re-do-find-ls-code-to-not-fail-on-filenam.patch
@@ -0,0 +1,56 @@
+From 8e424296ce2af4a5a7392c38a31f8723f9b9fbda Mon Sep 17 00:00:00 2001
+From: Denys Dmytriyenko <denys@ti.com>
+Date: Thu, 7 Apr 2016 20:43:13 -0400
+Subject: [PATCH] opkg-build: re-do find/ls code to not fail on filenames with
+ spaces
+
+Signed-off-by: Denys Dmytriyenko <denys@ti.com>
+---
+ opkg-build | 9 ++++-----
+ 1 file changed, 4 insertions(+), 5 deletions(-)
+
+diff --git a/opkg-build b/opkg-build
+index a9ccad2..07305b2 100755
+--- a/opkg-build
++++ b/opkg-build
+@@ -6,7 +6,6 @@
+ # 2003-04-25 rea@sr.unh.edu
+ #   Updated to work on Familiar Pre0.7rc1, with busybox tar.
+ #   Note it Requires: binutils-ar (since the busybox ar can't create)
+-#   For UID debugging it needs a better "find".
+ set -e
+ 
+ version=1.0
+@@ -47,12 +46,12 @@ pkg_appears_sane() {
+ 
+ 	PKG_ERROR=0
+ 
+-	tilde_files=`find . -name '*~'`
++	tilde_files=`find . -name '*~' -ls -printf '\\\n'`
+ 	if [ -n "$tilde_files" ]; then
+ 	    if [ "$noclean" = "1" ]; then
+ 		echo "*** Warning: The following files have names ending in '~'.
+ You probably want to remove them: " >&2
+-		ls -ld $tilde_files
++		echo -e $tilde_files
+ 		if [ $? -ne 0 ]; then
+ 			echo "*** Error: Fail to list files have names ending in '~'."
+ 			exit 1
+@@ -64,12 +63,12 @@ You probably want to remove them: " >&2
+ 	    fi
+ 	fi
+ 
+-	large_uid_files=`find . -uid +99 || true`
++	large_uid_files=`find . -uid +99 -ls -printf '\\\n' || true`
+ 
+ 	if [ "$ogargs" = "" ]  && [ -n "$large_uid_files" ]; then
+ 		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
++		echo -e $large_uid_files
+ 		if [ $? -ne 0 ]; then
+ 			echo "*** Error: Fail to list files have a UID greater than 99."
+ 			exit 1
+-- 
+2.2.0
+
diff --git a/meta-arago-distro/recipes-devtools/opkg-utils/opkg-utils_%.bbappends b/meta-arago-distro/recipes-devtools/opkg-utils/opkg-utils_%.bbappends
new file mode 100644
index 0000000..ed13087
--- /dev/null
+++ b/meta-arago-distro/recipes-devtools/opkg-utils/opkg-utils_%.bbappends
@@ -0,0 +1,5 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+SRC_URI += " \
+	file://0001-opkg-build-re-do-find-ls-code-to-not-fail-on-filenam.patch \
+"
-- 
2.2.0



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-04-11 16:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-08  4:57 [PATCH] opkg-utils: re-do find/ls code to not fail on filenames with spaces Denys Dmytriyenko
2016-04-11 16:13 ` Alejandro del Castillo
2016-04-11 16:59   ` Denys Dmytriyenko
2016-04-11 16:52 ` Burton, Ross
2016-04-08  5:55 Denys Dmytriyenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.