mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
recipes-extended: replace virtclass-native(sdk) with class-native(sdk)
The overrides virtclass-native and virtclass-nativesdk are deprecated, which should be replaced by class-native and class-nativesdk. [YOCTO #3297] (From OE-Core rev: 528b4ab831c7b0bc1412318d29e2b7f9cf711d57) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
cc1f50fca8
commit
d005b787df
@@ -25,7 +25,7 @@ ALTERNATIVE_PRIORITY = "100"
|
|||||||
ALTERNATIVE_${PN} = "bunzip2 bzcat"
|
ALTERNATIVE_${PN} = "bunzip2 bzcat"
|
||||||
|
|
||||||
#install binaries to bzip2-native under sysroot for replacement-native
|
#install binaries to bzip2-native under sysroot for replacement-native
|
||||||
EXTRA_OECONF_virtclass-native += "--bindir=${STAGING_BINDIR_NATIVE}/${PN}"
|
EXTRA_OECONF_class-native += "--bindir=${STAGING_BINDIR_NATIVE}/${PN}"
|
||||||
do_configure_prepend () {
|
do_configure_prepend () {
|
||||||
cp ${WORKDIR}/configure.ac ${S}/
|
cp ${WORKDIR}/configure.ac ${S}/
|
||||||
cp ${WORKDIR}/Makefile.am ${S}/
|
cp ${WORKDIR}/Makefile.am ${S}/
|
||||||
@@ -42,6 +42,6 @@ FILES_libbz2-staticdev = "${libdir}/*.a"
|
|||||||
SECTION_libbz2-staticdev = "devel"
|
SECTION_libbz2-staticdev = "devel"
|
||||||
RDEPENDS_libbz2-staticdev = "libbz2-dev (= ${EXTENDPKGV})"
|
RDEPENDS_libbz2-staticdev = "libbz2-dev (= ${EXTENDPKGV})"
|
||||||
|
|
||||||
PROVIDES_append_virtclass-native = " bzip2-replacement-native"
|
PROVIDES_append_class-native = " bzip2-replacement-native"
|
||||||
BBCLASSEXTEND = "native nativesdk"
|
BBCLASSEXTEND = "native nativesdk"
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=c5326026692dbed183f0558f926580f8"
|
|||||||
PR = "r3"
|
PR = "r3"
|
||||||
|
|
||||||
DEPENDS = "ghostscript-native tiff jpeg fontconfig cups"
|
DEPENDS = "ghostscript-native tiff jpeg fontconfig cups"
|
||||||
DEPENDS_virtclass-native = ""
|
DEPENDS_class-native = ""
|
||||||
|
|
||||||
SRC_URI_BASE = "http://downloads.ghostscript.com/public/ghostscript-${PV}.tar.gz"
|
SRC_URI_BASE = "http://downloads.ghostscript.com/public/ghostscript-${PV}.tar.gz"
|
||||||
|
|
||||||
@@ -30,7 +30,7 @@ SRC_URI = "${SRC_URI_BASE} \
|
|||||||
file://ghostscript-9.05-NOT-check-endian.patch \
|
file://ghostscript-9.05-NOT-check-endian.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
SRC_URI_virtclass-native = "${SRC_URI_BASE}"
|
SRC_URI_class-native = "${SRC_URI_BASE}"
|
||||||
|
|
||||||
SRC_URI[md5sum] = "f7c6f0431ca8d44ee132a55d583212c1"
|
SRC_URI[md5sum] = "f7c6f0431ca8d44ee132a55d583212c1"
|
||||||
SRC_URI[sha256sum] = "593f77f7584704bdf9de41598a084a4208c3ad3b940a1de1faaf8f59a15cc207"
|
SRC_URI[sha256sum] = "593f77f7584704bdf9de41598a084a4208c3ad3b940a1de1faaf8f59a15cc207"
|
||||||
@@ -80,18 +80,18 @@ do_install_append () {
|
|||||||
chown -R root:lp ${D}${sysconfdir}/cups
|
chown -R root:lp ${D}${sysconfdir}/cups
|
||||||
}
|
}
|
||||||
|
|
||||||
python do_patch_virtclass-native () {
|
python do_patch_class-native () {
|
||||||
pass
|
pass
|
||||||
}
|
}
|
||||||
|
|
||||||
do_compile_virtclass-native () {
|
do_compile_class-native () {
|
||||||
mkdir -p obj
|
mkdir -p obj
|
||||||
for i in genarch genconf mkromfs echogs gendev genht; do
|
for i in genarch genconf mkromfs echogs gendev genht; do
|
||||||
oe_runmake obj/aux/$i
|
oe_runmake obj/aux/$i
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install_virtclass-native () {
|
do_install_class-native () {
|
||||||
install -d ${D}${bindir}/ghostscript-${PV}
|
install -d ${D}${bindir}/ghostscript-${PV}
|
||||||
for i in genarch genconf mkromfs echogs gendev genht; do
|
for i in genarch genconf mkromfs echogs gendev genht; do
|
||||||
install -m 755 obj/aux/$i ${D}${bindir}/ghostscript-${PV}/$i
|
install -m 755 obj/aux/$i ${D}${bindir}/ghostscript-${PV}/$i
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ SRC_URI[md5sum] = "48fa768dd6fdeb7968041dd5ae8e2b02"
|
|||||||
SRC_URI[sha256sum] = "b645878135cb620c6c417c5601bfe96172245af12045540d7344938b4c2cd805"
|
SRC_URI[sha256sum] = "b645878135cb620c6c417c5601bfe96172245af12045540d7344938b4c2cd805"
|
||||||
|
|
||||||
DEPENDS = "groff-native"
|
DEPENDS = "groff-native"
|
||||||
DEPENDS_virtclass-native = ""
|
DEPENDS_class-native = ""
|
||||||
|
|
||||||
inherit autotools
|
inherit autotools
|
||||||
|
|
||||||
@@ -44,7 +44,7 @@ do_install_append() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install_append_virtclass-native() {
|
do_install_append_class-native() {
|
||||||
# Some distros have both /bin/perl and /usr/bin/perl, but we set perl location
|
# Some distros have both /bin/perl and /usr/bin/perl, but we set perl location
|
||||||
# for target as /usr/bin/perl, so fix it to /usr/bin/perl.
|
# for target as /usr/bin/perl, so fix it to /usr/bin/perl.
|
||||||
for i in afmtodit mmroff; do
|
for i in afmtodit mmroff; do
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ require gzip.inc
|
|||||||
|
|
||||||
PR = "r0"
|
PR = "r0"
|
||||||
|
|
||||||
PROVIDES_append_virtclass-native = " gzip-replacement-native"
|
PROVIDES_append_class-native = " gzip-replacement-native"
|
||||||
NATIVE_PACKAGE_PATH_SUFFIX = "/${PN}"
|
NATIVE_PACKAGE_PATH_SUFFIX = "/${PN}"
|
||||||
|
|
||||||
BBCLASSEXTEND = "native"
|
BBCLASSEXTEND = "native"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ inherit cpan allarch
|
|||||||
|
|
||||||
BBCLASSEXTEND = "native"
|
BBCLASSEXTEND = "native"
|
||||||
|
|
||||||
RDEPENDS_${PN}_virtclass-native = ""
|
RDEPENDS_${PN}_class-native = ""
|
||||||
RDEPENDS_${PN} += "perl-module-carp perl-module-exporter perl-module-strict perl-module-time-local"
|
RDEPENDS_${PN} += "perl-module-carp perl-module-exporter perl-module-strict perl-module-time-local"
|
||||||
|
|
||||||
SRC_URI[md5sum] = "7da7452bce4c684e4238e6d09b390200"
|
SRC_URI[md5sum] = "7da7452bce4c684e4238e6d09b390200"
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ PR = "r1"
|
|||||||
SRC_URI = "http://zlib.net/pigz/pigz-${PV}.tar.gz \
|
SRC_URI = "http://zlib.net/pigz/pigz-${PV}.tar.gz \
|
||||||
file://ldflags.patch"
|
file://ldflags.patch"
|
||||||
|
|
||||||
PROVIDES_virtclass-native += "gzip-native"
|
PROVIDES_class-native += "gzip-native"
|
||||||
|
|
||||||
DEPENDS = "zlib"
|
DEPENDS = "zlib"
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ do_install() {
|
|||||||
install -m 644 stat.1 ${D}${mandir}/man1
|
install -m 644 stat.1 ${D}${mandir}/man1
|
||||||
}
|
}
|
||||||
|
|
||||||
#do_install_virtclass-native() {
|
#do_install_class-native() {
|
||||||
# install -d ${D}${bindir}
|
# install -d ${D}${bindir}
|
||||||
# install -m 755 stat ${D}${bindir}
|
# install -m 755 stat ${D}${bindir}
|
||||||
#}
|
#}
|
||||||
|
|||||||
@@ -9,10 +9,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=adefda309052235aa5d1e99ce7557010"
|
|||||||
PR = "r5"
|
PR = "r5"
|
||||||
|
|
||||||
DEPENDS = "zlib ncurses texinfo-native"
|
DEPENDS = "zlib ncurses texinfo-native"
|
||||||
DEPENDS_virtclass-native = "zlib-native ncurses-native"
|
DEPENDS_class-native = "zlib-native ncurses-native"
|
||||||
|
|
||||||
TARGET_PATCH = "file://use_host_makedoc.patch"
|
TARGET_PATCH = "file://use_host_makedoc.patch"
|
||||||
TARGET_PATCH_virtclass-native = ""
|
TARGET_PATCH_class-native = ""
|
||||||
|
|
||||||
SRC_URI = "${GNU_MIRROR}/texinfo/texinfo-${PV}.tar.gz \
|
SRC_URI = "${GNU_MIRROR}/texinfo/texinfo-${PV}.tar.gz \
|
||||||
file://texinfo-4.12-zlib.patch \
|
file://texinfo-4.12-zlib.patch \
|
||||||
@@ -44,7 +44,7 @@ do_install_append() {
|
|||||||
mkdir -p ${D}${datadir}/${tex_texinfo}
|
mkdir -p ${D}${datadir}/${tex_texinfo}
|
||||||
install -p -m644 doc/texinfo.tex doc/txi-??.tex ${D}${datadir}/${tex_texinfo}
|
install -p -m644 doc/texinfo.tex doc/txi-??.tex ${D}${datadir}/${tex_texinfo}
|
||||||
}
|
}
|
||||||
do_install_append_virtclass-native() {
|
do_install_append_class-native() {
|
||||||
install -m 755 info/makedoc ${D}${bindir}
|
install -m 755 info/makedoc ${D}${bindir}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ S = "${WORKDIR}/unzip60"
|
|||||||
EXTRA_OEMAKE += "STRIP=true LF2=''"
|
EXTRA_OEMAKE += "STRIP=true LF2=''"
|
||||||
|
|
||||||
export LD = "${CC}"
|
export LD = "${CC}"
|
||||||
LD_virtclass-native = "${CC}"
|
LD_class-native = "${CC}"
|
||||||
|
|
||||||
do_compile() {
|
do_compile() {
|
||||||
oe_runmake -f unix/Makefile generic
|
oe_runmake -f unix/Makefile generic
|
||||||
|
|||||||
Reference in New Issue
Block a user