summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2017-12-15 09:18:37 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-01-02 17:24:38 +0000
commitd8fd4274717bc69a46d786ebd1b0a86d2d8b5061 (patch)
treeb30ee72afd41ed8c95fc1194794fce2b6fd4ff23 /meta/recipes-extended
parent8ae3a351ede0c76145be03a4a1ad512dfabcc946 (diff)
downloadpoky-d8fd4274717bc69a46d786ebd1b0a86d2d8b5061.tar.gz
hdparm: replace stat with coreutils as runtime dependency
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. (From OE-Core rev: 80f6f4e3683f7889e4aa34401e96be1708f94b75) Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/hdparm/hdparm/wiper.sh-fix-stat-path.patch38
-rw-r--r--meta/recipes-extended/hdparm/hdparm_9.52.bb6
2 files changed, 42 insertions, 2 deletions
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 0000000000..4af1b617ed
--- /dev/null
+++ b/meta/recipes-extended/hdparm/hdparm/wiper.sh-fix-stat-path.patch
@@ -0,0 +1,38 @@
1From e233006ee212109d2a1401dac37a9a851cc493d8 Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Thu, 14 Dec 2017 15:23:47 +0800
4Subject: [PATCH] wiper.sh: fix stat path
5
6Fix the stat path for OE.
7
8Upstream-Status: Inappropriate [OE specific]
9
10Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
11---
12 wiper/wiper.sh | 3 +--
13 1 file changed, 1 insertion(+), 2 deletions(-)
14
15diff --git a/wiper/wiper.sh b/wiper/wiper.sh
16index 79eddc8..9ef2840 100755
17--- a/wiper/wiper.sh
18+++ b/wiper/wiper.sh
19@@ -97,7 +97,6 @@ function find_prog(){
20 hash -r ## Refresh bash's cached PATH entries
21 HDPARM=`find_prog /sbin/hdparm` || exit 1
22 FIND=`find_prog /usr/bin/find` || exit 1
23-STAT=`find_prog /usr/bin/stat` || exit 1
24 GAWK=`find_prog /usr/bin/gawk` || exit 1
25 BLKID=`find_prog /sbin/blkid` || exit 1
26 GREP=`find_prog /bin/grep` || exit 1
27@@ -105,7 +104,7 @@ ID=`find_prog /usr/bin/id` || exit 1
28 LS=`find_prog /bin/ls` || exit 1
29 DF=`find_prog /bin/df` || exit 1
30 RM=`find_prog /bin/rm` || exit 1
31-STAT=`find_prog /usr/bin/stat` || exit 1
32+STAT=`find_prog /bin/stat` || exit 1
33
34 [ $verbose -gt 1 ] && HDPARM="$HDPARM --verbose"
35
36--
372.7.4
38
diff --git a/meta/recipes-extended/hdparm/hdparm_9.52.bb b/meta/recipes-extended/hdparm/hdparm_9.52.bb
index 49fdc941a5..13cfb3fdf1 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"
19 19
20FILES_wiper = "${bindir}/wiper.sh" 20FILES_wiper = "${bindir}/wiper.sh"
21 21
22RDEPENDS_wiper = "bash gawk stat" 22RDEPENDS_wiper = "bash gawk coreutils"
23 23
24SRC_URI = "${SOURCEFORGE_MIRROR}/hdparm/${BP}.tar.gz" 24SRC_URI = "${SOURCEFORGE_MIRROR}/hdparm/${BP}.tar.gz \
25 file://wiper.sh-fix-stat-path.patch \
26 "
25 27
26SRC_URI[md5sum] = "410539d0bf3cc247181594581edbfb53" 28SRC_URI[md5sum] = "410539d0bf3cc247181594581edbfb53"
27SRC_URI[sha256sum] = "c3429cd423e271fa565bf584598fd751dd2e773bb7199a592b06b5a61cec4fb6" 29SRC_URI[sha256sum] = "c3429cd423e271fa565bf584598fd751dd2e773bb7199a592b06b5a61cec4fb6"