Initial commit
This commit is contained in:
+37
@@ -0,0 +1,37 @@
|
||||
From 3a97f58cfb40fc1911bbfd067e8457a472613d75 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Tue, 18 Apr 2023 22:58:00 -0700
|
||||
Subject: [PATCH] test_transformation: Check if transform is supported before
|
||||
using it
|
||||
|
||||
This helps in excluding these tests on systems where these are not
|
||||
available e.g. musl
|
||||
|
||||
Upstream-Status: Submitted [https://bz.apache.org/bugzilla/show_bug.cgi?id=66570]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
test/testxlate.c | 8 ++++++--
|
||||
1 file changed, 6 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/test/testxlate.c b/test/testxlate.c
|
||||
index 6981eff..de00fa4 100644
|
||||
--- a/test/testxlate.c
|
||||
+++ b/test/testxlate.c
|
||||
@@ -116,8 +116,12 @@ static void test_transformation(abts_case *tc, void *data)
|
||||
}
|
||||
|
||||
/* 4. Transformation using charset aliases */
|
||||
- one_test(tc, "UTF-8", "UTF-7", test_utf8, test_utf7, p);
|
||||
- one_test(tc, "UTF-7", "UTF-8", test_utf7, test_utf8, p);
|
||||
+ if (is_transform_supported(tc, "UTF-8", "UTF-7", p)) {
|
||||
+ one_test(tc, "UTF-8", "UTF-7", test_utf8, test_utf7, p);
|
||||
+ }
|
||||
+ if (is_transform_supported(tc, "UTF-7", "UTF-8", p)) {
|
||||
+ one_test(tc, "UTF-7", "UTF-8", test_utf7, test_utf8, p);
|
||||
+ }
|
||||
}
|
||||
|
||||
#endif /* APR_HAS_XLATE */
|
||||
--
|
||||
2.40.0
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
Upstream-Status: Inappropriate [configuration]
|
||||
|
||||
Index: apr-util-1.3.4/apu-config.in
|
||||
===================================================================
|
||||
--- apr-util-1.3.4.orig/apu-config.in 2009-01-12 17:08:06.000000000 +0000
|
||||
+++ apr-util-1.3.4/apu-config.in 2009-01-12 17:09:00.000000000 +0000
|
||||
@@ -134,14 +134,7 @@
|
||||
exit 0
|
||||
;;
|
||||
--includes)
|
||||
- if test "$location" = "installed"; then
|
||||
flags="$flags -I$includedir $INCLUDES"
|
||||
- elif test "$location" = "source"; then
|
||||
- flags="$flags -I$APU_SOURCE_DIR/include $INCLUDES"
|
||||
- else
|
||||
- # this is for VPATH builds
|
||||
- flags="$flags -I$APU_BUILD_DIR/include -I$APU_SOURCE_DIR/include $INCLUDES"
|
||||
- fi
|
||||
;;
|
||||
--ldflags)
|
||||
flags="$flags $LDFLAGS"
|
||||
@@ -155,28 +148,10 @@
|
||||
exit 0
|
||||
;;
|
||||
--link-ld)
|
||||
- if test "$location" = "installed"; then
|
||||
- ### avoid using -L if libdir is a "standard" location like /usr/lib
|
||||
flags="$flags -L$libdir -l$APRUTIL_LIBNAME"
|
||||
- else
|
||||
- flags="$flags -L$APU_BUILD_DIR -l$APRUTIL_LIBNAME"
|
||||
- fi
|
||||
;;
|
||||
--link-libtool)
|
||||
- # If the LA_FILE exists where we think it should be, use it. If we're
|
||||
- # installed and the LA_FILE does not exist, assume to use -L/-l
|
||||
- # (the LA_FILE may not have been installed). If we're building ourselves,
|
||||
- # we'll assume that at some point the .la file be created.
|
||||
- if test -f "$LA_FILE"; then
|
||||
- flags="$flags $LA_FILE"
|
||||
- elif test "$location" = "installed"; then
|
||||
- ### avoid using -L if libdir is a "standard" location like /usr/lib
|
||||
- # Since the user is specifying they are linking with libtool, we
|
||||
- # *know* that -R will be recognized by libtool.
|
||||
- flags="$flags -L$libdir -R$libdir -l$APRUTIL_LIBNAME"
|
||||
- else
|
||||
- flags="$flags $LA_FILE"
|
||||
- fi
|
||||
+ flags="$flags -l$APRUTIL_LIBNAME"
|
||||
;;
|
||||
--apu-la-file)
|
||||
if test -f "$LA_FILE"; then
|
||||
@@ -0,0 +1,31 @@
|
||||
Upstream-Status: Inappropriate [configuration]
|
||||
|
||||
Index: apr-util-1.4.1/configure.in
|
||||
===================================================================
|
||||
--- apr-util-1.4.1.orig/configure.in 2009-12-18 03:15:19.000000000 +0800
|
||||
+++ apr-util-1.4.1/configure.in 2011-12-30 13:32:07.000000000 +0800
|
||||
@@ -8,15 +8,15 @@
|
||||
AC_CONFIG_HEADER(include/private/apu_config.h)
|
||||
AC_CONFIG_AUX_DIR(build)
|
||||
|
||||
-sinclude(build/apu-conf.m4)
|
||||
-sinclude(build/apu-iconv.m4)
|
||||
-sinclude(build/apu-hints.m4)
|
||||
-sinclude(build/apr_common.m4)
|
||||
-sinclude(build/find_apr.m4)
|
||||
-sinclude(build/crypto.m4)
|
||||
-sinclude(build/dbm.m4)
|
||||
-sinclude(build/dbd.m4)
|
||||
-sinclude(build/dso.m4)
|
||||
+#sinclude(build/apu-conf.m4)
|
||||
+#sinclude(build/apu-iconv.m4)
|
||||
+#sinclude(build/apu-hints.m4)
|
||||
+#sinclude(build/apr_common.m4)
|
||||
+#sinclude(build/find_apr.m4)
|
||||
+#sinclude(build/crypto.m4)
|
||||
+#sinclude(build/dbm.m4)
|
||||
+#sinclude(build/dbd.m4)
|
||||
+#sinclude(build/dso.m4)
|
||||
|
||||
dnl Generate ./config.nice for reproducing runs of configure
|
||||
dnl
|
||||
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd test
|
||||
./testall |sed \
|
||||
-e 's|\(.*\): SUCCESS|PASS: \1|' \
|
||||
-e 's|\(.*\): FAILED|FAIL: \1|'
|
||||
@@ -0,0 +1,97 @@
|
||||
SUMMARY = "Apache Portable Runtime (APR) companion library"
|
||||
HOMEPAGE = "http://apr.apache.org/"
|
||||
SECTION = "libs"
|
||||
DEPENDS = "apr expat"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=158aa0b1efe0c12f23d4b007ddb9a5db \
|
||||
file://include/apu_version.h;endline=15;md5=823b3d1a7225df8f7b68a69c3c2b4c71"
|
||||
|
||||
SRC_URI = "${APACHE_MIRROR}/apr/${BPN}-${PV}.tar.gz \
|
||||
file://configfix.patch \
|
||||
file://configure_fixes.patch \
|
||||
file://0001-test_transformation-Check-if-transform-is-supported-.patch \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
SRC_URI[sha256sum] = "2b74d8932703826862ca305b094eef2983c27b39d5c9414442e9976a9acf1983"
|
||||
|
||||
EXTRA_OECONF = "--with-apr=${STAGING_BINDIR_CROSS}/apr-1-config \
|
||||
--without-odbc \
|
||||
--without-pgsql \
|
||||
--without-sqlite2 \
|
||||
--with-expat=${STAGING_DIR_HOST}${prefix}"
|
||||
|
||||
|
||||
inherit autotools lib_package binconfig multilib_script
|
||||
|
||||
MULTILIB_SCRIPTS = "${PN}-dev:${bindir}/apu-1-config"
|
||||
|
||||
OE_BINCONFIG_EXTRA_MANGLE = " -e 's:location=source:location=installed:'"
|
||||
|
||||
do_configure:append() {
|
||||
if [ "${CLASSOVERRIDE}" = "class-target" ]; then
|
||||
cp ${STAGING_DATADIR}/apr/apr_rules.mk ${B}/build/rules.mk
|
||||
sed -i -e 's#^CFLAGS=.*#CFLAGS=${TARGET_CFLAGS}#g' ${B}/build/rules.mk
|
||||
fi
|
||||
}
|
||||
do_configure:prepend:class-native() {
|
||||
mkdir ${B}/build
|
||||
cp ${STAGING_DATADIR_NATIVE}/apr/apr_rules.mk ${B}/build/rules.mk
|
||||
}
|
||||
do_configure:append:class-native() {
|
||||
sed -i "s#LIBTOOL=\$(SHELL) \$(apr_builddir)#LIBTOOL=\$(SHELL) ${STAGING_BINDIR_NATIVE}#" ${B}/build/rules.mk
|
||||
# sometimes there isn't SHELL
|
||||
sed -i "s#LIBTOOL=\$(apr_builddir)#LIBTOOL=${STAGING_BINDIR_NATIVE}#" ${B}/build/rules.mk
|
||||
}
|
||||
|
||||
do_configure:prepend:class-nativesdk() {
|
||||
cp ${STAGING_DATADIR}/apr/apr_rules.mk ${S}/build/rules.mk
|
||||
sed -i -e 's#^CFLAGS=.*#CFLAGS=${TARGET_CFLAGS}#g' ${S}/build/rules.mk
|
||||
}
|
||||
|
||||
do_configure:append:class-nativesdk() {
|
||||
sed -i "s#\(apr_builddir\)=.*#\1=${STAGING_DATADIR}/build-1#" ${B}/build/rules.mk
|
||||
sed -i "s#\(apr_builders\)=.*#\1=${STAGING_DATADIR}/build-1#" ${B}/build/rules.mk
|
||||
sed -i "s#\(top_builddir\)=.*#\1=${STAGING_DATADIR}/build-1#" ${B}/build/rules.mk
|
||||
sed -i "s#\(LIBTOOL=\$(apr_builddir)\).*#\1/libtool#" ${B}/build/rules.mk
|
||||
}
|
||||
|
||||
do_install:append:class-target() {
|
||||
sed -i -e 's,${STAGING_DIR_HOST},,g' \
|
||||
-e 's,APU_SOURCE_DIR=.*,APR_SOURCE_DIR=,g' \
|
||||
-e 's,APU_BUILD_DIR=.*,APR_BUILD_DIR=,g' ${D}${bindir}/apu-1-config
|
||||
}
|
||||
|
||||
PACKAGECONFIG ??= "crypto gdbm"
|
||||
PACKAGECONFIG[ldap] = "--with-ldap,--without-ldap,openldap"
|
||||
PACKAGECONFIG[crypto] = "--with-openssl=${STAGING_DIR_HOST}${prefix} --with-crypto,--without-crypto,openssl"
|
||||
PACKAGECONFIG[sqlite3] = "--with-sqlite3=${STAGING_DIR_HOST}${prefix},--without-sqlite3,sqlite3"
|
||||
PACKAGECONFIG[gdbm] = "--with-dbm=gdbm --with-gdbm=${STAGING_DIR_HOST}${prefix},--without-gdbm,gdbm"
|
||||
|
||||
#files ${libdir}/apr-util-1/*.so are not symlinks but loadable modules thus they are packaged in ${PN}
|
||||
FILES:${PN} += "${libdir}/apr-util-1/apr*${SOLIBS} ${libdir}/apr-util-1/apr*${SOLIBSDEV}"
|
||||
FILES:${PN}-dev += "${libdir}/aprutil.exp ${libdir}/apr-util-1/*.la"
|
||||
FILES:${PN}-staticdev += "${libdir}/apr-util-1/*.a"
|
||||
|
||||
INSANE_SKIP:${PN} += "dev-so"
|
||||
|
||||
inherit ptest
|
||||
|
||||
RDEPENDS:${PN}-ptest:append:libc-glibc = " glibc-gconv-iso8859-1 glibc-gconv-iso8859-2 glibc-gconv-utf-7"
|
||||
RDEPENDS:${PN}-ptest += "libgcc"
|
||||
|
||||
do_compile_ptest() {
|
||||
cd ${B}/test
|
||||
oe_runmake
|
||||
}
|
||||
|
||||
do_install_ptest() {
|
||||
t=${D}${PTEST_PATH}/test
|
||||
mkdir $t
|
||||
for i in testall data; do \
|
||||
cp -r ${B}/test/$i $t; \
|
||||
done
|
||||
}
|
||||
+69
@@ -0,0 +1,69 @@
|
||||
From 225abf37cd0b49960664b59f08e515a4c4ea5ad0 Mon Sep 17 00:00:00 2001
|
||||
From: Jeremy Puhlman <jpuhlman@mvista.com>
|
||||
Date: Thu, 26 Mar 2020 18:30:36 +0000
|
||||
Subject: [PATCH] Add option to disable timed dependant tests
|
||||
|
||||
The disabled tests rely on timing to pass correctly. On a virtualized
|
||||
system under heavy load, these tests randomly fail because they miss
|
||||
a timer or other timing related issues.
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
|
||||
|
||||
---
|
||||
configure.in | 6 ++++++
|
||||
include/apr.h.in | 1 +
|
||||
test/testlock.c | 4 ++--
|
||||
3 files changed, 9 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/configure.in b/configure.in
|
||||
index bfd488b..3663220 100644
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -3023,6 +3023,12 @@ AC_ARG_ENABLE(timedlocks,
|
||||
)
|
||||
AC_SUBST(apr_has_timedlocks)
|
||||
|
||||
+AC_ARG_ENABLE(timed-tests,
|
||||
+ [ --disable-timed-tests Disable timed tests ],
|
||||
+ [apr_has_timedtests="0"], [apr_has_timedtests="1"]
|
||||
+)
|
||||
+AC_SUBST(apr_has_timedtests)
|
||||
+
|
||||
# hstrerror is only needed if IPv6 is not enabled,
|
||||
# so getaddrinfo/gai_strerror are not used.
|
||||
if test $have_ipv6 = 0; then
|
||||
diff --git a/include/apr.h.in b/include/apr.h.in
|
||||
index ee99def..c46a5f4 100644
|
||||
--- a/include/apr.h.in
|
||||
+++ b/include/apr.h.in
|
||||
@@ -298,6 +298,7 @@ extern "C" {
|
||||
#define APR_HAS_XTHREAD_FILES @apr_has_xthread_files@
|
||||
#define APR_HAS_OS_UUID @osuuid@
|
||||
#define APR_HAS_TIMEDLOCKS @apr_has_timedlocks@
|
||||
+#define APR_HAVE_TIME_DEPENDANT_TESTS @apr_has_timedtests@
|
||||
|
||||
#define APR_PROCATTR_USER_SET_REQUIRES_PASSWORD @apr_procattr_user_set_requires_password@
|
||||
|
||||
diff --git a/test/testlock.c b/test/testlock.c
|
||||
index e3437c1..04e01b9 100644
|
||||
--- a/test/testlock.c
|
||||
+++ b/test/testlock.c
|
||||
@@ -535,7 +535,7 @@ abts_suite *testlock(abts_suite *suite)
|
||||
abts_run_test(suite, threads_not_impl, NULL);
|
||||
#else
|
||||
abts_run_test(suite, test_thread_mutex, NULL);
|
||||
-#if APR_HAS_TIMEDLOCKS
|
||||
+#if APR_HAS_TIMEDLOCKS && APR_HAVE_TIME_DEPENDANT_TESTS
|
||||
abts_run_test(suite, test_thread_timedmutex, NULL);
|
||||
#endif
|
||||
abts_run_test(suite, test_thread_nestedmutex, NULL);
|
||||
@@ -543,7 +543,7 @@ abts_suite *testlock(abts_suite *suite)
|
||||
abts_run_test(suite, test_thread_rwlock, NULL);
|
||||
abts_run_test(suite, test_cond, NULL);
|
||||
abts_run_test(suite, test_timeoutcond, NULL);
|
||||
-#if APR_HAS_TIMEDLOCKS
|
||||
+#if APR_HAS_TIMEDLOCKS && APR_HAVE_TIME_DEPENDANT_TESTS
|
||||
abts_run_test(suite, test_timeoutmutex, NULL);
|
||||
#endif
|
||||
#ifdef WIN32
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
From 316b81c462f065927d7fec56aadd5c8cb94d1cf0 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Fri, 26 Aug 2022 00:28:08 -0700
|
||||
Subject: [PATCH] configure: Remove runtime test for mmap that can map
|
||||
/dev/zero
|
||||
|
||||
This never works for cross-compile moreover it ends up disabling
|
||||
ac_cv_file__dev_zero which then results in compiler errors in shared
|
||||
mutexes
|
||||
|
||||
Upstream-Status: Inappropriate [Cross-compile specific]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
|
||||
---
|
||||
configure.in | 30 ------------------------------
|
||||
1 file changed, 30 deletions(-)
|
||||
|
||||
diff --git a/configure.in b/configure.in
|
||||
index 3663220..dce9789 100644
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -1303,36 +1303,6 @@ AC_CHECK_FUNCS([mmap munmap shm_open shm_unlink shmget shmat shmdt shmctl \
|
||||
APR_CHECK_DEFINE(MAP_ANON, sys/mman.h)
|
||||
AC_CHECK_FILE(/dev/zero)
|
||||
|
||||
-# Not all systems can mmap /dev/zero (such as HP-UX). Check for that.
|
||||
-if test "$ac_cv_func_mmap" = "yes" &&
|
||||
- test "$ac_cv_file__dev_zero" = "yes"; then
|
||||
- AC_CACHE_CHECK([for mmap that can map /dev/zero],
|
||||
- [ac_cv_mmap__dev_zero],
|
||||
- [AC_TRY_RUN([#include <sys/types.h>
|
||||
-#include <sys/stat.h>
|
||||
-#include <fcntl.h>
|
||||
-#ifdef HAVE_SYS_MMAN_H
|
||||
-#include <sys/mman.h>
|
||||
-#endif
|
||||
- int main()
|
||||
- {
|
||||
- int fd;
|
||||
- void *m;
|
||||
- fd = open("/dev/zero", O_RDWR);
|
||||
- if (fd < 0) {
|
||||
- return 1;
|
||||
- }
|
||||
- m = mmap(0, sizeof(void*), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
|
||||
- if (m == (void *)-1) { /* aka MAP_FAILED */
|
||||
- return 2;
|
||||
- }
|
||||
- if (munmap(m, sizeof(void*)) < 0) {
|
||||
- return 3;
|
||||
- }
|
||||
- return 0;
|
||||
- }], [], [ac_cv_file__dev_zero=no], [ac_cv_file__dev_zero=no])])
|
||||
-fi
|
||||
-
|
||||
# Now we determine which one is our anonymous shmem preference.
|
||||
haveshmgetanon="0"
|
||||
havemmapzero="0"
|
||||
+77
@@ -0,0 +1,77 @@
|
||||
From 689a8db96a6d1e1cae9cbfb35d05ac82140a6555 Mon Sep 17 00:00:00 2001
|
||||
From: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
Date: Tue, 30 Jan 2018 09:39:06 +0800
|
||||
Subject: [PATCH] apr: Remove workdir path references from installed apr files
|
||||
|
||||
Upstream-Status: Inappropriate [configuration]
|
||||
|
||||
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
||||
|
||||
The generated `apr-1-config' is used by other recipes at build time or
|
||||
packages at target run time, the workdir path caused confusion.
|
||||
|
||||
Rebase to 1.6.3
|
||||
|
||||
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
|
||||
---
|
||||
apr-config.in | 32 ++------------------------------
|
||||
1 file changed, 2 insertions(+), 30 deletions(-)
|
||||
|
||||
diff --git a/apr-config.in b/apr-config.in
|
||||
index bed47ca..47874e5 100644
|
||||
--- a/apr-config.in
|
||||
+++ b/apr-config.in
|
||||
@@ -164,16 +164,7 @@ while test $# -gt 0; do
|
||||
flags="$flags $LDFLAGS"
|
||||
;;
|
||||
--includes)
|
||||
- if test "$location" = "installed"; then
|
||||
flags="$flags -I$includedir $EXTRA_INCLUDES"
|
||||
- elif test "$location" = "crosscompile"; then
|
||||
- flags="$flags -I$APR_TARGET_DIR/$includedir $EXTRA_INCLUDES"
|
||||
- elif test "$location" = "source"; then
|
||||
- flags="$flags -I$APR_SOURCE_DIR/include $EXTRA_INCLUDES"
|
||||
- else
|
||||
- # this is for VPATH builds
|
||||
- flags="$flags -I$APR_BUILD_DIR/include -I$APR_SOURCE_DIR/include $EXTRA_INCLUDES"
|
||||
- fi
|
||||
;;
|
||||
--srcdir)
|
||||
echo $APR_SOURCE_DIR
|
||||
@@ -197,33 +188,14 @@ while test $# -gt 0; do
|
||||
exit 0
|
||||
;;
|
||||
--link-ld)
|
||||
- if test "$location" = "installed"; then
|
||||
- ### avoid using -L if libdir is a "standard" location like /usr/lib
|
||||
- flags="$flags -L$libdir -l${APR_LIBNAME}"
|
||||
- elif test "$location" = "crosscompile"; then
|
||||
- flags="$flags -L$APR_TARGET_DIR/$libdir -l${APR_LIBNAME}"
|
||||
- else
|
||||
- ### this surely can't work since the library is in .libs?
|
||||
- flags="$flags -L$APR_BUILD_DIR -l${APR_LIBNAME}"
|
||||
- fi
|
||||
+ flags="$flags -l${APR_LIBNAME}"
|
||||
;;
|
||||
--link-libtool)
|
||||
# If the LA_FILE exists where we think it should be, use it. If we're
|
||||
# installed and the LA_FILE does not exist, assume to use -L/-l
|
||||
# (the LA_FILE may not have been installed). If we're building ourselves,
|
||||
# we'll assume that at some point the .la file be created.
|
||||
- if test -f "$LA_FILE"; then
|
||||
- flags="$flags $LA_FILE"
|
||||
- elif test "$location" = "installed"; then
|
||||
- ### avoid using -L if libdir is a "standard" location like /usr/lib
|
||||
- # Since the user is specifying they are linking with libtool, we
|
||||
- # *know* that -R will be recognized by libtool.
|
||||
- flags="$flags -L$libdir -R$libdir -l${APR_LIBNAME}"
|
||||
- elif test "$location" = "crosscompile"; then
|
||||
- flags="$flags -L${APR_TARGET_DIR}/$libdir -l${APR_LIBNAME}"
|
||||
- else
|
||||
- flags="$flags $LA_FILE"
|
||||
- fi
|
||||
+ flags="$flags -l${APR_LIBNAME}"
|
||||
;;
|
||||
--shlib-path-var)
|
||||
echo "$SHLIBPATH_VAR"
|
||||
@@ -0,0 +1,39 @@
|
||||
From 7925eb1766a00ccee05c6e80b1d34f163a04b7b1 Mon Sep 17 00:00:00 2001
|
||||
From: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
Date: Tue, 30 Jan 2018 09:43:34 +0800
|
||||
Subject: [PATCH 4/7] Fix packet discards HTTP redirect.
|
||||
|
||||
Disconnect the connection by poll() timeout.
|
||||
If timeout=0 and apr_wait_for_io_or_timeout()=APR_TIMEUP then
|
||||
apr_socket_recv() returns EAGAIN.
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Noriaki Yoshitane <yoshitane.nrs@cnt.ncos.nec.co.jp>
|
||||
Signed-off-by: Li Wang <li.wang@windriver.com>
|
||||
|
||||
Rebase to 1.6.3
|
||||
|
||||
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
---
|
||||
network_io/unix/sendrecv.c | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/network_io/unix/sendrecv.c b/network_io/unix/sendrecv.c
|
||||
index 4c0e0a6..1bdafba 100644
|
||||
--- a/network_io/unix/sendrecv.c
|
||||
+++ b/network_io/unix/sendrecv.c
|
||||
@@ -85,6 +85,10 @@ apr_status_t apr_socket_recv(apr_socket_t *sock, char *buf, apr_size_t *len)
|
||||
&& (sock->timeout > 0)) {
|
||||
do_select:
|
||||
arv = apr_wait_for_io_or_timeout(NULL, sock, 1);
|
||||
+ if ((arv == APR_TIMEUP) && (sock->timeout == 0)) {
|
||||
+ *len = 0;
|
||||
+ return EAGAIN;
|
||||
+ }
|
||||
if (arv != APR_SUCCESS) {
|
||||
*len = 0;
|
||||
return arv;
|
||||
--
|
||||
1.8.3.1
|
||||
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
From 2e66cece0c3adff92733332111204ddc1d730a07 Mon Sep 17 00:00:00 2001
|
||||
From: Robert Yang <liezhi.yang@windriver.com>
|
||||
Date: Thu, 19 Nov 2015 18:25:38 -0800
|
||||
Subject: [PATCH 5/7] configure.in: fix LTFLAGS to make it work with ccache
|
||||
|
||||
When ccache is enabled, libtool requires --tag=CC when use ccache,
|
||||
otherwise when building apr-util with ccache enabled:
|
||||
|
||||
| libtool: compile: unable to infer tagged configuration
|
||||
| libtool: error: specify a tag with '--tag'
|
||||
| libtool: compile: unable to infer tagged configuration
|
||||
| make[1]: *** [buckets/apr_buckets.lo] Error 1
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
|
||||
---
|
||||
configure.in | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure.in b/configure.in
|
||||
index 361120f..3b10422 100644
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -249,7 +249,7 @@ case $host in
|
||||
;;
|
||||
*)
|
||||
if test "x$LTFLAGS" = "x"; then
|
||||
- LTFLAGS='--silent'
|
||||
+ LTFLAGS='--silent --tag=CC'
|
||||
fi
|
||||
if test "$experimental_libtool" = "yes"; then
|
||||
# Use a custom-made libtool replacement
|
||||
--
|
||||
1.8.3.1
|
||||
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
From c6afc4a4a766478cb6aa6b43a50051881b6318d7 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
|
||||
Date: Fri, 3 Mar 2017 22:24:17 +0100
|
||||
Subject: [PATCH 7/7] explicitly link libapr against phtread to make gold happy
|
||||
on test
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
| ../.libs/libapr-1.so: error: undefined reference to 'pthread_mutexattr_init'
|
||||
| ../.libs/libapr-1.so: error: undefined reference to 'pthread_mutexattr_settype'
|
||||
| ../.libs/libapr-1.so: error: undefined reference to 'pthread_mutexattr_destroy'
|
||||
| ../.libs/libapr-1.so: error: undefined reference to 'pthread_mutex_trylock'
|
||||
| ../.libs/libapr-1.so: error: undefined reference to 'pthread_attr_setstacksize'
|
||||
| ../.libs/libapr-1.so: error: undefined reference to 'pthread_create'
|
||||
| ../.libs/libapr-1.so: error: undefined reference to 'pthread_join'
|
||||
| ../.libs/libapr-1.so: error: undefined reference to 'pthread_detach'
|
||||
| ../.libs/libapr-1.so: error: undefined reference to 'pthread_sigmask'
|
||||
| ../.libs/libapr-1.so: error: undefined reference to 'pthread_once'
|
||||
| ../.libs/libapr-1.so: error: undefined reference to 'pthread_key_create'
|
||||
| ../.libs/libapr-1.so: error: undefined reference to 'pthread_getspecific'
|
||||
| ../.libs/libapr-1.so: error: undefined reference to 'pthread_key_delete'
|
||||
| ../.libs/libapr-1.so: error: undefined reference to 'pthread_setspecific'
|
||||
| collect2: error: ld returned 1 exit status
|
||||
| Makefile:114: recipe for target 'globalmutexchild' failed
|
||||
| make[1]: *** [globalmutexchild] Error 1
|
||||
| make[1]: Leaving directory '/home/superandy/tmp/oe-core-glibc/work/cortexa7t2hf-neon-vfpv4-angstrom-linux-gnueabi/apr/1.5.2-r0/apr-1.5.2/test'
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
|
||||
---
|
||||
configure.in | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/configure.in b/configure.in
|
||||
index a227e72..cbc0f90 100644
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -784,6 +784,7 @@ else
|
||||
APR_PTHREADS_CHECK_RESTORE ] )
|
||||
fi
|
||||
if test "$pthreadh" = "1"; then
|
||||
+ APR_ADDTO(LIBS,[-lpthread])
|
||||
APR_CHECK_PTHREAD_GETSPECIFIC_TWO_ARGS
|
||||
APR_CHECK_PTHREAD_ATTR_GETDETACHSTATE_ONE_ARG
|
||||
APR_CHECK_PTHREAD_RECURSIVE_MUTEX
|
||||
--
|
||||
1.8.3.1
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
From 17835709bc55657b7af1f7c99b3f572b819cf97e Mon Sep 17 00:00:00 2001
|
||||
From: Helmut Grohne <helmut@subdivi.de>
|
||||
Date: Tue, 7 Feb 2023 07:04:00 +0000
|
||||
Subject: [PATCH] check for libtoolize rather than libtool
|
||||
|
||||
libtool is now in package libtool-bin, but apr only needs libtoolize.
|
||||
|
||||
Upstream-Status: Pending [ from debian: https://sources.debian.org/data/main/a/apr/1.6.5-1/debian/patches/libtoolize_check.patch ]
|
||||
|
||||
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
|
||||
|
||||
---
|
||||
build/buildcheck.sh | 10 ++++------
|
||||
1 file changed, 4 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/build/buildcheck.sh b/build/buildcheck.sh
|
||||
index 44921b5..08bc8a8 100755
|
||||
--- a/build/buildcheck.sh
|
||||
+++ b/build/buildcheck.sh
|
||||
@@ -39,13 +39,11 @@ fi
|
||||
# ltmain.sh (GNU libtool 1.1361 2004/01/02 23:10:52) 1.5a
|
||||
# output is multiline from 1.5 onwards
|
||||
|
||||
-# Require libtool 1.4 or newer
|
||||
-if test -z "$libtool"; then
|
||||
- libtool=`build/PrintPath glibtool1 glibtool libtool libtool15 libtool14`
|
||||
-fi
|
||||
-lt_pversion=`$libtool --version 2>/dev/null|sed -e 's/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q'`
|
||||
+# Require libtoolize 1.4 or newer
|
||||
+libtoolize=`build/PrintPath glibtoolize1 glibtoolize libtoolize libtoolize15 libtoolize14`
|
||||
+lt_pversion=`$libtoolize --version 2>/dev/null|sed -e 's/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q'`
|
||||
if test -z "$lt_pversion"; then
|
||||
- echo "buildconf: libtool not found."
|
||||
+ echo "buildconf: libtoolize not found."
|
||||
echo " You need libtool version 1.4 or newer installed"
|
||||
echo " to build APR from SVN."
|
||||
res=1
|
||||
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd test
|
||||
./testall |sed \
|
||||
-e 's|\(.*\): SUCCESS|PASS: \1|' \
|
||||
-e 's|\(.*\): FAILED|FAIL: \1|'
|
||||
@@ -0,0 +1,137 @@
|
||||
SUMMARY = "Apache Portable Runtime (APR) library"
|
||||
|
||||
DESCRIPTION = "Create and maintain software libraries that provide a predictable \
|
||||
and consistent interface to underlying platform-specific implementations."
|
||||
|
||||
HOMEPAGE = "http://apr.apache.org/"
|
||||
SECTION = "libs"
|
||||
DEPENDS = "util-linux"
|
||||
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=4dfd4cd216828c8cae5de5a12f3844c8 \
|
||||
file://include/apr_lib.h;endline=15;md5=823b3d1a7225df8f7b68a69c3c2b4c71"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
SRC_URI = "${APACHE_MIRROR}/apr/${BPN}-${PV}.tar.bz2 \
|
||||
file://run-ptest \
|
||||
file://0002-apr-Remove-workdir-path-references-from-installed-ap.patch \
|
||||
file://0004-Fix-packet-discards-HTTP-redirect.patch \
|
||||
file://0005-configure.in-fix-LTFLAGS-to-make-it-work-with-ccache.patch \
|
||||
file://0007-explicitly-link-libapr-against-phtread-to-make-gold-.patch \
|
||||
file://libtoolize_check.patch \
|
||||
file://0001-Add-option-to-disable-timed-dependant-tests.patch \
|
||||
file://0001-configure-Remove-runtime-test-for-mmap-that-can-map-.patch \
|
||||
"
|
||||
|
||||
SRC_URI[sha256sum] = "fc648de983f3a2a6c9e78dea1f180639bd2fad6c06d556d4367a701fe5c35577"
|
||||
|
||||
inherit autotools-brokensep lib_package binconfig multilib_header ptest multilib_script
|
||||
|
||||
OE_BINCONFIG_EXTRA_MANGLE = " -e 's:location=source:location=installed:'"
|
||||
|
||||
# Added to fix some issues with cmake. Refer to https://github.com/bmwcarit/meta-ros/issues/68#issuecomment-19896928
|
||||
CACHED_CONFIGUREVARS += "apr_cv_mutex_recursive=yes"
|
||||
# Enable largefile
|
||||
CACHED_CONFIGUREVARS += "apr_cv_use_lfs64=yes"
|
||||
# Additional AC_TRY_RUN tests which will need to be cached for cross compile
|
||||
CACHED_CONFIGUREVARS += "apr_cv_epoll=yes epoll_create1=yes apr_cv_sock_cloexec=yes \
|
||||
ac_cv_struct_rlimit=yes \
|
||||
ac_cv_func_sem_open=yes \
|
||||
apr_cv_process_shared_works=yes \
|
||||
apr_cv_mutex_robust_shared=yes \
|
||||
"
|
||||
# Also suppress trying to use sctp.
|
||||
#
|
||||
CACHED_CONFIGUREVARS += "ac_cv_header_netinet_sctp_h=no ac_cv_header_netinet_sctp_uio_h=no"
|
||||
|
||||
# ac_cv_sizeof_struct_iovec is deduced using runtime check which will fail during cross-compile
|
||||
CACHED_CONFIGUREVARS += "${@['ac_cv_sizeof_struct_iovec=16','ac_cv_sizeof_struct_iovec=8'][d.getVar('SITEINFO_BITS') != '32']}"
|
||||
|
||||
CACHED_CONFIGUREVARS += "ac_cv_file__dev_zero=yes"
|
||||
|
||||
CACHED_CONFIGUREVARS:append:libc-musl = " ac_cv_strerror_r_rc_int=yes"
|
||||
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}"
|
||||
PACKAGECONFIG:append:libc-musl = " xsi-strerror"
|
||||
PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
|
||||
PACKAGECONFIG[timed-tests] = "--enable-timed-tests,--disable-timed-tests,"
|
||||
PACKAGECONFIG[xsi-strerror] = "ac_cv_strerror_r_rc_int=yes,ac_cv_strerror_r_rc_int=no,"
|
||||
|
||||
do_configure:prepend() {
|
||||
# Avoid absolute paths for grep since it causes failures
|
||||
# when using sstate between different hosts with different
|
||||
# install paths for grep.
|
||||
export GREP="grep"
|
||||
|
||||
cd ${S}
|
||||
# The "2" means libtool version 2.
|
||||
./buildconf 2
|
||||
}
|
||||
|
||||
MULTILIB_SCRIPTS = "${PN}-dev:${bindir}/apr-1-config \
|
||||
${PN}-dev:${datadir}/build-1/apr_rules.mk"
|
||||
|
||||
FILES:${PN}-dev += "${libdir}/apr.exp ${datadir}/build-1/*"
|
||||
RDEPENDS:${PN}-dev += "bash libtool"
|
||||
|
||||
RDEPENDS:${PN}-ptest += "libgcc"
|
||||
|
||||
#for some reason, build/libtool.m4 handled by buildconf still be overwritten
|
||||
#when autoconf, so handle it again.
|
||||
do_configure:append() {
|
||||
sed -i -e 's/LIBTOOL=\(.*\)top_build/LIBTOOL=\1apr_build/' ${S}/build/libtool.m4
|
||||
sed -i -e 's/LIBTOOL=\(.*\)top_build/LIBTOOL=\1apr_build/' ${S}/build/apr_rules.mk
|
||||
}
|
||||
|
||||
do_install:append() {
|
||||
oe_multilib_header apr.h
|
||||
install -d ${D}${datadir}/apr
|
||||
}
|
||||
|
||||
do_install:append:class-target() {
|
||||
rm -f ${D}${datadir}/build-1/libtool
|
||||
sed -i s,LIBTOOL=.*,LIBTOOL=libtool,g ${D}${datadir}/build-1/apr_rules.mk
|
||||
sed -i -e 's,${DEBUG_PREFIX_MAP},,g' \
|
||||
-e 's,${STAGING_DIR_HOST},,g' ${D}${datadir}/build-1/apr_rules.mk
|
||||
sed -i -e 's,${STAGING_DIR_HOST},,g' \
|
||||
-e 's,APR_SOURCE_DIR=.*,APR_SOURCE_DIR=,g' \
|
||||
-e 's,APR_BUILD_DIR=.*,APR_BUILD_DIR=,g' ${D}${bindir}/apr-1-config
|
||||
}
|
||||
|
||||
SSTATE_SCAN_FILES += "apr_rules.mk libtool"
|
||||
|
||||
SYSROOT_PREPROCESS_FUNCS += "apr_sysroot_preprocess"
|
||||
|
||||
apr_sysroot_preprocess () {
|
||||
d=${SYSROOT_DESTDIR}${datadir}/apr
|
||||
install -d $d/
|
||||
cp ${S}/build/apr_rules.mk $d/
|
||||
sed -i s,apr_builddir=.*,apr_builddir=,g $d/apr_rules.mk
|
||||
sed -i s,apr_builders=.*,apr_builders=,g $d/apr_rules.mk
|
||||
sed -i s,LIBTOOL=.*,LIBTOOL=libtool,g $d/apr_rules.mk
|
||||
sed -i s,\$\(apr_builders\),${STAGING_DATADIR}/apr/,g $d/apr_rules.mk
|
||||
cp ${S}/build/mkdir.sh $d/
|
||||
cp ${S}/build/make_exports.awk $d/
|
||||
cp ${S}/build/make_var_export.awk $d/
|
||||
cp ${S}/libtool ${SYSROOT_DESTDIR}${datadir}/build-1/libtool
|
||||
}
|
||||
|
||||
do_compile_ptest() {
|
||||
cd ${S}/test
|
||||
oe_runmake
|
||||
}
|
||||
|
||||
do_install_ptest() {
|
||||
t=${D}${PTEST_PATH}/test
|
||||
mkdir -p $t/.libs
|
||||
cp -r ${S}/test/data $t/
|
||||
cp -r ${S}/test/.libs/*.so $t/.libs/
|
||||
cp ${S}/test/proc_child $t/
|
||||
cp ${S}/test/readchild $t/
|
||||
cp ${S}/test/sockchild $t/
|
||||
cp ${S}/test/sockperf $t/
|
||||
cp ${S}/test/testall $t/
|
||||
cp ${S}/test/tryread $t/
|
||||
}
|
||||
|
||||
export CONFIG_SHELL="/bin/bash"
|
||||
@@ -0,0 +1,31 @@
|
||||
# Copyright (C) 2015 Khem Raj <raj.khem@gmail.com>
|
||||
# Released under the MIT license (see COPYING.MIT for the terms)
|
||||
|
||||
SUMMARY = "Glibc hierarchical argument parsing standalone library"
|
||||
DESCRIPTION = "Standalone version of arguments parsing functions from GLIBC"
|
||||
HOMEPAGE = "https://github.com/ericonr/argp-standalone"
|
||||
LICENSE = "LGPL-2.1-only"
|
||||
LIC_FILES_CHKSUM = "file://argp.h;beginline=1;endline=20;md5=464f2cfb1c35a5123f9e309d7afd79f8"
|
||||
SECTION = "libs"
|
||||
|
||||
SRC_URI = "git://github.com/ericonr/argp-standalone;branch=master;protocol=https \
|
||||
file://out_of_tree_build.patch \
|
||||
"
|
||||
SRCREV = "e5fe9ad9e83e6765cf8fa787f903d4c6792338b5"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit autotools
|
||||
|
||||
CFLAGS += "-fPIC -U__OPTIMIZE__"
|
||||
|
||||
DEV_PKG_DEPENDENCY = ""
|
||||
RDEPENDS:${PN}-staticdev = ""
|
||||
|
||||
do_install() {
|
||||
install -D -m 0644 ${B}/libargp.a ${D}${libdir}/libargp.a
|
||||
install -D -m 0644 ${S}/argp.h ${D}${includedir}/argp.h
|
||||
}
|
||||
#
|
||||
# We will skip parsing for non-musl systems
|
||||
#
|
||||
COMPATIBLE_HOST = ".*-musl.*"
|
||||
@@ -0,0 +1,19 @@
|
||||
Fix the testsuite to built out of tree
|
||||
in OE S != B
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
Upstream-Status: Submitted [https://github.com/ericonr/argp-standalone/pull/9]
|
||||
Index: argp-standalone-1.3/testsuite/Makefile.am
|
||||
===================================================================
|
||||
--- argp-standalone-1.3.orig/testsuite/Makefile.am
|
||||
+++ argp-standalone-1.3/testsuite/Makefile.am
|
||||
@@ -5,7 +5,8 @@ TS_ALL = $(TS_PROGS) $(TS_SH)
|
||||
|
||||
noinst_PROGRAMS = $(TS_PROGS) ex1 ex3 ex4
|
||||
|
||||
-LDADD = ../libargp.a
|
||||
+AM_CPPFLAGS = -I$(top_srcdir)
|
||||
+LDADD = $(top_builddir)/libargp.a
|
||||
|
||||
EXTRA_DIST = $(TS_SH) run-tests
|
||||
CLEANFILES = test.out
|
||||
@@ -0,0 +1,41 @@
|
||||
SUMMARY = "GNU Aspell spell-checker"
|
||||
|
||||
DESCRIPTION = "Spell checker designed to eventually replace Ispell. \
|
||||
It can either be used as a library or as an independent spell checker. \
|
||||
Its main feature is that it does a superior job of suggesting possible \
|
||||
replacements for a misspelled word than just about any other spell \
|
||||
checker out there for the English language."
|
||||
|
||||
SECTION = "console/utils"
|
||||
|
||||
HOMEPAGE = "http://aspell.net/"
|
||||
|
||||
LICENSE = "LGPL-2.0-only | LGPL-2.1-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34"
|
||||
|
||||
SRC_URI = "${GNU_MIRROR}/aspell/aspell-${PV}.tar.gz \
|
||||
file://CVE-2019-25051.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "012fa9209203ae4e5a61c2a668fd10e3"
|
||||
SRC_URI[sha256sum] = "f9b77e515334a751b2e60daab5db23499e26c9209f5e7b7443b05235ad0226f2"
|
||||
|
||||
PACKAGECONFIG ??= ""
|
||||
PACKAGECONFIG[curses] = "--enable-curses,--disable-curses,ncurses"
|
||||
|
||||
PACKAGES += "libaspell libpspell aspell-utils"
|
||||
|
||||
RDEPENDS:${PN}-utils += "perl"
|
||||
|
||||
FILES:libaspell = "${libdir}/libaspell.so.* ${libdir}/aspell*"
|
||||
FILES:aspell-utils = "${bindir}/word-list-compress ${bindir}/aspell-import ${bindir}/run-with-aspell ${bindir}/pre*"
|
||||
FILES:${PN} = "${bindir}/aspell"
|
||||
FILES:libpspell = "${libdir}/libpspell.so.*"
|
||||
FILES:${PN}-dev += "${bindir}/pspell-config"
|
||||
|
||||
ARM_INSTRUCTION_SET:armv4 = "arm"
|
||||
ARM_INSTRUCTION_SET:armv5 = "arm"
|
||||
ARM_INSTRUCTION_SET:armv6 = "arm"
|
||||
|
||||
inherit autotools-brokensep gettext texinfo binconfig-disabled
|
||||
|
||||
BINCONFIG = "${bindir}/pspell-config"
|
||||
@@ -0,0 +1,101 @@
|
||||
From 0718b375425aad8e54e1150313b862e4c6fd324a Mon Sep 17 00:00:00 2001
|
||||
From: Kevin Atkinson <kevina@gnu.org>
|
||||
Date: Sat, 21 Dec 2019 20:32:47 +0000
|
||||
Subject: [PATCH] objstack: assert that the alloc size will fit within a chunk
|
||||
to prevent a buffer overflow
|
||||
|
||||
Bug found using OSS-Fuze.
|
||||
|
||||
Upstream-Status: Backport
|
||||
[https://github.com/gnuaspell/aspell/commit/0718b375425aad8e54e1150313b862e4c6fd324a]
|
||||
CVE: CVE-2019-25051
|
||||
Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com>
|
||||
---
|
||||
common/objstack.hpp | 18 ++++++++++++++----
|
||||
1 file changed, 14 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/common/objstack.hpp b/common/objstack.hpp
|
||||
index 3997bf7..bd97ccd 100644
|
||||
--- a/common/objstack.hpp
|
||||
+++ b/common/objstack.hpp
|
||||
@@ -5,6 +5,7 @@
|
||||
#include "parm_string.hpp"
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
+#include <stddef.h>
|
||||
|
||||
namespace acommon {
|
||||
|
||||
@@ -26,6 +27,12 @@ class ObjStack
|
||||
byte * temp_end;
|
||||
void setup_chunk();
|
||||
void new_chunk();
|
||||
+ bool will_overflow(size_t sz) const {
|
||||
+ return offsetof(Node,data) + sz > chunk_size;
|
||||
+ }
|
||||
+ void check_size(size_t sz) {
|
||||
+ assert(!will_overflow(sz));
|
||||
+ }
|
||||
|
||||
ObjStack(const ObjStack &);
|
||||
void operator=(const ObjStack &);
|
||||
@@ -56,7 +63,7 @@ class ObjStack
|
||||
void * alloc_bottom(size_t size) {
|
||||
byte * tmp = bottom;
|
||||
bottom += size;
|
||||
- if (bottom > top) {new_chunk(); tmp = bottom; bottom += size;}
|
||||
+ if (bottom > top) {check_size(size); new_chunk(); tmp = bottom; bottom += size;}
|
||||
return tmp;
|
||||
}
|
||||
// This alloc_bottom will insure that the object is aligned based on the
|
||||
@@ -66,7 +73,7 @@ class ObjStack
|
||||
align_bottom(align);
|
||||
byte * tmp = bottom;
|
||||
bottom += size;
|
||||
- if (bottom > top) {new_chunk(); goto loop;}
|
||||
+ if (bottom > top) {check_size(size); new_chunk(); goto loop;}
|
||||
return tmp;
|
||||
}
|
||||
char * dup_bottom(ParmString str) {
|
||||
@@ -79,7 +86,7 @@ class ObjStack
|
||||
// always be aligned as such.
|
||||
void * alloc_top(size_t size) {
|
||||
top -= size;
|
||||
- if (top < bottom) {new_chunk(); top -= size;}
|
||||
+ if (top < bottom) {check_size(size); new_chunk(); top -= size;}
|
||||
return top;
|
||||
}
|
||||
// This alloc_top will insure that the object is aligned based on
|
||||
@@ -88,7 +95,7 @@ class ObjStack
|
||||
{loop:
|
||||
top -= size;
|
||||
align_top(align);
|
||||
- if (top < bottom) {new_chunk(); goto loop;}
|
||||
+ if (top < bottom) {check_size(size); new_chunk(); goto loop;}
|
||||
return top;
|
||||
}
|
||||
char * dup_top(ParmString str) {
|
||||
@@ -117,6 +124,7 @@ class ObjStack
|
||||
void * alloc_temp(size_t size) {
|
||||
temp_end = bottom + size;
|
||||
if (temp_end > top) {
|
||||
+ check_size(size);
|
||||
new_chunk();
|
||||
temp_end = bottom + size;
|
||||
}
|
||||
@@ -131,6 +139,7 @@ class ObjStack
|
||||
} else {
|
||||
size_t s = temp_end - bottom;
|
||||
byte * p = bottom;
|
||||
+ check_size(size);
|
||||
new_chunk();
|
||||
memcpy(bottom, p, s);
|
||||
temp_end = bottom + size;
|
||||
@@ -150,6 +159,7 @@ class ObjStack
|
||||
} else {
|
||||
size_t s = temp_end - bottom;
|
||||
byte * p = bottom;
|
||||
+ check_size(size);
|
||||
new_chunk();
|
||||
memcpy(bottom, p, s);
|
||||
temp_end = bottom + size;
|
||||
@@ -0,0 +1,48 @@
|
||||
SUMMARY = "Assistive Technology Service Provider Interface (dbus core)"
|
||||
|
||||
DESCRIPTION = "It provides a Service Provider Interface for the Assistive Technologies available on the GNOME platform and a library against which applications can be linked."
|
||||
|
||||
HOMEPAGE = "https://wiki.linuxfoundation.org/accessibility/d-bus"
|
||||
BUGTRACKER = "http://bugzilla.gnome.org/"
|
||||
LICENSE = "LGPL-2.1-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
|
||||
|
||||
MAJ_VER = "${@oe.utils.trim_version("${PV}", 2)}"
|
||||
|
||||
SRC_URI = "${GNOME_MIRROR}/${BPN}/${MAJ_VER}/${BPN}-${PV}.tar.xz"
|
||||
|
||||
SRC_URI[sha256sum] = "37316df43ca9989ce539d54cf429a768c28bb38a0b34950beadd0421827edf55"
|
||||
|
||||
DEPENDS = " \
|
||||
dbus \
|
||||
glib-2.0 \
|
||||
glib-2.0-native \
|
||||
libxml2 \
|
||||
${@'python3-sphinx-native' if d.getVar('GIDOCGEN_ENABLED') == 'True' else ''} \
|
||||
"
|
||||
|
||||
# For backwards compatibility
|
||||
PROVIDES += "atk at-spi2-atk"
|
||||
RPROVIDES:${PN} += "atk at-spi2-atk"
|
||||
|
||||
inherit meson gi-docgen gettext systemd pkgconfig upstream-version-is-even gobject-introspection
|
||||
|
||||
EXTRA_OEMESON = " -Dsystemd_user_dir=${systemd_user_unitdir} \
|
||||
-Ddbus_daemon=${bindir}/dbus-daemon"
|
||||
|
||||
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}"
|
||||
PACKAGECONFIG[x11] = "-Dx11=enabled,-Dx11=disabled,virtual/libx11 libxi libxtst"
|
||||
|
||||
GIDOCGEN_MESON_OPTION = "docs"
|
||||
GIR_MESON_OPTION = 'introspection'
|
||||
GIR_MESON_ENABLE_FLAG = 'enabled'
|
||||
GIR_MESON_DISABLE_FLAG = 'disabled'
|
||||
|
||||
FILES:${PN} += "${libdir}/gnome-settings-daemon-3.0/gtk-modules/at-spi2-atk.desktop \
|
||||
${libdir}/gtk-2.0/modules/libatk-bridge.so \
|
||||
${datadir}/dbus-1/services/*.service \
|
||||
${datadir}/dbus-1/accessibility-services/*.service \
|
||||
${datadir}/defaults/at-spi2 \
|
||||
${systemd_user_unitdir}/at-spi-dbus-bus.service \
|
||||
"
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
From 1a5671a4eb13b81b98c3e71f00370781563f66d8 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Thu, 10 Nov 2022 17:57:24 -0800
|
||||
Subject: [PATCH] chacl: Use portable version of dirent and readdir
|
||||
|
||||
Using 64bit versions on 32bit architectures should be enabled with
|
||||
--enable-largefile, this makes it portable across musl and glibc
|
||||
|
||||
Upstream-Status: Backport [https://git.savannah.nongnu.org/cgit/acl.git/commit/?id=2b42f64737adf6a2ddd491213580d6e9cdd2f5af]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
tools/chacl.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/tools/chacl.c b/tools/chacl.c
|
||||
index 525a7ff..8fff875 100644
|
||||
--- a/tools/chacl.c
|
||||
+++ b/tools/chacl.c
|
||||
@@ -320,7 +320,7 @@ walk_dir(acl_t acl, acl_t dacl, const char *fname)
|
||||
{
|
||||
int failed = 0;
|
||||
DIR *dir;
|
||||
- struct dirent64 *d;
|
||||
+ struct dirent *d;
|
||||
char *name;
|
||||
|
||||
if ((dir = opendir(fname)) == NULL) {
|
||||
@@ -332,7 +332,7 @@ walk_dir(acl_t acl, acl_t dacl, const char *fname)
|
||||
return(0); /* got a file, not an error */
|
||||
}
|
||||
|
||||
- while ((d = readdir64(dir)) != NULL) {
|
||||
+ while ((d = readdir(dir)) != NULL) {
|
||||
/* skip "." and ".." entries */
|
||||
if (strcmp(d->d_name, ".") == 0 || strcmp(d->d_name, "..") == 0)
|
||||
continue;
|
||||
--
|
||||
2.38.1
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
From 9e08219e0e99ee2589cf35fa8d52cef3515accce Mon Sep 17 00:00:00 2001
|
||||
From: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
Date: Thu, 12 Dec 2019 15:47:49 +0100
|
||||
Subject: [PATCH] test: patch out failing bits
|
||||
|
||||
I have confirmed on the host distro (Ubuntu 18.04) that they
|
||||
fail as well; upstream probably haven't noticed because the
|
||||
test is only executed under sudo.
|
||||
|
||||
Upstream-Status: Inappropriate [disabling tests instead of fixing them properly]
|
||||
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
---
|
||||
test/root/permissions.test | 13 -------------
|
||||
1 file changed, 13 deletions(-)
|
||||
|
||||
diff --git a/test/root/permissions.test b/test/root/permissions.test
|
||||
index 8f8f825..21e8a95 100644
|
||||
--- a/test/root/permissions.test
|
||||
+++ b/test/root/permissions.test
|
||||
@@ -50,10 +50,6 @@ User daemon is a member in the owning group, which has only read access.
|
||||
Verify this.
|
||||
|
||||
$ su daemon
|
||||
- $ cat f
|
||||
- > root
|
||||
- > bin
|
||||
-
|
||||
$ echo daemon >> f
|
||||
>~ .*f: Permission denied$
|
||||
|
||||
@@ -146,8 +142,6 @@ the owning group, he should still have no write access.
|
||||
$ setfacl -x g:daemon f
|
||||
|
||||
$ su daemon
|
||||
- $ echo daemon4 >> f
|
||||
- >~ .*f: Permission denied$
|
||||
|
||||
|
||||
Change the owning group. The other permissions should now grant user
|
||||
@@ -158,12 +152,6 @@ daemon write access.
|
||||
|
||||
$ su daemon
|
||||
$ echo daemon5 >> f
|
||||
- $ cat f
|
||||
- > root
|
||||
- > bin
|
||||
- > daemon
|
||||
- > daemon2
|
||||
- > daemon5
|
||||
|
||||
|
||||
Verify that permissions in separate matching ACL entries do not
|
||||
@@ -173,7 +161,6 @@ accumulate.
|
||||
$ setfacl -m g:bin:r,g:daemon:w f
|
||||
|
||||
$ su daemon
|
||||
- $ : < f
|
||||
$ : > f
|
||||
$ : <> f
|
||||
>~ .*f: Permission denied$
|
||||
--
|
||||
2.17.1
|
||||
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
From 39d332a8801de5d9ef09dacb3dba85c208b7b2ad Mon Sep 17 00:00:00 2001
|
||||
From: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
Date: Thu, 12 Dec 2019 13:45:52 +0100
|
||||
Subject: [PATCH] tests: do not hardcode the build path into a helper library
|
||||
|
||||
Upstream-Status: Inappropriate [oe-core specific]
|
||||
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
---
|
||||
test/Makemodule.am | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/test/Makemodule.am b/test/Makemodule.am
|
||||
index 17d4927..015de7f 100644
|
||||
--- a/test/Makemodule.am
|
||||
+++ b/test/Makemodule.am
|
||||
@@ -30,7 +30,7 @@ EXTRA_DIST += \
|
||||
check_LTLIBRARIES = libtestlookup.la
|
||||
|
||||
libtestlookup_la_SOURCES = test/test_passwd.c test/test_group.c
|
||||
-libtestlookup_la_CFLAGS = -DBASEDIR=\"$(abs_srcdir)\"
|
||||
+libtestlookup_la_CFLAGS = -DBASEDIR=\"/tmp/acl-ptest\"
|
||||
libtestlookup_la_LDFLAGS = -rpath $(abs_builddir)
|
||||
|
||||
AM_TESTS_ENVIRONMENT = PATH="$(abs_top_builddir):$$PATH";
|
||||
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
#This script is used to run acl test suites
|
||||
|
||||
#umask 077
|
||||
|
||||
mkdir -p /tmp/acl-ptest/test
|
||||
cp test/test.* /tmp/acl-ptest/test
|
||||
|
||||
set +e
|
||||
make test-suite.log
|
||||
exitcode=$?
|
||||
if [ $exitcode -ne 0 -a -e test-suite.log ]; then
|
||||
cat test-suite.log
|
||||
fi
|
||||
exit $exitcode
|
||||
@@ -0,0 +1,86 @@
|
||||
SUMMARY = "Utilities for managing POSIX Access Control Lists"
|
||||
DESCRIPTION = "ACL allows you to provide different levels of access to files \
|
||||
and folders for different users."
|
||||
|
||||
HOMEPAGE = "http://savannah.nongnu.org/projects/acl/"
|
||||
BUGTRACKER = "http://savannah.nongnu.org/bugs/?group=acl"
|
||||
|
||||
SECTION = "libs"
|
||||
|
||||
LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later"
|
||||
LICENSE:${PN} = "GPL-2.0-or-later"
|
||||
LICENSE:lib${BPN} = "LGPL-2.1-or-later"
|
||||
LIC_FILES_CHKSUM = "file://doc/COPYING;md5=c781d70ed2b4d48995b790403217a249 \
|
||||
file://doc/COPYING.LGPL;md5=9e9a206917f8af112da634ce3ab41764"
|
||||
|
||||
DEPENDS = "attr"
|
||||
|
||||
SRC_URI = "${SAVANNAH_GNU_MIRROR}/acl/${BP}.tar.gz \
|
||||
file://run-ptest \
|
||||
file://0001-tests-do-not-hardcode-the-build-path-into-a-helper-l.patch \
|
||||
file://0001-test-patch-out-failing-bits.patch \
|
||||
file://0001-chacl-Use-portable-version-of-dirent-and-readdir.patch \
|
||||
"
|
||||
|
||||
SRC_URI[sha256sum] = "760c61c68901b37fdd5eefeeaf4c0c7a26bdfdd8ac747a1edff1ce0e243c11af"
|
||||
|
||||
inherit autotools gettext ptest
|
||||
|
||||
EXTRA_OECONF += "--enable-largefile"
|
||||
|
||||
PACKAGES =+ "lib${BPN}"
|
||||
|
||||
FILES:lib${BPN} = "${libdir}/lib*${SOLIBS}"
|
||||
|
||||
PTEST_BUILD_HOST_FILES = "builddefs"
|
||||
PTEST_BUILD_HOST_PATTERN = "^RPM"
|
||||
|
||||
do_compile_ptest() {
|
||||
oe_runmake libtestlookup.la
|
||||
}
|
||||
|
||||
do_install_ptest() {
|
||||
cp -rf ${S}/test/ ${D}${PTEST_PATH}
|
||||
cp -rf ${S}/build-aux/ ${D}${PTEST_PATH}
|
||||
mkdir -p ${D}${PTEST_PATH}/.libs
|
||||
cp -rf ${B}/.libs/libtestlookup* ${D}${PTEST_PATH}/.libs
|
||||
cp ${B}/Makefile ${D}${PTEST_PATH}
|
||||
|
||||
sed -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \
|
||||
-e 's|${DEBUG_PREFIX_MAP}||g' \
|
||||
-e 's:${HOSTTOOLS_DIR}/::g' \
|
||||
-e 's:${RECIPE_SYSROOT_NATIVE}::g' \
|
||||
-e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \
|
||||
-i ${D}${PTEST_PATH}/Makefile
|
||||
|
||||
sed -i "s|^srcdir =.*|srcdir = \.|g" ${D}${PTEST_PATH}/Makefile
|
||||
sed -i "s|^abs_srcdir =.*|abs_srcdir = \.|g" ${D}${PTEST_PATH}/Makefile
|
||||
sed -i "s|^abs_top_srcdir =.*|abs_top_srcdir = \.\.|g" ${D}${PTEST_PATH}/Makefile
|
||||
sed -i "s|^Makefile:.*|Makefile:|g" ${D}${PTEST_PATH}/Makefile
|
||||
|
||||
rm ${D}${PTEST_PATH}/.libs/libtestlookup.lai
|
||||
}
|
||||
|
||||
do_install_ptest:append:libc-musl() {
|
||||
sed -i -e '/test\/misc.test/d' ${D}${PTEST_PATH}/Makefile
|
||||
}
|
||||
|
||||
RDEPENDS:${PN}-ptest = "acl \
|
||||
bash \
|
||||
coreutils \
|
||||
perl \
|
||||
perl-module-constant \
|
||||
perl-module-filehandle \
|
||||
perl-module-getopt-std \
|
||||
perl-module-posix \
|
||||
shadow \
|
||||
make \
|
||||
gawk \
|
||||
e2fsprogs-mke2fs \
|
||||
perl-module-cwd \
|
||||
perl-module-file-basename \
|
||||
perl-module-file-path \
|
||||
perl-module-file-spec \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,71 @@
|
||||
SUMMARY = "Utilities for manipulating filesystem extended attributes"
|
||||
DESCRIPTION = "Implement the ability for a user to attach name:value pairs to objects within the XFS filesystem."
|
||||
|
||||
HOMEPAGE = "http://savannah.nongnu.org/projects/attr/"
|
||||
SECTION = "libs"
|
||||
|
||||
DEPENDS = "virtual/libintl"
|
||||
|
||||
LICENSE = "LGPL-2.1-or-later & GPL-2.0-or-later"
|
||||
LICENSE:${PN} = "GPL-2.0-or-later"
|
||||
LICENSE:lib${BPN} = "LGPL-2.1-or-later"
|
||||
LIC_FILES_CHKSUM = "file://doc/COPYING;md5=2d0aa14b3fce4694e4f615e30186335f \
|
||||
file://doc/COPYING.LGPL;md5=b8d31f339300bc239d73461d68e77b9c \
|
||||
file://tools/attr.c;endline=17;md5=be0403261f0847e5f43ed5b08d19593c \
|
||||
file://libattr/libattr.c;endline=17;md5=7970f77049f8fa1199fff62a7ab724fb"
|
||||
|
||||
SRC_URI = "${SAVANNAH_GNU_MIRROR}/attr/${BP}.tar.gz \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
inherit ptest update-alternatives autotools gettext
|
||||
|
||||
PACKAGES =+ "lib${BPN}"
|
||||
|
||||
FILES:lib${BPN} = "${libdir}/lib*${SOLIBS} ${sysconfdir}"
|
||||
|
||||
ALTERNATIVE_PRIORITY = "100"
|
||||
ALTERNATIVE:${PN} = "setfattr"
|
||||
ALTERNATIVE_TARGET[setfattr] = "${bindir}/setfattr"
|
||||
|
||||
PTEST_BUILD_HOST_FILES = "builddefs"
|
||||
PTEST_BUILD_HOST_PATTERN = "^RPM"
|
||||
|
||||
do_install_ptest() {
|
||||
cp ${B}/Makefile ${D}${PTEST_PATH}
|
||||
sed -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \
|
||||
-e 's|${DEBUG_PREFIX_MAP}||g' \
|
||||
-e 's:${HOSTTOOLS_DIR}/::g' \
|
||||
-e 's:${RECIPE_SYSROOT_NATIVE}::g' \
|
||||
-e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \
|
||||
-i ${D}${PTEST_PATH}/Makefile
|
||||
|
||||
sed -i "s|^srcdir =.*|srcdir = \.|g" ${D}${PTEST_PATH}/Makefile
|
||||
sed -i "s|^abs_srcdir =.*|abs_srcdir = \.|g" ${D}${PTEST_PATH}/Makefile
|
||||
sed -i "s|^abs_top_srcdir =.*|abs_top_srcdir = \.\.|g" ${D}${PTEST_PATH}/Makefile
|
||||
sed -i "s|^Makefile:.*|Makefile:|g" ${D}${PTEST_PATH}/Makefile
|
||||
cp -rf ${S}/build-aux/ ${D}${PTEST_PATH}
|
||||
cp -rf ${S}/test/ ${D}${PTEST_PATH}
|
||||
}
|
||||
|
||||
do_install_ptest:append:libc-musl() {
|
||||
sed -i -e 's|f: Operation n|f: N|g' ${D}${PTEST_PATH}/test/attr.test
|
||||
}
|
||||
|
||||
RDEPENDS:${PN}-ptest = "attr \
|
||||
bash \
|
||||
coreutils \
|
||||
perl-module-constant \
|
||||
perl-module-filehandle \
|
||||
perl-module-getopt-std \
|
||||
perl-module-posix \
|
||||
make \
|
||||
perl \
|
||||
gawk \
|
||||
perl-module-cwd \
|
||||
perl-module-file-basename \
|
||||
perl-module-file-path \
|
||||
perl-module-file-spec \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
set +e
|
||||
make test-suite.log
|
||||
exitcode=$?
|
||||
if [ $exitcode -ne 0 -a -e test-suite.log ]; then
|
||||
cat test-suite.log
|
||||
fi
|
||||
exit $exitcode
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
require attr.inc
|
||||
|
||||
SRC_URI[sha256sum] = "bae1c6949b258a0d68001367ce0c741cebdacdd3b62965d17e5eb23cd78adaf8"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,39 @@
|
||||
SUMMARY = "Programmable Completion for Bash 4"
|
||||
DESCRIPTION = "Collection of command line command completions for the Bash shell, \
|
||||
collection of helper functions to assist in creating new completions, \
|
||||
and set of facilities for loading completions automatically on demand, as well \
|
||||
as installing them."
|
||||
|
||||
HOMEPAGE = "https://github.com/scop/bash-completion"
|
||||
BUGTRACKER = "https://github.com/scop/bash-completion/issues"
|
||||
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
||||
|
||||
SECTION = "console/utils"
|
||||
|
||||
SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/${BPN}-${PV}.tar.xz"
|
||||
|
||||
SRC_URI[md5sum] = "2514c6772d0de6254758b98c53f91861"
|
||||
SRC_URI[sha256sum] = "73a8894bad94dee83ab468fa09f628daffd567e8bef1a24277f1e9a0daf911ac"
|
||||
GITHUB_BASE_URI = "https://github.com/scop/bash-completion/releases"
|
||||
|
||||
PARALLEL_MAKE = ""
|
||||
|
||||
inherit autotools github-releases
|
||||
|
||||
do_install:append() {
|
||||
# compatdir
|
||||
install -d ${D}${sysconfdir}/bash_completion.d/
|
||||
echo '. ${datadir}/${BPN}/bash_completion' >${D}${sysconfdir}/bash_completion
|
||||
|
||||
}
|
||||
|
||||
RDEPENDS:${PN} = "bash"
|
||||
|
||||
# Some recipes are providing ${PN}-bash-completion packages
|
||||
PACKAGES =+ "${PN}-extra"
|
||||
FILES:${PN}-extra = "${datadir}/${BPN}/completions/ \
|
||||
${datadir}/${BPN}/helpers/"
|
||||
|
||||
BBCLASSEXTEND = "nativesdk"
|
||||
@@ -0,0 +1,26 @@
|
||||
SUMMARY = "Tools to generate block map (AKA bmap) and flash images using bmap"
|
||||
DESCRIPTION = "Bmap-tools - tools to generate block map (AKA bmap) and flash images using \
|
||||
bmap. Bmaptool is a generic tool for creating the block map (bmap) for a file, \
|
||||
and copying files using the block map. The idea is that large file containing \
|
||||
unused blocks, like raw system image files, can be copied or flashed a lot \
|
||||
faster with bmaptool than with traditional tools like "dd" or "cp"."
|
||||
HOMEPAGE = "https://github.com/01org/bmap-tools"
|
||||
SECTION = "console/utils"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||
|
||||
SRC_URI = "git://github.com/intel/${BPN};branch=main;protocol=https"
|
||||
|
||||
SRCREV = "c0673962a8ec1624b5189dc1d24f33fe4f06785a"
|
||||
S = "${WORKDIR}/git"
|
||||
BASEVER = "3.6"
|
||||
PV = "${BASEVER}+git${SRCPV}"
|
||||
|
||||
UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
|
||||
|
||||
# Need df from coreutils
|
||||
RDEPENDS:${PN} = "python3-core python3-compression python3-mmap python3-setuptools python3-fcntl python3-six coreutils"
|
||||
|
||||
inherit setuptools3
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,20 @@
|
||||
# The Boost web site provides free peer-reviewed portable
|
||||
# C++ source libraries. The emphasis is on libraries which
|
||||
# work well with the C++ Standard Library. The libraries are
|
||||
# intended to be widely useful, and are in regular use by
|
||||
# thousands of programmers across a broad spectrum of applications.
|
||||
HOMEPAGE = "http://www.boost.org/"
|
||||
LICENSE = "BSL-1.0 & MIT & Python-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE_1_0.txt;md5=e4224ccaecb14d942c71d31bef20d78c"
|
||||
|
||||
BOOST_VER = "${@"_".join(d.getVar("PV").split("."))}"
|
||||
BOOST_MAJ = "${@"_".join(d.getVar("PV").split(".")[0:2])}"
|
||||
BOOST_P = "boost_${BOOST_VER}"
|
||||
|
||||
SRC_URI = "https://boostorg.jfrog.io/artifactory/main/release/${PV}/source/${BOOST_P}.tar.bz2"
|
||||
SRC_URI[sha256sum] = "a6e1ab9b0860e6a2881dd7b21fe9f737a095e5f33a3a874afc6a345228597ee6"
|
||||
|
||||
UPSTREAM_CHECK_URI = "http://www.boost.org/users/download/"
|
||||
UPSTREAM_CHECK_REGEX = "release/(?P<pver>.*)/source/"
|
||||
|
||||
S = "${WORKDIR}/${BOOST_P}"
|
||||
@@ -0,0 +1,28 @@
|
||||
SUMMARY = "Boost.Build"
|
||||
DESCRIPTION = "B2 makes it easy to build C++ projects, everywhere."
|
||||
HOMEPAGE = "https://github.com/boostorg/build"
|
||||
SECTION = "devel"
|
||||
|
||||
LICENSE = "BSL-1.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e4224ccaecb14d942c71d31bef20d78c"
|
||||
|
||||
SRC_URI = "git://github.com/boostorg/build;protocol=https;branch=master"
|
||||
SRCREV = "9f488e003a568dffe0caed05d86ed6f1a8f8c7f3"
|
||||
PE = "1"
|
||||
|
||||
UPSTREAM_CHECK_GITTAGREGEX = "boost-(?P<pver>(\d+(\.\d+)+))"
|
||||
|
||||
inherit native
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
do_compile() {
|
||||
./bootstrap.sh
|
||||
}
|
||||
|
||||
do_install() {
|
||||
HOME=/var/run ./b2 install --prefix=${prefix} staging-prefix=${D}${prefix}
|
||||
}
|
||||
|
||||
# The build is either release mode (pre-stripped) or debug (-O0).
|
||||
INSANE_SKIP:${PN} = "already-stripped"
|
||||
@@ -0,0 +1,226 @@
|
||||
SUMMARY = "Free peer-reviewed portable C++ source libraries"
|
||||
DESCRIPTION = "Provides free peer-reviewed portable C++ source libraries. The emphasis is on libraries which work well with the C++ \
|
||||
Standard Library. One goal is to establish 'existing practice' and \
|
||||
provide reference implementations so that the Boost libraries are suitable for eventual standardization. Some of the libraries have already been proposed for inclusion in the C++ Standards Committee's \
|
||||
upcoming C++ Standard Library Technical Report."
|
||||
SECTION = "libs"
|
||||
DEPENDS = "boost-build-native zlib bzip2"
|
||||
|
||||
CVE_PRODUCT = "boost:boost"
|
||||
|
||||
ARM_INSTRUCTION_SET:armv4 = "arm"
|
||||
ARM_INSTRUCTION_SET:armv5 = "arm"
|
||||
|
||||
B = "${WORKDIR}/build"
|
||||
do_configure[cleandirs] = "${B}"
|
||||
|
||||
BOOST_LIBS = "\
|
||||
atomic \
|
||||
chrono \
|
||||
container \
|
||||
context \
|
||||
contract \
|
||||
coroutine \
|
||||
date_time \
|
||||
exception \
|
||||
fiber \
|
||||
filesystem \
|
||||
graph \
|
||||
headers \
|
||||
iostreams \
|
||||
json \
|
||||
log \
|
||||
math \
|
||||
program_options \
|
||||
random \
|
||||
regex \
|
||||
serialization \
|
||||
system \
|
||||
test \
|
||||
thread \
|
||||
timer \
|
||||
type_erasure \
|
||||
url \
|
||||
wave \
|
||||
"
|
||||
|
||||
# optional libraries
|
||||
PACKAGECONFIG ??= "locale python"
|
||||
PACKAGECONFIG[locale] = ",,icu"
|
||||
PACKAGECONFIG[graph_parallel] = ",,,boost-mpi mpich"
|
||||
PACKAGECONFIG[mpi] = ",,mpich"
|
||||
PACKAGECONFIG[python] = ",,python3"
|
||||
|
||||
BOOST_LIBS += "\
|
||||
${@bb.utils.filter('PACKAGECONFIG', 'locale python', d)} \
|
||||
${@bb.utils.contains('PACKAGECONFIG', 'graph_parallel', 'graph_parallel mpi', \
|
||||
bb.utils.filter('PACKAGECONFIG', 'mpi', d), d)} \
|
||||
"
|
||||
|
||||
inherit python3-dir
|
||||
PYTHON_ROOT = "${STAGING_DIR_HOST}/${prefix}"
|
||||
|
||||
# Make a package for each library, plus -dev
|
||||
PACKAGES = "${PN}-dbg ${BOOST_PACKAGES}"
|
||||
python __anonymous () {
|
||||
packages = []
|
||||
extras = []
|
||||
pn = d.getVar("PN")
|
||||
mlprefix = d.getVar("MLPREFIX")
|
||||
for lib in d.getVar('BOOST_LIBS').split():
|
||||
extras.append("--with-%s" % lib)
|
||||
pkg = "boost-%s" % (lib.replace("_", "-"))
|
||||
if "-native" in pn:
|
||||
pkg = pkg + "-native"
|
||||
packages.append(mlprefix + pkg)
|
||||
if not d.getVar("FILES:%s" % pkg):
|
||||
d.setVar("FILES:%s%s" % (mlprefix, pkg), "${libdir}/libboost_%s*.so.*" % lib)
|
||||
else:
|
||||
d.setVar("FILES:%s%s" % (mlprefix, pkg), d.getVar("FILES:%s" % pkg))
|
||||
|
||||
d.setVar("BOOST_PACKAGES", " ".join(packages))
|
||||
d.setVar("BJAM_EXTRA", " ".join(extras))
|
||||
}
|
||||
|
||||
# Override the contents of specific packages
|
||||
FILES:${PN}-graph_parallel = "${libdir}/libboost_graph_parallel.so.*"
|
||||
FILES:${PN}-locale = "${libdir}/libboost_locale.so.*"
|
||||
FILES:${PN}-mpi = "${libdir}/mpi.so ${libdir}/libboost_mpi*.so.*"
|
||||
FILES:boost-serialization = "${libdir}/libboost_serialization*.so.* \
|
||||
${libdir}/libboost_wserialization*.so.*"
|
||||
FILES:boost-test = "${libdir}/libboost_prg_exec_monitor*.so.* \
|
||||
${libdir}/libboost_unit_test_framework*.so.*"
|
||||
|
||||
# -dev last to pick up the remaining stuff
|
||||
PACKAGES += "${PN}-dev ${PN}-staticdev"
|
||||
FILES:${PN}-dev = "${includedir} ${libdir}/libboost_*.so ${libdir}/cmake"
|
||||
FILES:${PN}-staticdev = "${libdir}/libboost_*.a"
|
||||
|
||||
# "boost" is a metapackage which pulls in all boost librabries
|
||||
PACKAGES += "${PN}"
|
||||
FILES:${PN} = ""
|
||||
ALLOW_EMPTY:${PN} = "1"
|
||||
RRECOMMENDS:${PN} += "${BOOST_PACKAGES}"
|
||||
RRECOMMENDS:${PN}:class-native = ""
|
||||
|
||||
# to avoid GNU_HASH QA errors added LDFLAGS to ARCH; a little bit dirty but at least it works
|
||||
TARGET_CC_ARCH += "${LDFLAGS}"
|
||||
|
||||
# Oh yippee, a new build system, it's sooo cooool I could eat my own
|
||||
# foot. inlining=on lets the compiler choose, I think. At least this
|
||||
# stuff is documented...
|
||||
# NOTE: if you leave <debug-symbols>on then in a debug build the build sys
|
||||
# objcopy will be invoked, and that won't work. Building debug apparently
|
||||
# requires hacking gcc-tools.jam
|
||||
#
|
||||
# Sometimes I wake up screaming. Famous figures are gathered in the nightmare,
|
||||
# Steve Bourne, Larry Wall, the whole of the ANSI C committee. They're just
|
||||
# standing there, waiting, but the truely terrifying thing is what they carry
|
||||
# in their hands. At first sight each seems to bear the same thing, but it is
|
||||
# not so for the forms in their grasp are ever so slightly different one from
|
||||
# the other. Each is twisted in some grotesque way from the other to make each
|
||||
# an unspeakable perversion impossible to perceive without the onset of madness.
|
||||
# True insanity awaits anyone who perceives all of these horrors together.
|
||||
#
|
||||
# Quotation marks, there might be an easier way to do this, but I can't find
|
||||
# it. The problem is that the user.hpp configuration file must receive a
|
||||
# pre-processor macro defined as the appropriate string - complete with "'s
|
||||
# around it. (<> is a possibility here but the danger to that is that the
|
||||
# failure case interprets the < and > as shell redirections, creating
|
||||
# random files in the source tree.)
|
||||
#
|
||||
#bjam: '-DBOOST_PLATFORM_CONFIG=\"config\"'
|
||||
#do_compile: '-sGCC=... '"'-DBOOST_PLATFORM_CONFIG=\"config\"'"
|
||||
SQD = '"'
|
||||
EQD = '\"'
|
||||
#boost.bb: "... '-sGCC=... '${SQD}'-DBOOST_PLATFORM_CONFIG=${EQD}config${EQD}'${SQD} ..."
|
||||
BJAM_CONF = "${SQD}'-DBOOST_PLATFORM_CONFIG=${EQD}boost/config/platform/${TARGET_OS}.hpp${EQD}'${SQD}"
|
||||
|
||||
BJAM_TOOLS = "--ignore-site-config \
|
||||
'-sTOOLS=gcc' \
|
||||
'-sGCC=${CC} '${BJAM_CONF} \
|
||||
'-sGXX=${CXX} '${BJAM_CONF} \
|
||||
'-sGCC_INCLUDE_DIRECTORY=${STAGING_INCDIR}' \
|
||||
'-sGCC_STDLIB_DIRECTORY=${STAGING_LIBDIR}' \
|
||||
'-sBUILD=release <optimization>space <threading>multi <inlining>on <debug-symbols>off' \
|
||||
'-sPYTHON_ROOT=${PYTHON_ROOT}' \
|
||||
'--layout=system' \
|
||||
"
|
||||
|
||||
# use PARALLEL_MAKE to speed up the build
|
||||
BOOST_PARALLEL_MAKE = "${@oe.utils.parallel_make_argument(d, '-j%d')}"
|
||||
BJAM_OPTS = '${BOOST_PARALLEL_MAKE} -d+2 -q \
|
||||
${BJAM_TOOLS} \
|
||||
-sBOOST_BUILD_USER_CONFIG=${WORKDIR}/user-config.jam \
|
||||
-sICU_PATH=${STAGING_EXECPREFIXDIR} \
|
||||
--build-dir=${B} \
|
||||
--disable-icu \
|
||||
${BJAM_EXTRA}'
|
||||
|
||||
# Native compilation of bzip2 isn't working
|
||||
BJAM_OPTS:append:class-native = ' -sNO_BZIP2=1'
|
||||
|
||||
# Adjust the build for x32
|
||||
BJAM_OPTS:append:x86-x32 = " abi=x32 address-model=64"
|
||||
|
||||
# cross compiling for arm fails to detect abi, so provide some help
|
||||
BJAM_OPTS:append:arm = " abi=aapcs architecture=arm"
|
||||
BJAM_OPTS:append:aarch64 = " abi=aapcs address-model=64 architecture=arm"
|
||||
|
||||
do_configure() {
|
||||
cd ${S}
|
||||
cp -f ${S}/boost/config/platform/linux.hpp ${S}/boost/config/platform/linux-gnueabi.hpp
|
||||
|
||||
# D2194:Fixing the failure of "error: duplicate initialization of gcc with the following parameters" during compilation.
|
||||
rm -f ${WORKDIR}/user-config.jam
|
||||
echo 'using gcc : : ${CXX} : <cflags>"${CFLAGS}" <cxxflags>"${CXXFLAGS}" <linkflags>"${LDFLAGS}" ;' >> ${WORKDIR}/user-config.jam
|
||||
|
||||
# If we want Python then we need to tell Boost *exactly* where to find it
|
||||
if ${@bb.utils.contains('BOOST_LIBS', 'python', 'true', 'false', d)}; then
|
||||
echo "using python : ${PYTHON_BASEVERSION} : ${STAGING_DIR_HOST}${bindir}/python3 : ${STAGING_DIR_HOST}${includedir}/${PYTHON_DIR}${PYTHON_ABI} : ${STAGING_DIR_HOST}${libdir}/${PYTHON_DIR} ;" >> ${WORKDIR}/user-config.jam
|
||||
fi
|
||||
|
||||
if ${@bb.utils.contains('BOOST_LIBS', 'mpi', 'true', 'false', d)}; then
|
||||
echo "using mpi : : <find-shared-library>mpi ;" >> ${WORKDIR}/user-config.jam
|
||||
fi
|
||||
|
||||
CC="${BUILD_CC}" CFLAGS="${BUILD_CFLAGS}" ./bootstrap.sh --with-bjam=b2 --with-toolset=gcc
|
||||
|
||||
# Boost can't be trusted to find Python on it's own, so remove any mention
|
||||
# of it from the boost configuration
|
||||
sed -i '/using python/d' ${S}/project-config.jam
|
||||
}
|
||||
|
||||
do_compile() {
|
||||
cd ${S}
|
||||
b2 ${BJAM_OPTS} \
|
||||
--prefix=${prefix} \
|
||||
--exec-prefix=${exec_prefix} \
|
||||
--libdir=${libdir} \
|
||||
--includedir=${includedir} \
|
||||
--debug-configuration
|
||||
}
|
||||
|
||||
do_install() {
|
||||
cd ${S}
|
||||
b2 ${BJAM_OPTS} \
|
||||
--libdir=${D}${libdir} \
|
||||
--includedir=${D}${includedir} \
|
||||
install
|
||||
for lib in ${BOOST_LIBS}; do
|
||||
if [ -e ${D}${libdir}/libboost_${lib}.a ]; then
|
||||
ln -s libboost_${lib}.a ${D}${libdir}/libboost_${lib}-mt.a
|
||||
fi
|
||||
if [ -e ${D}${libdir}/libboost_${lib}.so ]; then
|
||||
ln -s libboost_${lib}.so ${D}${libdir}/libboost_${lib}-mt.so
|
||||
fi
|
||||
done
|
||||
|
||||
# Cmake files reference full paths to image
|
||||
find ${D}${libdir}/cmake -type f | \
|
||||
grep 'cmake$' | \
|
||||
xargs -n 1 sed -e 's,${D}${libdir}/cmake,${libdir}/cmake,' -i
|
||||
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
+176
@@ -0,0 +1,176 @@
|
||||
From 21ba558abe074e7d49bdc931018ce2138e6e8eb5 Mon Sep 17 00:00:00 2001
|
||||
From: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
Date: Tue, 18 Dec 2018 15:42:57 +0100
|
||||
Subject: [PATCH] Don't set up arch/instruction-set flags, we do that
|
||||
|
||||
ourselves
|
||||
|
||||
Upstream-Status: Inappropriate
|
||||
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
|
||||
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
|
||||
---
|
||||
tools/build/src/tools/gcc.jam | 153 ----------------------------------
|
||||
1 file changed, 153 deletions(-)
|
||||
|
||||
diff --git a/tools/build/src/tools/gcc.jam b/tools/build/src/tools/gcc.jam
|
||||
index 726555369..5c5f8ba91 100644
|
||||
--- a/tools/build/src/tools/gcc.jam
|
||||
+++ b/tools/build/src/tools/gcc.jam
|
||||
@@ -1124,156 +1124,3 @@ local rule cpu-flags ( toolset variable : architecture : instruction-set + :
|
||||
<architecture>$(architecture)/<instruction-set>$(instruction-set)
|
||||
: $(values) ;
|
||||
}
|
||||
-
|
||||
-
|
||||
-# Set architecture/instruction-set options.
|
||||
-#
|
||||
-# x86 and compatible
|
||||
-# The 'native' option appeared in gcc 4.2 so we cannot safely use it as default.
|
||||
-# Use i686 instead for 32-bit.
|
||||
-toolset.flags gcc OPTIONS <architecture>x86/<address-model>32/<instruction-set> : -march=i686 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : native : -march=native ;
|
||||
-cpu-flags gcc OPTIONS : x86 : i486 : -march=i486 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : i586 : -march=i586 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : i686 : -march=i686 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : pentium : -march=pentium ;
|
||||
-cpu-flags gcc OPTIONS : x86 : pentium-mmx : -march=pentium-mmx ;
|
||||
-cpu-flags gcc OPTIONS : x86 : pentiumpro : -march=pentiumpro ;
|
||||
-cpu-flags gcc OPTIONS : x86 : pentium2 : -march=pentium2 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : pentium3 : -march=pentium3 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : pentium3m : -march=pentium3m ;
|
||||
-cpu-flags gcc OPTIONS : x86 : pentium-m : -march=pentium-m ;
|
||||
-cpu-flags gcc OPTIONS : x86 : pentium4 : -march=pentium4 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : pentium4m : -march=pentium4m ;
|
||||
-cpu-flags gcc OPTIONS : x86 : prescott : -march=prescott ;
|
||||
-cpu-flags gcc OPTIONS : x86 : nocona : -march=nocona ;
|
||||
-cpu-flags gcc OPTIONS : x86 : core2 : -march=core2 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : conroe : -march=core2 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : conroe-xe : -march=core2 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : conroe-l : -march=core2 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : allendale : -march=core2 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : wolfdale : -march=core2 -msse4.1 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : merom : -march=core2 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : merom-xe : -march=core2 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : kentsfield : -march=core2 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : kentsfield-xe : -march=core2 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : yorksfield : -march=core2 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : penryn : -march=core2 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : corei7 : -march=corei7 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : nehalem : -march=corei7 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : corei7-avx : -march=corei7-avx ;
|
||||
-cpu-flags gcc OPTIONS : x86 : sandy-bridge : -march=corei7-avx ;
|
||||
-cpu-flags gcc OPTIONS : x86 : core-avx-i : -march=core-avx-i ;
|
||||
-cpu-flags gcc OPTIONS : x86 : ivy-bridge : -march=core-avx-i ;
|
||||
-cpu-flags gcc OPTIONS : x86 : haswell : -march=core-avx-i -mavx2 -mfma -mbmi -mbmi2 -mlzcnt ;
|
||||
-cpu-flags gcc OPTIONS : x86 : broadwell : -march=broadwell ;
|
||||
-cpu-flags gcc OPTIONS : x86 : skylake : -march=skylake ;
|
||||
-cpu-flags gcc OPTIONS : x86 : skylake-avx512 : -march=skylake-avx512 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : cannonlake : -march=skylake-avx512 -mavx512vbmi -mavx512ifma -msha ;
|
||||
-cpu-flags gcc OPTIONS : x86 : icelake-client : -march=icelake-client ;
|
||||
-cpu-flags gcc OPTIONS : x86 : icelake-server : -march=icelake-server ;
|
||||
-cpu-flags gcc OPTIONS : x86 : cascadelake : -march=skylake-avx512 -mavx512vnni ;
|
||||
-cpu-flags gcc OPTIONS : x86 : cooperlake : -march=cooperlake ;
|
||||
-cpu-flags gcc OPTIONS : x86 : tigerlake : -march=tigerlake ;
|
||||
-cpu-flags gcc OPTIONS : x86 : rocketlake : -march=rocketlake ;
|
||||
-cpu-flags gcc OPTIONS : x86 : alderlake : -march=alderlake ;
|
||||
-cpu-flags gcc OPTIONS : x86 : sapphirerapids : -march=sapphirerapids ;
|
||||
-cpu-flags gcc OPTIONS : x86 : k6 : -march=k6 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : k6-2 : -march=k6-2 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : k6-3 : -march=k6-3 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : athlon : -march=athlon ;
|
||||
-cpu-flags gcc OPTIONS : x86 : athlon-tbird : -march=athlon-tbird ;
|
||||
-cpu-flags gcc OPTIONS : x86 : athlon-4 : -march=athlon-4 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : athlon-xp : -march=athlon-xp ;
|
||||
-cpu-flags gcc OPTIONS : x86 : athlon-mp : -march=athlon-mp ;
|
||||
-##
|
||||
-cpu-flags gcc OPTIONS : x86 : k8 : -march=k8 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : opteron : -march=opteron ;
|
||||
-cpu-flags gcc OPTIONS : x86 : athlon64 : -march=athlon64 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : athlon-fx : -march=athlon-fx ;
|
||||
-cpu-flags gcc OPTIONS : x86 : k8-sse3 : -march=k8-sse3 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : opteron-sse3 : -march=opteron-sse3 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : athlon64-sse3 : -march=athlon64-sse3 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : amdfam10 : -march=amdfam10 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : barcelona : -march=barcelona ;
|
||||
-cpu-flags gcc OPTIONS : x86 : bdver1 : -march=bdver1 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : bdver2 : -march=bdver2 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : bdver3 : -march=bdver3 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : bdver4 : -march=bdver4 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : btver1 : -march=btver1 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : btver2 : -march=btver2 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : znver1 : -march=znver1 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : znver2 : -march=znver2 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : znver3 : -march=znver3 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : winchip-c6 : -march=winchip-c6 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : winchip2 : -march=winchip2 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : c3 : -march=c3 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : c3-2 : -march=c3-2 ;
|
||||
-cpu-flags gcc OPTIONS : x86 : c7 : -march=c7 ;
|
||||
-##
|
||||
-cpu-flags gcc OPTIONS : x86 : atom : -march=atom ;
|
||||
-# Sparc
|
||||
-cpu-flags gcc OPTIONS : sparc : v7 : -mcpu=v7 : default ;
|
||||
-cpu-flags gcc OPTIONS : sparc : cypress : -mcpu=cypress ;
|
||||
-cpu-flags gcc OPTIONS : sparc : v8 : -mcpu=v8 ;
|
||||
-cpu-flags gcc OPTIONS : sparc : supersparc : -mcpu=supersparc ;
|
||||
-cpu-flags gcc OPTIONS : sparc : sparclite : -mcpu=sparclite ;
|
||||
-cpu-flags gcc OPTIONS : sparc : hypersparc : -mcpu=hypersparc ;
|
||||
-cpu-flags gcc OPTIONS : sparc : sparclite86x : -mcpu=sparclite86x ;
|
||||
-cpu-flags gcc OPTIONS : sparc : f930 : -mcpu=f930 ;
|
||||
-cpu-flags gcc OPTIONS : sparc : f934 : -mcpu=f934 ;
|
||||
-cpu-flags gcc OPTIONS : sparc : sparclet : -mcpu=sparclet ;
|
||||
-cpu-flags gcc OPTIONS : sparc : tsc701 : -mcpu=tsc701 ;
|
||||
-cpu-flags gcc OPTIONS : sparc : v9 : -mcpu=v9 ;
|
||||
-cpu-flags gcc OPTIONS : sparc : ultrasparc : -mcpu=ultrasparc ;
|
||||
-cpu-flags gcc OPTIONS : sparc : ultrasparc3 : -mcpu=ultrasparc3 ;
|
||||
-# RS/6000 & PowerPC
|
||||
-cpu-flags gcc OPTIONS : power : 403 : -mcpu=403 ;
|
||||
-cpu-flags gcc OPTIONS : power : 505 : -mcpu=505 ;
|
||||
-cpu-flags gcc OPTIONS : power : 601 : -mcpu=601 ;
|
||||
-cpu-flags gcc OPTIONS : power : 602 : -mcpu=602 ;
|
||||
-cpu-flags gcc OPTIONS : power : 603 : -mcpu=603 ;
|
||||
-cpu-flags gcc OPTIONS : power : 603e : -mcpu=603e ;
|
||||
-cpu-flags gcc OPTIONS : power : 604 : -mcpu=604 ;
|
||||
-cpu-flags gcc OPTIONS : power : 604e : -mcpu=604e ;
|
||||
-cpu-flags gcc OPTIONS : power : 620 : -mcpu=620 ;
|
||||
-cpu-flags gcc OPTIONS : power : 630 : -mcpu=630 ;
|
||||
-cpu-flags gcc OPTIONS : power : 740 : -mcpu=740 ;
|
||||
-cpu-flags gcc OPTIONS : power : 7400 : -mcpu=7400 ;
|
||||
-cpu-flags gcc OPTIONS : power : 7450 : -mcpu=7450 ;
|
||||
-cpu-flags gcc OPTIONS : power : 750 : -mcpu=750 ;
|
||||
-cpu-flags gcc OPTIONS : power : 801 : -mcpu=801 ;
|
||||
-cpu-flags gcc OPTIONS : power : 821 : -mcpu=821 ;
|
||||
-cpu-flags gcc OPTIONS : power : 823 : -mcpu=823 ;
|
||||
-cpu-flags gcc OPTIONS : power : 860 : -mcpu=860 ;
|
||||
-cpu-flags gcc OPTIONS : power : 970 : -mcpu=970 ;
|
||||
-cpu-flags gcc OPTIONS : power : 8540 : -mcpu=8540 ;
|
||||
-cpu-flags gcc OPTIONS : power : power : -mcpu=power ;
|
||||
-cpu-flags gcc OPTIONS : power : power2 : -mcpu=power2 ;
|
||||
-cpu-flags gcc OPTIONS : power : power3 : -mcpu=power3 ;
|
||||
-cpu-flags gcc OPTIONS : power : power4 : -mcpu=power4 ;
|
||||
-cpu-flags gcc OPTIONS : power : power5 : -mcpu=power5 ;
|
||||
-cpu-flags gcc OPTIONS : power : powerpc : -mcpu=powerpc ;
|
||||
-cpu-flags gcc OPTIONS : power : powerpc64 : -mcpu=powerpc64 ;
|
||||
-cpu-flags gcc OPTIONS : power : rios : -mcpu=rios ;
|
||||
-cpu-flags gcc OPTIONS : power : rios1 : -mcpu=rios1 ;
|
||||
-cpu-flags gcc OPTIONS : power : rios2 : -mcpu=rios2 ;
|
||||
-cpu-flags gcc OPTIONS : power : rsc : -mcpu=rsc ;
|
||||
-cpu-flags gcc OPTIONS : power : rs64a : -mcpu=rs64 ;
|
||||
-cpu-flags gcc OPTIONS : s390x : z196 : -march=z196 ;
|
||||
-cpu-flags gcc OPTIONS : s390x : zEC12 : -march=zEC12 ;
|
||||
-cpu-flags gcc OPTIONS : s390x : z13 : -march=z13 ;
|
||||
-cpu-flags gcc OPTIONS : s390x : z14 : -march=z14 ;
|
||||
-cpu-flags gcc OPTIONS : s390x : z15 : -march=z15 ;
|
||||
-# ARM
|
||||
-cpu-flags gcc OPTIONS : arm : cortex-a9+vfpv3 : -mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard ;
|
||||
-cpu-flags gcc OPTIONS : arm : cortex-a53 : -mcpu=cortex-a53 ;
|
||||
-cpu-flags gcc OPTIONS : arm : cortex-r5 : -mcpu=cortex-r5 ;
|
||||
-cpu-flags gcc OPTIONS : arm : cortex-r5+vfpv3-d16 : -mcpu=cortex-r5 -mfpu=vfpv3-d16 -mfloat-abi=hard ;
|
||||
-# AIX variant of RS/6000 & PowerPC
|
||||
-toolset.flags gcc AROPTIONS <address-model>64/<target-os>aix : "-X64" ;
|
||||
-
|
||||
-# Enable response file control
|
||||
-toolset.flags gcc RESPONSE_FILE_SUB <response-file>auto : a ;
|
||||
-toolset.flags gcc RESPONSE_FILE_SUB <response-file>file : f ;
|
||||
-toolset.flags gcc RESPONSE_FILE_SUB <response-file>contents : c ;
|
||||
@@ -0,0 +1,42 @@
|
||||
From 59402e3a61d14eb7ce8c2019ea1a87ad4bd28605 Mon Sep 17 00:00:00 2001
|
||||
From: Anuj Mittal <anuj.mittal@intel.com>
|
||||
Date: Thu, 14 Nov 2019 10:13:53 +0800
|
||||
Subject: [PATCH] dont setup compiler flags -m32/-m64
|
||||
|
||||
We don't want these to be setup by boost as we pass our own flags.
|
||||
|
||||
Upstream-Status: Inappropriate [OE-specific]
|
||||
|
||||
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
|
||||
---
|
||||
tools/build/src/tools/gcc.jam | 14 --------------
|
||||
1 file changed, 14 deletions(-)
|
||||
|
||||
diff --git a/tools/build/src/tools/gcc.jam b/tools/build/src/tools/gcc.jam
|
||||
index c7e3cf3..24486e0 100644
|
||||
--- a/tools/build/src/tools/gcc.jam
|
||||
+++ b/tools/build/src/tools/gcc.jam
|
||||
@@ -430,20 +430,6 @@ local rule compile-link-flags ( * )
|
||||
}
|
||||
|
||||
{
|
||||
- # Handle address-model
|
||||
- compile-link-flags <target-os>aix/<address-model>32 : -maix32 ;
|
||||
- compile-link-flags <target-os>aix/<address-model>64 : -maix64 ;
|
||||
-
|
||||
- compile-link-flags <target-os>hpux/<address-model>32 : -milp32 ;
|
||||
- compile-link-flags <target-os>hpux/<address-model>64 : -mlp64 ;
|
||||
-
|
||||
- local generic-os = [ set.difference $(all-os) : aix hpux ] ;
|
||||
- local arch = power sparc x86 ;
|
||||
- compile-link-flags <target-os>$(generic-os)/<architecture>$(arch)/<address-model>32 : -m32 ;
|
||||
- compile-link-flags <target-os>$(generic-os)/<architecture>$(arch)/<address-model>64 : -m64 ;
|
||||
-}
|
||||
-
|
||||
-{
|
||||
# Handle threading
|
||||
local rule threading-flags ( * )
|
||||
{
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
From cabfcba1ff7511ffd6b91ca244288d44f585aad2 Mon Sep 17 00:00:00 2001
|
||||
From: Jackie Huang <jackie.huang@windriver.com>
|
||||
Date: Fri, 23 Sep 2016 01:04:50 -0700
|
||||
Subject: [PATCH] boost-math: disable pch for gcc
|
||||
|
||||
Upstream-Status: Inappropriate [*]
|
||||
|
||||
* It's a work around for a defect when build in parallel:
|
||||
https://svn.boost.org/trac/boost/ticket/12477
|
||||
|
||||
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
|
||||
---
|
||||
libs/math/build/Jamfile.v2 | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/libs/math/build/Jamfile.v2 b/libs/math/build/Jamfile.v2
|
||||
index e19fb2e..82472a7 100644
|
||||
--- a/libs/math/build/Jamfile.v2
|
||||
+++ b/libs/math/build/Jamfile.v2
|
||||
@@ -13,7 +13,7 @@ project
|
||||
#<toolset>intel-linux:<pch>off
|
||||
<toolset>intel-darwin:<pch>off
|
||||
<toolset>msvc-7.1:<pch>off
|
||||
- <toolset>gcc,<target-os>windows:<pch>off
|
||||
+ <toolset>gcc:<pch>off
|
||||
#<toolset>gcc:<cxxflags>-fvisibility=hidden
|
||||
<toolset>intel-linux:<cxxflags>-fvisibility=hidden
|
||||
#<toolset>sun:<cxxflags>-xldscope=hidden
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
require boost-${PV}.inc
|
||||
require boost.inc
|
||||
|
||||
SRC_URI += "file://boost-math-disable-pch-for-gcc.patch \
|
||||
file://0001-Don-t-set-up-arch-instruction-set-flags-we-do-that-o.patch \
|
||||
file://0001-dont-setup-compiler-flags-m32-m64.patch \
|
||||
"
|
||||
+80
@@ -0,0 +1,80 @@
|
||||
From cb43ec15b700b25f3c4fe44043a1a021aaf5b768 Mon Sep 17 00:00:00 2001
|
||||
From: Alexander Kanavin <alex@linutronix.de>
|
||||
Date: Mon, 18 Oct 2021 12:05:49 +0200
|
||||
Subject: [PATCH] Revert "mozilla/certdata2pem.py: print a warning for expired
|
||||
certificates."
|
||||
|
||||
This avoids a dependency on python3-cryptography, and only checks
|
||||
for expired certs (which is upstream concern, but not ours).
|
||||
|
||||
Upstream-Status: Inappropriate [oe-core specific]
|
||||
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
|
||||
---
|
||||
debian/changelog | 1 -
|
||||
debian/control | 2 +-
|
||||
mozilla/certdata2pem.py | 11 -----------
|
||||
3 files changed, 1 insertion(+), 13 deletions(-)
|
||||
|
||||
diff --git a/debian/changelog b/debian/changelog
|
||||
index 531e4d0..4006509 100644
|
||||
--- a/debian/changelog
|
||||
+++ b/debian/changelog
|
||||
@@ -37,7 +37,6 @@ ca-certificates (20211004) unstable; urgency=low
|
||||
- "Trustis FPS Root CA"
|
||||
- "Staat der Nederlanden Root CA - G3"
|
||||
* Blacklist expired root certificate "DST Root CA X3" (closes: #995432)
|
||||
- * mozilla/certdata2pem.py: print a warning for expired certificates.
|
||||
|
||||
-- Julien Cristau <jcristau@debian.org> Thu, 07 Oct 2021 17:12:47 +0200
|
||||
|
||||
diff --git a/debian/control b/debian/control
|
||||
index 4434b7a..5c6ba24 100644
|
||||
--- a/debian/control
|
||||
+++ b/debian/control
|
||||
@@ -3,7 +3,7 @@ Section: misc
|
||||
Priority: optional
|
||||
Maintainer: Julien Cristau <jcristau@debian.org>
|
||||
Build-Depends: debhelper-compat (= 13), po-debconf
|
||||
-Build-Depends-Indep: python3, openssl, python3-cryptography
|
||||
+Build-Depends-Indep: python3, openssl
|
||||
Standards-Version: 4.5.0.2
|
||||
Vcs-Git: https://salsa.debian.org/debian/ca-certificates.git
|
||||
Vcs-Browser: https://salsa.debian.org/debian/ca-certificates
|
||||
diff --git a/mozilla/certdata2pem.py b/mozilla/certdata2pem.py
|
||||
index ede23d4..7d796f1 100644
|
||||
--- a/mozilla/certdata2pem.py
|
||||
+++ b/mozilla/certdata2pem.py
|
||||
@@ -21,16 +21,12 @@
|
||||
# USA.
|
||||
|
||||
import base64
|
||||
-import datetime
|
||||
import os.path
|
||||
import re
|
||||
import sys
|
||||
import textwrap
|
||||
import io
|
||||
|
||||
-from cryptography import x509
|
||||
-
|
||||
-
|
||||
objects = []
|
||||
|
||||
# Dirty file parser.
|
||||
@@ -121,13 +117,6 @@ for obj in objects:
|
||||
if obj['CKA_CLASS'] == 'CKO_CERTIFICATE':
|
||||
if not obj['CKA_LABEL'] in trust or not trust[obj['CKA_LABEL']]:
|
||||
continue
|
||||
-
|
||||
- cert = x509.load_der_x509_certificate(obj['CKA_VALUE'])
|
||||
- if cert.not_valid_after < datetime.datetime.now():
|
||||
- print('!'*74)
|
||||
- print('Trusted but expired certificate found: %s' % obj['CKA_LABEL'])
|
||||
- print('!'*74)
|
||||
-
|
||||
bname = obj['CKA_LABEL'][1:-1].replace('/', '_')\
|
||||
.replace(' ', '_')\
|
||||
.replace('(', '=')\
|
||||
--
|
||||
2.20.1
|
||||
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
ca-certificates is a package from Debian, but some host distros such as Fedora
|
||||
have a leaner run-parts provided by cron which doesn't support --verbose or the
|
||||
-- separator between arguments and paths.
|
||||
|
||||
This solves errors such as
|
||||
|
||||
| Running hooks in [...]/rootfs/etc/ca-certificates/update.d...
|
||||
| [...]/usr/sbin/update-ca-certificates: line 194: Not: command not found
|
||||
| [...]/usr/sbin/update-ca-certificates: line 230: Not a directory: --: command not found
|
||||
| E: Not a directory: -- exited with code 127.
|
||||
|
||||
|
||||
Upstream-Status: Inappropriate
|
||||
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
||||
Signed-off-by: Maciej Borzecki <maciej.borzecki@rndity.com>
|
||||
---
|
||||
sbin/update-ca-certificates | 4 +---
|
||||
1 file changed, 1 insertion(+), 3 deletions(-)
|
||||
|
||||
Index: git/sbin/update-ca-certificates
|
||||
===================================================================
|
||||
--- git.orig/sbin/update-ca-certificates
|
||||
+++ git/sbin/update-ca-certificates
|
||||
@@ -191,9 +191,7 @@ if [ -d "$HOOKSDIR" ]
|
||||
then
|
||||
|
||||
echo "Running hooks in $HOOKSDIR..."
|
||||
- VERBOSE_ARG=
|
||||
- [ "$verbose" = 0 ] || VERBOSE_ARG="--verbose"
|
||||
- eval run-parts "$VERBOSE_ARG" --test -- "$HOOKSDIR" | while read hook
|
||||
+ eval run-parts --test "$HOOKSDIR" | while read hook
|
||||
do
|
||||
( cat "$ADDED"
|
||||
cat "$REMOVED" ) | "$hook" || echo "E: $hook exited with code $?."
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
Upstream-Status: Pending
|
||||
|
||||
From 724cb153ca0f607fb38b3a8db3ebb2742601cd81 Mon Sep 17 00:00:00 2001
|
||||
From: Andreas Oberritter <obi@opendreambox.org>
|
||||
Date: Tue, 19 Mar 2013 17:14:33 +0100
|
||||
Subject: [PATCH 2/2] update-ca-certificates: use $SYSROOT
|
||||
|
||||
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
|
||||
---
|
||||
sbin/update-ca-certificates | 14 +++++++-------
|
||||
1 file changed, 7 insertions(+), 7 deletions(-)
|
||||
|
||||
Index: git/sbin/update-ca-certificates
|
||||
===================================================================
|
||||
--- git.orig/sbin/update-ca-certificates
|
||||
+++ git/sbin/update-ca-certificates
|
||||
@@ -24,12 +24,12 @@
|
||||
verbose=0
|
||||
fresh=0
|
||||
default=0
|
||||
-CERTSCONF=/etc/ca-certificates.conf
|
||||
-CERTSDIR=/usr/share/ca-certificates
|
||||
-LOCALCERTSDIR=/usr/local/share/ca-certificates
|
||||
+CERTSCONF=$SYSROOT/etc/ca-certificates.conf
|
||||
+CERTSDIR=$SYSROOT/usr/share/ca-certificates
|
||||
+LOCALCERTSDIR=$SYSROOT/usr/local/share/ca-certificates
|
||||
CERTBUNDLE=ca-certificates.crt
|
||||
-ETCCERTSDIR=/etc/ssl/certs
|
||||
-HOOKSDIR=/etc/ca-certificates/update.d
|
||||
+ETCCERTSDIR=$SYSROOT/etc/ssl/certs
|
||||
+HOOKSDIR=$SYSROOT/etc/ca-certificates/update.d
|
||||
|
||||
while [ $# -gt 0 ];
|
||||
do
|
||||
@@ -92,9 +92,9 @@ add() {
|
||||
PEM="$ETCCERTSDIR/$(basename "$CERT" .crt | sed -e 's/ /_/g' \
|
||||
-e 's/[()]/=/g' \
|
||||
-e 's/,/_/g').pem"
|
||||
- if ! test -e "$PEM" || [ "$(readlink "$PEM")" != "$CERT" ]
|
||||
+ if ! test -e "$PEM" || [ "$(readlink "$PEM")" != "${CERT##$SYSROOT}" ]
|
||||
then
|
||||
- ln -sf "$CERT" "$PEM"
|
||||
+ ln -sf "${CERT##$SYSROOT}" "$PEM"
|
||||
echo "+$PEM" >> "$ADDED"
|
||||
fi
|
||||
# Add trailing newline to certificate, if it is missing (#635570)
|
||||
+71
@@ -0,0 +1,71 @@
|
||||
From a9fc13b2aee55655d58fcb77a3180fa99f96438a Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
|
||||
Date: Wed, 28 Mar 2018 16:45:05 +0100
|
||||
Subject: [PATCH] update-ca-certificates: use relative symlinks from
|
||||
$ETCCERTSDIR
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
update-ca-certificates symlinks (trusted) certificates
|
||||
from $CERTSDIR or $LOCALCERTSDIR into $ETCCERTSDIR.
|
||||
update-ca-certificates can call hook scripts installed
|
||||
into /etc/ca-certificates/update.d. Those scripts are
|
||||
passed the pem file in /etc/ssl/certs/ that was added or
|
||||
removed in this run and those pem files are absolute
|
||||
symlinks into $CERTSDIR or $LOCALCERTSDIR at the moment.
|
||||
|
||||
When running update-ca-certificates during image build
|
||||
time, they thusly all point into the host's file system,
|
||||
not into the $SYSROOT. This means:
|
||||
* the host's file system layout must match the one
|
||||
produced by OE, and
|
||||
* it also means that the host must have installed the same
|
||||
(or more) certificates as the target in $CERTSDIR and
|
||||
$LOCALCERTSDIR
|
||||
|
||||
This is a problem when wanting to execute hook scripts,
|
||||
because they all need to be taught about $SYSROOT, and
|
||||
behave differently depending on whether they're called
|
||||
at image build time, or on the target, as otherwise they
|
||||
will be trying to actually read the host's certificates
|
||||
from $CERTSDIR or $LOCALCERTSDIR.
|
||||
|
||||
This also is a problem when running anything else during
|
||||
image build time that depends on the trusted CA
|
||||
certificates.
|
||||
|
||||
Changing the symlink to be relative solves all of these
|
||||
problems. Do so.
|
||||
|
||||
Upstream-Status: Inappropriate [OE-specific]
|
||||
Signed-off-by: André Draszik <andre.draszik@jci.com>
|
||||
---
|
||||
sbin/update-ca-certificates | 6 ++++--
|
||||
1 file changed, 4 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/sbin/update-ca-certificates b/sbin/update-ca-certificates
|
||||
index 00f80c7..7e911a9 100755
|
||||
--- a/sbin/update-ca-certificates
|
||||
+++ b/sbin/update-ca-certificates
|
||||
@@ -29,6 +29,7 @@ CERTSDIR=$SYSROOT/usr/share/ca-certificates
|
||||
LOCALCERTSDIR=$SYSROOT/usr/local/share/ca-certificates
|
||||
CERTBUNDLE=ca-certificates.crt
|
||||
ETCCERTSDIR=$SYSROOT/etc/ssl/certs
|
||||
+FSROOT=../../../ # to get from $ETCCERTSDIR to the root of the file system
|
||||
HOOKSDIR=$SYSROOT/etc/ca-certificates/update.d
|
||||
|
||||
while [ $# -gt 0 ];
|
||||
@@ -125,9 +126,10 @@ add() {
|
||||
PEM="$ETCCERTSDIR/$(basename "$CERT" .crt | sed -e 's/ /_/g' \
|
||||
-e 's/[()]/=/g' \
|
||||
-e 's/,/_/g').pem"
|
||||
- if ! test -e "$PEM" || [ "$(readlink "$PEM")" != "${CERT##$SYSROOT}" ]
|
||||
+ DST="$(echo ${CERT} | sed -e "s|^$SYSROOT||" -e "s|^/|$FSROOT|" )"
|
||||
+ if ! test -e "$PEM" || [ "$(readlink "$PEM")" != "${DST}" ]
|
||||
then
|
||||
- ln -sf "${CERT##$SYSROOT}" "$PEM"
|
||||
+ ln -sf "${DST}" "$PEM"
|
||||
echo "+$PEM" >> "$ADDED"
|
||||
fi
|
||||
# Add trailing newline to certificate, if it is missing (#635570)
|
||||
@@ -0,0 +1,50 @@
|
||||
Upstream-Status: Pending
|
||||
|
||||
update-ca-certificates: find SYSROOT relative to its own location
|
||||
|
||||
This makes the script relocatable.
|
||||
|
||||
Index: git/sbin/update-ca-certificates
|
||||
===================================================================
|
||||
--- git.orig/sbin/update-ca-certificates
|
||||
+++ git/sbin/update-ca-certificates
|
||||
@@ -66,6 +66,39 @@ do
|
||||
shift
|
||||
done
|
||||
|
||||
+if [ -z "$SYSROOT" ]; then
|
||||
+ local_which () {
|
||||
+ if [ $# -lt 1 ]; then
|
||||
+ return 1
|
||||
+ fi
|
||||
+
|
||||
+ (
|
||||
+ IFS=:
|
||||
+ for entry in $PATH; do
|
||||
+ if [ -x "$entry/$1" ]; then
|
||||
+ echo "$entry/$1"
|
||||
+ exit 0
|
||||
+ fi
|
||||
+ done
|
||||
+ exit 1
|
||||
+ )
|
||||
+ }
|
||||
+
|
||||
+ case "$0" in
|
||||
+ */*)
|
||||
+ sbindir=$(cd ${0%/*} && pwd)
|
||||
+ ;;
|
||||
+ *)
|
||||
+ sbindir=$(cd $(dirname $(local_which $0)) && pwd)
|
||||
+ ;;
|
||||
+ esac
|
||||
+ prefix=${sbindir%/*}
|
||||
+ SYSROOT=${prefix%/*}
|
||||
+ if [ ! -d "$SYSROOT/usr/share/ca-certificates" ]; then
|
||||
+ SYSROOT=
|
||||
+ fi
|
||||
+fi
|
||||
+
|
||||
if [ ! -s "$CERTSCONF" ]
|
||||
then
|
||||
fresh=1
|
||||
@@ -0,0 +1,89 @@
|
||||
SUMMARY = "Common CA certificates"
|
||||
DESCRIPTION = "This package includes PEM files of CA certificates to allow \
|
||||
SSL-based applications to check for the authenticity of SSL connections. \
|
||||
This derived from Debian's CA Certificates."
|
||||
HOMEPAGE = "http://packages.debian.org/sid/ca-certificates"
|
||||
SECTION = "misc"
|
||||
LICENSE = "GPL-2.0-or-later & MPL-2.0"
|
||||
LIC_FILES_CHKSUM = "file://debian/copyright;md5=ae5b36b514e3f12ce1aa8e2ee67f3d7e"
|
||||
|
||||
# This is needed to ensure we can run the postinst at image creation time
|
||||
DEPENDS = ""
|
||||
DEPENDS:class-native = "openssl-native"
|
||||
DEPENDS:class-nativesdk = "openssl-native"
|
||||
# Need rehash from openssl and run-parts from debianutils
|
||||
PACKAGE_WRITE_DEPS += "openssl-native debianutils-native"
|
||||
|
||||
SRCREV = "07de54fdcc5806bde549e1edf60738c6bccf50e8"
|
||||
|
||||
SRC_URI = "git://salsa.debian.org/debian/ca-certificates.git;protocol=https;branch=master \
|
||||
file://0002-update-ca-certificates-use-SYSROOT.patch \
|
||||
file://0001-update-ca-certificates-don-t-use-Debianisms-in-run-p.patch \
|
||||
file://default-sysroot.patch \
|
||||
file://0003-update-ca-certificates-use-relative-symlinks-from-ET.patch \
|
||||
file://0001-Revert-mozilla-certdata2pem.py-print-a-warning-for-e.patch \
|
||||
"
|
||||
UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+)"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit allarch
|
||||
|
||||
EXTRA_OEMAKE = "\
|
||||
'CERTSDIR=${datadir}/ca-certificates' \
|
||||
'SBINDIR=${sbindir}' \
|
||||
"
|
||||
|
||||
do_compile:prepend() {
|
||||
oe_runmake clean
|
||||
}
|
||||
|
||||
do_install () {
|
||||
install -d ${D}${datadir}/ca-certificates \
|
||||
${D}${sysconfdir}/ssl/certs \
|
||||
${D}${sysconfdir}/ca-certificates/update.d
|
||||
oe_runmake 'DESTDIR=${D}' install
|
||||
|
||||
install -d ${D}${mandir}/man8
|
||||
install -m 0644 sbin/update-ca-certificates.8 ${D}${mandir}/man8/
|
||||
|
||||
install -d ${D}${sysconfdir}
|
||||
{
|
||||
echo "# Lines starting with # will be ignored"
|
||||
echo "# Lines starting with ! will remove certificate on next update"
|
||||
echo "#"
|
||||
find ${D}${datadir}/ca-certificates -type f -name '*.crt' | \
|
||||
sed 's,^${D}${datadir}/ca-certificates/,,' | sort
|
||||
} >${D}${sysconfdir}/ca-certificates.conf
|
||||
}
|
||||
|
||||
do_install:append:class-target () {
|
||||
sed -i -e 's,/etc/,${sysconfdir}/,' \
|
||||
-e 's,/usr/share/,${datadir}/,' \
|
||||
-e 's,/usr/local,${prefix}/local,' \
|
||||
${D}${sbindir}/update-ca-certificates \
|
||||
${D}${mandir}/man8/update-ca-certificates.8
|
||||
}
|
||||
|
||||
pkg_postinst:${PN}:class-target () {
|
||||
SYSROOT="$D" $D${sbindir}/update-ca-certificates
|
||||
}
|
||||
|
||||
CONFFILES:${PN} += "${sysconfdir}/ca-certificates.conf"
|
||||
|
||||
# Rather than make a postinst script that works for both target and nativesdk,
|
||||
# we just run update-ca-certificate from do_install() for nativesdk.
|
||||
CONFFILES:${PN}:append:class-nativesdk = " ${sysconfdir}/ssl/certs/ca-certificates.crt"
|
||||
do_install:append:class-nativesdk () {
|
||||
SYSROOT="${D}${SDKPATHNATIVE}" ${D}${sbindir}/update-ca-certificates
|
||||
}
|
||||
|
||||
do_install:append:class-native () {
|
||||
SYSROOT="${D}${base_prefix}" ${D}${sbindir}/update-ca-certificates
|
||||
}
|
||||
|
||||
RDEPENDS:${PN}:append:class-target = " openssl-bin openssl"
|
||||
RDEPENDS:${PN}:append:class-native = " openssl-native"
|
||||
RDEPENDS:${PN}:append:class-nativesdk = " nativesdk-openssl-bin nativesdk-openssl"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,33 @@
|
||||
Upstream-Status: Pending
|
||||
|
||||
--- ConsoleKit-0.4.6.orig/configure.ac
|
||||
+++ ConsoleKit-0.4.6/configure.ac
|
||||
@@ -56,10 +56,24 @@ PKG_CHECK_MODULES(CONSOLE_KIT,
|
||||
gthread-2.0 >= $GLIB_REQUIRED_VERSION
|
||||
)
|
||||
|
||||
-PKG_CHECK_MODULES(POLKIT,
|
||||
- polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION,
|
||||
- have_polkit=yes,
|
||||
- have_polkit=no)
|
||||
+AC_ARG_WITH([polkit],
|
||||
+ [AS_HELP_STRING([--with-polkit],
|
||||
+ [support PolicyKit @<:@default=check@:>@])],
|
||||
+ [],
|
||||
+ [with_polkit=check])
|
||||
+
|
||||
+AS_IF([test "x$with_polkit" != xno],
|
||||
+ [PKG_CHECK_MODULES(POLKIT,
|
||||
+ polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION,
|
||||
+ have_polkit=yes,
|
||||
+ [if test "x$with_polkit" != xcheck; then
|
||||
+ AC_MSG_FAILURE(
|
||||
+ [--with-polkit was given, but test for polkit failed])
|
||||
+ else
|
||||
+ have_polkit=no
|
||||
+ fi
|
||||
+ ])])
|
||||
+
|
||||
if test "x$have_polkit" = "xyes" ; then
|
||||
AC_DEFINE(HAVE_POLKIT, [], [Define if we have polkit])
|
||||
fi
|
||||
@@ -0,0 +1,19 @@
|
||||
Fix builds in the case of seprate source from the build directory.
|
||||
|
||||
RP 2013/4/17
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Index: pam-ck-connector/Makefile.am
|
||||
===================================================================
|
||||
--- consolekit/pam-ck-connector.orig/Makefile.am 2010-09-03 13:54:31.000000000 +0000
|
||||
+++ consolekit/pam-ck-connector/Makefile.am 2013-04-17 09:06:49.093524918 +0000
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
INCLUDES = \
|
||||
$(LIBDBUS_CFLAGS) \
|
||||
- -I$(top_builddir)/libck-connector \
|
||||
+ -I$(top_srcdir)/libck-connector \
|
||||
$(NULL)
|
||||
|
||||
pamlibdir = $(PAM_MODULE_DIR)
|
||||
@@ -0,0 +1,51 @@
|
||||
SUMMARY = "Framework for defining and tracking users, login sessions, and seats"
|
||||
DESCRIPTION = "It provides a mechanism for software to react to changes \
|
||||
of any of these items or of any of the metadata associated with them."
|
||||
HOMEPAGE = "http://www.freedesktop.org/wiki/Software/ConsoleKit"
|
||||
BUGTRACKER = "https://bugs.freedesktop.org/buglist.cgi?query_format=specific&product=ConsoleKit"
|
||||
|
||||
LICENSE = "GPL-2.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
|
||||
file://src/main.c;endline=21;md5=0a994e09769780220163255d8f9071c3"
|
||||
|
||||
DEPENDS = "glib-2.0 glib-2.0-native dbus dbus-glib virtual/libx11"
|
||||
RDEPENDS:${PN} += "base-files"
|
||||
|
||||
inherit autotools pkgconfig features_check
|
||||
# depends on virtual/libx11
|
||||
REQUIRED_DISTRO_FEATURES = "x11"
|
||||
|
||||
SRC_URI = "http://www.freedesktop.org/software/ConsoleKit/dist/ConsoleKit-${PV}.tar.xz \
|
||||
file://sepbuildfix.patch \
|
||||
file://add-polkit-configure-argument.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "611792b4d616253a5bdec9175f8b7678"
|
||||
SRC_URI[sha256sum] = "b41d17e06f80059589fbeefe96ad07bcc564c49e65516da1caf975146475565c"
|
||||
|
||||
S = "${WORKDIR}/ConsoleKit-${PV}"
|
||||
|
||||
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd polkit', d)}"
|
||||
|
||||
PACKAGECONFIG[pam] = "--enable-pam-module --with-pam-module-dir=${base_libdir}/security,--disable-pam-module,libpam"
|
||||
PACKAGECONFIG[polkit] = "--with-polkit,--without-polkit,polkit"
|
||||
PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir}/,--with-systemdsystemunitdir="
|
||||
|
||||
FILES:${PN} += "${exec_prefix}/lib/ConsoleKit \
|
||||
${libdir}/ConsoleKit ${systemd_unitdir} ${base_libdir} \
|
||||
${datadir}/dbus-1 ${datadir}/PolicyKit ${datadir}/polkit*"
|
||||
|
||||
PACKAGES =+ "pam-plugin-ck-connector"
|
||||
FILES:pam-plugin-ck-connector += "${base_libdir}/security/*.so"
|
||||
RDEPENDS:pam-plugin-ck-connector += "${PN}"
|
||||
|
||||
do_install:append() {
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
|
||||
install -d ${D}${sysconfdir}/tmpfiles.d
|
||||
echo "d ${localstatedir}/log/ConsoleKit - - - -" \
|
||||
> ${D}${sysconfdir}/tmpfiles.d/consolekit.conf
|
||||
fi
|
||||
|
||||
# Remove /var/ directories as the daemon creates them as required
|
||||
rm -rf ${D}${localstatedir}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
# These CRL test (alt-avc) are failing
|
||||
356
|
||||
412
|
||||
413
|
||||
# These CRL tests are scanning docs
|
||||
971
|
||||
1119
|
||||
1132
|
||||
1135
|
||||
# These CRL tests are scnning headers
|
||||
1167
|
||||
# These CRL tests are scanning man pages
|
||||
1139
|
||||
1140
|
||||
1173
|
||||
1177
|
||||
# This CRL test is looking for m4 files
|
||||
1165
|
||||
# This CRL test is looking for src files
|
||||
1185
|
||||
# These CRL tests need --libcurl option to be enabled
|
||||
1400
|
||||
1401
|
||||
1402
|
||||
1403
|
||||
1404
|
||||
1405
|
||||
1465
|
||||
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
cd tests
|
||||
./runtests.pl -a -n -s | sed \
|
||||
-e 's|\([^ ]* *\) \([^ ]* *\)...OK|PASS: \1 \2|' \
|
||||
-e 's|\([^ ]* *\) \([^ ]* *\)...FAILED|FAIL: \1 \2|' \
|
||||
-e 's/Warning: test[0-9]\+ not present in tests\/data\/Makefile.inc//'
|
||||
@@ -0,0 +1,116 @@
|
||||
SUMMARY = "Command line tool and library for client-side URL transfers"
|
||||
DESCRIPTION = "It uses URL syntax to transfer data to and from servers. \
|
||||
curl is a widely used because of its ability to be flexible and complete \
|
||||
complex tasks. For example, you can use curl for things like user authentication, \
|
||||
HTTP post, SSL connections, proxy support, FTP uploads, and more!"
|
||||
HOMEPAGE = "https://curl.se/"
|
||||
BUGTRACKER = "https://github.com/curl/curl/issues"
|
||||
SECTION = "console/network"
|
||||
LICENSE = "curl"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=db8448a1e43eb2125f7740fc397db1f6"
|
||||
|
||||
SRC_URI = " \
|
||||
https://curl.se/download/${BP}.tar.xz \
|
||||
file://run-ptest \
|
||||
file://disable-tests \
|
||||
"
|
||||
SRC_URI[sha256sum] = "31b1118eb8bfd43cd95d9a3f146f814ff874f6ed3999b29d94f4d1e7dbac5ef6"
|
||||
|
||||
# Curl has used many names over the years...
|
||||
CVE_PRODUCT = "haxx:curl haxx:libcurl curl:curl curl:libcurl libcurl:libcurl daniel_stenberg:curl"
|
||||
|
||||
inherit autotools pkgconfig binconfig multilib_header ptest
|
||||
|
||||
# Entropy source for random PACKAGECONFIG option
|
||||
RANDOM ?= "/dev/urandom"
|
||||
|
||||
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} libidn openssl proxy random threaded-resolver verbose zlib"
|
||||
PACKAGECONFIG:class-native = "ipv6 openssl proxy random threaded-resolver verbose zlib"
|
||||
PACKAGECONFIG:class-nativesdk = "ipv6 openssl proxy random threaded-resolver verbose zlib"
|
||||
|
||||
# 'ares' and 'threaded-resolver' are mutually exclusive
|
||||
PACKAGECONFIG[ares] = "--enable-ares,--disable-ares,c-ares,,,threaded-resolver"
|
||||
PACKAGECONFIG[brotli] = "--with-brotli,--without-brotli,brotli"
|
||||
PACKAGECONFIG[builtinmanual] = "--enable-manual,--disable-manual"
|
||||
# Don't use this in production
|
||||
PACKAGECONFIG[debug] = "--enable-debug,--disable-debug"
|
||||
PACKAGECONFIG[dict] = "--enable-dict,--disable-dict,"
|
||||
PACKAGECONFIG[gnutls] = "--with-gnutls,--without-gnutls,gnutls"
|
||||
PACKAGECONFIG[gopher] = "--enable-gopher,--disable-gopher,"
|
||||
PACKAGECONFIG[imap] = "--enable-imap,--disable-imap,"
|
||||
PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
|
||||
PACKAGECONFIG[krb5] = "--with-gssapi,--without-gssapi,krb5"
|
||||
PACKAGECONFIG[ldap] = "--enable-ldap,--disable-ldap,openldap"
|
||||
PACKAGECONFIG[ldaps] = "--enable-ldaps,--disable-ldaps,openldap"
|
||||
PACKAGECONFIG[libgsasl] = "--with-libgsasl,--without-libgsasl,libgsasl"
|
||||
PACKAGECONFIG[libidn] = "--with-libidn2,--without-libidn2,libidn2"
|
||||
PACKAGECONFIG[libssh2] = "--with-libssh2,--without-libssh2,libssh2"
|
||||
PACKAGECONFIG[mbedtls] = "--with-mbedtls=${STAGING_DIR_TARGET},--without-mbedtls,mbedtls"
|
||||
PACKAGECONFIG[mqtt] = "--enable-mqtt,--disable-mqtt,"
|
||||
PACKAGECONFIG[nghttp2] = "--with-nghttp2,--without-nghttp2,nghttp2"
|
||||
PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl"
|
||||
PACKAGECONFIG[pop3] = "--enable-pop3,--disable-pop3,"
|
||||
PACKAGECONFIG[proxy] = "--enable-proxy,--disable-proxy,"
|
||||
PACKAGECONFIG[random] = "--with-random=${RANDOM},--without-random"
|
||||
PACKAGECONFIG[rtmpdump] = "--with-librtmp,--without-librtmp,rtmpdump"
|
||||
PACKAGECONFIG[rtsp] = "--enable-rtsp,--disable-rtsp,"
|
||||
PACKAGECONFIG[smb] = "--enable-smb,--disable-smb,"
|
||||
PACKAGECONFIG[smtp] = "--enable-smtp,--disable-smtp,"
|
||||
PACKAGECONFIG[nss] = "--with-nss,--without-nss,nss"
|
||||
PACKAGECONFIG[telnet] = "--enable-telnet,--disable-telnet,"
|
||||
PACKAGECONFIG[tftp] = "--enable-tftp,--disable-tftp,"
|
||||
PACKAGECONFIG[threaded-resolver] = "--enable-threaded-resolver,--disable-threaded-resolver,,,,ares"
|
||||
PACKAGECONFIG[verbose] = "--enable-verbose,--disable-verbose"
|
||||
PACKAGECONFIG[zlib] = "--with-zlib=${STAGING_LIBDIR}/../,--without-zlib,zlib"
|
||||
PACKAGECONFIG[zstd] = "--with-zstd,--without-zstd,zstd"
|
||||
|
||||
EXTRA_OECONF = " \
|
||||
--disable-libcurl-option \
|
||||
--disable-ntlm-wb \
|
||||
--enable-crypto-auth \
|
||||
--with-ca-bundle=${sysconfdir}/ssl/certs/ca-certificates.crt \
|
||||
--without-libpsl \
|
||||
--enable-optimize \
|
||||
${@'--without-ssl' if (bb.utils.filter('PACKAGECONFIG', 'gnutls mbedtls nss openssl', d) == '') else ''} \
|
||||
"
|
||||
|
||||
do_install:append:class-target() {
|
||||
# cleanup buildpaths from curl-config
|
||||
sed -i \
|
||||
-e 's,--sysroot=${STAGING_DIR_TARGET},,g' \
|
||||
-e 's,--with-libtool-sysroot=${STAGING_DIR_TARGET},,g' \
|
||||
-e 's|${DEBUG_PREFIX_MAP}||g' \
|
||||
-e 's|${@" ".join(d.getVar("DEBUG_PREFIX_MAP").split())}||g' \
|
||||
${D}${bindir}/curl-config
|
||||
}
|
||||
|
||||
do_compile_ptest() {
|
||||
oe_runmake test
|
||||
oe_runmake -C ${B}/tests/server
|
||||
}
|
||||
|
||||
do_install_ptest() {
|
||||
cat ${WORKDIR}/disable-tests >> ${S}/tests/data/DISABLED
|
||||
rm -f ${B}/tests/configurehelp.pm
|
||||
cp -rf ${B}/tests ${D}${PTEST_PATH}
|
||||
cp -rf ${S}/tests ${D}${PTEST_PATH}
|
||||
find ${D}${PTEST_PATH}/ -type f -name Makefile.am -o -name Makefile.in -o -name Makefile -delete
|
||||
install -d ${D}${PTEST_PATH}/src
|
||||
ln -sf ${bindir}/curl ${D}${PTEST_PATH}/src/curl
|
||||
cp -rf ${D}${bindir}/curl-config ${D}${PTEST_PATH}
|
||||
}
|
||||
|
||||
RDEPENDS:${PN}-ptest += "bash perl-modules perl-module-time-hires perl-module-digest-md5 \
|
||||
perl-module-digest perl-module-ipc-open2"
|
||||
|
||||
PACKAGES =+ "lib${BPN}"
|
||||
|
||||
FILES:lib${BPN} = "${libdir}/lib*.so.*"
|
||||
RRECOMMENDS:lib${BPN} += "ca-certificates"
|
||||
|
||||
FILES:${PN} += "${datadir}/zsh"
|
||||
|
||||
inherit multilib_script
|
||||
MULTILIB_SCRIPTS = "${PN}-dev:${bindir}/curl-config"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
+147
@@ -0,0 +1,147 @@
|
||||
From a3569f118fd95b7ad41e1a1128e17c0b8928556d Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Sun, 20 Jan 2019 18:30:23 -0800
|
||||
Subject: [PATCH] Fix libc++ compatibility by renaming atomic_init API
|
||||
|
||||
db5 does not build because it is redefining a C++11 standard
|
||||
library identifier, atomic_init(). Therefore prefix all
|
||||
its internal defines with '__db_', to avoid collisions.
|
||||
|
||||
Upstream-Status: Inappropriate [as far as open source community is concerned, upstream is dead]
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
src/dbinc/atomic.h | 4 ++--
|
||||
src/mp/mp_fget.c | 4 ++--
|
||||
src/mp/mp_mvcc.c | 4 ++--
|
||||
src/mp/mp_region.c | 4 ++--
|
||||
src/mutex/mut_method.c | 2 +-
|
||||
src/mutex/mut_tas.c | 4 ++--
|
||||
6 files changed, 11 insertions(+), 11 deletions(-)
|
||||
|
||||
diff --git a/src/dbinc/atomic.h b/src/dbinc/atomic.h
|
||||
index 1b49de5..7bf353c 100644
|
||||
--- a/src/dbinc/atomic.h
|
||||
+++ b/src/dbinc/atomic.h
|
||||
@@ -70,7 +70,7 @@ typedef struct {
|
||||
* These have no memory barriers; the caller must include them when necessary.
|
||||
*/
|
||||
#define atomic_read(p) ((p)->value)
|
||||
-#define atomic_init(p, val) ((p)->value = (val))
|
||||
+#define __db_atomic_init(p, val) ((p)->value = (val))
|
||||
|
||||
#ifdef HAVE_ATOMIC_SUPPORT
|
||||
|
||||
@@ -206,7 +206,7 @@ static inline int __db_atomic_compare_exchange(
|
||||
#define atomic_dec(env, p) (--(p)->value)
|
||||
#define atomic_compare_exchange(env, p, oldval, newval) \
|
||||
(DB_ASSERT(env, atomic_read(p) == (oldval)), \
|
||||
- atomic_init(p, (newval)), 1)
|
||||
+ __db_atomic_init(p, (newval)), 1)
|
||||
#else
|
||||
#define atomic_inc(env, p) __atomic_inc(env, p)
|
||||
#define atomic_dec(env, p) __atomic_dec(env, p)
|
||||
diff --git a/src/mp/mp_fget.c b/src/mp/mp_fget.c
|
||||
index 16de695..5159520 100644
|
||||
--- a/src/mp/mp_fget.c
|
||||
+++ b/src/mp/mp_fget.c
|
||||
@@ -649,7 +649,7 @@ alloc: /* Allocate a new buffer header and data space. */
|
||||
|
||||
/* Initialize enough so we can call __memp_bhfree. */
|
||||
alloc_bhp->flags = 0;
|
||||
- atomic_init(&alloc_bhp->ref, 1);
|
||||
+ __db_atomic_init(&alloc_bhp->ref, 1);
|
||||
#ifdef DIAGNOSTIC
|
||||
if ((uintptr_t)alloc_bhp->buf & (sizeof(size_t) - 1)) {
|
||||
__db_errx(env, DB_STR("3025",
|
||||
@@ -955,7 +955,7 @@ alloc: /* Allocate a new buffer header and data space. */
|
||||
MVCC_MPROTECT(bhp->buf, mfp->pagesize,
|
||||
PROT_READ);
|
||||
|
||||
- atomic_init(&alloc_bhp->ref, 1);
|
||||
+ __db_atomic_init(&alloc_bhp->ref, 1);
|
||||
MUTEX_LOCK(env, alloc_bhp->mtx_buf);
|
||||
alloc_bhp->priority = bhp->priority;
|
||||
alloc_bhp->pgno = bhp->pgno;
|
||||
diff --git a/src/mp/mp_mvcc.c b/src/mp/mp_mvcc.c
|
||||
index 770bad8..dbce4f3 100644
|
||||
--- a/src/mp/mp_mvcc.c
|
||||
+++ b/src/mp/mp_mvcc.c
|
||||
@@ -276,7 +276,7 @@ __memp_bh_freeze(dbmp, infop, hp, bhp, need_frozenp)
|
||||
#else
|
||||
memcpy(frozen_bhp, bhp, SSZA(BH, buf));
|
||||
#endif
|
||||
- atomic_init(&frozen_bhp->ref, 0);
|
||||
+ __db_atomic_init(&frozen_bhp->ref, 0);
|
||||
if (mutex != MUTEX_INVALID)
|
||||
frozen_bhp->mtx_buf = mutex;
|
||||
else if ((ret = __mutex_alloc(env, MTX_MPOOL_BH,
|
||||
@@ -428,7 +428,7 @@ __memp_bh_thaw(dbmp, infop, hp, frozen_bhp, alloc_bhp)
|
||||
#endif
|
||||
alloc_bhp->mtx_buf = mutex;
|
||||
MUTEX_LOCK(env, alloc_bhp->mtx_buf);
|
||||
- atomic_init(&alloc_bhp->ref, 1);
|
||||
+ __db_atomic_init(&alloc_bhp->ref, 1);
|
||||
F_CLR(alloc_bhp, BH_FROZEN);
|
||||
}
|
||||
|
||||
diff --git a/src/mp/mp_region.c b/src/mp/mp_region.c
|
||||
index 4952030..084f499 100644
|
||||
--- a/src/mp/mp_region.c
|
||||
+++ b/src/mp/mp_region.c
|
||||
@@ -245,7 +245,7 @@ __memp_init(env, dbmp, reginfo_off, htab_buckets, max_nreg)
|
||||
MTX_MPOOL_FILE_BUCKET, 0, &htab[i].mtx_hash)) != 0)
|
||||
return (ret);
|
||||
SH_TAILQ_INIT(&htab[i].hash_bucket);
|
||||
- atomic_init(&htab[i].hash_page_dirty, 0);
|
||||
+ __db_atomic_init(&htab[i].hash_page_dirty, 0);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -302,7 +302,7 @@ no_prealloc:
|
||||
} else
|
||||
hp->mtx_hash = mtx_base + (i % dbenv->mp_mtxcount);
|
||||
SH_TAILQ_INIT(&hp->hash_bucket);
|
||||
- atomic_init(&hp->hash_page_dirty, 0);
|
||||
+ __db_atomic_init(&hp->hash_page_dirty, 0);
|
||||
#ifdef HAVE_STATISTICS
|
||||
hp->hash_io_wait = 0;
|
||||
hp->hash_frozen = hp->hash_thawed = hp->hash_frozen_freed = 0;
|
||||
diff --git a/src/mutex/mut_method.c b/src/mutex/mut_method.c
|
||||
index 09353b0..3c954b9 100644
|
||||
--- a/src/mutex/mut_method.c
|
||||
+++ b/src/mutex/mut_method.c
|
||||
@@ -474,7 +474,7 @@ atomic_compare_exchange(env, v, oldval, newval)
|
||||
MUTEX_LOCK(env, mtx);
|
||||
ret = atomic_read(v) == oldval;
|
||||
if (ret)
|
||||
- atomic_init(v, newval);
|
||||
+ __db_atomic_init(v, newval);
|
||||
MUTEX_UNLOCK(env, mtx);
|
||||
|
||||
return (ret);
|
||||
diff --git a/src/mutex/mut_tas.c b/src/mutex/mut_tas.c
|
||||
index 106b161..5a3b033 100644
|
||||
--- a/src/mutex/mut_tas.c
|
||||
+++ b/src/mutex/mut_tas.c
|
||||
@@ -47,7 +47,7 @@ __db_tas_mutex_init(env, mutex, flags)
|
||||
|
||||
#ifdef HAVE_SHARED_LATCHES
|
||||
if (F_ISSET(mutexp, DB_MUTEX_SHARED))
|
||||
- atomic_init(&mutexp->sharecount, 0);
|
||||
+ __db_atomic_init(&mutexp->sharecount, 0);
|
||||
else
|
||||
#endif
|
||||
if (MUTEX_INIT(&mutexp->tas)) {
|
||||
@@ -536,7 +536,7 @@ __db_tas_mutex_unlock(env, mutex)
|
||||
F_CLR(mutexp, DB_MUTEX_LOCKED);
|
||||
/* Flush flag update before zeroing count */
|
||||
MEMBAR_EXIT();
|
||||
- atomic_init(&mutexp->sharecount, 0);
|
||||
+ __db_atomic_init(&mutexp->sharecount, 0);
|
||||
} else {
|
||||
DB_ASSERT(env, sharecount > 0);
|
||||
MEMBAR_EXIT();
|
||||
--
|
||||
2.20.1
|
||||
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
From 29621d637e30982489693f2e207ce6a1790e3337 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Wed, 22 Mar 2017 15:32:26 +0000
|
||||
Subject: [PATCH] atomic: Rename local __atomic_compare_exchange to avoid clash
|
||||
with builtins
|
||||
|
||||
Helps building with clang
|
||||
|
||||
Fixes
|
||||
|
||||
../db-5.3.28/src/dbinc/atomic.h:179:19: error: definition of builtin function '__atomic_compare_exchange'
|
||||
static inline int __atomic_compare_exchange(
|
||||
|
||||
Upstream-Status: Inappropriate [as far as open source community is concerned, upstream is dead]
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
src/dbinc/atomic.h | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/dbinc/atomic.h b/src/dbinc/atomic.h
|
||||
index 6a858f7..1b49de5 100644
|
||||
--- a/src/dbinc/atomic.h
|
||||
+++ b/src/dbinc/atomic.h
|
||||
@@ -144,7 +144,7 @@ typedef LONG volatile *interlocked_val;
|
||||
#define atomic_inc(env, p) __atomic_inc(p)
|
||||
#define atomic_dec(env, p) __atomic_dec(p)
|
||||
#define atomic_compare_exchange(env, p, o, n) \
|
||||
- __atomic_compare_exchange((p), (o), (n))
|
||||
+ __db_atomic_compare_exchange((p), (o), (n))
|
||||
static inline int __atomic_inc(db_atomic_t *p)
|
||||
{
|
||||
int temp;
|
||||
@@ -176,7 +176,7 @@ static inline int __atomic_dec(db_atomic_t *p)
|
||||
* http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/Atomic-Builtins.html
|
||||
* which configure could be changed to use.
|
||||
*/
|
||||
-static inline int __atomic_compare_exchange(
|
||||
+static inline int __db_atomic_compare_exchange(
|
||||
db_atomic_t *p, atomic_value_t oldval, atomic_value_t newval)
|
||||
{
|
||||
atomic_value_t was;
|
||||
--
|
||||
1.8.3.1
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
From 96b303caf70a7635953c36e5bfb9ad6e75cb7637 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Fri, 14 Feb 2020 14:12:59 -0800
|
||||
Subject: [PATCH] clock: Do not define own timespec
|
||||
|
||||
timespec is provided by libc and its best left to libc
|
||||
os_gettime takes a db_timespec and passed its address to clock_gettime
|
||||
which assumes that db_timespec and timespec are same but actually
|
||||
its 12-bytes here and libc has 16-bytes
|
||||
|
||||
This can cause problems especially with 64bit time_t
|
||||
|
||||
Upstream-Status: Inappropriate [as far as open source community is concerned, upstream is dead]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
src/dbinc/clock.h | 17 +----------------
|
||||
1 file changed, 1 insertion(+), 16 deletions(-)
|
||||
|
||||
--- a/src/dbinc/clock.h
|
||||
+++ b/src/dbinc/clock.h
|
||||
@@ -44,22 +44,8 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
-/*
|
||||
- * This declaration is POSIX-compatible. Because there are lots of different
|
||||
- * time.h include file patterns out there, it's easier to declare our own name
|
||||
- * in all cases than to try and discover if a system has a struct timespec.
|
||||
- * For the same reason, and because we'd have to #include <sys/time.h> in db.h,
|
||||
- * we don't export any timespec structures in the DB API, even in places where
|
||||
- * it would make sense, like the replication statistics information.
|
||||
- */
|
||||
-typedef struct {
|
||||
- time_t tv_sec; /* seconds */
|
||||
-#ifdef HAVE_MIXED_SIZE_ADDRESSING
|
||||
- int32_t tv_nsec;
|
||||
-#else
|
||||
- long tv_nsec; /* nanoseconds */
|
||||
-#endif
|
||||
-} db_timespec;
|
||||
+#include <time.h>
|
||||
+#define db_timespec struct timespec
|
||||
|
||||
/* Operations on timespecs */
|
||||
#undef timespecclear
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
From 32e5943a3c4637d39e4d65b544dcb99e280210e3 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Sun, 23 Jul 2017 10:54:26 -0700
|
||||
Subject: [PATCH] configure: Add explicit tag options to libtool invocation
|
||||
|
||||
This helps cross compile when tag inference via heuristics
|
||||
fail because CC variable is having -fPIE -pie and libtool
|
||||
smartly removes it when building libraries
|
||||
|
||||
Upstream-Status: Inappropriate [as far as open source community is concerned, upstream is dead]
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
dist/configure.ac | 12 ++++++------
|
||||
1 file changed, 6 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/dist/configure.ac b/dist/configure.ac
|
||||
index 689f3b8..9c14bdb 100644
|
||||
--- a/dist/configure.ac
|
||||
+++ b/dist/configure.ac
|
||||
@@ -366,12 +366,12 @@ LIBTOOL="./libtool"
|
||||
|
||||
INSTALLER="\$(LIBTOOL) --mode=install cp -p"
|
||||
|
||||
-MAKEFILE_CC="\$(LIBTOOL) --mode=compile ${MAKEFILE_CC}"
|
||||
-MAKEFILE_SOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK} -avoid-version"
|
||||
-MAKEFILE_CCLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK}"
|
||||
-MAKEFILE_CXX="\$(LIBTOOL) --mode=compile ${MAKEFILE_CXX}"
|
||||
-MAKEFILE_XSOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK} -avoid-version"
|
||||
-MAKEFILE_CXXLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK}"
|
||||
+MAKEFILE_CC="\$(LIBTOOL) --tag=CC --mode=compile ${MAKEFILE_CC}"
|
||||
+MAKEFILE_SOLINK="\$(LIBTOOL) --tag=CC --mode=link ${MAKEFILE_CCLINK} -avoid-version"
|
||||
+MAKEFILE_CCLINK="\$(LIBTOOL) --tag=CC --mode=link ${MAKEFILE_CCLINK}"
|
||||
+MAKEFILE_CXX="\$(LIBTOOL) --tag=CXX --mode=compile ${MAKEFILE_CXX}"
|
||||
+MAKEFILE_XSOLINK="\$(LIBTOOL) --tag=CXX --mode=link ${MAKEFILE_CXXLINK} -avoid-version"
|
||||
+MAKEFILE_CXXLINK="\$(LIBTOOL) --tag=CXX --mode=link ${MAKEFILE_CXXLINK}"
|
||||
|
||||
|
||||
case "$host_os" in
|
||||
--
|
||||
2.13.3
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
With higher paralelism it sometimes fails with:
|
||||
libtool: link: `util_log.lo' is not a valid libtool object
|
||||
make: *** [db_replicate] Error 1
|
||||
|
||||
Upstream-Status: Inappropriate [as far as open source community is concerned, upstream is dead]
|
||||
|
||||
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
||||
|
||||
Index: db-6.0.30/dist/Makefile.in
|
||||
===================================================================
|
||||
--- db-6.0.30.orig/dist/Makefile.in
|
||||
+++ db-6.0.30/dist/Makefile.in
|
||||
@@ -1041,7 +1041,7 @@ db_recover: db_recover@o@ util_sig@o@ $(
|
||||
db_recover@o@ util_sig@o@ $(DEF_LIB) $(LIBS)
|
||||
$(POSTLINK) $@
|
||||
|
||||
-db_replicate: db_replicate@o@ util_sig@o@ $(DEF_LIB)
|
||||
+db_replicate: db_replicate@o@ util_log@o@ util_sig@o@ $(DEF_LIB)
|
||||
$(CCLINK) -o $@ $(LDFLAGS) \
|
||||
db_replicate@o@ util_log@o@ util_sig@o@ $(DEF_LIB) $(LIBS)
|
||||
$(POSTLINK) $@
|
||||
@@ -0,0 +1,59 @@
|
||||
configure wants to use host-specific types to get a 64-bit integer in db.h
|
||||
instead of using an alias such as int64_t. This means that the header differs
|
||||
in multilib environments for no good reason, so replace the type with the alias
|
||||
in stdint.h.
|
||||
|
||||
This then breaks the overly complicated type check but as we know that int64_t
|
||||
exists and works, we can just delete that.
|
||||
|
||||
Upstream-Status: Inappropriate [as far as open source community is concerned, upstream is dead]
|
||||
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
||||
|
||||
--- a/dist/aclocal/sequence.m4~ 2013-09-09 16:35:02.000000000 +0100
|
||||
+++ b/dist/aclocal/sequence.m4 2017-11-01 13:21:45.472295971 +0000
|
||||
@@ -24 +24 @@
|
||||
- db_cv_seq_type="long"
|
||||
+ db_cv_seq_type="int64_t"
|
||||
@@ -31 +31 @@
|
||||
- db_cv_seq_type="long long"
|
||||
+ db_cv_seq_type="int64_t"
|
||||
@@ -41,38 +41 @@
|
||||
- # Test to see if we can declare variables of the appropriate size
|
||||
- # and format them. If we're cross-compiling, all we get is a link
|
||||
- # test, which won't test for the appropriate printf format strings.
|
||||
- if test "$db_cv_build_sequence" = "yes"; then
|
||||
- AC_TRY_RUN([
|
||||
- main() {
|
||||
- $db_cv_seq_type l;
|
||||
- unsigned $db_cv_seq_type u;
|
||||
- char buf@<:@100@:>@;
|
||||
-
|
||||
- buf@<:@0@:>@ = 'a';
|
||||
- l = 9223372036854775807LL;
|
||||
- (void)snprintf(buf, sizeof(buf), $db_cv_seq_fmt, l);
|
||||
- if (strcmp(buf, "9223372036854775807"))
|
||||
- return (1);
|
||||
- u = 18446744073709551615ULL;
|
||||
- (void)snprintf(buf, sizeof(buf), $db_cv_seq_ufmt, u);
|
||||
- if (strcmp(buf, "18446744073709551615"))
|
||||
- return (1);
|
||||
- return (0);
|
||||
- }],, [db_cv_build_sequence="no"],
|
||||
- AC_TRY_LINK(,[
|
||||
- $db_cv_seq_type l;
|
||||
- unsigned $db_cv_seq_type u;
|
||||
- char buf@<:@100@:>@;
|
||||
-
|
||||
- buf@<:@0@:>@ = 'a';
|
||||
- l = 9223372036854775807LL;
|
||||
- (void)snprintf(buf, sizeof(buf), $db_cv_seq_fmt, l);
|
||||
- if (strcmp(buf, "9223372036854775807"))
|
||||
- return (1);
|
||||
- u = 18446744073709551615ULL;
|
||||
- (void)snprintf(buf, sizeof(buf), $db_cv_seq_ufmt, u);
|
||||
- if (strcmp(buf, "18446744073709551615"))
|
||||
- return (1);
|
||||
- return (0);
|
||||
- ],, [db_cv_build_sequence="no"]))
|
||||
- fi
|
||||
+ db_cv_build_sequence="yes"
|
||||
@@ -0,0 +1,119 @@
|
||||
# Version 5 of the Berkeley DB from Sleepycat
|
||||
#
|
||||
# At present this package only installs the DB code
|
||||
# itself (shared libraries, .a in the dev package),
|
||||
# documentation and headers.
|
||||
#
|
||||
# The headers have the same names as those as v3
|
||||
# of the DB, only one version can be used *for dev*
|
||||
# at once - DB3 and DB5 can both be installed on the
|
||||
# same system at the same time if really necessary.
|
||||
SECTION = "libs"
|
||||
SUMMARY = "Berkeley Database v5"
|
||||
DESCRIPTION = "Provides the foundational storage services for your application, no matter how demanding and unique your requirements may seem to be"
|
||||
HOMEPAGE = "https://www.oracle.com/database/technologies/related/berkeleydb.html"
|
||||
LICENSE = "Sleepycat"
|
||||
RCONFLICTS:${PN} = "db3"
|
||||
|
||||
CVE_PRODUCT = "oracle_berkeley_db berkeley_db"
|
||||
CVE_VERSION = "11.2.${PV}"
|
||||
|
||||
PR = "r1"
|
||||
PE = "1"
|
||||
|
||||
SRC_URI = "https://download.oracle.com/berkeley-db/db-${PV}.tar.gz"
|
||||
SRC_URI += "file://fix-parallel-build.patch \
|
||||
file://0001-atomic-Rename-local-__atomic_compare_exchange-to-avo.patch \
|
||||
file://0001-configure-Add-explicit-tag-options-to-libtool-invoca.patch \
|
||||
file://sequence-type.patch \
|
||||
file://0001-Fix-libc-compatibility-by-renaming-atomic_init-API.patch \
|
||||
file://0001-clock-Do-not-define-own-timespec.patch \
|
||||
"
|
||||
# We are not interested in official latest 6.x versions;
|
||||
# let's track what debian is using.
|
||||
UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/d/db5.3/"
|
||||
UPSTREAM_CHECK_REGEX = "db5\.3_(?P<pver>\d+(\.\d+)+).+\.orig"
|
||||
|
||||
SRC_URI[md5sum] = "b99454564d5b4479750567031d66fe24"
|
||||
SRC_URI[sha256sum] = "e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=ed1158e31437f4f87cdd4ab2b8613955"
|
||||
|
||||
inherit autotools
|
||||
|
||||
# The executables go in a separate package - typically there
|
||||
# is no need to install these unless doing real database
|
||||
# management on the system.
|
||||
inherit lib_package
|
||||
|
||||
PACKAGES =+ "${PN}-cxx"
|
||||
FILES:${PN}-cxx = "${libdir}/*cxx*so"
|
||||
|
||||
# The dev package has the .so link (as in db3) and the .a's -
|
||||
# it is therefore incompatible (cannot be installed at the
|
||||
# same time) as the db3 package
|
||||
# sort out the .so since they do version prior to the .so
|
||||
SOLIBS = "-5*.so"
|
||||
FILES_SOLIBSDEV = "${libdir}/libdb.so ${libdir}/libdb_cxx.so"
|
||||
|
||||
#configuration - set in local.conf to override
|
||||
# All the --disable-* options replace --enable-smallbuild, which breaks a bunch of stuff (eg. postfix)
|
||||
DB5_CONFIG ?= "--enable-o_direct --disable-cryptography --disable-queue --disable-replication --disable-compat185 --disable-sql"
|
||||
|
||||
EXTRA_OECONF = "${DB5_CONFIG} --enable-shared --enable-cxx --with-sysroot STRIP=true"
|
||||
|
||||
PACKAGECONFIG ??= ""
|
||||
PACKAGECONFIG[verify] = "--enable-verify, --disable-verify"
|
||||
PACKAGECONFIG[dbm] = "--enable-dbm,--disable-dbm,"
|
||||
|
||||
EXTRA_AUTORECONF += "--exclude=autoheader -I ${S}/dist/aclocal -I${S}/dist/aclocal_java"
|
||||
AUTOTOOLS_SCRIPT_PATH = "${S}/dist"
|
||||
|
||||
# Cancel the site stuff - it's set for db3 and destroys the
|
||||
# configure.
|
||||
CONFIG_SITE = ""
|
||||
|
||||
oe_runconf:prepend() {
|
||||
. ${S}/dist/RELEASE
|
||||
# Edit version information we couldn't pre-compute.
|
||||
sed -i -e "s/__EDIT_DB_VERSION_FAMILY__/$DB_VERSION_FAMILY/g" \
|
||||
-e "s/__EDIT_DB_VERSION_RELEASE__/$DB_VERSION_RELEASE/g" \
|
||||
-e "s/__EDIT_DB_VERSION_MAJOR__/$DB_VERSION_MAJOR/g" \
|
||||
-e "s/__EDIT_DB_VERSION_MINOR__/$DB_VERSION_MINOR/g" \
|
||||
-e "s/__EDIT_DB_VERSION_PATCH__/$DB_VERSION_PATCH/g" \
|
||||
-e "s/__EDIT_DB_VERSION_STRING__/$DB_VERSION_STRING/g" \
|
||||
-e "s/__EDIT_DB_VERSION_FULL_STRING__/$DB_VERSION_FULL_STRING/g" \
|
||||
-e "s/__EDIT_DB_VERSION_UNIQUE_NAME__/$DB_VERSION_UNIQUE_NAME/g" \
|
||||
-e "s/__EDIT_DB_VERSION__/$DB_VERSION/g" ${S}/dist/configure
|
||||
}
|
||||
|
||||
do_compile:prepend() {
|
||||
# Stop libtool adding RPATHs
|
||||
sed -i -e 's|hardcode_into_libs=yes|hardcode_into_libs=no|' ${B}/libtool
|
||||
}
|
||||
|
||||
do_install:append() {
|
||||
mkdir -p ${D}/${includedir}/db51
|
||||
mv ${D}/${includedir}/db.h ${D}/${includedir}/db51/.
|
||||
mv ${D}/${includedir}/db_cxx.h ${D}/${includedir}/db51/.
|
||||
ln -s db51/db.h ${D}/${includedir}/db.h
|
||||
ln -s db51/db_cxx.h ${D}/${includedir}/db_cxx.h
|
||||
|
||||
# The docs end up in /usr/docs - not right.
|
||||
if test -d "${D}/${prefix}/docs"
|
||||
then
|
||||
mkdir -p "${D}/${datadir}"
|
||||
test ! -d "${D}/${docdir}" || rm -rf "${D}/${docdir}"
|
||||
mv "${D}/${prefix}/docs" "${D}/${docdir}"
|
||||
fi
|
||||
|
||||
chown -R root:root ${D}
|
||||
if ${@bb.utils.contains('PACKAGECONFIG', 'verify', 'false', 'true', d)}; then
|
||||
rm -f ${D}${bindir}/db_verify
|
||||
fi
|
||||
}
|
||||
|
||||
INSANE_SKIP:${PN} = "dev-so"
|
||||
INSANE_SKIP:${PN}-cxx = "dev-so"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,60 @@
|
||||
SUMMARY = "Miscellaneous utilities specific to Debian"
|
||||
DESCRIPTION = "Provides a number of small utilities which are used \
|
||||
primarily by the installation scripts of Debian packages, although \
|
||||
you may use them directly. "
|
||||
HOMEPAGE = "https://packages.debian.org/sid/debianutils"
|
||||
BUGTRACKER = "https://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=debianutils;dist=unstable"
|
||||
SECTION = "base"
|
||||
LICENSE = "GPL-2.0-only & SMAIL_GPL"
|
||||
LIC_FILES_CHKSUM = "file://debian/copyright;md5=74765f57ae5dd2b10ffbc39528d98753"
|
||||
|
||||
SRC_URI = "git://salsa.debian.org/debian/debianutils.git;protocol=https;branch=master \
|
||||
"
|
||||
|
||||
SRCREV = "69116b856177ceb270908103b5776f897d2863c3"
|
||||
|
||||
inherit autotools update-alternatives
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
# Disable po4a (translated manpages) sub-directory, as that requires po4a to build
|
||||
do_configure:prepend() {
|
||||
sed -i -e 's:po4a::g' ${S}/Makefile.am
|
||||
}
|
||||
|
||||
|
||||
do_install:append() {
|
||||
if [ "${base_bindir}" != "${bindir}" ]; then
|
||||
# Debian places some utils into ${base_bindir} as does busybox
|
||||
install -d ${D}${base_bindir}
|
||||
for app in run-parts; do
|
||||
mv ${D}${bindir}/$app ${D}${base_bindir}/$app
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
# Note that we package the update-alternatives name.
|
||||
#
|
||||
PACKAGES =+ "${PN}-run-parts"
|
||||
FILES:${PN}-run-parts = "${base_bindir}/run-parts.debianutils"
|
||||
|
||||
RDEPENDS:${PN} += "${PN}-run-parts"
|
||||
RDEPENDS:${PN}:class-native = ""
|
||||
|
||||
ALTERNATIVE_PRIORITY = "30"
|
||||
ALTERNATIVE:${PN} = "add-shell installkernel remove-shell savelog which"
|
||||
|
||||
ALTERNATIVE_PRIORITY_${PN}-run-parts = "60"
|
||||
ALTERNATIVE:${PN}-run-parts = "run-parts"
|
||||
|
||||
ALTERNATIVE:${PN}-doc = "which.1"
|
||||
ALTERNATIVE_LINK_NAME[which.1] = "${mandir}/man1/which.1"
|
||||
|
||||
ALTERNATIVE_LINK_NAME[add-shell] = "${sbindir}/add-shell"
|
||||
ALTERNATIVE_LINK_NAME[installkernel] = "${sbindir}/installkernel"
|
||||
ALTERNATIVE_LINK_NAME[remove-shell] = "${sbindir}/remove-shell"
|
||||
ALTERNATIVE_LINK_NAME[run-parts] = "${base_bindir}/run-parts"
|
||||
ALTERNATIVE_LINK_NAME[savelog] = "${bindir}/savelog"
|
||||
ALTERNATIVE_LINK_NAME[which] = "${bindir}/which"
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
@@ -0,0 +1,43 @@
|
||||
SUMMARY = "in-depth comparison of files, archives, and directories"
|
||||
DESCRIPTION = "Tries to get to the bottom of what makes files or directories \
|
||||
different. It will recursively unpack archives of many kinds and transform \
|
||||
various binary formats into more human-readable form to compare them. \
|
||||
It can compare two tarballs, ISO images, or PDF just as easily."
|
||||
HOMEPAGE = "https://diffoscope.org/"
|
||||
BUGTRACKER = "https://salsa.debian.org/reproducible-builds/diffoscope/-/issues"
|
||||
LICENSE = "GPL-3.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
|
||||
|
||||
PYPI_PACKAGE = "diffoscope"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
SRC_URI[sha256sum] = "8bee8bbb144cdb7ddfa21886d5ce1822220139241c9a53def09b4adc3340db93"
|
||||
|
||||
RDEPENDS:${PN} += "\
|
||||
binutils \
|
||||
python3-curses \
|
||||
python3-difflib \
|
||||
python3-fcntl \
|
||||
python3-json \
|
||||
python3-libarchive-c \
|
||||
python3-magic \
|
||||
python3-multiprocessing \
|
||||
python3-pprint \
|
||||
python3-rpm \
|
||||
squashfs-tools \
|
||||
vim \
|
||||
"
|
||||
|
||||
# Dependencies don't build for musl
|
||||
COMPATIBLE_HOST:libc-musl = 'null'
|
||||
|
||||
do_install:append:class-native() {
|
||||
create_wrapper ${D}${bindir}/diffoscope \
|
||||
MAGIC=${STAGING_DIR_NATIVE}${datadir_native}/misc/magic.mgc \
|
||||
RPM_CONFIGDIR=${STAGING_LIBDIR_NATIVE}/rpm \
|
||||
LD_LIBRARY_PATH=${STAGING_LIBDIR_NATIVE} \
|
||||
RPM_ETCCONFIGDIR=${STAGING_DIR_NATIVE}
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
@@ -0,0 +1,34 @@
|
||||
SUMMARY = "Convert text file line endings between CRLF and LF"
|
||||
DESCRIPTION = "The Dos2unix package includes utilities dos2unix and \
|
||||
unix2dos to convert plain text files in DOS or Mac format to Unix \
|
||||
format and vice versa."
|
||||
HOMEPAGE = "http://waterlan.home.xs4all.nl/dos2unix.html"
|
||||
SECTION = "support"
|
||||
|
||||
LICENSE = "BSD-2-Clause"
|
||||
LIC_FILES_CHKSUM = "file://COPYING.txt;md5=37f72246ce2aa2fce9482c10b1f2b502"
|
||||
|
||||
SRC_URI = "git://git.code.sf.net/p/dos2unix/dos2unix;branch=master;protocol=https"
|
||||
UPSTREAM_CHECK_GITTAGREGEX = "dos2unix-(?P<pver>(\d+(\.\d+)+))"
|
||||
|
||||
SRCREV = "d6613bbb175624f065de907ebcc94437f699c14e"
|
||||
|
||||
S = "${WORKDIR}/git/dos2unix"
|
||||
|
||||
inherit gettext perlnative
|
||||
|
||||
# The dos2unix NLS relies on po4a-native, while po4a recipe is
|
||||
# provided by meta-perl layer, so make it optional here, you
|
||||
# need have meta-perl in bblayers.conf before enabling nls in
|
||||
# PACKAGECONFIG.
|
||||
PACKAGECONFIG ??= ""
|
||||
PACKAGECONFIG[nls] = "ENABLE_NLS=1,ENABLE_NLS=,po4a-native"
|
||||
|
||||
EXTRA_OEMAKE = "${PACKAGECONFIG_CONFARGS} LDFLAGS_USER='${LDFLAGS}'"
|
||||
EXTRA_OEMAKE:class-native = "ENABLE_NLS="
|
||||
|
||||
do_install () {
|
||||
oe_runmake DESTDIR="${D}${base_prefix}" install
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,31 @@
|
||||
SUMMARY = "Enchant Spell checker API Library"
|
||||
DESCRIPTION = "A library (and command-line program) that wraps a number of \
|
||||
different spelling libraries and programs with a consistent interface."
|
||||
SECTION = "libs"
|
||||
HOMEPAGE = "https://abiword.github.io/enchant/"
|
||||
BUGTRACKER = "https://github.com/AbiWord/enchant/issues/"
|
||||
LICENSE = "LGPL-2.1-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c"
|
||||
|
||||
DEPENDS = "glib-2.0 groff-native"
|
||||
|
||||
inherit autotools pkgconfig github-releases
|
||||
|
||||
SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/enchant-${PV}.tar.gz"
|
||||
SRC_URI[sha256sum] = "149e224cdd2ca825d874639578b6246e07f37d5b8f3970658a377a1ef46f2e15"
|
||||
|
||||
GITHUB_BASE_URI = "https://github.com/AbiWord/enchant/releases"
|
||||
|
||||
S = "${WORKDIR}/enchant-${PV}"
|
||||
|
||||
EXTRA_OEMAKE = "pkgdatadir=${datadir}/enchant-2"
|
||||
|
||||
PACKAGECONFIG ??= "aspell"
|
||||
PACKAGECONFIG[aspell] = "--with-aspell,--without-aspell,aspell,aspell"
|
||||
PACKAGECONFIG[hunspell] = "--with-hunspell,--without-hunspell,hunspell,hunspell"
|
||||
|
||||
FILES:${PN} += " \
|
||||
${datadir}/enchant-2 \
|
||||
${libdir}/enchant-2 \
|
||||
"
|
||||
FILES:${PN}-staticdev += "${libdir}/enchant-2/*.a"
|
||||
@@ -0,0 +1,20 @@
|
||||
SUMMARY = "Free Implementation of the Unicode Bidirectional Algorithm"
|
||||
DESCRIPTION = "It provides utility functions to aid in the development \
|
||||
of interactive editors and widgets that implement BiDi functionality. \
|
||||
The BiDi algorithm is a prerequisite for supporting right-to-left scripts such \
|
||||
as Hebrew, Arabic, Syriac, and Thaana. "
|
||||
SECTION = "libs"
|
||||
HOMEPAGE = "http://fribidi.org/"
|
||||
BUGTRACKER = "https://github.com/fribidi/fribidi/issues"
|
||||
LICENSE = "LGPL-2.1-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=a916467b91076e631dd8edb7424769c7"
|
||||
|
||||
SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/${BP}.tar.xz \
|
||||
"
|
||||
SRC_URI[sha256sum] = "7fa16c80c81bd622f7b198d31356da139cc318a63fc7761217af4130903f54a2"
|
||||
|
||||
inherit meson lib_package pkgconfig github-releases
|
||||
|
||||
CVE_PRODUCT = "gnu_fribidi fribidi"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,50 @@
|
||||
From 8bea84a598b51a7ac7e50aa8f0f20857a9b6b07b Mon Sep 17 00:00:00 2001
|
||||
From: Josep Puigdemont <josep.puigdemont@enea.com>
|
||||
Date: Sun, 4 May 2014 16:02:07 +0200
|
||||
Subject: [PATCH] Add install-ptest rules.
|
||||
|
||||
Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
|
||||
Signed-off-by: Maxin B. John <maxin.john@enea.com>
|
||||
Upstream-Status: Pending
|
||||
|
||||
---
|
||||
Makefile.am | 5 +++++
|
||||
tests/Makefile.am | 12 ++++++++++++
|
||||
2 files changed, 17 insertions(+)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index 59e2643..5f3ceb0 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -64,3 +64,8 @@ ChangeLog:
|
||||
mv ChangeLog.tmp ChangeLog; \
|
||||
rm -f ChangeLog.tmp; \
|
||||
fi
|
||||
+
|
||||
+install-ptest:
|
||||
+ @for subdir in $(SUBDIRS); do \
|
||||
+ $(MAKE) -C $$subdir DESTDIR=$(DESTDIR)/$$subdir $@; \
|
||||
+ done
|
||||
diff --git a/tests/Makefile.am b/tests/Makefile.am
|
||||
index fac6826..5dc2091 100644
|
||||
--- a/tests/Makefile.am
|
||||
+++ b/tests/Makefile.am
|
||||
@@ -143,3 +143,15 @@ d_creat_ce_LDADD = ../src/libgdbm.la ../compat/libgdbm_compat.la
|
||||
t_wordwrap_LDADD = ../tools/libgdbmapp.a
|
||||
|
||||
SUBDIRS = gdbmtool
|
||||
+
|
||||
+buildtests: $(check_PROGRAMS) $(TESTSUITE)
|
||||
+
|
||||
+install-ptest: $(check_PROGRAMS) $(TESTSUITE)
|
||||
+ @$(INSTALL) -d $(DESTDIR)
|
||||
+ @for file in $^; do \
|
||||
+ if [ -x .libs/$$file ]; then \
|
||||
+ $(INSTALL_PROGRAM) .libs/$$file $(DESTDIR)/$$file; \
|
||||
+ else \
|
||||
+ $(INSTALL_PROGRAM) $$file $(DESTDIR) ; \
|
||||
+ fi \
|
||||
+ done
|
||||
--
|
||||
2.25.1
|
||||
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# This script is used to run the gmdb test suite
|
||||
|
||||
cd tests
|
||||
|
||||
./testsuite --am-fmt AUTOTEST_PATH=$PWD abs_builddir=$PWD COMPAT=1
|
||||
@@ -0,0 +1,45 @@
|
||||
SUMMARY = "Key/value database library with extensible hashing"
|
||||
DESCRIPTION = "Library of database functions that use extensible hashing \
|
||||
and work similar to the standard UNIX dbm. These routines are provided \
|
||||
to a programmer needing to create and manipulate a hashed database."
|
||||
HOMEPAGE = "http://www.gnu.org/software/gdbm/"
|
||||
SECTION = "libs"
|
||||
LICENSE = "GPL-3.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=241da1b9fe42e642cbb2c24d5e0c4d24"
|
||||
|
||||
|
||||
SRC_URI = "${GNU_MIRROR}/gdbm/gdbm-${PV}.tar.gz \
|
||||
file://run-ptest \
|
||||
file://ptest.patch \
|
||||
"
|
||||
|
||||
SRC_URI[sha256sum] = "74b1081d21fff13ae4bd7c16e5d6e504a4c26f7cde1dca0d963a484174bbcacd"
|
||||
|
||||
inherit autotools gettext texinfo lib_package ptest
|
||||
|
||||
# Needed for dbm python module
|
||||
EXTRA_OECONF = "--enable-libgdbm-compat --without-readline"
|
||||
|
||||
# Stop presence of dbm/nbdm on the host contaminating builds
|
||||
CACHED_CONFIGUREVARS += "ac_cv_lib_ndbm_main=no ac_cv_lib_dbm_main=no"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
do_install:append () {
|
||||
# Create a symlink to ndbm.h and gdbm.h in include/gdbm to let other packages to find
|
||||
# these headers
|
||||
install -d ${D}${includedir}/gdbm
|
||||
ln -sf ../ndbm.h ${D}/${includedir}/gdbm/ndbm.h
|
||||
ln -sf ../gdbm.h ${D}/${includedir}/gdbm/gdbm.h
|
||||
}
|
||||
|
||||
RDEPENDS:${PN}-ptest += "diffutils ${PN}-bin"
|
||||
|
||||
do_compile_ptest() {
|
||||
oe_runmake -C tests buildtests
|
||||
}
|
||||
|
||||
PACKAGES =+ "${PN}-compat \
|
||||
"
|
||||
FILES:${PN}-compat = "${libdir}/libgdbm_compat${SOLIBS} \
|
||||
"
|
||||
@@ -0,0 +1,12 @@
|
||||
SUMMARY = "GNU multiprecision arithmetic library"
|
||||
DESCRIPTION = "GMP is a free library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating point numbers"
|
||||
HOMEPAGE = "http://gmplib.org/"
|
||||
SECTION = "devel"
|
||||
|
||||
inherit autotools texinfo multilib_header
|
||||
|
||||
PACKAGECONFIG ??= ""
|
||||
PACKAGECONFIG[readline] = "--with-readline=yes,--with-readline=no,readline"
|
||||
|
||||
ARM_INSTRUCTION_SET:armv4 = "arm"
|
||||
ARM_INSTRUCTION_SET:armv5 = "arm"
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
From d3b9fc523fc11260ced890c35bc5c9e6391c8656 Mon Sep 17 00:00:00 2001
|
||||
From: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
Date: Mon, 14 Dec 2015 14:19:49 +0200
|
||||
Subject: [PATCH] Append the user provided flags to the auto-detected ones.
|
||||
|
||||
Upstream-Status: Inappropriate
|
||||
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
|
||||
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
---
|
||||
configure.ac | 14 ++++++++++----
|
||||
1 file changed, 10 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 9cedfeb..87caee5 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -1921,8 +1921,12 @@ cclist=$cclist
|
||||
EOF
|
||||
|
||||
|
||||
-test_CFLAGS=${CFLAGS+set}
|
||||
-test_CPPFLAGS=${CPPFLAGS+set}
|
||||
+test_CFLAGS=
|
||||
+test_CPPFLAGS=
|
||||
+
|
||||
+user_CFLAGS=$CFLAGS
|
||||
+user_CPPFLAGS=$CPPFLAGS
|
||||
+user_CXXFLAGS=$CXXFLAGS
|
||||
|
||||
for abi in $abilist; do
|
||||
abi_last="$abi"
|
||||
@@ -2353,7 +2357,7 @@ AC_SUBST(CCAS)
|
||||
# The C++ compiler, if desired.
|
||||
want_cxx=no
|
||||
if test $enable_cxx != no; then
|
||||
- test_CXXFLAGS=${CXXFLAGS+set}
|
||||
+ test_CXXFLAGS=
|
||||
AC_PROG_CXX
|
||||
|
||||
echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&AC_FD_CC
|
||||
@@ -2381,7 +2385,7 @@ if test $enable_cxx != no; then
|
||||
# Automake includes $CPPFLAGS in a C++ compile, so we do the same here.
|
||||
#
|
||||
for cxxflags_choice in $cxxflags_list; do
|
||||
- eval CXXFLAGS=\"\$cxxflags_$cxxflags_choice\"
|
||||
+ eval CXXFLAGS=\"\$cxxflags_$cxxflags_choice $user_CXXFLAGS\"
|
||||
GMP_PROG_CXX_WORKS($CXX $CPPFLAGS $CXXFLAGS,
|
||||
[want_cxx=yes
|
||||
break])
|
||||
@@ -2477,6 +2481,8 @@ if test "$enable_assembly" = "no"; then
|
||||
# done
|
||||
fi
|
||||
|
||||
+CFLAGS="$CFLAGS $user_CFLAGS"
|
||||
+CPPFLAGS="$CPPFLAGS $user_CPPFLAGS"
|
||||
|
||||
cat >&AC_FD_CC <<EOF
|
||||
Decided:
|
||||
--
|
||||
2.6.2
|
||||
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
From ae1a4c37417a3bbbf8ea1cab198982b0cad47e29 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Fri, 12 Aug 2016 17:08:13 +0000
|
||||
Subject: [PATCH] confiure.ac: Believe the cflags from environment
|
||||
|
||||
In some toolchains e.g. OpenEmbedded -march options
|
||||
are passed on compiler cmdline, it does not use
|
||||
the expected target triplets to make these decision
|
||||
during configure.
|
||||
|
||||
Secondly, dont set armv4 for march when no selection
|
||||
is made, since it is passed from cmdline
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
Upstream-Status: Inappropriate [OE-Specific]
|
||||
---
|
||||
|
||||
configure.ac | 11 -----------
|
||||
1 file changed, 11 deletions(-)
|
||||
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -625,17 +625,6 @@ case $host in
|
||||
any_32_testlist="sizeof-void*-4"
|
||||
any_64_testlist="sizeof-void*-8"
|
||||
|
||||
- # This is needed for clang, which is not content with flags like -mfpu=neon
|
||||
- # alone.
|
||||
- case $host in
|
||||
- *-*-*eabi)
|
||||
- gcc_cflags_fpmode="-mfloat-abi=softfp" ;;
|
||||
- *-*-*eabihf)
|
||||
- gcc_cflags_fpmode="-mfloat-abi=hard" ;;
|
||||
- *-*-mingw*)
|
||||
- limb_64=longlong ;;
|
||||
- esac
|
||||
-
|
||||
# FIXME: We make mandatory compiler options optional here. We should
|
||||
# either enforce them, or organise to strip paths as the corresponding
|
||||
# options fail.
|
||||
@@ -780,8 +769,6 @@ case $host in
|
||||
;;
|
||||
*)
|
||||
path="arm"
|
||||
- gcc_cflags_arch="-march=armv4"
|
||||
- GMP_DEFINE_RAW(["define(<NOTHUMB>,1)"])
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
@@ -0,0 +1,27 @@
|
||||
CVE: CVE-2021-43618
|
||||
Upstream-Status: Backport
|
||||
Signed-off-by: Ross Burton <ross.burton@arm.com>
|
||||
|
||||
# HG changeset patch
|
||||
# User Marco Bodrato <bodrato@mail.dm.unipi.it>
|
||||
# Date 1634836009 -7200
|
||||
# Node ID 561a9c25298e17bb01896801ff353546c6923dbd
|
||||
# Parent e1fd9db13b475209a864577237ea4b9105b3e96e
|
||||
mpz/inp_raw.c: Avoid bit size overflows
|
||||
|
||||
diff -r e1fd9db13b47 -r 561a9c25298e mpz/inp_raw.c
|
||||
--- a/mpz/inp_raw.c Tue Dec 22 23:49:51 2020 +0100
|
||||
+++ b/mpz/inp_raw.c Thu Oct 21 19:06:49 2021 +0200
|
||||
@@ -88,8 +88,11 @@
|
||||
|
||||
abs_csize = ABS (csize);
|
||||
|
||||
+ if (UNLIKELY (abs_csize > ~(mp_bitcnt_t) 0 / 8))
|
||||
+ return 0; /* Bit size overflows */
|
||||
+
|
||||
/* round up to a multiple of limbs */
|
||||
- abs_xsize = BITS_TO_LIMBS (abs_csize*8);
|
||||
+ abs_xsize = BITS_TO_LIMBS ((mp_bitcnt_t) abs_csize * 8);
|
||||
|
||||
if (abs_xsize != 0)
|
||||
{
|
||||
@@ -0,0 +1,18 @@
|
||||
exec includedir should be pointing to general yocto includdir
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
|
||||
Index: gmp-6.1.2/Makefile.am
|
||||
===================================================================
|
||||
--- gmp-6.1.2.orig/Makefile.am
|
||||
+++ gmp-6.1.2/Makefile.am
|
||||
@@ -130,7 +130,7 @@ EXTRA_DIST += gmpxx.h
|
||||
# but anyone knowledgeable enough to be playing with exec_prefix will be able
|
||||
# to address that.
|
||||
#
|
||||
-includeexecdir = $(exec_prefix)/include
|
||||
+includeexecdir = $(includedir)
|
||||
include_HEADERS = $(GMPXX_HEADERS_OPTION)
|
||||
nodist_includeexec_HEADERS = gmp.h
|
||||
lib_LTLIBRARIES = libgmp.la $(GMPXX_LTLIBRARIES_OPTION)
|
||||
@@ -0,0 +1,47 @@
|
||||
require gmp.inc
|
||||
|
||||
LICENSE = "GPL-2.0-or-later | LGPL-3.0-or-later"
|
||||
|
||||
LIC_FILES_CHKSUM = "\
|
||||
file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
|
||||
file://COPYING.LESSERv3;md5=6a6a8e020838b23406c81b19c1d46df6 \
|
||||
file://COPYINGv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
|
||||
file://COPYINGv3;md5=11cc2d3ee574f9d6b7ee797bdce4d423 \
|
||||
"
|
||||
|
||||
REVISION = ""
|
||||
SRC_URI = "https://gmplib.org/download/${BPN}/${BP}${REVISION}.tar.bz2 \
|
||||
file://use-includedir.patch \
|
||||
file://0001-Append-the-user-provided-flags-to-the-auto-detected-.patch \
|
||||
file://0001-confiure.ac-Believe-the-cflags-from-environment.patch \
|
||||
file://cve-2021-43618.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "28971fc21cf028042d4897f02fd355ea"
|
||||
SRC_URI[sha256sum] = "eae9326beb4158c386e39a356818031bd28f3124cf915f8c5b1dc4c7a36b4d7c"
|
||||
|
||||
acpaths = ""
|
||||
|
||||
EXTRA_OECONF += " --enable-cxx=detect"
|
||||
EXTRA_OECONF:append:mipsarchr6 = " --disable-assembly"
|
||||
|
||||
PACKAGES =+ "libgmpxx"
|
||||
FILES:libgmpxx = "${libdir}/libgmpxx${SOLIBS}"
|
||||
|
||||
do_install:append() {
|
||||
oe_multilib_header gmp.h
|
||||
}
|
||||
|
||||
do_install:prepend:class-target() {
|
||||
sed -i \
|
||||
-e "s|--sysroot=${STAGING_DIR_HOST}||g" \
|
||||
-e "s|${DEBUG_PREFIX_MAP}||g" \
|
||||
${B}/gmp.h
|
||||
}
|
||||
|
||||
SSTATE_SCAN_FILES += "gmp.h"
|
||||
|
||||
# Doesn't compile in MIPS16e mode due to use of hand-written
|
||||
# assembly
|
||||
MIPS_INSTRUCTION_SET = "mips"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
From df625a36be8e0c7afa68b3dd23907dc7d658c59a Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Thu, 8 Jul 2021 23:13:30 -0700
|
||||
Subject: [PATCH] fix non-literal format string issue with clang
|
||||
|
||||
clang errors out when using -Werror=format-nonliteral
|
||||
since the definition of g_strdup_vprintf() from glib-2.0
|
||||
is using va_list and clang seems to still warn where as
|
||||
gcc doesn't do that for va_list arguments
|
||||
|
||||
Upstream-Status: Submitted [https://gitlab.gnome.org/GNOME/gnome-desktop-testing/-/merge_requests/9]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
src/gnome-desktop-testing-runner.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/gnome-desktop-testing-runner.c b/src/gnome-desktop-testing-runner.c
|
||||
index d75b71c..da49e14 100644
|
||||
--- a/src/gnome-desktop-testing-runner.c
|
||||
+++ b/src/gnome-desktop-testing-runner.c
|
||||
@@ -74,7 +74,7 @@ static const char * const test_log_message_ids[] = {
|
||||
static gboolean opt_quiet = FALSE;
|
||||
static gboolean opt_tap = FALSE;
|
||||
|
||||
-static void
|
||||
+static void G_GNUC_PRINTF (3, 0)
|
||||
test_log (TestLog what,
|
||||
const char *test_name,
|
||||
const char *format,
|
||||
--
|
||||
2.32.0
|
||||
@@ -0,0 +1,24 @@
|
||||
SUMMARY = "Test runner for GNOME-style installed tests"
|
||||
DESCRIPTION = "Runner provides an execution harness for GNOME installed tests. \
|
||||
These tests are useful for verifying the functionality of software as \
|
||||
installed and packaged, and complement rather than replace build-time \
|
||||
('make check') tests."
|
||||
HOMEPAGE = "https://wiki.gnome.org/GnomeGoals/InstalledTests"
|
||||
LICENSE = "LGPL-2.0-or-later"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7 \
|
||||
file://src/gnome-desktop-testing-runner.c;beginline=1;endline=20;md5=7ef3ad9da2ffcf7707dc11151fe007f4"
|
||||
|
||||
SRC_URI = "git://gitlab.gnome.org/GNOME/gnome-desktop-testing.git;protocol=https;branch=master \
|
||||
file://0001-fix-non-literal-format-string-issue-with-clang.patch \
|
||||
"
|
||||
SRCREV = "e346cd4ed2e2102c9b195b614f3c642d23f5f6e7"
|
||||
|
||||
DEPENDS = "glib-2.0"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit autotools pkgconfig
|
||||
|
||||
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
|
||||
PACKAGECONFIG[systemd] = ",,systemd"
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
From e3adc816d2d56dd929016073937ba24e01e03cb8 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Thu, 20 Dec 2018 17:37:48 -0800
|
||||
Subject: [PATCH] Woverride-init is not needed with gcc 9
|
||||
|
||||
Fixes
|
||||
| ../../gnupg-2.2.12/dirmngr/dns.h:525:16: error: lvalue required as
|
||||
unary '&' operand |
|
||||
525 | dns_rr_i_init(&dns_quietinit((struct dns_rr_i){ 0, __VA_ARGS__
|
||||
}), (P))
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
dirmngr/dns.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/dirmngr/dns.h b/dirmngr/dns.h
|
||||
index 024d6dcc8..c6e141e16 100644
|
||||
--- a/dirmngr/dns.h
|
||||
+++ b/dirmngr/dns.h
|
||||
@@ -139,7 +139,7 @@ DNS_PUBLIC int *dns_debug_p(void);
|
||||
#define DNS_PRAGMA_QUIET _Pragma("clang diagnostic ignored \"-Winitializer-overrides\"")
|
||||
#define DNS_PRAGMA_POP _Pragma("clang diagnostic pop")
|
||||
|
||||
-#elif (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) || __GNUC__ > 4
|
||||
+#elif (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) || (__GNUC__ > 4 && __GNUC__ < 9)
|
||||
#define DNS_PRAGMA_PUSH _Pragma("GCC diagnostic push")
|
||||
#define DNS_PRAGMA_QUIET _Pragma("GCC diagnostic ignored \"-Woverride-init\"")
|
||||
#define DNS_PRAGMA_POP _Pragma("GCC diagnostic pop")
|
||||
--
|
||||
2.17.1
|
||||
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
From 8b9e3d286e87bc978ec6bb9cfd790d8d253b79c3 Mon Sep 17 00:00:00 2001
|
||||
From: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
Date: Mon, 22 Jan 2018 18:00:21 +0200
|
||||
Subject: [PATCH] configure.ac: use a custom value for the location of
|
||||
gpg-agent socket in the filesystem
|
||||
|
||||
This should avoid clashes with the host gpg-agent observed on autobuilders.
|
||||
|
||||
Upstream-Status: Inappropriate [oe-core specific, and only for -native]
|
||||
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
|
||||
---
|
||||
configure.ac | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index a547401..60bc2c5 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -1922,7 +1922,7 @@ AC_DEFINE_UNQUOTED(GPGCONF_DISP_NAME, "GPGConf",
|
||||
|
||||
AC_DEFINE_UNQUOTED(GPGTAR_NAME, "gpgtar", [The name of the gpgtar tool])
|
||||
|
||||
-AC_DEFINE_UNQUOTED(GPG_AGENT_SOCK_NAME, "S.gpg-agent",
|
||||
+AC_DEFINE_UNQUOTED(GPG_AGENT_SOCK_NAME, "S.gpg-agent.yocto-native",
|
||||
[The name of the agent socket])
|
||||
AC_DEFINE_UNQUOTED(GPG_AGENT_EXTRA_SOCK_NAME, "S.gpg-agent.extra",
|
||||
[The name of the agent socket for remote access])
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
From d9048788d906774b1475c3bb1b17e22455c2add4 Mon Sep 17 00:00:00 2001
|
||||
From: Saul Wold <sgw@linux.intel.com>
|
||||
Date: Wed, 16 Aug 2017 11:16:30 +0800
|
||||
Subject: [PATCH] use pkgconfig instead of npth config
|
||||
|
||||
Upstream-Status: Inappropriate [openembedded specific]
|
||||
|
||||
Signed-off-by: Saul Wold <sgw@linux.intel.com>
|
||||
|
||||
Rebase to 2.1.23
|
||||
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
|
||||
---
|
||||
m4/npth.m4 | 53 ++++++++---------------------------------------------
|
||||
1 file changed, 8 insertions(+), 45 deletions(-)
|
||||
|
||||
diff --git a/m4/npth.m4 b/m4/npth.m4
|
||||
index 619ed89..0cb354d 100644
|
||||
--- a/m4/npth.m4
|
||||
+++ b/m4/npth.m4
|
||||
@@ -19,25 +19,10 @@ AC_DEFUN([_AM_PATH_NPTH_CONFIG],
|
||||
if test "x$npth_config_prefix" != x ; then
|
||||
NPTH_CONFIG="$npth_config_prefix/bin/npth-config"
|
||||
fi
|
||||
+ AC_PATH_PROG(PKGCONFIG, pkg-config, no)
|
||||
|
||||
- use_gpgrt_config=""
|
||||
- if test x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
|
||||
- if $GPGRT_CONFIG npth --exists; then
|
||||
- NPTH_CONFIG="$GPGRT_CONFIG npth"
|
||||
- AC_MSG_NOTICE([Use gpgrt-config as npth-config])
|
||||
- use_gpgrt_config=yes
|
||||
- fi
|
||||
- fi
|
||||
- if test -z "$use_gpgrt_config"; then
|
||||
- AC_PATH_PROG(NPTH_CONFIG, npth-config, no)
|
||||
- fi
|
||||
-
|
||||
- if test "$NPTH_CONFIG" != "no" ; then
|
||||
- if test -z "$use_gpgrt_config"; then
|
||||
- npth_version=`$NPTH_CONFIG --version`
|
||||
- else
|
||||
- npth_version=`$NPTH_CONFIG --modversion`
|
||||
- fi
|
||||
+ if test "$PKGCONFIG" != "no" ; then
|
||||
+ npth_version=`$PKGCONFIG --modversion npth`
|
||||
fi
|
||||
npth_version_major=`echo $npth_version | \
|
||||
sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
|
||||
@@ -62,7 +47,7 @@ AC_DEFUN([AM_PATH_NPTH],
|
||||
|
||||
AC_MSG_CHECKING(for NPTH - version >= $min_npth_version)
|
||||
ok=no
|
||||
- if test "$NPTH_CONFIG" != "no" ; then
|
||||
+ if test "$PKGCONFIG" != "no" ; then
|
||||
req_major=`echo $min_npth_version | \
|
||||
sed 's/\([[0-9]]*\)\.\([[0-9]]*\)/\1/'`
|
||||
req_minor=`echo $min_npth_version | \
|
||||
@@ -83,32 +68,9 @@ AC_DEFUN([AM_PATH_NPTH],
|
||||
fi
|
||||
if test $ok = yes; then
|
||||
AC_MSG_RESULT([yes ($npth_version)])
|
||||
- else
|
||||
- AC_MSG_RESULT(no)
|
||||
- fi
|
||||
- if test $ok = yes; then
|
||||
- # If we have a recent NPTH, we should also check that the
|
||||
- # API is compatible.
|
||||
- if test "$req_npth_api" -gt 0 ; then
|
||||
- if test -z "$use_gpgrt_config"; then
|
||||
- tmp=`$NPTH_CONFIG --api-version 2>/dev/null || echo 0`
|
||||
- else
|
||||
- tmp=`$NPTH_CONFIG --variable=api_version 2>/dev/null || echo 0`
|
||||
- fi
|
||||
- if test "$tmp" -gt 0 ; then
|
||||
- AC_MSG_CHECKING([NPTH API version])
|
||||
- if test "$req_npth_api" -eq "$tmp" ; then
|
||||
- AC_MSG_RESULT([okay])
|
||||
- else
|
||||
- ok=no
|
||||
- AC_MSG_RESULT([does not match. want=$req_npth_api got=$tmp])
|
||||
- fi
|
||||
- fi
|
||||
- fi
|
||||
- fi
|
||||
- if test $ok = yes; then
|
||||
- NPTH_CFLAGS=`$NPTH_CONFIG --cflags`
|
||||
- NPTH_LIBS=`$NPTH_CONFIG --libs`
|
||||
+ NPTH_CFLAGS=`$PKGCONFIG --cflags npth`
|
||||
+ NPTH_LIBS=`$PKGCONFIG --libs npth`
|
||||
+ AC_MSG_WARN([[GOT HERE - $NPTH_LIBS ]])
|
||||
ifelse([$2], , :, [$2])
|
||||
if test -z "$use_gpgrt_config"; then
|
||||
npth_config_host=`$NPTH_CONFIG --host 2>/dev/null || echo none`
|
||||
@@ -128,6 +90,7 @@ AC_DEFUN([AM_PATH_NPTH],
|
||||
fi
|
||||
fi
|
||||
else
|
||||
+ AC_MSG_RESULT(no)
|
||||
NPTH_CFLAGS=""
|
||||
NPTH_LIBS=""
|
||||
ifelse([$3], , :, [$3])
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
From 914ae4a3f7529fb069467bf0ded57dd24ee2e763 Mon Sep 17 00:00:00 2001
|
||||
From: Wenzong Fan <wenzong.fan@windriver.com>
|
||||
Date: Wed, 16 Aug 2017 11:23:22 +0800
|
||||
Subject: [PATCH 4/4] autogen.sh: fix find-version for beta checking
|
||||
|
||||
find-version always assumes that gnupg is beta if autogen.sh is run
|
||||
out of git-repo. This doesn't work for users whom just take release
|
||||
tarball and re-run autoconf in their local build dir.
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
|
||||
|
||||
Rebase to 2.1.23
|
||||
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
---
|
||||
autogen.sh | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/autogen.sh b/autogen.sh
|
||||
index e5ba5bf..05e0e11 100755
|
||||
--- a/autogen.sh
|
||||
+++ b/autogen.sh
|
||||
@@ -245,7 +245,6 @@ if [ "$myhost" = "find-version" ]; then
|
||||
rvd=$((0x$(echo ${rev} | dd bs=1 count=4 2>/dev/null)))
|
||||
else
|
||||
ingit=no
|
||||
- beta=yes
|
||||
tmp="-unknown"
|
||||
rev="0000000"
|
||||
rvd="0"
|
||||
--
|
||||
1.8.3.1
|
||||
|
||||
@@ -0,0 +1,82 @@
|
||||
From c4ddea8e6070d1df51058aac08088e27c37e7e73 Mon Sep 17 00:00:00 2001
|
||||
From: Ross Burton <ross.burton@intel.com>
|
||||
Date: Wed, 19 Sep 2018 14:44:40 +0100
|
||||
Subject: [PATCH] Allow the environment to override where gnupg looks for its
|
||||
own files. Useful in native builds.
|
||||
|
||||
Upstream-Status: Inappropriate [OE-specific]
|
||||
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
||||
|
||||
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
|
||||
|
||||
---
|
||||
common/homedir.c | 14 +++++++-------
|
||||
1 file changed, 7 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/common/homedir.c b/common/homedir.c
|
||||
index 286685f..212a945 100644
|
||||
--- a/common/homedir.c
|
||||
+++ b/common/homedir.c
|
||||
@@ -1213,7 +1213,7 @@ gnupg_socketdir (void)
|
||||
if (!name)
|
||||
{
|
||||
unsigned int dummy;
|
||||
- name = _gnupg_socketdir_internal (0, &dummy);
|
||||
+ name = getenv("GNUPG_SOCKETDIR") ?: _gnupg_socketdir_internal (0, &dummy);
|
||||
gpgrt_annotate_leaked_object (name);
|
||||
}
|
||||
|
||||
@@ -1245,7 +1245,7 @@ gnupg_sysconfdir (void)
|
||||
if (dir)
|
||||
return dir;
|
||||
else
|
||||
- return GNUPG_SYSCONFDIR;
|
||||
+ return getenv("GNUPG_SYSCONFDIR") ?: GNUPG_SYSCONFDIR;
|
||||
#endif /*!HAVE_W32_SYSTEM*/
|
||||
}
|
||||
|
||||
@@ -1281,7 +1281,7 @@ gnupg_bindir (void)
|
||||
return name;
|
||||
}
|
||||
else
|
||||
- return GNUPG_BINDIR;
|
||||
+ return getenv("GNUPG_BINDIR") ?: GNUPG_BINDIR;
|
||||
#endif /*!HAVE_W32_SYSTEM*/
|
||||
}
|
||||
|
||||
@@ -1308,7 +1308,7 @@ gnupg_libexecdir (void)
|
||||
return name;
|
||||
}
|
||||
else
|
||||
- return GNUPG_LIBEXECDIR;
|
||||
+ return getenv("GNUPG_LIBEXECDIR") ?: GNUPG_LIBEXECDIR;
|
||||
#endif /*!HAVE_W32_SYSTEM*/
|
||||
}
|
||||
|
||||
@@ -1338,7 +1338,7 @@ gnupg_libdir (void)
|
||||
return name;
|
||||
}
|
||||
else
|
||||
- return GNUPG_LIBDIR;
|
||||
+ return getenv("GNUPG_LIBDIR") ?: GNUPG_LIBDIR;
|
||||
#endif /*!HAVE_W32_SYSTEM*/
|
||||
}
|
||||
|
||||
@@ -1369,7 +1369,7 @@ gnupg_datadir (void)
|
||||
return name;
|
||||
}
|
||||
else
|
||||
- return GNUPG_DATADIR;
|
||||
+ return getenv("GNUPG_DATADIR") ?: GNUPG_DATADIR;
|
||||
#endif /*!HAVE_W32_SYSTEM*/
|
||||
}
|
||||
|
||||
@@ -1401,7 +1401,7 @@ gnupg_localedir (void)
|
||||
return name;
|
||||
}
|
||||
else
|
||||
- return LOCALEDIR;
|
||||
+ return getenv("LOCALEDIR") ?: LOCALEDIR;
|
||||
#endif /*!HAVE_W32_SYSTEM*/
|
||||
}
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
SUMMARY = "GNU Privacy Guard - encryption and signing tools (2.x)"
|
||||
DESCRIPTION = "A complete and free implementation of the OpenPGP standard \
|
||||
as defined by RFC4880 (also known as PGP). GnuPG allows you to encrypt \
|
||||
and sign your data and communications; it features a versatile key \
|
||||
management system, along with access modules for all kinds of public \
|
||||
key directories."
|
||||
HOMEPAGE = "http://www.gnupg.org/"
|
||||
LICENSE = "GPL-3.0-only & LGPL-3.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=189af8afca6d6075ba6c9e0aa8077626 \
|
||||
file://COPYING.LGPL3;md5=a2b6bf2cb38ee52619e60f30a1fc7257"
|
||||
|
||||
DEPENDS = "npth libassuan libksba zlib bzip2 readline libgcrypt"
|
||||
|
||||
inherit autotools gettext texinfo pkgconfig
|
||||
|
||||
UPSTREAM_CHECK_URI = "https://gnupg.org/download/index.html"
|
||||
SRC_URI = "${GNUPG_MIRROR}/${BPN}/${BPN}-${PV}.tar.bz2 \
|
||||
file://0002-use-pkgconfig-instead-of-npth-config.patch \
|
||||
file://0004-autogen.sh-fix-find-version-for-beta-checking.patch \
|
||||
file://0001-Woverride-init-is-not-needed-with-gcc-9.patch \
|
||||
"
|
||||
SRC_URI:append:class-native = " file://0001-configure.ac-use-a-custom-value-for-the-location-of-.patch \
|
||||
file://relocate.patch"
|
||||
SRC_URI:append:class-nativesdk = " file://relocate.patch"
|
||||
|
||||
SRC_URI[sha256sum] = "97eb47df8ae5a3ff744f868005a090da5ab45cb48ee9836dbf5ee739a4e5cf49"
|
||||
|
||||
EXTRA_OECONF = "--disable-ldap \
|
||||
--disable-ccid-driver \
|
||||
--with-zlib=${STAGING_LIBDIR}/.. \
|
||||
--with-bzip2=${STAGING_LIBDIR}/.. \
|
||||
--with-readline=${STAGING_LIBDIR}/.. \
|
||||
--with-mailprog=${sbindir}/sendmail \
|
||||
--enable-gpg-is-gpg2 \
|
||||
"
|
||||
|
||||
# A minimal package containing just enough to run gpg+gpgagent (E.g. use gpgme in opkg)
|
||||
PACKAGES =+ "${PN}-gpg"
|
||||
FILES:${PN}-gpg = " \
|
||||
${bindir}/gpg \
|
||||
${bindir}/gpg2 \
|
||||
${bindir}/gpg-agent \
|
||||
"
|
||||
|
||||
# Normal package (gnupg) should depend on minimal package (gnupg-gpg)
|
||||
# to ensure all tools are included. This is done only in non-native
|
||||
# builds. Native builds don't have sub-packages, so appending RDEPENDS
|
||||
# in this case breaks recipe parsing.
|
||||
RDEPENDS:${PN} += "${@ "" if ("native" in d.getVar("PN")) else (d.getVar("PN") + "-gpg")}"
|
||||
|
||||
RRECOMMENDS:${PN} = "pinentry"
|
||||
|
||||
do_configure:prepend () {
|
||||
# Else these could be used in prefernce to those in aclocal-copy
|
||||
rm -f ${S}/m4/gpg-error.m4
|
||||
rm -f ${S}/m4/libassuan.m4
|
||||
rm -f ${S}/m4/ksba.m4
|
||||
rm -f ${S}/m4/libgcrypt.m4
|
||||
}
|
||||
|
||||
do_install:append() {
|
||||
ln -sf gpg2 ${D}${bindir}/gpg
|
||||
ln -sf gpgv2 ${D}${bindir}/gpgv
|
||||
}
|
||||
|
||||
do_install:append:class-native() {
|
||||
create_wrappers ${STAGING_BINDIR_NATIVE}
|
||||
}
|
||||
|
||||
do_install:append:class-nativesdk() {
|
||||
create_wrappers ${SDKPATHNATIVE}${bindir_nativesdk}
|
||||
}
|
||||
|
||||
create_wrappers() {
|
||||
for i in gpg2 gpgconf gpg-agent gpg-connect-agent; do
|
||||
create_wrapper ${D}${bindir}/$i GNUPG_BINDIR=$1
|
||||
done
|
||||
}
|
||||
|
||||
PACKAGECONFIG ??= "gnutls"
|
||||
PACKAGECONFIG[gnutls] = "--enable-gnutls, --disable-gnutls, gnutls"
|
||||
PACKAGECONFIG[sqlite3] = "--enable-sqlite, --disable-sqlite, sqlite3"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
lcl_maybe_fortify:mipsarch = ""
|
||||
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
From 21a8295bac3805e4490ba2b5f136e7f4c121061b Mon Sep 17 00:00:00 2001
|
||||
From: Lei Maohui <leimaohui@fujitsu.com>
|
||||
Date: Mon, 23 May 2022 10:44:43 +0900
|
||||
Subject: [PATCH] Creating .hmac file should be excuted in target environment,
|
||||
so deleted it from build process.
|
||||
|
||||
Upstream-Status: Inappropriate [https://gitlab.com/gnutls/gnutls/-/issues/1373]
|
||||
Signed-off-by: Lei Maohui <leimaohui@fujitsu.com>
|
||||
|
||||
---
|
||||
lib/Makefile.am | 3 +--
|
||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||
|
||||
diff --git a/lib/Makefile.am b/lib/Makefile.am
|
||||
index 6d4e8d2..24ef108 100644
|
||||
--- a/lib/Makefile.am
|
||||
+++ b/lib/Makefile.am
|
||||
@@ -206,8 +206,7 @@ hmac_file = .libs/.$(gnutls_so).hmac
|
||||
|
||||
all-local: $(hmac_file)
|
||||
|
||||
-$(hmac_file): libgnutls.la fipshmac
|
||||
- $(AM_V_GEN) $(builddir)/fipshmac > $@-t && mv $@-t $@
|
||||
+.libs/.$(gnutls_so).hmac:
|
||||
|
||||
CLEANFILES = $(hmac_file)
|
||||
endif
|
||||
@@ -0,0 +1,58 @@
|
||||
From 81861f7ba690956c064ebe8dce6c313951fa2a9f Mon Sep 17 00:00:00 2001
|
||||
From: Ravineet Singh <ravineet.a.singh@est.tech>
|
||||
Date: Tue, 10 Jan 2023 16:11:10 +0100
|
||||
Subject: [PATCH] gnutls: add ptest support
|
||||
|
||||
Upstream-Status: Inappropriate [embedded specific]
|
||||
Signed-off-by: Ravineet Singh <ravineet.a.singh@est.tech>
|
||||
|
||||
---
|
||||
Makefile.am | 3 +++
|
||||
configure.ac | 2 ++
|
||||
tests/Makefile.am | 6 ++++++
|
||||
3 files changed, 11 insertions(+)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index 843193f..816b09f 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -191,6 +191,9 @@ dist-hook:
|
||||
mv ChangeLog $(distdir)
|
||||
touch -c $(distdir)/doc/*.html $(distdir)/doc/*.pdf $(distdir)/doc/*.info
|
||||
|
||||
+install-ptest:
|
||||
+ $(MAKE) -C tests DESTDIR=$(DESTDIR)/tests $@
|
||||
+
|
||||
.PHONY: abi-check abi-dump-versioned abi-dump-latest pic-check symbol-check local-code-coverage-output files-update AUTHORS
|
||||
|
||||
include $(top_srcdir)/cligen/cligen.mk
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index b25ba14..860ddef 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -1150,6 +1150,8 @@ AC_SUBST(LIBGNUTLS_CFLAGS)
|
||||
|
||||
AM_CONDITIONAL(NEEDS_LIBRT, test "$gnutls_needs_librt" = "yes")
|
||||
|
||||
+AM_EXTRA_RECURSIVE_TARGETS([buildtest-TESTS])
|
||||
+
|
||||
AC_DEFINE([GNUTLS_INTERNAL_BUILD], 1, [We allow temporarily usage of deprecated functions - until they are removed.])
|
||||
|
||||
hw_features=
|
||||
diff --git a/tests/Makefile.am b/tests/Makefile.am
|
||||
index d530ad0..71c592f 100644
|
||||
--- a/tests/Makefile.am
|
||||
+++ b/tests/Makefile.am
|
||||
@@ -648,6 +648,12 @@ SH_LOG_COMPILER = $(SHELL)
|
||||
AM_VALGRINDFLAGS = --suppressions=$(srcdir)/suppressions.valgrind
|
||||
LOG_COMPILER = $(LOG_VALGRIND)
|
||||
|
||||
+install-ptest: $(check_PROGRAMS)
|
||||
+ @$(INSTALL) -d $(DESTDIR)
|
||||
+ @for file in $^; do \
|
||||
+ $(INSTALL_PROGRAM) $$file $(DESTDIR) ; \
|
||||
+ done
|
||||
+
|
||||
distclean-local:
|
||||
rm -rf softhsm-*.db softhsm-*.config *.tmp tmp-* x509-crt-list-import-url.config.db port.lock.d
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
From 911213d9f72ddce468322d22d223127b93964409 Mon Sep 17 00:00:00 2001
|
||||
From: Joe Slater <jslater@windriver.com>
|
||||
Date: Wed, 25 Jan 2017 13:52:59 -0800
|
||||
Subject: [PATCH] gnutls: account for ARM_EABI
|
||||
|
||||
Certain syscall's are not availabe for arm-eabi, so we eliminate
|
||||
reference to them.
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Joe Slater <jslater@windriver.com>
|
||||
|
||||
---
|
||||
tests/seccomp.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/tests/seccomp.c b/tests/seccomp.c
|
||||
index a3148fe..443bc5f 100644
|
||||
--- a/tests/seccomp.c
|
||||
+++ b/tests/seccomp.c
|
||||
@@ -52,7 +52,9 @@ int disable_system_calls(void)
|
||||
|
||||
ADD_SYSCALL(nanosleep, 0);
|
||||
ADD_SYSCALL(clock_nanosleep, 0);
|
||||
+#if ! defined(__ARM_EABI__)
|
||||
ADD_SYSCALL(time, 0);
|
||||
+#endif
|
||||
ADD_SYSCALL(getpid, 0);
|
||||
ADD_SYSCALL(gettimeofday, 0);
|
||||
# if defined(HAVE_CLOCK_GETTIME)
|
||||
@@ -0,0 +1,90 @@
|
||||
#!/bin/sh
|
||||
|
||||
rjob() {
|
||||
local job=$1
|
||||
local log=$2
|
||||
|
||||
# TODO: Output will be garbled
|
||||
./${job} >> ${log} 2>&1
|
||||
|
||||
ret=$?
|
||||
case $ret in
|
||||
0)
|
||||
echo "PASS: $t" >> ${log}
|
||||
echo "PASS: $t"
|
||||
;;
|
||||
77)
|
||||
echo "SKIP: $t" >> ${log}
|
||||
echo "SKIP: $t"
|
||||
;;
|
||||
*)
|
||||
echo "FAIL: $t" >> ${log}
|
||||
echo "FAIL: $t"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
is_disallowed() {
|
||||
local key=$1
|
||||
$(echo ${test_disallowlist} | grep -w -q ${key})
|
||||
return $?
|
||||
}
|
||||
|
||||
# TODO
|
||||
# This list should probably be in a external file
|
||||
# Testcases defined here either take very long time (dtls-stress)
|
||||
# or are dependent on local files (certs, etc) in local file system
|
||||
# currently not exported to target.
|
||||
|
||||
test_disallowlist=""
|
||||
test_disallowlist="${test_disallowlist} dtls-stress"
|
||||
test_disallowlist="${test_disallowlist} handshake-large-cert"
|
||||
test_disallowlist="${test_disallowlist} id-on-xmppAddr"
|
||||
test_disallowlist="${test_disallowlist} mini-x509-cas"
|
||||
test_disallowlist="${test_disallowlist} pkcs12_simple"
|
||||
test_disallowlist="${test_disallowlist} protocol-set-allowlist"
|
||||
test_disallowlist="${test_disallowlist} psk-file"
|
||||
test_disallowlist="${test_disallowlist} rawpk-api"
|
||||
test_disallowlist="${test_disallowlist} set_pkcs12_cred"
|
||||
test_disallowlist="${test_disallowlist} system-override-curves-allowlist"
|
||||
test_disallowlist="${test_disallowlist} system-override-hash"
|
||||
test_disallowlist="${test_disallowlist} system-override-sig"
|
||||
test_disallowlist="${test_disallowlist} system-override-sig-tls"
|
||||
test_disallowlist="${test_disallowlist} system-prio-file"
|
||||
test_disallowlist="${test_disallowlist} x509cert-tl"
|
||||
|
||||
LOG=${PWD}/tests.log
|
||||
cd tests
|
||||
max_njobs=$(grep -c ^processor /proc/cpuinfo)
|
||||
njobs=0
|
||||
|
||||
for t in *; do
|
||||
[ -x $t ] || continue
|
||||
[ -f $t ] || continue
|
||||
|
||||
is_disallowed ${t}
|
||||
[ $? -eq 0 ] && continue
|
||||
|
||||
rjob ${t} ${LOG} &
|
||||
one=1
|
||||
njobs=$(expr ${njobs} + ${one})
|
||||
if [ ${njobs} -eq ${max_njobs} ]; then
|
||||
wait
|
||||
njobs=0
|
||||
fi
|
||||
done
|
||||
wait
|
||||
|
||||
skipped=$(grep -c SKIP ${LOG})
|
||||
passed=$(grep -c PASS ${LOG})
|
||||
failed=$(grep -c FAIL ${LOG})
|
||||
total=$(expr ${passed} + ${failed} + ${skipped})
|
||||
|
||||
echo
|
||||
echo "gnutls test summary:"
|
||||
echo "--------------------"
|
||||
echo "total: ${total}"
|
||||
echo "pass : ${passed}"
|
||||
echo "fail : ${failed}"
|
||||
echo "skip : ${skipped}"
|
||||
echo
|
||||
@@ -0,0 +1,100 @@
|
||||
SUMMARY = "GNU Transport Layer Security Library"
|
||||
DESCRIPTION = "a secure communications library implementing the SSL, \
|
||||
TLS and DTLS protocols and technologies around them."
|
||||
HOMEPAGE = "https://gnutls.org/"
|
||||
BUGTRACKER = "https://savannah.gnu.org/support/?group=gnutls"
|
||||
|
||||
LICENSE = "GPL-3.0-or-later & LGPL-2.1-or-later"
|
||||
LICENSE:${PN} = "LGPL-2.1-or-later"
|
||||
LICENSE:${PN}-xx = "LGPL-2.1-or-later"
|
||||
LICENSE:${PN}-bin = "GPL-3.0-or-later"
|
||||
LICENSE:${PN}-openssl = "GPL-3.0-or-later"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=71391c8e0c1cfe68077e7fce3b586283 \
|
||||
file://doc/COPYING;md5=1ebbd3e34237af26da5dc08a4e440464 \
|
||||
file://doc/COPYING.LESSER;md5=4fbd65380cdd255951079008b364516c"
|
||||
|
||||
DEPENDS = "nettle gmp virtual/libiconv libunistring"
|
||||
|
||||
SHRT_VER = "${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}"
|
||||
|
||||
SRC_URI = "https://www.gnupg.org/ftp/gcrypt/gnutls/v${SHRT_VER}/gnutls-${PV}.tar.xz \
|
||||
file://arm_eabi.patch \
|
||||
file://0001-Creating-.hmac-file-should-be-excuted-in-target-envi.patch \
|
||||
file://run-ptest \
|
||||
file://Add-ptest-support.patch \
|
||||
"
|
||||
|
||||
SRC_URI[sha256sum] = "0ea0d11a1660a1e63f960f157b197abe6d0c8cb3255be24e1fb3815930b9bdc5"
|
||||
|
||||
inherit autotools texinfo pkgconfig gettext lib_package gtk-doc ptest
|
||||
|
||||
PACKAGECONFIG ??= "libidn libtasn1 ${@bb.utils.filter('DISTRO_FEATURES', 'seccomp', d)}"
|
||||
|
||||
# You must also have CONFIG_SECCOMP enabled in the kernel for
|
||||
# seccomp to work.
|
||||
PACKAGECONFIG[seccomp] = "--with-libseccomp-prefix=${STAGING_EXECPREFIXDIR},ac_cv_libseccomp=no,libseccomp"
|
||||
PACKAGECONFIG[libidn] = "--with-idn,--without-idn,libidn2"
|
||||
PACKAGECONFIG[libtasn1] = "--without-included-libtasn1,--with-included-libtasn1,libtasn1"
|
||||
PACKAGECONFIG[p11-kit] = "--with-p11-kit,--without-p11-kit,p11-kit"
|
||||
PACKAGECONFIG[tpm] = "--with-tpm,--without-tpm,trousers"
|
||||
PACKAGECONFIG[fips] = "--enable-fips140-mode --with-libdl-prefix=${STAGING_BASELIBDIR}"
|
||||
PACKAGECONFIG[dane] = "--enable-libdane,--disable-libdane,unbound"
|
||||
# Certificate compression
|
||||
PACKAGECONFIG[brotli] = "--with-brotli,--without-brotli,brotli"
|
||||
PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib"
|
||||
PACKAGECONFIG[zstd] = "--with-zstd,--without-zstd,zstd"
|
||||
|
||||
EXTRA_OECONF = " \
|
||||
--enable-doc \
|
||||
--disable-rpath \
|
||||
--enable-openssl-compatibility \
|
||||
--with-libpthread-prefix=${STAGING_DIR_HOST}${prefix} \
|
||||
--with-librt-prefix=${STAGING_DIR_HOST}${prefix} \
|
||||
--with-default-trust-store-file=${sysconfdir}/ssl/certs/ca-certificates.crt \
|
||||
"
|
||||
|
||||
# Otherwise the tools try and use HOSTTOOLS_DIR/bash as a shell.
|
||||
export POSIX_SHELL="${base_bindir}/sh"
|
||||
|
||||
do_configure:prepend() {
|
||||
for dir in . lib; do
|
||||
rm -f ${dir}/aclocal.m4 ${dir}/m4/libtool.m4 ${dir}/m4/lt*.m4
|
||||
done
|
||||
}
|
||||
|
||||
do_compile_ptest() {
|
||||
oe_runmake -C tests buildtest-TESTS
|
||||
}
|
||||
|
||||
do_install:append:class-target() {
|
||||
if ${@bb.utils.contains('PACKAGECONFIG', 'fips', 'true', 'false', d)}; then
|
||||
install -d ${D}${bindir}/bin
|
||||
install -m 0755 ${B}/lib/.libs/fipshmac ${D}/${bindir}/
|
||||
fi
|
||||
}
|
||||
|
||||
PACKAGES =+ "${PN}-dane ${PN}-openssl ${PN}-xx ${PN}-fips"
|
||||
|
||||
FILES:${PN}-dev += "${bindir}/gnutls-cli-debug"
|
||||
|
||||
FILES:${PN}-dane = "${libdir}/libgnutls-dane.so.*"
|
||||
FILES:${PN}-openssl = "${libdir}/libgnutls-openssl.so.*"
|
||||
FILES:${PN}-xx = "${libdir}/libgnutlsxx.so.*"
|
||||
FILES:${PN}-fips = "${bindir}/fipshmac"
|
||||
|
||||
RDEPENDS:${PN}-ptest += "python3"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
pkg_postinst_ontarget:${PN}-fips () {
|
||||
if test -x ${bindir}/fipshmac
|
||||
then
|
||||
mkdir ${sysconfdir}/gnutls
|
||||
touch ${sysconfdir}/gnutls/config
|
||||
${bindir}/fipshmac ${libdir}/libgnutls.so.30.*.* > ${libdir}/.libgnutls.so.30.hmac
|
||||
${bindir}/fipshmac ${libdir}/libnettle.so.8.* > ${libdir}/.libnettle.so.8.hmac
|
||||
${bindir}/fipshmac ${libdir}/libgmp.so.10.*.* > ${libdir}/.libgmp.so.10.hmac
|
||||
${bindir}/fipshmac ${libdir}/libhogweed.so.6.* > ${libdir}/.libhogweed.so.6.hmac
|
||||
fi
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
From 629fc6427710e48b78f8b1f300dd698fe898cfd4 Mon Sep 17 00:00:00 2001
|
||||
From: Marko Lindqvist <cazfi74@gmail.com>
|
||||
Date: Mon, 7 Jan 2013 01:49:40 +0200
|
||||
Subject: [PATCH] libtasn1: remove help2man dependency
|
||||
|
||||
Upstream-Status: Inappropriate
|
||||
|
||||
Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
|
||||
|
||||
---
|
||||
doc/Makefile.am | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/doc/Makefile.am b/doc/Makefile.am
|
||||
index a0171a5..8aa4d3d 100644
|
||||
--- a/doc/Makefile.am
|
||||
+++ b/doc/Makefile.am
|
||||
@@ -28,7 +28,7 @@ libtasn1_TEXINFOS += asn1Coding-help.texi asn1Decoding-help.texi asn1Parser-help
|
||||
|
||||
AM_MAKEINFOHTMLFLAGS = --no-split $(AM_MAKEINFOFLAGS)
|
||||
|
||||
-dist_man_MANS = $(gdoc_MANS) asn1Parser.1 asn1Coding.1 asn1Decoding.1
|
||||
+dist_man_MANS = $(gdoc_MANS)
|
||||
|
||||
HELP2MAN_OPTS = --info-page libtasn1
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
SUMMARY = "Library for ASN.1 and DER manipulation"
|
||||
DESCRIPTION = "A highly portable C library that encodes and decodes \
|
||||
DER/BER data following an ASN.1 schema. "
|
||||
HOMEPAGE = "http://www.gnu.org/software/libtasn1/"
|
||||
|
||||
LICENSE = "GPL-3.0-or-later & LGPL-2.1-or-later"
|
||||
LICENSE:${PN}-bin = "GPL-3.0-or-later"
|
||||
LICENSE:${PN} = "LGPL-2.1-or-later"
|
||||
LIC_FILES_CHKSUM = "file://doc/COPYING;md5=d32239bcb673463ab874e80d47fae504 \
|
||||
file://doc/COPYING.LESSER;md5=4fbd65380cdd255951079008b364516c \
|
||||
file://COPYING;md5=75ac100ec923f959898182307970c360"
|
||||
|
||||
SRC_URI = "${GNU_MIRROR}/libtasn1/libtasn1-${PV}.tar.gz \
|
||||
file://dont-depend-on-help2man.patch \
|
||||
"
|
||||
|
||||
DEPENDS = "bison-native"
|
||||
|
||||
SRC_URI[sha256sum] = "1613f0ac1cf484d6ec0ce3b8c06d56263cc7242f1c23b30d82d23de345a63f7a"
|
||||
|
||||
inherit autotools texinfo lib_package gtk-doc
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
+116
@@ -0,0 +1,116 @@
|
||||
From ee1421f7a7a9f31400ba992a5be52b88d20170c9 Mon Sep 17 00:00:00 2001
|
||||
From: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
Date: Fri, 10 May 2019 14:18:04 +0800
|
||||
Subject: [PATCH] Revert "build: Make gpgme.m4 use gpgrt-config with *.pc."
|
||||
|
||||
This reverts commit 60828a505a1c74fd34476c181df2a588ea6f9c83.
|
||||
|
||||
The oe-core does not support gpgrt-config, so revert it
|
||||
|
||||
Upstream-Status: Inappropriate [oe-core specific]
|
||||
|
||||
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
|
||||
---
|
||||
src/gpgme.m4 | 54 ++++++++--------------------------------------------
|
||||
1 file changed, 8 insertions(+), 46 deletions(-)
|
||||
|
||||
diff --git a/src/gpgme.m4 b/src/gpgme.m4
|
||||
index f2906c1..8cc2898 100644
|
||||
--- a/src/gpgme.m4
|
||||
+++ b/src/gpgme.m4
|
||||
@@ -125,24 +125,10 @@ AC_REQUIRE([_AM_PATH_GPGRT_CONFIG])dnl
|
||||
fi
|
||||
fi
|
||||
|
||||
- use_gpgrt_config=""
|
||||
- if test x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
|
||||
- if $GPGRT_CONFIG gpgme --exists; then
|
||||
- GPGME_CONFIG="$GPGRT_CONFIG gpgme"
|
||||
- AC_MSG_NOTICE([Use gpgrt-config as gpgme-config])
|
||||
- use_gpgrt_config=yes
|
||||
- fi
|
||||
- fi
|
||||
- if test -z "$use_gpgrt_config"; then
|
||||
- AC_PATH_PROG(GPGME_CONFIG, gpgme-config, no)
|
||||
- fi
|
||||
+ AC_PATH_PROG(GPGME_CONFIG, gpgme-config, no)
|
||||
|
||||
if test "$GPGME_CONFIG" != "no" ; then
|
||||
- if test -z "$use_gpgrt_config"; then
|
||||
- gpgme_version=`$GPGME_CONFIG --version`
|
||||
- else
|
||||
- gpgme_version=`$GPGME_CONFIG --modversion`
|
||||
- fi
|
||||
+ gpgme_version=`$GPGME_CONFIG --version`
|
||||
fi
|
||||
gpgme_version_major=`echo $gpgme_version | \
|
||||
sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
|
||||
@@ -155,16 +141,12 @@ AC_REQUIRE([_AM_PATH_GPGRT_CONFIG])dnl
|
||||
|
||||
AC_DEFUN([_AM_PATH_GPGME_CONFIG_HOST_CHECK],
|
||||
[
|
||||
- if test -z "$use_gpgrt_config"; then
|
||||
- gpgme_config_host=`$GPGME_CONFIG --host 2>/dev/null || echo none`
|
||||
- else
|
||||
- gpgme_config_host=`$GPGME_CONFIG --variable=host 2>/dev/null || echo none`
|
||||
- fi
|
||||
+ gpgme_config_host=`$GPGME_CONFIG --host 2>/dev/null || echo none`
|
||||
if test x"$gpgme_config_host" != xnone ; then
|
||||
if test x"$gpgme_config_host" != x"$host" ; then
|
||||
AC_MSG_WARN([[
|
||||
***
|
||||
-*** The config script "$GPGME_CONFIG" was
|
||||
+*** The config script $GPGME_CONFIG was
|
||||
*** built for $gpgme_config_host and thus may not match the
|
||||
*** used host $host.
|
||||
*** You may want to use the configure option --with-gpgme-prefix
|
||||
@@ -225,11 +207,7 @@ AC_DEFUN([AM_PATH_GPGME],
|
||||
# If we have a recent GPGME, we should also check that the
|
||||
# API is compatible.
|
||||
if test "$req_gpgme_api" -gt 0 ; then
|
||||
- if test -z "$use_gpgrt_config"; then
|
||||
- tmp=`$GPGME_CONFIG --api-version 2>/dev/null || echo 0`
|
||||
- else
|
||||
- tmp=`$GPGME_CONFIG --variable=api_version 2>/dev/null || echo 0`
|
||||
- fi
|
||||
+ tmp=`$GPGME_CONFIG --api-version 2>/dev/null || echo 0`
|
||||
if test "$tmp" -gt 0 ; then
|
||||
if test "$req_gpgme_api" -ne "$tmp" ; then
|
||||
ok=no
|
||||
@@ -372,11 +350,7 @@ AC_DEFUN([AM_PATH_GPGME_GLIB],
|
||||
# If we have a recent GPGME, we should also check that the
|
||||
# API is compatible.
|
||||
if test "$req_gpgme_api" -gt 0 ; then
|
||||
- if test -z "$use_gpgrt_config"; then
|
||||
- tmp=`$GPGME_CONFIG --api-version 2>/dev/null || echo 0`
|
||||
- else
|
||||
- tmp=`$GPGME_CONFIG --variable=api_version 2>/dev/null || echo 0`
|
||||
- fi
|
||||
+ tmp=`$GPGME_CONFIG --api-version 2>/dev/null || echo 0`
|
||||
if test "$tmp" -gt 0 ; then
|
||||
if test "$req_gpgme_api" -ne "$tmp" ; then
|
||||
ok=no
|
||||
@@ -385,20 +359,8 @@ AC_DEFUN([AM_PATH_GPGME_GLIB],
|
||||
fi
|
||||
fi
|
||||
if test $ok = yes; then
|
||||
- if test -z "$use_gpgrt_config"; then
|
||||
- GPGME_GLIB_CFLAGS=`$GPGME_CONFIG --glib --cflags`
|
||||
- GPGME_GLIB_LIBS=`$GPGME_CONFIG --glib --libs`
|
||||
- else
|
||||
- if $GPGRT_CONFIG gpgme-glib --exists; then
|
||||
- GPGME_CONFIG="$GPGRT_CONFIG gpgme-glib"
|
||||
- GPGME_GLIB_CFLAGS=`$GPGME_CONFIG --cflags`
|
||||
- GPGME_GLIB_LIBS=`$GPGME_CONFIG --libs`
|
||||
- else
|
||||
- ok = no
|
||||
- fi
|
||||
- fi
|
||||
- fi
|
||||
- if test $ok = yes; then
|
||||
+ GPGME_GLIB_CFLAGS=`$GPGME_CONFIG --glib --cflags`
|
||||
+ GPGME_GLIB_LIBS=`$GPGME_CONFIG --glib --libs`
|
||||
AC_MSG_RESULT(yes)
|
||||
ifelse([$2], , :, [$2])
|
||||
_AM_PATH_GPGME_CONFIG_HOST_CHECK
|
||||
@@ -0,0 +1,34 @@
|
||||
From 46f346dff73122caffe62eda84596a3a3bec859e Mon Sep 17 00:00:00 2001
|
||||
From: Chen Qi <Qi.Chen@windriver.com>
|
||||
Date: Tue, 28 Feb 2023 13:43:51 +0800
|
||||
Subject: [PATCH] autogen.sh: remove '-unknown' in version
|
||||
|
||||
python setuptools >=66.0.0 treats '-unknown' as an invalid version.
|
||||
The error message is as below:
|
||||
pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: '1.18.0-unknown'
|
||||
|
||||
Remove the '-unknown' suffix to fix this issue.
|
||||
|
||||
Upstream-Status: Submitted [https://lists.gnupg.org/pipermail/gnupg-devel/2023-February/035293.html]
|
||||
|
||||
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
|
||||
---
|
||||
autogen.sh | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/autogen.sh b/autogen.sh
|
||||
index 9b36158..d5cccd2 100755
|
||||
--- a/autogen.sh
|
||||
+++ b/autogen.sh
|
||||
@@ -266,7 +266,7 @@ if [ "$myhost" = "find-version" ]; then
|
||||
else
|
||||
ingit=no
|
||||
beta=yes
|
||||
- tmp="-unknown"
|
||||
+ tmp=""
|
||||
rev="0000000"
|
||||
rvd="0"
|
||||
fi
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@@ -0,0 +1,295 @@
|
||||
From f8221238d51066b7a1a5f2917cce2791876ea8b0 Mon Sep 17 00:00:00 2001
|
||||
From: Richard Purdie <richard.purdie@linuxfoundation.org>
|
||||
Date: Fri, 10 May 2019 14:23:55 +0800
|
||||
Subject: [PATCH] pkgconfig
|
||||
|
||||
Update gpgme to use pkgconfig instead of -config files since its
|
||||
simpler and less error prone when cross compiling.
|
||||
|
||||
Upstream-Status: Denied [Upstream not interested in pkg-config support]
|
||||
RP 2015/4/17
|
||||
|
||||
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
||||
|
||||
Rebase to 1.13.0
|
||||
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
Rebase to 1.17.0
|
||||
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
|
||||
|
||||
---
|
||||
configure.ac | 1 +
|
||||
src/Makefile.am | 4 +-
|
||||
src/gpgme-pthread.pc.in | 15 +++++
|
||||
src/gpgme.m4 | 119 +++-------------------------------------
|
||||
src/gpgme.pc.in | 4 +-
|
||||
5 files changed, 29 insertions(+), 114 deletions(-)
|
||||
create mode 100644 src/gpgme-pthread.pc.in
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index d1b9aca..9c4f97c 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -1043,6 +1043,7 @@ AC_CONFIG_FILES(Makefile src/Makefile
|
||||
src/gpgme-glib.pc
|
||||
src/gpgme.h)
|
||||
AC_CONFIG_FILES(src/gpgme-config, chmod +x src/gpgme-config)
|
||||
+AC_CONFIG_FILES(src/gpgme-pthread.pc)
|
||||
AC_CONFIG_FILES(lang/cpp/Makefile lang/cpp/src/Makefile)
|
||||
AC_CONFIG_FILES(lang/cpp/tests/Makefile)
|
||||
AC_CONFIG_FILES(lang/cpp/src/GpgmeppConfig-w32.cmake.in)
|
||||
diff --git a/src/Makefile.am b/src/Makefile.am
|
||||
index 67805a8..d38ba02 100644
|
||||
--- a/src/Makefile.am
|
||||
+++ b/src/Makefile.am
|
||||
@@ -20,11 +20,11 @@
|
||||
## Process this file with automake to produce Makefile.in
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
-pkgconfig_DATA = gpgme.pc gpgme-glib.pc
|
||||
+pkgconfig_DATA = gpgme.pc gpgme-glib.pc gpgme-pthread.pc
|
||||
|
||||
EXTRA_DIST = gpgme-config.in gpgme.m4 libgpgme.vers ChangeLog-2011 \
|
||||
gpgme.h.in versioninfo.rc.in gpgme.def \
|
||||
- gpgme.pc.in gpgme-glib.pc.in
|
||||
+ gpgme.pc.in gpgme-glib.pc.in gpgme-pthread.pc.in
|
||||
|
||||
if USE_GPGRT_CONFIG
|
||||
noinst_SCRIPTS = gpgme-config
|
||||
diff --git a/src/gpgme-pthread.pc.in b/src/gpgme-pthread.pc.in
|
||||
new file mode 100644
|
||||
index 0000000..074bbf6
|
||||
--- /dev/null
|
||||
+++ b/src/gpgme-pthread.pc.in
|
||||
@@ -0,0 +1,15 @@
|
||||
+prefix=@prefix@
|
||||
+exec_prefix=@exec_prefix@
|
||||
+libdir=@libdir@
|
||||
+includedir=@includedir@
|
||||
+
|
||||
+# API info
|
||||
+api_version=@GPGME_CONFIG_API_VERSION@
|
||||
+host=@GPGME_CONFIG_HOST@
|
||||
+
|
||||
+Name: gpgme
|
||||
+Description: GnuPG Made Easy (GPGME) is a C language library that allows to addsupport for cryptography to a program (deprecated)
|
||||
+Version: @VERSION@
|
||||
+Libs: -L${libdir} -lgpgme -lpthread
|
||||
+Cflags: -I${includedir}
|
||||
+Requires: libassuan gpg-error
|
||||
diff --git a/src/gpgme.m4 b/src/gpgme.m4
|
||||
index 8cc2898..0ff550e 100644
|
||||
--- a/src/gpgme.m4
|
||||
+++ b/src/gpgme.m4
|
||||
@@ -168,7 +168,7 @@ dnl config script does not match the host specification the script
|
||||
dnl is added to the gpg_config_script_warn variable.
|
||||
dnl
|
||||
AC_DEFUN([AM_PATH_GPGME],
|
||||
-[ AC_REQUIRE([_AM_PATH_GPGME_CONFIG])dnl
|
||||
+[
|
||||
tmp=ifelse([$1], ,1:0.4.2,$1)
|
||||
if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
|
||||
req_gpgme_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
|
||||
@@ -178,36 +178,12 @@ AC_DEFUN([AM_PATH_GPGME],
|
||||
min_gpgme_version="$tmp"
|
||||
fi
|
||||
|
||||
- AC_MSG_CHECKING(for GPGME - version >= $min_gpgme_version)
|
||||
- ok=no
|
||||
- if test "$GPGME_CONFIG" != "no" ; then
|
||||
- req_major=`echo $min_gpgme_version | \
|
||||
- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'`
|
||||
- req_minor=`echo $min_gpgme_version | \
|
||||
- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'`
|
||||
- req_micro=`echo $min_gpgme_version | \
|
||||
- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'`
|
||||
- if test "$gpgme_version_major" -gt "$req_major"; then
|
||||
- ok=yes
|
||||
- else
|
||||
- if test "$gpgme_version_major" -eq "$req_major"; then
|
||||
- if test "$gpgme_version_minor" -gt "$req_minor"; then
|
||||
- ok=yes
|
||||
- else
|
||||
- if test "$gpgme_version_minor" -eq "$req_minor"; then
|
||||
- if test "$gpgme_version_micro" -ge "$req_micro"; then
|
||||
- ok=yes
|
||||
- fi
|
||||
- fi
|
||||
- fi
|
||||
- fi
|
||||
- fi
|
||||
- fi
|
||||
+ PKG_CHECK_MODULES(GPGME, [gpgme >= $min_gpgme_version], [ok=yes], [ok=no])
|
||||
if test $ok = yes; then
|
||||
# If we have a recent GPGME, we should also check that the
|
||||
# API is compatible.
|
||||
if test "$req_gpgme_api" -gt 0 ; then
|
||||
- tmp=`$GPGME_CONFIG --api-version 2>/dev/null || echo 0`
|
||||
+ tmp=`$PKG_CONFIG --variable=api_version gpgme 2>/dev/null || echo 0`
|
||||
if test "$tmp" -gt 0 ; then
|
||||
if test "$req_gpgme_api" -ne "$tmp" ; then
|
||||
ok=no
|
||||
@@ -216,19 +192,11 @@ AC_DEFUN([AM_PATH_GPGME],
|
||||
fi
|
||||
fi
|
||||
if test $ok = yes; then
|
||||
- GPGME_CFLAGS=`$GPGME_CONFIG --cflags`
|
||||
- GPGME_LIBS=`$GPGME_CONFIG --libs`
|
||||
- AC_MSG_RESULT(yes)
|
||||
ifelse([$2], , :, [$2])
|
||||
_AM_PATH_GPGME_CONFIG_HOST_CHECK
|
||||
else
|
||||
- GPGME_CFLAGS=""
|
||||
- GPGME_LIBS=""
|
||||
- AC_MSG_RESULT(no)
|
||||
ifelse([$3], , :, [$3])
|
||||
fi
|
||||
- AC_SUBST(GPGME_CFLAGS)
|
||||
- AC_SUBST(GPGME_LIBS)
|
||||
])
|
||||
|
||||
dnl AM_PATH_GPGME_PTHREAD([MINIMUM-VERSION,
|
||||
@@ -236,9 +204,8 @@ dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]])
|
||||
dnl Test for libgpgme and define GPGME_PTHREAD_CFLAGS
|
||||
dnl and GPGME_PTHREAD_LIBS.
|
||||
dnl
|
||||
-AC_DEFUN([AM_PATH_GPGME_PTHREAD],[
|
||||
- AC_OBSOLETE([$0], [; use AM_PATH_GPGME instead to use GPGME_CFLAGS and GPGME_LIBS])dnl
|
||||
- AC_REQUIRE([_AM_PATH_GPGME_CONFIG])dnl
|
||||
+AC_DEFUN([AM_PATH_GPGME_PTHREAD],
|
||||
+[
|
||||
tmp=ifelse([$1], ,1:0.4.2,$1)
|
||||
if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
|
||||
req_gpgme_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
|
||||
@@ -248,40 +215,12 @@ AC_DEFUN([AM_PATH_GPGME_PTHREAD],[
|
||||
min_gpgme_version="$tmp"
|
||||
fi
|
||||
|
||||
- AC_MSG_CHECKING(for GPGME pthread - version >= $min_gpgme_version)
|
||||
- ok=no
|
||||
- if test "$GPGME_CONFIG" != "no" ; then
|
||||
- req_major=`echo $min_gpgme_version | \
|
||||
- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'`
|
||||
- req_minor=`echo $min_gpgme_version | \
|
||||
- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'`
|
||||
- req_micro=`echo $min_gpgme_version | \
|
||||
- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'`
|
||||
- if test "$gpgme_version_major" -gt "$req_major"; then
|
||||
- ok=yes
|
||||
- else
|
||||
- if test "$gpgme_version_major" -eq "$req_major"; then
|
||||
- if test "$gpgme_version_minor" -gt "$req_minor"; then
|
||||
- ok=yes
|
||||
- else
|
||||
- if test "$gpgme_version_minor" -eq "$req_minor"; then
|
||||
- if test "$gpgme_version_micro" -ge "$req_micro"; then
|
||||
- ok=yes
|
||||
- fi
|
||||
- fi
|
||||
- fi
|
||||
- fi
|
||||
- fi
|
||||
- fi
|
||||
+ PKG_CHECK_MODULES(GPGME_PTHREAD, [gpgme-pthread >= $min_gpgme_version], [ok=yes], [ok=no])
|
||||
if test $ok = yes; then
|
||||
# If we have a recent GPGME, we should also check that the
|
||||
# API is compatible.
|
||||
if test "$req_gpgme_api" -gt 0 ; then
|
||||
- if test -z "$use_gpgrt_config"; then
|
||||
- tmp=`$GPGME_CONFIG --api-version 2>/dev/null || echo 0`
|
||||
- else
|
||||
- tmp=`$GPGME_CONFIG --variable=api_version 2>/dev/null || echo 0`
|
||||
- fi
|
||||
+ tmp=`$PKG_CONFIG --variable=api_version gpgme-pthread 2>/dev/null || echo 0`
|
||||
if test "$tmp" -gt 0 ; then
|
||||
if test "$req_gpgme_api" -ne "$tmp" ; then
|
||||
ok=no
|
||||
@@ -290,19 +229,11 @@ AC_DEFUN([AM_PATH_GPGME_PTHREAD],[
|
||||
fi
|
||||
fi
|
||||
if test $ok = yes; then
|
||||
- GPGME_PTHREAD_CFLAGS=`$GPGME_CONFIG --cflags`
|
||||
- GPGME_PTHREAD_LIBS=`$GPGME_CONFIG --libs`
|
||||
- AC_MSG_RESULT(yes)
|
||||
ifelse([$2], , :, [$2])
|
||||
_AM_PATH_GPGME_CONFIG_HOST_CHECK
|
||||
else
|
||||
- GPGME_PTHREAD_CFLAGS=""
|
||||
- GPGME_PTHREAD_LIBS=""
|
||||
- AC_MSG_RESULT(no)
|
||||
ifelse([$3], , :, [$3])
|
||||
fi
|
||||
- AC_SUBST(GPGME_PTHREAD_CFLAGS)
|
||||
- AC_SUBST(GPGME_PTHREAD_LIBS)
|
||||
])
|
||||
|
||||
|
||||
@@ -321,36 +252,12 @@ AC_DEFUN([AM_PATH_GPGME_GLIB],
|
||||
min_gpgme_version="$tmp"
|
||||
fi
|
||||
|
||||
- AC_MSG_CHECKING(for GPGME - version >= $min_gpgme_version)
|
||||
- ok=no
|
||||
- if test "$GPGME_CONFIG" != "no" ; then
|
||||
- req_major=`echo $min_gpgme_version | \
|
||||
- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'`
|
||||
- req_minor=`echo $min_gpgme_version | \
|
||||
- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'`
|
||||
- req_micro=`echo $min_gpgme_version | \
|
||||
- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'`
|
||||
- if test "$gpgme_version_major" -gt "$req_major"; then
|
||||
- ok=yes
|
||||
- else
|
||||
- if test "$gpgme_version_major" -eq "$req_major"; then
|
||||
- if test "$gpgme_version_minor" -gt "$req_minor"; then
|
||||
- ok=yes
|
||||
- else
|
||||
- if test "$gpgme_version_minor" -eq "$req_minor"; then
|
||||
- if test "$gpgme_version_micro" -ge "$req_micro"; then
|
||||
- ok=yes
|
||||
- fi
|
||||
- fi
|
||||
- fi
|
||||
- fi
|
||||
- fi
|
||||
- fi
|
||||
+ PKG_CHECK_MODULES(GPGME_GLIB, [gpgme >= $min_gpgme_version glib-2.0], [ok=yes], [ok=no])
|
||||
if test $ok = yes; then
|
||||
# If we have a recent GPGME, we should also check that the
|
||||
# API is compatible.
|
||||
if test "$req_gpgme_api" -gt 0 ; then
|
||||
- tmp=`$GPGME_CONFIG --api-version 2>/dev/null || echo 0`
|
||||
+ tmp=`$PKG_CONFIG --variable=api_version gpgme 2>/dev/null || echo 0`
|
||||
if test "$tmp" -gt 0 ; then
|
||||
if test "$req_gpgme_api" -ne "$tmp" ; then
|
||||
ok=no
|
||||
@@ -359,17 +266,9 @@ AC_DEFUN([AM_PATH_GPGME_GLIB],
|
||||
fi
|
||||
fi
|
||||
if test $ok = yes; then
|
||||
- GPGME_GLIB_CFLAGS=`$GPGME_CONFIG --glib --cflags`
|
||||
- GPGME_GLIB_LIBS=`$GPGME_CONFIG --glib --libs`
|
||||
- AC_MSG_RESULT(yes)
|
||||
ifelse([$2], , :, [$2])
|
||||
_AM_PATH_GPGME_CONFIG_HOST_CHECK
|
||||
else
|
||||
- GPGME_GLIB_CFLAGS=""
|
||||
- GPGME_GLIB_LIBS=""
|
||||
- AC_MSG_RESULT(no)
|
||||
ifelse([$3], , :, [$3])
|
||||
fi
|
||||
- AC_SUBST(GPGME_GLIB_CFLAGS)
|
||||
- AC_SUBST(GPGME_GLIB_LIBS)
|
||||
])
|
||||
diff --git a/src/gpgme.pc.in b/src/gpgme.pc.in
|
||||
index 9ddef5c..932645b 100644
|
||||
--- a/src/gpgme.pc.in
|
||||
+++ b/src/gpgme.pc.in
|
||||
@@ -9,6 +9,6 @@ Name: gpgme
|
||||
Description: GnuPG Made Easy to access GnuPG
|
||||
Requires.private: gpg-error, libassuan
|
||||
Version: @PACKAGE_VERSION@
|
||||
-Cflags: @GPGME_CONFIG_CFLAGS@
|
||||
-Libs: @GPGME_CONFIG_LIBS@
|
||||
+Cflags: -I${includedir}
|
||||
+Libs: -L${libdir} -lgpgme
|
||||
URL: https://www.gnupg.org/software/gpgme/index.html
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
From be33cf1812b4c2a3ed85fb2532992bfb2b27b3be Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Thu, 15 Dec 2022 08:44:13 -0800
|
||||
Subject: [PATCH] posix-io.c: Use off_t instead of off64_t
|
||||
|
||||
configure.ac checks for largefile support via AC_SYS_LARGEFILE already,
|
||||
therefore use off_t and ino_t instead of 64bit variants. Musl e.g. does
|
||||
not define them without _LARGEFILE64_SOURCE and error is not seen on
|
||||
glibc because _GNU_SOURCE defines _LARGEFILE64_SOURCE
|
||||
|
||||
Fixes errors like below on 32-bit musl systems
|
||||
|
||||
../../../../../../../../workspace/sources/gpgme/src/posix-io.c:77:3: error: unknown type name 'ino64_t'; did you mean 'int64_t'?
|
||||
ino64_t d_ino;
|
||||
^~~~~~~
|
||||
int64_t
|
||||
^
|
||||
../../../../../../../../workspace/sources/gpgme/src/posix-io.c:78:3: error: unknown type name 'off64_t'; did you mean 'off_t'?
|
||||
off64_t d_off;
|
||||
^~~~~~~
|
||||
|
||||
Upstream-Status: Submitted [https://lists.gnupg.org/pipermail/gnupg-devel/2022-December/035222.html]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
src/posix-io.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/posix-io.c b/src/posix-io.c
|
||||
index 0d0a98b..286a626 100644
|
||||
--- a/src/posix-io.c
|
||||
+++ b/src/posix-io.c
|
||||
@@ -74,8 +74,8 @@
|
||||
* define it ourselves. */
|
||||
struct linux_dirent64
|
||||
{
|
||||
- ino64_t d_ino;
|
||||
- off64_t d_off;
|
||||
+ ino_t d_ino;
|
||||
+ off_t d_off;
|
||||
unsigned short d_reclen;
|
||||
unsigned char d_type;
|
||||
char d_name[];
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
From adb1d4e5498a19e9d591ac8f42f9ddfdb23a1354 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Thu, 15 Jul 2021 12:33:13 -0700
|
||||
Subject: [PATCH] use closefrom() on linux and glibc 2.34+
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
|
||||
Rebase to 1.17.0
|
||||
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
|
||||
---
|
||||
src/posix-io.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/posix-io.c b/src/posix-io.c
|
||||
index 5c6cf1d..52e513a 100644
|
||||
--- a/src/posix-io.c
|
||||
+++ b/src/posix-io.c
|
||||
@@ -570,7 +570,7 @@ _gpgme_io_spawn (const char *path, char *const argv[], unsigned int flags,
|
||||
if (fd_list[i].fd > fd)
|
||||
fd = fd_list[i].fd;
|
||||
fd++;
|
||||
-#if defined(__sun) || defined(__FreeBSD__) || defined(__GLIBC__)
|
||||
+#if defined(__sun) || defined(__FreeBSD__) || (defined(__GLIBC__) && __GNUC_PREREQ(2, 34))
|
||||
closefrom (fd);
|
||||
max_fds = fd;
|
||||
#else /*!__sun */
|
||||
--
|
||||
2.25.1
|
||||
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
From 9fce0689bc04506e5758444efa24ea99fe1ff5ef Mon Sep 17 00:00:00 2001
|
||||
From: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
Date: Fri, 10 May 2019 14:30:36 +0800
|
||||
Subject: [PATCH] gpgme/lang/python: gpg-error-config should not be used
|
||||
|
||||
gpg-error-config was modified by OE to always return an error.
|
||||
So we want to find an alternative way to retrieve whatever it
|
||||
is we need.
|
||||
|
||||
Upstream-Status: Inappropriate [changes are specific to OE]
|
||||
|
||||
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
|
||||
|
||||
Rebase to 1.13.0
|
||||
|
||||
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
|
||||
---
|
||||
lang/python/setup.py.in | 3 +--
|
||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||
|
||||
diff --git a/lang/python/setup.py.in b/lang/python/setup.py.in
|
||||
index 6f36861..1d9058b 100755
|
||||
--- a/lang/python/setup.py.in
|
||||
+++ b/lang/python/setup.py.in
|
||||
@@ -169,9 +169,8 @@ class BuildExtFirstHack(build):
|
||||
|
||||
def _generate_errors_i(self):
|
||||
|
||||
- ge_cflags='@GPG_ERROR_CFLAGS@'
|
||||
gpg_error_content = self._read_header(
|
||||
- 'gpg-error.h', ge_cflags.split(' ') if ge_cflags else [])
|
||||
+ "gpg-error.h", os.environ.get('CFLAGS').split())
|
||||
|
||||
filter_re = re.compile(r'GPG_ERR_[^ ]* =')
|
||||
rewrite_re = re.compile(r' *(.*) = .*')
|
||||
@@ -0,0 +1,33 @@
|
||||
From f632148fcc8757bb9a9601a6dab275e88cd309d2 Mon Sep 17 00:00:00 2001
|
||||
From: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
Date: Tue, 30 Jan 2018 15:28:49 +0800
|
||||
Subject: [PATCH 3/7] Correctly install python modules
|
||||
|
||||
Upstream-Status: Inappropriate [oe-core specific]
|
||||
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
|
||||
Rebase to 1.9.0
|
||||
|
||||
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
|
||||
Rebase to 1.10.0
|
||||
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
---
|
||||
lang/python/Makefile.am | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am
|
||||
index 6988faf..36c6f7b 100644
|
||||
--- a/lang/python/Makefile.am
|
||||
+++ b/lang/python/Makefile.am
|
||||
@@ -93,6 +93,7 @@ install-exec-local:
|
||||
--build-base="$$(basename "$${PYTHON}")-gpg" \
|
||||
install \
|
||||
--prefix "$(DESTDIR)$(prefix)" \
|
||||
+ --install-lib=$(DESTDIR)${pythondir} \
|
||||
--verbose ; \
|
||||
done
|
||||
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
From f51bf1114bee6d56a950dcc6ebb46d6138b3faed Mon Sep 17 00:00:00 2001
|
||||
From: Ross Burton <ross.burton@intel.com>
|
||||
Date: Wed, 16 Aug 2017 02:06:45 -0400
|
||||
Subject: [PATCH 4/7] python import
|
||||
|
||||
Don't check for output on stderr to know if an import worked, host inputrc and
|
||||
sysroot readline can cause warnings on stderr.
|
||||
|
||||
Upstream-Status: Backport (from autoconf-archive 883a2abd)
|
||||
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
||||
|
||||
Rebase to 1.9.0
|
||||
|
||||
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
---
|
||||
m4/ax_python_devel.m4 | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/m4/ax_python_devel.m4 b/m4/ax_python_devel.m4
|
||||
index b990d5b..318b089 100644
|
||||
--- a/m4/ax_python_devel.m4
|
||||
+++ b/m4/ax_python_devel.m4
|
||||
@@ -137,7 +137,7 @@ variable to configure. See ``configure --help'' for reference.
|
||||
#
|
||||
AC_MSG_CHECKING([for the distutils Python package])
|
||||
ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
|
||||
- if test -z "$ac_distutils_result"; then
|
||||
+ if test $? -eq 0; then
|
||||
AC_MSG_RESULT([yes])
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
--
|
||||
2.7.4
|
||||
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
From 8d9613c34ae495bbcbd725a2e7ac48138ba53c30 Mon Sep 17 00:00:00 2001
|
||||
From: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
Date: Thu, 13 Apr 2017 16:40:27 +0300
|
||||
Subject: [PATCH 5/7] gpgme-config: skip all /lib* or /usr/lib* directories in
|
||||
output
|
||||
|
||||
The logic was not working in multilib setups which use other
|
||||
directory names than plain /lib or /usr/lib.
|
||||
|
||||
Upstream-Status: Inappropriate [oe-core specific]
|
||||
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
---
|
||||
src/gpgme-config.in | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/gpgme-config.in b/src/gpgme-config.in
|
||||
index a4d152e..8342865 100644
|
||||
--- a/src/gpgme-config.in
|
||||
+++ b/src/gpgme-config.in
|
||||
@@ -154,7 +154,7 @@ while test $# -gt 0; do
|
||||
for i in $libs $tmp_l $assuan_libs $gpg_error_libs $tmp_x; do
|
||||
skip=no
|
||||
case $i in
|
||||
- -L/usr/lib|-L/lib)
|
||||
+ -L/usr/lib*|-L/lib*)
|
||||
skip=yes
|
||||
;;
|
||||
-L*|-l*)
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
From ef920688bfe1c7328c9e97229d62ccd35304ad84 Mon Sep 17 00:00:00 2001
|
||||
From: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
Date: Wed, 31 Jan 2018 11:01:09 +0800
|
||||
Subject: [PATCH 6/7] fix build path issue
|
||||
|
||||
Get the "--root" directory supplied to the "install" command,
|
||||
and use it as a prefix to strip off the purported filename
|
||||
encoded in bytecode files.
|
||||
|
||||
Since --root added, we need to tweak --prefix and --install-lib
|
||||
to use relative path.
|
||||
|
||||
Upstream-Status: Submitted [gnupg-devel@gnupg.org]
|
||||
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
---
|
||||
lang/python/Makefile.am | 5 +++--
|
||||
1 file changed, 3 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am
|
||||
index 36c6f7b..ce9a108 100644
|
||||
--- a/lang/python/Makefile.am
|
||||
+++ b/lang/python/Makefile.am
|
||||
@@ -92,8 +92,9 @@ install-exec-local:
|
||||
build \
|
||||
--build-base="$$(basename "$${PYTHON}")-gpg" \
|
||||
install \
|
||||
- --prefix "$(DESTDIR)$(prefix)" \
|
||||
- --install-lib=$(DESTDIR)${pythondir} \
|
||||
+ --root=${DESTDIR} \
|
||||
+ --prefix "$(prefix)" \
|
||||
+ --install-lib=${pythondir} \
|
||||
--verbose ; \
|
||||
done
|
||||
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
From 093c88817397425ee4c2333c469467229a46c9e1 Mon Sep 17 00:00:00 2001
|
||||
From: Yuan Chao <yuanc.fnst@cn.fujitsu.com>
|
||||
Date: Mon, 5 Aug 2019 01:00:58 +0900
|
||||
Subject: [PATCH 7/7] python: Add variables to tests
|
||||
|
||||
* configure.ac, lang/python/Makefile.am:
|
||||
New variable to `lang/python', set to `lang/python' if RUN_LANG_PYTHON_TESTS
|
||||
|
||||
Upstream-Status: Submitted [gnupg-devel@gnupg.org]
|
||||
|
||||
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
|
||||
Signed-off-by: Yuan Chao <yuanc.fnst@cn.fujitsu.com>
|
||||
---
|
||||
configure.ac | 5 +++++
|
||||
lang/python/Makefile.am | 3 +++
|
||||
2 files changed, 8 insertions(+)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index bd85886..b5ae42e 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -533,6 +533,11 @@ AC_ARG_ENABLE(g13-test,
|
||||
run_g13_test=$enableval)
|
||||
AM_CONDITIONAL(RUN_G13_TESTS, test "$run_g13_test" = "yes")
|
||||
|
||||
+run_lang_python_test="yes"
|
||||
+AC_ARG_ENABLE(lang-python-test,
|
||||
+ AC_HELP_STRING([--disable-lang-python-test], [disable Python regression test]),
|
||||
+ run_lang_python_test=$enableval)
|
||||
+AM_CONDITIONAL(RUN_LANG_PYTHON_TESTS, test "$run_lang_python_test" = "yes")
|
||||
|
||||
# Checks for header files.
|
||||
AC_CHECK_HEADERS_ONCE([locale.h sys/select.h sys/uio.h argp.h stdint.h
|
||||
diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am
|
||||
index 551deee..0fd555e 100644
|
||||
--- a/lang/python/Makefile.am
|
||||
+++ b/lang/python/Makefile.am
|
||||
@@ -23,7 +23,10 @@ EXTRA_DIST = \
|
||||
gpgme.i \
|
||||
helpers.c helpers.h private.h
|
||||
|
||||
+SUBDIRS = . examples doc src
|
||||
+if RUN_LANG_PYTHON_TESTS
|
||||
SUBDIRS = . tests examples doc src
|
||||
+endif
|
||||
|
||||
.PHONY: prepare
|
||||
prepare: copystamp
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
From 94cf9f8fc79c0d1d4529cebdd74328927fda36a2 Mon Sep 17 00:00:00 2001
|
||||
From: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
Date: Fri, 10 May 2019 16:19:54 +0800
|
||||
Subject: [PATCH] do not auto check var-PYTHON
|
||||
|
||||
Upstream auto check the version of python rather than specify option
|
||||
[ff6ff61 python: Auto-check for all installed python versions.]
|
||||
|
||||
In oe-core, don't check var-PYTHON, use the setting from recipe,
|
||||
only check specific python 2.7 and 3.7
|
||||
|
||||
Upstream-Status: Inappropriate [oe-core specific]
|
||||
|
||||
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
|
||||
---
|
||||
configure.ac | 5 ++---
|
||||
1 file changed, 2 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index df218ec..6a619ef 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -521,9 +521,8 @@ if test "$found_py" = "1"; then
|
||||
if test "$found_py" = "1" -o "$found_py3" = "1"; then
|
||||
# Reset everything, so that we can look for another Python.
|
||||
m4_foreach([mym4pythonver],
|
||||
- [[2.7],[3.4],[3.5],[3.6],[3.7],[3.8],[3.9],[3.10],
|
||||
- [3.11],[3.12],[all]],
|
||||
- [unset PYTHON
|
||||
+ [[2.7],[3.7]],
|
||||
+ [
|
||||
unset PYTHON_VERSION
|
||||
unset PYTHON_CPPFLAGS
|
||||
unset PYTHON_LDFLAGS
|
||||
@@ -0,0 +1,83 @@
|
||||
SUMMARY = "High-level GnuPG encryption/signing API"
|
||||
DESCRIPTION = "GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG easier for applications. It provides a High-Level Crypto API for encryption, decryption, signing, signature verification and key management"
|
||||
HOMEPAGE = "http://www.gnupg.org/gpgme.html"
|
||||
BUGTRACKER = "https://bugs.g10code.com/gnupg/index"
|
||||
|
||||
LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
|
||||
file://COPYING.LESSER;md5=bbb461211a33b134d42ed5ee802b37ff \
|
||||
file://src/gpgme.h.in;endline=23;md5=2f0bf06d1c7dcb28532a9d0f94a7ca1d \
|
||||
file://src/engine.h;endline=22;md5=4b6d8ba313d9b564cc4d4cfb1640af9d"
|
||||
|
||||
UPSTREAM_CHECK_URI = "https://gnupg.org/download/index.html"
|
||||
SRC_URI = "${GNUPG_MIRROR}/gpgme/${BP}.tar.bz2 \
|
||||
file://0001-Revert-build-Make-gpgme.m4-use-gpgrt-config-with-.pc.patch \
|
||||
file://0001-pkgconfig.patch \
|
||||
file://0002-gpgme-lang-python-gpg-error-config-should-not-be-use.patch \
|
||||
file://0003-Correctly-install-python-modules.patch \
|
||||
file://0004-python-import.patch \
|
||||
file://0005-gpgme-config-skip-all-lib-or-usr-lib-directories-in-.patch \
|
||||
file://0006-fix-build-path-issue.patch \
|
||||
file://0007-python-Add-variables-to-tests.patch \
|
||||
file://0008-do-not-auto-check-var-PYTHON.patch \
|
||||
file://0001-use-closefrom-on-linux-and-glibc-2.34.patch \
|
||||
file://0001-posix-io.c-Use-off_t-instead-of-off64_t.patch \
|
||||
file://0001-autogen.sh-remove-unknown-in-version.patch \
|
||||
"
|
||||
|
||||
SRC_URI[sha256sum] = "25a5785a5da356689001440926b94e967d02e13c49eb7743e35ef0cf22e42750"
|
||||
|
||||
PYTHON_DEPS = "${@bb.utils.contains('LANGUAGES', 'python', 'swig-native', '', d)}"
|
||||
|
||||
DEPENDS = "libgpg-error libassuan ${PYTHON_DEPS}"
|
||||
RDEPENDS:${PN}-cpp += "libstdc++"
|
||||
|
||||
RDEPENDS:python3-gpg += "python3-unixadmin"
|
||||
|
||||
BINCONFIG = "${bindir}/gpgme-config"
|
||||
|
||||
# Default in configure.ac: "cl cpp python qt"
|
||||
# Supported: "cl cpp python python2 python3 qt"
|
||||
# python says 'search and find python2 or python3'
|
||||
|
||||
# Building the C++ bindings for native requires a C++ compiler with C++11
|
||||
# support. Since these bindings are currently not needed, we can disable them.
|
||||
DEFAULT_LANGUAGES = ""
|
||||
DEFAULT_LANGUAGES:class-target = "cpp"
|
||||
LANGUAGES ?= "${DEFAULT_LANGUAGES} python"
|
||||
|
||||
PYTHON_INHERIT = "${@bb.utils.contains('LANGUAGES', 'python', 'setuptools3-base', '', d)}"
|
||||
|
||||
EXTRA_OECONF += '--enable-languages="${LANGUAGES}" \
|
||||
--disable-gpgconf-test \
|
||||
--disable-gpg-test \
|
||||
--disable-gpgsm-test \
|
||||
--disable-g13-test \
|
||||
--disable-lang-python-test \
|
||||
'
|
||||
|
||||
inherit autotools texinfo binconfig-disabled pkgconfig ${PYTHON_INHERIT} python3native multilib_header
|
||||
|
||||
export PKG_CONFIG='pkg-config'
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
PACKAGES =+ "${PN}-cpp python3-gpg"
|
||||
|
||||
FILES:${PN}-cpp = "${libdir}/libgpgmepp.so.*"
|
||||
FILES:python3-gpg = "${PYTHON_SITEPACKAGES_DIR}/*"
|
||||
FILES:${PN}-dev += "${datadir}/common-lisp/source/gpgme/*"
|
||||
|
||||
CFLAGS:append:libc-musl = " -D__error_t_defined "
|
||||
CACHED_CONFIGUREVARS:libc-musl = "ac_cv_sys_file_offset_bits=no"
|
||||
|
||||
do_configure:prepend () {
|
||||
# Else these could be used in preference to those in aclocal-copy
|
||||
rm -f ${S}/m4/gpg-error.m4
|
||||
rm -f ${S}/m4/libassuan.m4
|
||||
rm -f ${S}/m4/python.m4
|
||||
}
|
||||
|
||||
do_install:append() {
|
||||
oe_multilib_header gpgme.h
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
From 0c82d6aa02c08e41b13c83b14782bd7024e25d59 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Sat, 15 Feb 2014 21:06:42 +0000
|
||||
Subject: [PATCH] Disable LDFLAGSICUDT for Linux
|
||||
|
||||
Upstream-Status: Inappropriate [ OE Configuration ]
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
source/config/mh-linux | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/config/mh-linux b/config/mh-linux
|
||||
index 366f0cc..2689aab 100644
|
||||
--- a/config/mh-linux
|
||||
+++ b/config/mh-linux
|
||||
@@ -21,7 +21,7 @@ LD_RPATH= -Wl,-zorigin,-rpath,'$$'ORIGIN
|
||||
LD_RPATH_PRE = -Wl,-rpath,
|
||||
|
||||
## These are the library specific LDFLAGS
|
||||
-LDFLAGSICUDT=-nodefaultlibs -nostdlib
|
||||
+# LDFLAGSICUDT=-nodefaultlibs -nostdlib
|
||||
|
||||
## Compiler switch to embed a library name
|
||||
# The initial tab in the next line is to prevent icu-config from reading it.
|
||||
--
|
||||
1.7.10.4
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
From e3c25af4b40d64f098e7b8ae5a91fdc3c90163c4 Mon Sep 17 00:00:00 2001
|
||||
From: Lei Maohui <leimaohui@cn.fujitsu.com>
|
||||
Date: Wed, 8 May 2019 14:42:30 +0900
|
||||
Subject: [PATCH] icu: Added armeb support.
|
||||
|
||||
Make icu support arm32 BE.
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
|
||||
|
||||
---
|
||||
i18n/double-conversion-utils.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/source/i18n/double-conversion-utils.h b/source/i18n/double-conversion-utils.h
|
||||
index 7f23e0a..7f89094 100644
|
||||
--- a/i18n/double-conversion-utils.h
|
||||
+++ b/i18n/double-conversion-utils.h
|
||||
@@ -115,7 +115,7 @@ int main(int argc, char** argv) {
|
||||
//
|
||||
// If it prints "correct" then the architecture should be here, in the "correct" section.
|
||||
#if defined(_M_X64) || defined(__x86_64__) || \
|
||||
- defined(__ARMEL__) || defined(__avr32__) || defined(_M_ARM) || defined(_M_ARM64) || \
|
||||
+ defined(__arm__) || defined(__avr32__) || defined(_M_ARM) || defined(_M_ARM64) || \
|
||||
defined(__hppa__) || defined(__ia64__) || \
|
||||
defined(__mips__) || \
|
||||
defined(__loongarch__) || \
|
||||
@@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user