mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 04:17:25 +00:00
65116b253b
The package version is inconsistent as below:
# rpm -qa | grep usleep
usleep-1.0-r0.core2_64
# usleep --version
usleep version 1.2
usleep --help for more info
And there is below logic in meta-oe/recipes-core/usleep/files/usleep.c.
if (showVersion) {
printf("usleep version 1.2\n usleep --help for more info\n");
return 0;
}
So update the PV value to make the version consistent.
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
34 lines
820 B
BlitzBasic
34 lines
820 B
BlitzBasic
SUMMARY = "A user tool to support sleeping some number of microseconds"
|
|
SECTION = "base"
|
|
LICENSE = "GPL-2.0-only"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
|
|
|
S = "${WORKDIR}"
|
|
DEPENDS = "popt"
|
|
|
|
SRC_URI = "file://usleep.c \
|
|
file://usleep.1 \
|
|
file://GPLv2.patch \
|
|
"
|
|
|
|
do_compile() {
|
|
${CC} ${CFLAGS} ${LDFLAGS} usleep.c -o usleep -lpopt
|
|
}
|
|
|
|
do_install() {
|
|
install -d ${D}${base_bindir}
|
|
install -d ${D}${mandir}/man1
|
|
|
|
install -m 0755 ${WORKDIR}/usleep ${D}${base_bindir}
|
|
install -m 0644 ${WORKDIR}/usleep.1 ${D}${mandir}/man1
|
|
}
|
|
|
|
inherit update-alternatives
|
|
|
|
ALTERNATIVE:${PN} = "usleep"
|
|
ALTERNATIVE_PRIORITY = "80"
|
|
ALTERNATIVE_LINK_NAME[usleep] = "${base_bindir}/usleep"
|
|
|
|
ALTERNATIVE:${PN}-doc = "usleep.1"
|
|
ALTERNATIVE_LINK_NAME[usleep.1] = "${mandir}/man1/usleep.1"
|