lmbench: rename 'line' binary as 'lm_line'
PATCH 1/1 lmbench: rename 'line' binary as 'lm_line'
Both lmbench and util-linux-ng packages provide own /usr/bin/line binaries. Even though the binaries name is the same, their functionality is different. This patch renames lmbench's line binary as lm_line to avoid conflicts with util-linux-ng.
script/config-run is also modified (patch) to call lm_line instead of line.
Signed-off-by Carlos Hernandez <[email protected]>
--- recipes/lmbench/lmbench/rename-line-binary.patch | 11 +++++++++++ recipes/lmbench/lmbench_3.0-a9.bb | 6 ++++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 recipes/lmbench/lmbench/rename-line-binary.patch
recipes/lmbench/lmbench/rename-line-binary.patch new file +11 -0
@@ -0,0 +1,11 @@ +--- patches/scripts/config-run 2006-11-26 15:11:04.000000000 -0500 ++++ patches/scripts/config-run 2011-04-01 09:35:50.000000000 -0400 +@@ -224,7 +224,7 @@ fi + + echo "Hang on, we are calculating your cache line size." + ../bin/$OS/msleep 250 +-LINE_SIZE=`../bin/$OS/line -M ${MB}M` ++LINE_SIZE=`../bin/$OS/lm_line -M ${MB}M` + export LINE_SIZE + echo "OK, it looks like your cache line is $LINE_SIZE bytes." + echo ""
recipes/lmbench/lmbench_3.0-a9.bb +4 -2
@@ -3,12 +3,13 @@ DESCRIPTION = "Tools for performance analysis." LICENSE = "GPL" RDEPENDS_${PN} = "debianutils" -PR = "r2" +PR = "r3" inherit autotools SRC_URI = "${SOURCEFORGE_MIRROR}/lmbench/lmbench-${PV}.tgz \ - file://lmbench-run" + file://lmbench-run \ + file://rename-line-binary.patch" SRC_URI[md5sum] = "b3351a3294db66a72e2864a199d37cbf" SRC_URI[sha256sum] = "cbd5777d15f44eab7666dcac418054c3c09df99826961a397d9acf43d8a2a551"
@@ -56,6 +57,7 @@ do_install () { install -m 0755 ${S}/scripts/lmbench ${D}${bindir} install -d ${D}${datadir}/lmbench/scripts install -m 0755 ${S}/scripts/* ${D}${datadir}/lmbench/scripts + mv ${D}${bindir}/line ${D}${bindir}/lm_line } FILES_${PN} += "${datadir}/lmbench"
Signature · 1 line
1.7.0.4
Quoted 6 lines · Carlos Hernandez
Both lmbench and util-linux-ng packages provide own
/usr/bin/linebinaries. Even though the binaries name is the same, their functionality is different. This patch renames lmbench's line binary aslm_lineto avoid conflicts with util-linux-ng.
script/config-run is also modified (patch) to calllm_lineinstead of line.Signed-off-by Carlos Hernandez <[email protected]>
Quoted 59 lines
--- recipes/lmbench/lmbench/rename-line-binary.patch | 11 +++++++++++ recipes/lmbench/lmbench_3.0-a9.bb | 6 ++++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 recipes/lmbench/lmbench/rename-line-binary.patchrecipes/lmbench/lmbench/rename-line-binary.patch new file +11
-0@@ -0,0 +1,11 @@ +--- patches/scripts/config-run 2006-11-26 15:11:04.000000000 -0500 ++++ patches/scripts/config-run 2011-04-01 09:35:50.000000000 -0400 +@@ -224,7 +224,7 @@ fi + + echo "Hang on, we are calculating your cache line size." + ../bin/$OS/msleep 250 +-LINE_SIZE=`../bin/$OS/line -M ${MB}M` ++LINE_SIZE=`../bin/$OS/lm_line -M ${MB}M` + export LINE_SIZE + echo "OK, it looks like your cache line is $LINE_SIZE bytes." + echo ""recipes/lmbench/lmbench_3.0-a9.bb +4
-2@@ -3,12 +3,13 @@ DESCRIPTION = "Tools for performance analysis." LICENSE = "GPL" RDEPENDS_${PN} = "debianutils" -PR = "r2" +PR = "r3" inherit autotools SRC_URI = "${SOURCEFORGE_MIRROR}/lmbench/lmbench-${PV}.tgz \ - file://lmbench-run" + file://lmbench-run \ + file://rename-line-binary.patch" SRC_URI[md5sum] = "b3351a3294db66a72e2864a199d37cbf" SRC_URI[sha256sum] = "cbd5777d15f44eab7666dcac418054c3c09df99826961a397d9acf43d8a2a551"@@ -56,6 +57,7 @@ do_install () { install -m 0755 ${S}/scripts/lmbench ${D}${bindir} install -d ${D}${datadir}/lmbench/scripts install -m 0755 ${S}/scripts/* ${D}${datadir}/lmbench/scripts + mv ${D}${bindir}/line ${D}${bindir}/lm_line } FILES_${PN} += "${datadir}/lmbench"Signature · 7 lines
1.7.0.4 _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel