diff --git a/bsp/meta-openeuler-bsp/conf/machine/openeuler-raspberrypi4-64.conf b/bsp/meta-openeuler-bsp/conf/machine/openeuler-raspberrypi4-64.conf index 6715209142c3aece0cc4889c5c1897a739c86652..a8e8e4943ac6324564e496dabd7a462f21b7b611 100644 --- a/bsp/meta-openeuler-bsp/conf/machine/openeuler-raspberrypi4-64.conf +++ b/bsp/meta-openeuler-bsp/conf/machine/openeuler-raspberrypi4-64.conf @@ -8,3 +8,4 @@ ROOTFS_PACKAGE_ARCH = "aarch64" RPI_USE_U_BOOT = "0" KERNEL_IMAGETYPE_DIRECT = "Image" ENABLE_UART = "1" +CMDLINE_SERIAL = "console=tty1" diff --git a/bsp/meta-openeuler-bsp/raspberrypi/recipes-bsp/bootfiles/rpi-bootfiles.bbappend b/bsp/meta-openeuler-bsp/raspberrypi/recipes-bsp/bootfiles/rpi-bootfiles.bbappend index 75f469e85cb588dbe3ab353f4b7282d303dda50e..374d29fbcf26907430b3a3a23a042eeb2c47a34e 100644 --- a/bsp/meta-openeuler-bsp/raspberrypi/recipes-bsp/bootfiles/rpi-bootfiles.bbappend +++ b/bsp/meta-openeuler-bsp/raspberrypi/recipes-bsp/bootfiles/rpi-bootfiles.bbappend @@ -1,5 +1,5 @@ -SRC_URI = "file://raspberrypi-firmware/firmware-1.20210201.tar.gz \ +SRC_URI = "file://raspberrypi-firmware/firmware-1.20220308.tar.gz \ " -S = "${WORKDIR}/firmware-1.20210201/boot" +S = "${WORKDIR}/firmware-1.20220308/boot" #FILESEXTRAPATHS_prepend = "${OPENEULER_SP_DIR}/raspberrypi-firmware/:" diff --git a/meta-openeuler/recipes-core/cifs-utils/cifs-utils_6.14.bb b/meta-openeuler/recipes-core/cifs-utils/cifs-utils_6.14.bb index 053dae81a39bd410ff015e0a496593043fe6fba0..8caed2d36060d92f6b2203497aa8a864d6b2941a 100644 --- a/meta-openeuler/recipes-core/cifs-utils/cifs-utils_6.14.bb +++ b/meta-openeuler/recipes-core/cifs-utils/cifs-utils_6.14.bb @@ -27,8 +27,8 @@ do_install_append() { do_compile_prepend() { #fix open source compile error because of the dependency problem - cat Makefile | grep "@\$(MAKE) \$(AM_MAKEFLAGS) install-exec-am install-data-am" || return 1 - sed -i 's/^[[:space:]]@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am/\t\@\$(MAKE) \$(AM_MAKEFLAGS) install-data-am\n\t\@\$(MAKE) \$(AM_MAKEFLAGS) install-exec-am/g' Makefile + cat ${S}/Makefile.in | grep "@\$(MAKE) \$(AM_MAKEFLAGS) install-exec-am install-data-am" || return 1 + sed -i 's/^[[:space:]]@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am/\t\@\$(MAKE) \$(AM_MAKEFLAGS) install-data-am\n\t\@\$(MAKE) \$(AM_MAKEFLAGS) install-exec-am/g' ${S}/Makefile.in } FILES_${PN} += "${base_libdir}/security" diff --git a/meta-openeuler/recipes-core/iSulad/iSulad_2.0.12.bb b/meta-openeuler/recipes-core/iSulad/iSulad_2.0.14.bb similarity index 93% rename from meta-openeuler/recipes-core/iSulad/iSulad_2.0.12.bb rename to meta-openeuler/recipes-core/iSulad/iSulad_2.0.14.bb index ce2bc0e16efc746875158be06bdfbc4096438fff..44a0991c4e9a24c2c7ccdd7db528ade2fb85daa8 100644 --- a/meta-openeuler/recipes-core/iSulad/iSulad_2.0.12.bb +++ b/meta-openeuler/recipes-core/iSulad/iSulad_2.0.14.bb @@ -4,6 +4,7 @@ LICENSE = "MIT" LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6" SRC_URI = "file://iSulad/v${PV}.tar.gz \ + file://iSulad/0001-do-not-mkdir-of-isulad-if-no-controller-found.patch \ " S = "${WORKDIR}/${BPN}-v${PV}" diff --git a/meta-openeuler/recipes-core/lcr/lcr_2.0.7.bb b/meta-openeuler/recipes-core/lcr/lcr_2.0.7.bb index 00dedc84583d2c491f7e31174cca4fa4adc31895..8867957363fbb8ff797843ebbe16737cc5ef1d1e 100644 --- a/meta-openeuler/recipes-core/lcr/lcr_2.0.7.bb +++ b/meta-openeuler/recipes-core/lcr/lcr_2.0.7.bb @@ -16,6 +16,8 @@ inherit cmake ### Build metadata SRC_URI = "file://lcr/v${PV}.tar.gz \ file://lcr/0001-parse-userns-remap-in-daemmon.json.patch \ + file://lcr/0002-add-rename-json-schema-for-rename-subcommand-in-rest.patch \ + file://lcr/0003-Add-restful-interface-isula-pull.patch \ " S = "${WORKDIR}/${BPN}-v${PV}" diff --git a/meta-openeuler/recipes-core/lvm2/lvm2_2.03.14.bb b/meta-openeuler/recipes-core/lvm2/lvm2_2.03.14.bb index b4f6609fc97bca0487fca545448ccd7082bbd334..06a805c1fc0962a37f2ea44f50c194d09331f401 100644 --- a/meta-openeuler/recipes-core/lvm2/lvm2_2.03.14.bb +++ b/meta-openeuler/recipes-core/lvm2/lvm2_2.03.14.bb @@ -1,7 +1,5 @@ require lvm2.inc -DEPENDS += "autoconf-archive-native" - MULTILIB_SCRIPTS = "${PN}:${sysconfdir}/lvm/lvm.conf" CACHED_CONFIGUREVARS += "MODPROBE_CMD=${base_sbindir}/modprobe" diff --git a/meta-openeuler/recipes-core/openssl/openssl.inc b/meta-openeuler/recipes-core/openssl/openssl.inc index a371265b860b137d498839b3717162b10e8fd9b3..3ad0b70c5ad60cd5989f9b5144fb2a44dbbbdaff 100644 --- a/meta-openeuler/recipes-core/openssl/openssl.inc +++ b/meta-openeuler/recipes-core/openssl/openssl.inc @@ -1,15 +1,4 @@ -SUMMARY = "Secure Socket Layer" -DESCRIPTION = "Secure Socket Layer (SSL) binary and related cryptographic tools." -HOMEPAGE = "http://www.openssl.org/" -BUGTRACKER = "http://www.openssl.org/news/vulnerabilities.html" -SECTION = "libs/network" - -# "openssl | SSLeay" dual license -LICENSE = "openssl" - DEPENDS = "perl-native-runtime nettle" -DEPENDS_append_class-target = " openssl-native" -#DEPENDS_append_class-target = " linux-libc-headers" SRC_URI = "file://openssl/${BP}.tar.gz \ file://openssl/openssl-1.1.1-build.patch \ @@ -26,8 +15,6 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=d343e62fc9c833710bbbed25f27364c8" S = "${WORKDIR}/${BP}" -PACKAGECONFIG[perl] = ",,," - #AR_append = " r" # Avoid binaries being marked as requiring an executable stack since it # doesn't(which causes and this causes issues with SELinux @@ -43,24 +30,7 @@ export DIRS = "crypto ssl apps" export EX_LIBS = "-lgcc -ldl" export AS = "${CC} -c" -inherit pkgconfig siteinfo multilib_header ptest - -PACKAGES =+ "libcrypto libssl ${PN}-misc openssl-conf" -FILES_libcrypto = "${base_libdir}/libcrypto${SOLIBS}" -FILES_libssl = "${libdir}/libssl.so.*" -FILES_${PN} =+ " ${libdir}/ssl/*" -FILES_${PN}-misc = "${libdir}/ssl/misc ${bindir}/c_rehash" -RDEPENDS_${PN}-misc = "${@bb.utils.contains('PACKAGECONFIG', 'perl', 'perl', '', d)}" -FILES_${PN}-dev += "${base_libdir}/libcrypto${SOLIBSDEV}" - -# Add the openssl.cnf file to the openssl-conf package. Make the libcrypto -# package RRECOMMENDS on this package. This will enable the configuration -# file to be installed for both the base openssl package and the libcrypto -# package since the base openssl package depends on the libcrypto package. -FILES_openssl-conf = "${libdir}/ssl/openssl.cnf" -CONFFILES_openssl-conf = "${libdir}/ssl/openssl.cnf" -RRECOMMENDS_libcrypto += "openssl-conf" -RDEPENDS_${PN}-ptest += "${PN}-misc make perl perl-module-filehandle bc" +inherit pkgconfig siteinfo ptest # Remove this to enable SSLv3. SSLv3 is defaulted to disabled due to the POODLE # vulnerability @@ -70,101 +40,6 @@ do_configure_prepend_darwin () { sed -i -e '/version-script=openssl\.ld/d' Configure } -do_configure () { - cd util - perl perlpath.pl ${STAGING_BINDIR_NATIVE} - cd .. - ln -sf apps/openssl.pod crypto/crypto.pod ssl/ssl.pod doc/ - - os=${HOST_OS} - case $os in - linux-uclibc |\ - linux-uclibceabi |\ - linux-gnueabi |\ - linux-uclibcspe |\ - linux-gnuspe |\ - linux-musl*) - os=linux - ;; - *) - ;; - esac - if [ "${libdir}" != "/usr/libilp32" ]; then - target="$os-${HOST_ARCH}" - else - target="${HOST_OS}-${HOST_ARCH}" - fi - case $target in - linux-arm) - target=linux-armv4 - ;; - linux-armeb) - target=linux-elf-armeb - ;; - linux-aarch64*) - target=linux-generic64 - ;; - linux-gnuilp32-aarch64*) - target=linux-aarch64-ilp32 - ;; - linux-sh3) - target=debian-sh3 - ;; - linux-sh4) - target=debian-sh4 - ;; - linux-i486) - target=debian-i386-i486 - ;; - linux-i586 | linux-viac3) - target=debian-i386-i586 - ;; - linux-i686) - target=debian-i386-i686/cmov - ;; - linux-gnux32-x86_64) - target=linux-x32 - ;; - linux-gnu64-x86_64) - target=linux-x86_64 - ;; - linux-mips) - target=debian-mips - ;; - linux-mipsel) - target=debian-mipsel - ;; - linux-*-mips64) - target=linux-mips - ;; - linux-microblaze*) - target=linux-generic32 - ;; - linux-powerpc) - target=linux-ppc - ;; - linux-powerpc64) - target=linux-ppc64 - ;; - linux-supersparc) - target=linux-sparcv8 - ;; - linux-sparc) - target=linux-sparcv8 - ;; - darwin-i386) - target=darwin-i386-cc - ;; - esac - # inject machine-specific flags - sed -i -e "s|^\(\"$target\",\s*\"[^:]\+\):\([^:]\+\)|\1:${CFLAG}|g" Configure - useprefix=${prefix} - if [ "x$useprefix" = "x" ]; then - useprefix=/ - fi - perl ./Configure ${EXTRA_OECONF} shared --prefix=$useprefix --openssldir=${libdir}/ssl --libdir=`basename ${libdir}` $target -} - do_compile_prepend_class-target () { sed -i 's/\((OPENSSL=\)".*"/\1"openssl"/' Makefile } @@ -177,41 +52,6 @@ do_compile_ptest () { oe_runmake buildtest } -do_install () { - # Create ${D}/${prefix} to fix parallel issues - mkdir -p ${D}/${prefix}/ - - oe_runmake INSTALL_PREFIX="${D}" MANDIR="${mandir}" install - - oe_libinstall -so libcrypto ${D}${libdir} - oe_libinstall -so libssl ${D}${libdir} - - # Moving libcrypto to /lib - if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then - mkdir -p ${D}/${base_libdir}/ - mv ${D}${libdir}/libcrypto* ${D}${base_libdir}/ - sed -i s#libdir=\$\{exec_prefix\}\/lib#libdir=${base_libdir}# ${D}/${libdir}/pkgconfig/libcrypto.pc - fi - - install -d ${D}${includedir} - cp --dereference -R include/openssl ${D}${includedir} - - if [ "${libdir}" != "/usr/libilp32" ]; then - oe_multilib_header openssl/opensslconf.h - fi - - if [ "${@bb.utils.contains('PACKAGECONFIG', 'perl', 'perl', '', d)}" = "perl" ]; then - install -m 0755 ${S}/tools/c_rehash ${D}${bindir} - sed -i -e '1s,.*,#!${bindir}/env perl,' ${D}${bindir}/c_rehash - sed -i -e '1s,.*,#!${bindir}/env perl,' ${D}${libdir}/ssl/misc/CA.pl - sed -i -e '1s,.*,#!${bindir}/env perl,' ${D}${libdir}/ssl/misc/tsget - # The c_rehash utility isn't installed by the normal installation process. - else - rm -f ${D}${bindir}/c_rehash - rm -f ${D}${libdir}/ssl/misc/CA.pl ${D}${libdir}/ssl/misc/tsget - fi -} - do_install_ptest () { cp -r Makefile test ${D}${PTEST_PATH} cp -r certs ${D}${PTEST_PATH} diff --git a/meta-openeuler/recipes-core/openssl/openssl_1.1.1m.bb b/meta-openeuler/recipes-core/openssl/openssl_1.1.1m.bb index a1976e482122a0e46ba4cddb94e3d18ec49ca352..cd3fb7e97c758908eca76a20a9e76292ef3187d6 100644 --- a/meta-openeuler/recipes-core/openssl/openssl_1.1.1m.bb +++ b/meta-openeuler/recipes-core/openssl/openssl_1.1.1m.bb @@ -17,7 +17,7 @@ MULTILIB_SCRIPTS = "${PN}-bin:${bindir}/c_rehash" PACKAGECONFIG ?= "" PACKAGECONFIG_class-native = "" PACKAGECONFIG_class-nativesdk = "" - +PACKAGECONFIG[perl] = ",,," PACKAGECONFIG[cryptodev-linux] = "enable-devcryptoeng,disable-devcryptoeng,cryptodev-linux" #| ./libcrypto.so: undefined reference to `getcontext' @@ -149,6 +149,8 @@ do_install_append_class-nativesdk () { sed 's|/usr/lib/ssl/|/usr/lib/ssl-1.1/|g' -i ${D}${SDKPATHNATIVE}/environment-setup.d/openssl.sh } +PACKAGES =+ "libcrypto libssl ${PN}-conf ${PN}-misc" + # Add the openssl.cnf file to the openssl-conf package. Make the libcrypto # package RRECOMMENDS on this package. This will enable the configuration # file to be installed for both the openssl-bin package and the libcrypto @@ -156,20 +158,16 @@ do_install_append_class-nativesdk () { FILES_libcrypto = "${libdir}/libcrypto${SOLIBS}" FILES_libssl = "${libdir}/libssl${SOLIBS}" -FILES_openssl-conf = "${sysconfdir}/ssl/openssl.cnf" -FILES_${PN}-engines = "${libdir}/engines-1.1" +FILES_${PN}-conf = "${sysconfdir}/ssl/openssl.cnf" FILES_${PN}-misc = "${libdir}/ssl-1.1/misc" -FILES_${PN} += "${libdir}/ssl-1.1/* ${sysconfdir}/ssl/*" +FILES_${PN} += "${libdir}/ssl-1.1/* ${sysconfdir}/ssl/* ${libdir}/engines-1.1/*" FILES_${PN}_append_class-nativesdk = " ${SDKPATHNATIVE}/environment-setup.d/openssl.sh" -FILES_${PN} += "${libdir}/engines-1.1/*" CONFFILES_openssl-conf = "${sysconfdir}/ssl/openssl.cnf" RRECOMMENDS_libcrypto += "openssl-conf" -RDEPENDS_${PN}-ptest += "openssl-bin perl perl-modules bash" - -# Remove bash dependencies for all image -RDEPENDS_${PN}-ptest_remove += "bash" +RDEPENDS_${PN}-misc = "${@bb.utils.contains('PACKAGECONFIG', 'perl', 'perl', '', d)}" +RDEPENDS_${PN}-ptest += "openssl-bin perl perl-modules" BBCLASSEXTEND = "native nativesdk" diff --git a/meta-openeuler/recipes-core/os-base/os-base_1.0.bb b/meta-openeuler/recipes-core/os-base/os-base_1.0.bb index 7fe1933bb98d2aab56a4a615196daa2ff5c3cdd7..e1a7427a11cf58c773471b66306b86b4870c5887 100644 --- a/meta-openeuler/recipes-core/os-base/os-base_1.0.bb +++ b/meta-openeuler/recipes-core/os-base/os-base_1.0.bb @@ -71,7 +71,7 @@ do_install_append_arm() { } do_install_append_raspberrypi4() { - sed -i 's/ttyAMA0/ttyS0/g' ${D}/etc/inittab + sed -i 's/ttyAMA0/tty1/g' ${D}/etc/inittab sed -i '/\# load kernel modules/imount -o remount,rw \/' ${D}/etc/rc.d/rc.sysinit } diff --git a/meta-openeuler/recipes-core/tzdata/tzcode-native_2021e.bb b/meta-openeuler/recipes-core/tzdata/tzcode-native_2022a.bb similarity index 100% rename from meta-openeuler/recipes-core/tzdata/tzcode-native_2021e.bb rename to meta-openeuler/recipes-core/tzdata/tzcode-native_2022a.bb diff --git a/meta-openeuler/recipes-core/tzdata/tzdata_2021e.bb b/meta-openeuler/recipes-core/tzdata/tzdata_2022a.bb similarity index 100% rename from meta-openeuler/recipes-core/tzdata/tzdata_2021e.bb rename to meta-openeuler/recipes-core/tzdata/tzdata_2022a.bb diff --git a/meta-openeuler/recipes-core/yajl/yajl_2.1.0.bb b/meta-openeuler/recipes-core/yajl/yajl_2.1.0.bb index 5f77805e0972d692c6088eceb28858fe6645182d..555830a5fbdc7402d74ddd2ca300ae457c9a9310 100644 --- a/meta-openeuler/recipes-core/yajl/yajl_2.1.0.bb +++ b/meta-openeuler/recipes-core/yajl/yajl_2.1.0.bb @@ -4,12 +4,13 @@ LICENSE = "MIT" LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6" SRC_URI = "file://yajl/${PV}.tar.gz \ - file://yajl/yajl-2.1.0-pkgconfig-location.patch \ - file://yajl/yajl-2.1.0-pkgconfig-includedir.patch \ - file://yajl/yajl-2.1.0-test-location.patch \ - file://yajl/yajl-2.1.0-dynlink-binaries.patch \ - file://yajl/yajl-2.1.0-fix-memory-leak.patch \ - file://yajl/backport-fix-memory-leaks.patch \ + file://yajl/0001-yajl-2.1.0-pkgconfig-location.patch \ + file://yajl/0002-yajl-2.1.0-pkgconfig-includedir.patch \ + file://yajl/0003-yajl-2.1.0-test-location.patch \ + file://yajl/0004-yajl-2.1.0-dynlink-binaries.patch \ + file://yajl/0005-yajl-2.1.0-fix-memory-leak.patch \ + file://yajl/0006-fix-memory-leak-of-ctx-root.patch \ + file://yajl/0007-add-cmake-option-for-test-and-binary.patch \ " S = "${WORKDIR}/${BPN}-${PV}" diff --git a/scripts/download_code.sh b/scripts/download_code.sh index 3335db558bfaa8496712fea530cb11b4fcd241e9..18b69b0da9503926621b769c1f43b0d4100557ee 100644 --- a/scripts/download_code.sh +++ b/scripts/download_code.sh @@ -62,7 +62,7 @@ update_code_repo() # pull from orgin git config pull.ff only git pull || echo "git pull failure, please check ${pkg}" - git status | grep -Eq "is up to date with|is up-to-date with" || exit 1 + LANG="en_US.UTF-8" git status | grep -Eq "is up to date with|is up-to-date with" || exit 1 fi #check if checkout tag successfully