From 380ccb958139227c8e156f87b6e35f1757b93c41 Mon Sep 17 00:00:00 2001 From: liumingkai Date: Thu, 14 Jul 2022 11:46:41 +0800 Subject: [PATCH] yocto: refactor ncurses Using .bbappend file to extend poky's recipe. This file specifies packages version, patchs that need to be added. And remove patchs that can't be apply. Signed-off-by: hmilylmk --- .../recipes-core/ncurses/ncurses_%.bbappend | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 meta-openeuler/recipes-core/ncurses/ncurses_%.bbappend diff --git a/meta-openeuler/recipes-core/ncurses/ncurses_%.bbappend b/meta-openeuler/recipes-core/ncurses/ncurses_%.bbappend new file mode 100644 index 00000000000..eb24ff5efce --- /dev/null +++ b/meta-openeuler/recipes-core/ncurses/ncurses_%.bbappend @@ -0,0 +1,25 @@ +# main bbfile: yocto-poky/meta/recipes-core/ncurses_6.2.bb + +# ncurses version in openEuler +PV = "6.3" + +# use the source packages from openEuler +SRC_URI_prepend = "file://ncurses/${BP}.tar.gz \ +" + +# remove src_uri from git and patchs can't apply +SRC_URI_remove = "git://salsa.debian.org/debian/ncurses.git;protocol=https \ + file://0002-configure-reproducible.patch \ + file://0003-gen-pkgconfig.in-Do-not-include-LDFLAGS-in-generated.patch \ +" + +# patchs in openEuler +SRC_URI += "file://ncurses/ncurses-config.patch \ + file://ncurses/ncurses-libs.patch \ + file://ncurses/ncurses-urxvt.patch \ + file://ncurses/ncurses-kbs.patch \ +" + +LIC_FILES_CHKSUM = "file://COPYING;md5=f852913c5d988a5f5a2f1df7ba7ee893" + +S = "${WORKDIR}/${BP}" -- Gitee