All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] remove stat recipe
@ 2017-12-15  1:18 Yi Zhao
  2017-12-15  1:18 ` [PATCH 1/3] hdparm: replace stat with coreutils as runtime dependency Yi Zhao
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Yi Zhao @ 2017-12-15  1:18 UTC (permalink / raw)
  To: openembedded-core, qi.chen


Yi Zhao (3):
  hdparm: replace stat with coreutils as runtime dependency
  stat: remove the recipe
  maintainers.inc: remove stat recipe

 meta/conf/distro/include/maintainers.inc           |  1 -
 .../hdparm/hdparm/wiper.sh-fix-stat-path.patch     | 38 ++++++++++++
 meta/recipes-extended/hdparm/hdparm_9.52.bb        |  6 +-
 .../stat/stat-3.3/fix-error-return.patch           | 16 -----
 .../stat/stat-3.3/fix-security-format.patch        | 68 ----------------------
 meta/recipes-extended/stat/stat_3.3.bb             | 35 -----------
 6 files changed, 42 insertions(+), 122 deletions(-)
 create mode 100644 meta/recipes-extended/hdparm/hdparm/wiper.sh-fix-stat-path.patch
 delete mode 100644 meta/recipes-extended/stat/stat-3.3/fix-error-return.patch
 delete mode 100644 meta/recipes-extended/stat/stat-3.3/fix-security-format.patch
 delete mode 100644 meta/recipes-extended/stat/stat_3.3.bb

-- 
2.7.4



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

* [PATCH 1/3] hdparm: replace stat with coreutils as runtime dependency
  2017-12-15  1:18 [PATCH 0/3] remove stat recipe Yi Zhao
@ 2017-12-15  1:18 ` Yi Zhao
  2017-12-18 13:02   ` Burton, Ross
  2017-12-15  1:18 ` [PATCH 2/3] stat: remove the recipe Yi Zhao
  2017-12-15  1:18 ` [PATCH 3/3] maintainers.inc: remove stat recipe Yi Zhao
  2 siblings, 1 reply; 6+ messages in thread
From: Yi Zhao @ 2017-12-15  1:18 UTC (permalink / raw)
  To: openembedded-core, qi.chen

Currently only hdparm specifies stat as runtime dependency in oe-core.
But the stat hasn't any update since 2002. Replace it with coreutils as
runtime dependency since coreutils also provides stat program. Then we
can drop the stat recipe totally.

Also add a patch to fix stat path in wiper.sh.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
 .../hdparm/hdparm/wiper.sh-fix-stat-path.patch     | 38 ++++++++++++++++++++++
 meta/recipes-extended/hdparm/hdparm_9.52.bb        |  6 ++--
 2 files changed, 42 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-extended/hdparm/hdparm/wiper.sh-fix-stat-path.patch

diff --git a/meta/recipes-extended/hdparm/hdparm/wiper.sh-fix-stat-path.patch b/meta/recipes-extended/hdparm/hdparm/wiper.sh-fix-stat-path.patch
new file mode 100644
index 0000000..4af1b61
--- /dev/null
+++ b/meta/recipes-extended/hdparm/hdparm/wiper.sh-fix-stat-path.patch
@@ -0,0 +1,38 @@
+From e233006ee212109d2a1401dac37a9a851cc493d8 Mon Sep 17 00:00:00 2001
+From: Yi Zhao <yi.zhao@windriver.com>
+Date: Thu, 14 Dec 2017 15:23:47 +0800
+Subject: [PATCH] wiper.sh: fix stat path
+
+Fix the stat path for OE.
+
+Upstream-Status: Inappropriate [OE specific]
+
+Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
+---
+ wiper/wiper.sh | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/wiper/wiper.sh b/wiper/wiper.sh
+index 79eddc8..9ef2840 100755
+--- a/wiper/wiper.sh
++++ b/wiper/wiper.sh
+@@ -97,7 +97,6 @@ function find_prog(){
+ hash -r  ## Refresh bash's cached PATH entries
+ HDPARM=`find_prog /sbin/hdparm`	|| exit 1
+ FIND=`find_prog /usr/bin/find`	|| exit 1
+-STAT=`find_prog /usr/bin/stat`	|| exit 1
+ GAWK=`find_prog /usr/bin/gawk`	|| exit 1
+ BLKID=`find_prog /sbin/blkid`	|| exit 1
+ GREP=`find_prog /bin/grep`	|| exit 1
+@@ -105,7 +104,7 @@ ID=`find_prog /usr/bin/id`	|| exit 1
+ LS=`find_prog /bin/ls`		|| exit 1
+ DF=`find_prog /bin/df`		|| exit 1
+ RM=`find_prog /bin/rm`		|| exit 1
+-STAT=`find_prog /usr/bin/stat`	|| exit 1
++STAT=`find_prog /bin/stat`	|| exit 1
+ 
+ [ $verbose -gt 1 ] && HDPARM="$HDPARM --verbose"
+ 
+-- 
+2.7.4
+
diff --git a/meta/recipes-extended/hdparm/hdparm_9.52.bb b/meta/recipes-extended/hdparm/hdparm_9.52.bb
index 49fdc94..13cfb3f 100644
--- a/meta/recipes-extended/hdparm/hdparm_9.52.bb
+++ b/meta/recipes-extended/hdparm/hdparm_9.52.bb
@@ -19,9 +19,11 @@ PACKAGES =+ "wiper"
 
 FILES_wiper = "${bindir}/wiper.sh"
 
-RDEPENDS_wiper = "bash gawk stat"
+RDEPENDS_wiper = "bash gawk coreutils"
 
-SRC_URI = "${SOURCEFORGE_MIRROR}/hdparm/${BP}.tar.gz"
+SRC_URI = "${SOURCEFORGE_MIRROR}/hdparm/${BP}.tar.gz \
+           file://wiper.sh-fix-stat-path.patch \
+          "
 
 SRC_URI[md5sum] = "410539d0bf3cc247181594581edbfb53"
 SRC_URI[sha256sum] = "c3429cd423e271fa565bf584598fd751dd2e773bb7199a592b06b5a61cec4fb6"
-- 
2.7.4



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

* [PATCH 2/3] stat: remove the recipe
  2017-12-15  1:18 [PATCH 0/3] remove stat recipe Yi Zhao
  2017-12-15  1:18 ` [PATCH 1/3] hdparm: replace stat with coreutils as runtime dependency Yi Zhao
@ 2017-12-15  1:18 ` Yi Zhao
  2017-12-15  1:18 ` [PATCH 3/3] maintainers.inc: remove stat recipe Yi Zhao
  2 siblings, 0 replies; 6+ messages in thread
From: Yi Zhao @ 2017-12-15  1:18 UTC (permalink / raw)
  To: openembedded-core, qi.chen

The stat hasn't any update since 2002. All modern Linux distributions
use stat from coreutils as default. After replace it with coreutils as
runtime dependency in hdparm, it is safe to drop this recipe and move it
to meta-oe.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
 .../stat/stat-3.3/fix-error-return.patch           | 16 -----
 .../stat/stat-3.3/fix-security-format.patch        | 68 ----------------------
 meta/recipes-extended/stat/stat_3.3.bb             | 35 -----------
 3 files changed, 119 deletions(-)
 delete mode 100644 meta/recipes-extended/stat/stat-3.3/fix-error-return.patch
 delete mode 100644 meta/recipes-extended/stat/stat-3.3/fix-security-format.patch
 delete mode 100644 meta/recipes-extended/stat/stat_3.3.bb

diff --git a/meta/recipes-extended/stat/stat-3.3/fix-error-return.patch b/meta/recipes-extended/stat/stat-3.3/fix-error-return.patch
deleted file mode 100644
index 032995d..0000000
--- a/meta/recipes-extended/stat/stat-3.3/fix-error-return.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-This patch fixies the wrong return code of stat -h.
-
-Upstream-Status: Pending
-Signed-off-by: Zhangle Yang <zhangle.yang@windriver.com>
-
---- stat-3.3/stat.c.orig	2013-08-22 10:49:45.000000000 +0800
-+++ stat-3.3/stat.c	2013-08-22 10:50:31.000000000 +0800
-@@ -845,7 +845,7 @@
-     fprintf(stderr, "\t\t%%S - Security ID in SE-Linux\n");
-     fprintf(stderr, "\t\t%%C - Security context in SE-Linux\n");
-     fprintf(stderr, "\t\t%%d - Free file nodes in file system\n");
--    exit(1);
-+    exit(0);
- }
-   
- 
diff --git a/meta/recipes-extended/stat/stat-3.3/fix-security-format.patch b/meta/recipes-extended/stat/stat-3.3/fix-security-format.patch
deleted file mode 100644
index 0c01ed0..0000000
--- a/meta/recipes-extended/stat/stat-3.3/fix-security-format.patch
+++ /dev/null
@@ -1,68 +0,0 @@
-stat: Fixing security formatting issues
-
-Fix security formatting issues related to printf without NULL argument 
-
-stat.c: In function 'print_human_access':
-stat.c:292:13: error: format not a string literal and no format arguments [-Werror=format-security]
-     printf (access);
-             ^
-stat.c: In function 'print_human_time':
-stat.c:299:57: error: format not a string literal and no format arguments [-Werror=format-security]
-   if (strftime(str, 40, "%c", localtime(t)) > 0) printf(str);
-                                                         ^
-stat.c: In function 'print_it':
-stat.c:613:6: error: format not a string literal and no format arguments [-Werror=format-security]
-      printf(b);
-      ^
-stat.c:642:6: error: format not a string literal and no format arguments [-Werror=format-security]
-      printf(b);
-      ^
-
-[YOCTO #9550]
-[https://bugzilla.yoctoproject.org/show_bug.cgi?id=9550]
-
-Upstream-Status: Pending
-
-Signed-off-by: Edwin Plauchu <edwin.plauchu.camacho@intel.com>
-
-diff --git a/stat.c b/stat.c
-index 1ed07a9..2be6f62 100644
---- a/stat.c
-+++ b/stat.c
-@@ -289,15 +289,15 @@ void print_human_access(struct stat *statbuf)
-     default:
-       access[0] = '?';
-     }
--    printf (access);
-+    fputs(access,stdout);
- }
- 
- void print_human_time(time_t *t)
- {
-   char str[40];
-   
--  if (strftime(str, 40, "%c", localtime(t)) > 0) printf(str);
--  else printf("Cannot calculate human readable time, sorry");
-+  if (strftime(str, 40, "%c", localtime(t)) > 0) fputs(str,stdout);
-+  else fputs("Cannot calculate human readable time, sorry",stdout);
- }
- 
- /* print statfs info */
-@@ -610,7 +610,7 @@ void print_it(char *masterformat, char *filename,
- 	{
- 	    strcpy (pformat, "%");
- 	    *m++ = '\0';
--	    printf(b);
-+	    fputs(b,stdout);
- 
- 	    /* copy all format specifiers to our format string */
- 	    while (isdigit(*m) || strchr("#0-+. I", *m))
-@@ -639,7 +639,7 @@ void print_it(char *masterformat, char *filename,
- 	}
- 	else
- 	{
--	    printf(b);
-+	    fputs(b,stdout);
- 	    b = NULL;
- 	}
-     }
diff --git a/meta/recipes-extended/stat/stat_3.3.bb b/meta/recipes-extended/stat/stat_3.3.bb
deleted file mode 100644
index 8ac8e89..0000000
--- a/meta/recipes-extended/stat/stat_3.3.bb
+++ /dev/null
@@ -1,35 +0,0 @@
-SUMMARY = "Command line file status display utility"
-HOMEPAGE = "http://www.ibiblio.org/pub/Linux/utils/file/"
-DESCRIPTION = "Displays all information about a file that the stat() call provides and all information about a filesystem that statfs() provides."
-SECTION = "console/utils"
-LICENSE = "GPLv2"
-LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=39886b077fd072e876e5c4c16310b631 \
-                    file://GPL;md5=94d55d512a9ba36caa9b7df079bae19f"
-
-SRC_URI = "http://www.ibiblio.org/pub/Linux/utils/file/${BP}.tar.gz \
-           file://fix-security-format.patch \
-           file://fix-error-return.patch"
-
-SRC_URI[md5sum] = "37e247e8e400ad9205f1b0500b728fd3"
-SRC_URI[sha256sum] = "7071f0384a423a938dd542c1f08547a02824f6359acd3ef3f944b2c4c2d1ee09"
-
-EXTRA_OEMAKE = "-e MAKEFLAGS="
-
-do_install() {
-	install -d ${D}${base_bindir} ${D}${mandir}/man1
-	install -m 755 stat ${D}${base_bindir}/stat.stat
-	install -m 644 stat.1 ${D}${mandir}/man1
-}
-
-inherit update-alternatives
-
-ALTERNATIVE_${PN} = "stat"
-ALTERNATIVE_PRIORITY[stat] = "200"
-ALTERNATIVE_LINK_NAME[stat] = "${base_bindir}/stat"
-ALTERNATIVE_TARGET[stat] = "${base_bindir}/stat.stat"
-
-ALTERNATIVE_${PN}-doc = "stat.1"
-ALTERNATIVE_LINK_NAME[stat.1] = "${mandir}/man1/stat.1"
-
-BBCLASSEXTEND = "native"
-
-- 
2.7.4



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

* [PATCH 3/3] maintainers.inc: remove stat recipe
  2017-12-15  1:18 [PATCH 0/3] remove stat recipe Yi Zhao
  2017-12-15  1:18 ` [PATCH 1/3] hdparm: replace stat with coreutils as runtime dependency Yi Zhao
  2017-12-15  1:18 ` [PATCH 2/3] stat: remove the recipe Yi Zhao
@ 2017-12-15  1:18 ` Yi Zhao
  2 siblings, 0 replies; 6+ messages in thread
From: Yi Zhao @ 2017-12-15  1:18 UTC (permalink / raw)
  To: openembedded-core, qi.chen

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
 meta/conf/distro/include/maintainers.inc | 1 -
 1 file changed, 1 deletion(-)

diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc
index 856a6b7..5152729 100644
--- a/meta/conf/distro/include/maintainers.inc
+++ b/meta/conf/distro/include/maintainers.inc
@@ -684,7 +684,6 @@ RECIPE_MAINTAINER_pn-speexdsp = "Tanu Kaskinen <tanuk@iki.fi>"
 RECIPE_MAINTAINER_pn-sqlite3 = "Maxin B. John <maxin.john@intel.com>"
 RECIPE_MAINTAINER_pn-squashfs-tools = "Robert Yang <liezhi.yang@windriver.com>"
 RECIPE_MAINTAINER_pn-startup-notification = "Alexander Kanavin <alexander.kanavin@intel.com>"
-RECIPE_MAINTAINER_pn-stat = "Chen Qi <Qi.Chen@windriver.com>"
 RECIPE_MAINTAINER_pn-strace = "Robert Yang <liezhi.yang@windriver.com>"
 RECIPE_MAINTAINER_pn-stress = "Maxin B. John <maxin.john@intel.com>"
 RECIPE_MAINTAINER_pn-subversion = "Richard Purdie <richard.purdie@linuxfoundation.org>"
-- 
2.7.4



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

* Re: [PATCH 1/3] hdparm: replace stat with coreutils as runtime dependency
  2017-12-15  1:18 ` [PATCH 1/3] hdparm: replace stat with coreutils as runtime dependency Yi Zhao
@ 2017-12-18 13:02   ` Burton, Ross
  2017-12-20  6:31     ` Yi Zhao
  0 siblings, 1 reply; 6+ messages in thread
From: Burton, Ross @ 2017-12-18 13:02 UTC (permalink / raw)
  To: Yi Zhao; +Cc: OE-core

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

Does it really need coreutils stat, or is busybox's stat sufficient?

Ross

On 15 December 2017 at 01:18, Yi Zhao <yi.zhao@windriver.com> wrote:

> Currently only hdparm specifies stat as runtime dependency in oe-core.
> But the stat hasn't any update since 2002. Replace it with coreutils as
> runtime dependency since coreutils also provides stat program. Then we
> can drop the stat recipe totally.
>
> Also add a patch to fix stat path in wiper.sh.
>
> Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
> ---
>  .../hdparm/hdparm/wiper.sh-fix-stat-path.patch     | 38
> ++++++++++++++++++++++
>  meta/recipes-extended/hdparm/hdparm_9.52.bb        |  6 ++--
>  2 files changed, 42 insertions(+), 2 deletions(-)
>  create mode 100644 meta/recipes-extended/hdparm/
> hdparm/wiper.sh-fix-stat-path.patch
>
> diff --git a/meta/recipes-extended/hdparm/hdparm/wiper.sh-fix-stat-path.patch
> b/meta/recipes-extended/hdparm/hdparm/wiper.sh-fix-stat-path.patch
> new file mode 100644
> index 0000000..4af1b61
> --- /dev/null
> +++ b/meta/recipes-extended/hdparm/hdparm/wiper.sh-fix-stat-path.patch
> @@ -0,0 +1,38 @@
> +From e233006ee212109d2a1401dac37a9a851cc493d8 Mon Sep 17 00:00:00 2001
> +From: Yi Zhao <yi.zhao@windriver.com>
> +Date: Thu, 14 Dec 2017 15:23:47 +0800
> +Subject: [PATCH] wiper.sh: fix stat path
> +
> +Fix the stat path for OE.
> +
> +Upstream-Status: Inappropriate [OE specific]
> +
> +Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
> +---
> + wiper/wiper.sh | 3 +--
> + 1 file changed, 1 insertion(+), 2 deletions(-)
> +
> +diff --git a/wiper/wiper.sh b/wiper/wiper.sh
> +index 79eddc8..9ef2840 100755
> +--- a/wiper/wiper.sh
> ++++ b/wiper/wiper.sh
> +@@ -97,7 +97,6 @@ function find_prog(){
> + hash -r  ## Refresh bash's cached PATH entries
> + HDPARM=`find_prog /sbin/hdparm`       || exit 1
> + FIND=`find_prog /usr/bin/find`        || exit 1
> +-STAT=`find_prog /usr/bin/stat`        || exit 1
> + GAWK=`find_prog /usr/bin/gawk`        || exit 1
> + BLKID=`find_prog /sbin/blkid` || exit 1
> + GREP=`find_prog /bin/grep`    || exit 1
> +@@ -105,7 +104,7 @@ ID=`find_prog /usr/bin/id` || exit 1
> + LS=`find_prog /bin/ls`                || exit 1
> + DF=`find_prog /bin/df`                || exit 1
> + RM=`find_prog /bin/rm`                || exit 1
> +-STAT=`find_prog /usr/bin/stat`        || exit 1
> ++STAT=`find_prog /bin/stat`    || exit 1
> +
> + [ $verbose -gt 1 ] && HDPARM="$HDPARM --verbose"
> +
> +--
> +2.7.4
> +
> diff --git a/meta/recipes-extended/hdparm/hdparm_9.52.bb
> b/meta/recipes-extended/hdparm/hdparm_9.52.bb
> index 49fdc94..13cfb3f 100644
> --- a/meta/recipes-extended/hdparm/hdparm_9.52.bb
> +++ b/meta/recipes-extended/hdparm/hdparm_9.52.bb
> @@ -19,9 +19,11 @@ PACKAGES =+ "wiper"
>
>  FILES_wiper = "${bindir}/wiper.sh"
>
> -RDEPENDS_wiper = "bash gawk stat"
> +RDEPENDS_wiper = "bash gawk coreutils"
>
> -SRC_URI = "${SOURCEFORGE_MIRROR}/hdparm/${BP}.tar.gz"
> +SRC_URI = "${SOURCEFORGE_MIRROR}/hdparm/${BP}.tar.gz \
> +           file://wiper.sh-fix-stat-path.patch \
> +          "
>
>  SRC_URI[md5sum] = "410539d0bf3cc247181594581edbfb53"
>  SRC_URI[sha256sum] = "c3429cd423e271fa565bf584598fd7
> 51dd2e773bb7199a592b06b5a61cec4fb6"
> --
> 2.7.4
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>

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

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

* Re: [PATCH 1/3] hdparm: replace stat with coreutils as runtime dependency
  2017-12-18 13:02   ` Burton, Ross
@ 2017-12-20  6:31     ` Yi Zhao
  0 siblings, 0 replies; 6+ messages in thread
From: Yi Zhao @ 2017-12-20  6:31 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core

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

Hi Ross,


在 2017年12月18日 21:02, Burton, Ross 写道:
> Does it really need coreutils stat, or is busybox's stat sufficient?

It uses "--format" option with stat, but busybox.stat doesn't support 
this option that would cause an error:
# stat --format="%04D" /
stat: unrecognized option '--format=%04D'

So we still need coreutils stat.


Regards,
Yi
>
> Ross
>
> On 15 December 2017 at 01:18, Yi Zhao <yi.zhao@windriver.com 
> <mailto:yi.zhao@windriver.com>> wrote:
>
>     Currently only hdparm specifies stat as runtime dependency in oe-core.
>     But the stat hasn't any update since 2002. Replace it with
>     coreutils as
>     runtime dependency since coreutils also provides stat program. Then we
>     can drop the stat recipe totally.
>
>     Also add a patch to fix stat path in wiper.sh.
>
>     Signed-off-by: Yi Zhao <yi.zhao@windriver.com
>     <mailto:yi.zhao@windriver.com>>
>     ---
>      .../hdparm/hdparm/wiper.sh-fix-stat-path.patch     | 38
>     ++++++++++++++++++++++
>      meta/recipes-extended/hdparm/hdparm_9.52.bb
>     <http://hdparm_9.52.bb>       |  6 ++--
>      2 files changed, 42 insertions(+), 2 deletions(-)
>      create mode 100644
>     meta/recipes-extended/hdparm/hdparm/wiper.sh-fix-stat-path.patch
>
>     diff --git
>     a/meta/recipes-extended/hdparm/hdparm/wiper.sh-fix-stat-path.patch
>     b/meta/recipes-extended/hdparm/hdparm/wiper.sh-fix-stat-path.patch
>     new file mode 100644
>     index 0000000..4af1b61
>     --- /dev/null
>     +++ b/meta/recipes-extended/hdparm/hdparm/wiper.sh-fix-stat-path.patch
>     @@ -0,0 +1,38 @@
>     +From e233006ee212109d2a1401dac37a9a851cc493d8 Mon Sep 17 00:00:00
>     2001
>     +From: Yi Zhao <yi.zhao@windriver.com <mailto:yi.zhao@windriver.com>>
>     +Date: Thu, 14 Dec 2017 15:23:47 +0800
>     +Subject: [PATCH] wiper.sh: fix stat path
>     +
>     +Fix the stat path for OE.
>     +
>     +Upstream-Status: Inappropriate [OE specific]
>     +
>     +Signed-off-by: Yi Zhao <yi.zhao@windriver.com
>     <mailto:yi.zhao@windriver.com>>
>     +---
>     + wiper/wiper.sh | 3 +--
>     + 1 file changed, 1 insertion(+), 2 deletions(-)
>     +
>     +diff --git a/wiper/wiper.sh b/wiper/wiper.sh
>     +index 79eddc8..9ef2840 100755
>     +--- a/wiper/wiper.sh
>     ++++ b/wiper/wiper.sh
>     +@@ -97,7 +97,6 @@ function find_prog(){
>     + hash -r  ## Refresh bash's cached PATH entries
>     + HDPARM=`find_prog /sbin/hdparm`       || exit 1
>     + FIND=`find_prog /usr/bin/find`        || exit 1
>     +-STAT=`find_prog /usr/bin/stat`        || exit 1
>     + GAWK=`find_prog /usr/bin/gawk`        || exit 1
>     + BLKID=`find_prog /sbin/blkid` || exit 1
>     + GREP=`find_prog /bin/grep`    || exit 1
>     +@@ -105,7 +104,7 @@ ID=`find_prog /usr/bin/id` || exit 1
>     + LS=`find_prog /bin/ls`                || exit 1
>     + DF=`find_prog /bin/df`                || exit 1
>     + RM=`find_prog /bin/rm`                || exit 1
>     +-STAT=`find_prog /usr/bin/stat`        || exit 1
>     ++STAT=`find_prog /bin/stat`    || exit 1
>     +
>     + [ $verbose -gt 1 ] && HDPARM="$HDPARM --verbose"
>     +
>     +--
>     +2.7.4
>     +
>     diff --git a/meta/recipes-extended/hdparm/hdparm_9.52.bb
>     <http://hdparm_9.52.bb>
>     b/meta/recipes-extended/hdparm/hdparm_9.52.bb <http://hdparm_9.52.bb>
>     index 49fdc94..13cfb3f 100644
>     --- a/meta/recipes-extended/hdparm/hdparm_9.52.bb
>     <http://hdparm_9.52.bb>
>     +++ b/meta/recipes-extended/hdparm/hdparm_9.52.bb
>     <http://hdparm_9.52.bb>
>     @@ -19,9 +19,11 @@ PACKAGES =+ "wiper"
>
>      FILES_wiper = "${bindir}/wiper.sh"
>
>     -RDEPENDS_wiper = "bash gawk stat"
>     +RDEPENDS_wiper = "bash gawk coreutils"
>
>     -SRC_URI = "${SOURCEFORGE_MIRROR}/hdparm/${BP}.tar.gz"
>     +SRC_URI = "${SOURCEFORGE_MIRROR}/hdparm/${BP}.tar.gz \
>     +           file://wiper.sh-fix-stat-path.patch \
>     +          "
>
>      SRC_URI[md5sum] = "410539d0bf3cc247181594581edbfb53"
>      SRC_URI[sha256sum] =
>     "c3429cd423e271fa565bf584598fd751dd2e773bb7199a592b06b5a61cec4fb6"
>     --
>     2.7.4
>
>     --
>     _______________________________________________
>     Openembedded-core mailing list
>     Openembedded-core@lists.openembedded.org
>     <mailto:Openembedded-core@lists.openembedded.org>
>     http://lists.openembedded.org/mailman/listinfo/openembedded-core
>     <http://lists.openembedded.org/mailman/listinfo/openembedded-core>
>
>


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

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

end of thread, other threads:[~2017-12-20  6:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-15  1:18 [PATCH 0/3] remove stat recipe Yi Zhao
2017-12-15  1:18 ` [PATCH 1/3] hdparm: replace stat with coreutils as runtime dependency Yi Zhao
2017-12-18 13:02   ` Burton, Ross
2017-12-20  6:31     ` Yi Zhao
2017-12-15  1:18 ` [PATCH 2/3] stat: remove the recipe Yi Zhao
2017-12-15  1:18 ` [PATCH 3/3] maintainers.inc: remove stat recipe Yi Zhao

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.