Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

master deps 2024 09 06 13 40 04 783048 #1493

Merged
24 changes: 16 additions & 8 deletions build-scripts/install-dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,20 @@ check_and_install_perl()
&& PERL="$HOME/perl-my/bin/perl" \
|| PERL=`func_whereis perl`

PERL_OK=yes
PERL_MINOR_VERSION=`$PERL -e 'print "$]"."\n"' | cut -d. -f2`
if [ "$PERL_MINOR_VERSION" -lt 013004 ]
then
echo "$PERL version is $PERL_MINOR_VERSION," \
"too old, installing new one from source"

### BUILD PERL
"too old"
PERL_OK="no"
fi
if ! perl -e 'use List::Util qw(pairs);'; then
echo "$PERL has List::Util that does not export pairs. Needs to be at least version 1.29 for OpenSSL version 3.3.2."
PERL_OK="no"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change deserves a better commit message, IMHO.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed the commit message, now part of openssl commit.

fi
if [ "$PERL_OK" != "yes" ]; then
echo "$PERL is too old or modules are missing, building new one from source..."

# -fno-stack-protector: Ensure built perl will not depend on libssp.so
if echo | gcc -E -fno-stack-protector - >/dev/null 2>&1
Expand All @@ -71,12 +78,13 @@ check_and_install_perl()
PERL_EXTRA_FLAGS='-Ud_nexttoward'
fi

wget http://www.cpan.org/src/5.0/perl-5.26.1.tar.gz
[ `func_md5 perl-5.26.1.tar.gz` != "a7e5c531ee1719c53ec086656582ea86" ] \
PERL_VERSION=5.40.0
PERL_MD5=8da78b1f54b99e97954066d0aaad88bc
wget http://www.cpan.org/src/5.0/perl-${PERL_VERSION}.tar.gz
[ `func_md5 perl-${PERL_VERSION}.tar.gz` != "${PERL_MD5}" ] \
&& fatal "perl checksum error"
gzip -dc perl-5.26.1.tar.gz | tar xf -
cd perl-5.26.1
$PATCH -p1 < $BASEDIR/buildscripts/build-scripts/perl-488307ffa6.patch
gzip -dc perl-${PERL_VERSION}.tar.gz | tar xf -
cd perl-${PERL_VERSION}
./Configure -des -Dprefix=$HOME/perl-my -Dcc=gcc -Dmake=$MAKE \
$PERL_EXTRA_FLAGS $PERL_CFLAGS $PERL_LDFLAGS $PERL_LDDLFLAGS
$MAKE
Expand Down
57 changes: 0 additions & 57 deletions build-scripts/perl-488307ffa6.patch

This file was deleted.

2 changes: 1 addition & 1 deletion deps-packaging/apache/cfbuild-apache.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%define apache_version 2.4.59
%define apache_version 2.4.62
%global __os_install_post %{nil}

Summary: CFEngine Build Automation -- apache
Expand Down
2 changes: 1 addition & 1 deletion deps-packaging/apache/distfiles
Original file line number Diff line number Diff line change
@@ -1 +1 @@
e4ec4ce12c6c8f5a794dc2263d126cb1d6ef667f034c4678ec945d61286e8b0f httpd-2.4.59.tar.gz
3e2404d762a2da03560d7ada379ba1599d32f04a0d70ad6ff86f44325f2f062d httpd-2.4.62.tar.gz
2 changes: 1 addition & 1 deletion deps-packaging/apr/cfbuild-apr.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%define apr_version 1.7.4
%define apr_version 1.7.5

Summary: CFEngine Build Automation -- apr
Name: cfbuild-apr
Expand Down
2 changes: 1 addition & 1 deletion deps-packaging/apr/distfiles
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a4137dd82a185076fa50ba54232d920a17c6469c30b0876569e1c2a05ff311d9 apr-1.7.4.tar.gz
3375fa365d67bcf945e52b52cba07abea57ef530f40b281ffbe977a9251361db apr-1.7.5.tar.gz
5 changes: 4 additions & 1 deletion deps-packaging/git/cfbuild-git.spec
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
%define git_version 2.45.2
%define git_version 2.47.0

Summary: CFEngine Build Automation -- git
Name: cfbuild-git
Version: %{version}
Release: 1
Source0: git-%{git_version}.tar.gz
Patch0: clar-stop-passing-timezone-to-gettimeofday.patch
License: MIT
Group: Other
Url: http://example.com/
Expand All @@ -18,6 +19,8 @@ AutoReqProv: no
mkdir -p %{_builddir}
%setup -q -n git-%{git_version}

%patch0 -p0

./configure --prefix=%{prefix} --with-openssl=%{prefix} --without-iconv --with-gitconfig=%{prefix}/config/gitconfig --with-gitattributes=%{prefix}/config/gitattributes --with-zlib=%{prefix} --with-curl=%{prefix} --libexecdir=%{prefix}/lib --with-python=%{prefix}/bin/python

%build
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
commit ca41a29b8bb19f0240eac0f872a7b958fb1f5f19
Author: Patrick Steinhardt <[email protected]>
Date: Thu Sep 5 08:04:37 2024 +0200

clar: stop passing a timezone to gettimeofday(3P)

According to gettimeofday(3P), passing a non-NULL timezone pointer to
the function is unspecified behaviour. This is also being warned about
by compilers when compiling with strict C90 standard and without most of
the extensions.

Adapt the code accordingly.

diff --git t/unit-tests/clar.c t/unit-tests/clar.c
index cef0f02..e593bb1 100644
--- t/unit-tests/clar/clar.c
+++ t/unit-tests/clar/clar.c
@@ -271,9 +271,7 @@ static double clar_time_diff(clar_time *start, clar_time *end)

static void clar_time_now(clar_time *out)
{
- struct timezone tz;
-
- gettimeofday(out, &tz);
+ gettimeofday(out, NULL);
}

static double clar_time_diff(clar_time *start, clar_time *end)
2 changes: 2 additions & 0 deletions deps-packaging/git/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ build: build-stamp
build-stamp:
dh_testdir

patch -p0 -i clar-stop-passing-timezone-to-gettimeofday.patch

./configure --prefix=$(PREFIX) --with-openssl=$(PREFIX) --without-iconv --with-gitconfig=$(PREFIX)/config/gitconfig --with-gitattributes=$(PREFIX)/config/gitattributes --with-zlib=$(PREFIX) --with-curl=$(PREFIX) --libexecdir=$(PREFIX)/lib
make CURL_LDFLAGS="-lcurl"

Expand Down
2 changes: 1 addition & 1 deletion deps-packaging/git/distfiles
Original file line number Diff line number Diff line change
@@ -1 +1 @@
98b26090ed667099a3691b93698d1e213e1ded73d36a2fde7e9125fce28ba234 git-2.45.2.tar.gz
a84a7917e0ab608312834413f01fc01edc7844f9f9002ba69f3b4f4bcb8d937a git-2.47.0.tar.gz
3 changes: 2 additions & 1 deletion deps-packaging/libcurl-hub/cfbuild-libcurl-hub.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%define curl_version 8.8.0
%define curl_version 8.10.1

Summary: CFEngine Build Automation -- libcurl
Name: cfbuild-libcurl-hub
Expand Down Expand Up @@ -38,6 +38,7 @@ mkdir -p %{_builddir}
--without-gnutls \
--without-gssapi \
--without-libidn \
--without-libpsl \
--without-librtmp \
--without-libssh2 \
--without-nghttp2 \
Expand Down
1 change: 1 addition & 0 deletions deps-packaging/libcurl-hub/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ build-stamp:
--without-gnutls \
--without-gssapi \
--without-libidn \
--without-libpsl \
--without-librtmp \
--without-libssh2 \
--without-nghttp2 \
Expand Down
2 changes: 1 addition & 1 deletion deps-packaging/libcurl-hub/distfiles
Original file line number Diff line number Diff line change
@@ -1 +1 @@
77c0e1cd35ab5b45b659645a93b46d660224d0024f1185e8a95cdb27ae3d787d curl-8.8.0.tar.gz
d15ebab765d793e2e96db090f0e172d127859d78ca6f6391d7eafecfd894bbc0 curl-8.10.1.tar.gz
3 changes: 2 additions & 1 deletion deps-packaging/libcurl/cfbuild-libcurl.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%define curl_version 8.8.0
%define curl_version 8.10.1

Summary: CFEngine Build Automation -- libcurl
Name: cfbuild-libcurl
Expand Down Expand Up @@ -38,6 +38,7 @@ mkdir -p %{_builddir}
--without-gnutls \
--without-gssapi \
--without-libidn \
--without-libpsl \
--without-librtmp \
--without-libssh2 \
--without-nghttp2 \
Expand Down
1 change: 1 addition & 0 deletions deps-packaging/libcurl/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ build-stamp:
--without-gnutls \
--without-gssapi \
--without-libidn \
--without-libpsl \
--without-librtmp \
--without-libssh2 \
--without-nghttp2 \
Expand Down
2 changes: 1 addition & 1 deletion deps-packaging/libcurl/distfiles
Original file line number Diff line number Diff line change
@@ -1 +1 @@
77c0e1cd35ab5b45b659645a93b46d660224d0024f1185e8a95cdb27ae3d787d curl-8.8.0.tar.gz
d15ebab765d793e2e96db090f0e172d127859d78ca6f6391d7eafecfd894bbc0 curl-8.10.1.tar.gz
1 change: 1 addition & 0 deletions deps-packaging/libcurl/hpux/build
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ TTD=${BUILD_ROOT}/cfbuild-libcurl-devel${PREFIX}
--without-gnutls \
--without-gssapi \
--without-libidn \
--without-libpsl \
--without-librtmp \
--without-libssh2 \
--without-nghttp2 \
Expand Down
1 change: 1 addition & 0 deletions deps-packaging/libcurl/solaris/build
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ TTD=${BUILD_ROOT}/cfbuild-libcurl-devel${PREFIX}
--without-gnutls \
--without-gssapi \
--without-libidn \
--without-libpsl \
--without-librtmp \
--without-libssh2 \
--without-nghttp2 \
Expand Down
2 changes: 1 addition & 1 deletion deps-packaging/libexpat/cfbuild-libexpat.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%define expat_version 2.5.0
%define expat_version 2.6.3

Summary: CFEngine Build Automation -- libexpat
Name: cfbuild-libexpat
Expand Down
2 changes: 1 addition & 1 deletion deps-packaging/libexpat/distfiles
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ef2420f0232c087801abf705e89ae65f6257df6b7931d37846a193ef2e8cdcbe expat-2.5.0.tar.xz
274db254a6979bde5aad404763a704956940e465843f2a9bd9ed7af22e2c0efc expat-2.6.3.tar.xz
2 changes: 1 addition & 1 deletion deps-packaging/libexpat/source
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://github.com/libexpat/libexpat/releases/download/R_2_5_0/
https://github.com/libexpat/libexpat/releases/download/R_2_6_3/
2 changes: 1 addition & 1 deletion deps-packaging/libxml2/cfbuild-libxml2.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%define libxml_version 2.13.1
%define libxml_version 2.13.4

Summary: CFEngine Build Automation -- libxml2
Name: cfbuild-libxml2
Expand Down
2 changes: 1 addition & 1 deletion deps-packaging/libxml2/distfiles
Original file line number Diff line number Diff line change
@@ -1 +1 @@
25239263dc37f5f55a5393eff27b35f0b7d9ea4b2a7653310598ea8299e3b741 libxml2-2.13.1.tar.xz
65d042e1c8010243e617efb02afda20b85c2160acdbfbcb5b26b80cec6515650 libxml2-2.13.4.tar.xz
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ x86. There are already implementations of replacements for other
functions, such as InterlockedOr64(). Apply the same approach to
fix the errors.

Inspired by openssl/openssl#24326.
Inspired by https://github.com/openssl/openssl/pull/24326.
craigcomstock marked this conversation as resolved.
Show resolved Hide resolved

(cherry picked from commit 03111c77b640febbfaefc9ab6519e85f8b595100)
---
crypto/threads_win.c | 81 ++++++++++++++++++++++++++++++++++++++------
1 file changed, 71 insertions(+), 10 deletions(-)

diff --git a/crypto/threads_win.c b/crypto/threads_win.c
index 64354dc42f..62b63a4aad 100644
index bc430ef..30ca914 100644
--- a/crypto/threads_win.c
+++ b/crypto/threads_win.c
@@ -23,7 +23,7 @@
Expand All @@ -29,7 +29,7 @@ index 64354dc42f..62b63a4aad 100644
# define NO_INTERLOCKEDOR64
#endif

@@ -104,8 +104,15 @@ struct rcu_lock_st {
@@ -103,8 +103,15 @@
CRYPTO_CONDVAR *alloc_signal;
CRYPTO_MUTEX *prior_lock;
CRYPTO_CONDVAR *prior_signal;
Expand All @@ -42,18 +42,18 @@ index 64354dc42f..62b63a4aad 100644
+static int CRYPTO_atomic_and(uint64_t *val, uint64_t op, uint64_t *ret,
+ CRYPTO_RWLOCK *lock);
+
/*
* Called on thread exit to free the pthread key
* associated with this thread, if any
@@ -154,6 +161,7 @@ CRYPTO_RCU_LOCK *ossl_rcu_lock_new(int num_writers)
return NULL;
static struct rcu_qp *allocate_new_qp_group(struct rcu_lock_st *lock,
int count)
{
@@ -133,6 +140,7 @@

new->ctx = ctx;
new->write_lock = ossl_crypto_mutex_new();
+ new->rw_lock = CRYPTO_THREAD_lock_new();
new->alloc_signal = ossl_crypto_condvar_new();
new->prior_signal = ossl_crypto_condvar_new();
new->alloc_lock = ossl_crypto_mutex_new();
@@ -164,13 +172,15 @@ CRYPTO_RCU_LOCK *ossl_rcu_lock_new(int num_writers)
@@ -143,13 +151,15 @@
|| new->prior_signal == NULL
|| new->write_lock == NULL
|| new->alloc_lock == NULL
Expand All @@ -70,7 +70,7 @@ index 64354dc42f..62b63a4aad 100644
OPENSSL_free(new);
new = NULL;
}
@@ -186,20 +196,27 @@ void ossl_rcu_lock_free(CRYPTO_RCU_LOCK *lock)
@@ -165,20 +175,27 @@
ossl_crypto_mutex_free(&lock->alloc_lock);
ossl_crypto_mutex_free(&lock->prior_lock);
ossl_crypto_mutex_free(&lock->write_lock);
Expand Down Expand Up @@ -102,7 +102,7 @@ index 64354dc42f..62b63a4aad 100644
}

return &lock->qp_group[qp_idx];
@@ -263,7 +280,9 @@ void ossl_rcu_read_unlock(CRYPTO_RCU_LOCK *lock)
@@ -254,7 +271,9 @@
if (data->thread_qps[i].lock == lock) {
data->thread_qps[i].depth--;
if (data->thread_qps[i].depth == 0) {
Expand All @@ -113,15 +113,15 @@ index 64354dc42f..62b63a4aad 100644
OPENSSL_assert(ret >= 0);
data->thread_qps[i].qp = NULL;
data->thread_qps[i].lock = NULL;
@@ -278,6 +297,7 @@ static struct rcu_qp *update_qp(CRYPTO_RCU_LOCK *lock)
@@ -269,6 +288,7 @@
uint64_t new_id;
uint32_t current_idx;
uint32_t tmp;
+ uint64_t tmp64;

ossl_crypto_mutex_lock(lock->alloc_lock);
/*
@@ -301,8 +321,10 @@ static struct rcu_qp *update_qp(CRYPTO_RCU_LOCK *lock)
@@ -292,8 +312,10 @@
lock->id_ctr++;

new_id = VAL_ID(new_id);
Expand All @@ -134,7 +134,7 @@ index 64354dc42f..62b63a4aad 100644

/* update the reader index to be the prior qp */
tmp = lock->current_alloc_idx;
@@ -337,7 +359,7 @@ void ossl_synchronize_rcu(CRYPTO_RCU_LOCK *lock)
@@ -328,7 +350,7 @@

/* wait for the reader count to reach zero */
do {
Expand All @@ -143,7 +143,7 @@ index 64354dc42f..62b63a4aad 100644
} while (READER_COUNT(count) != 0);

/* retire in order */
@@ -565,6 +587,45 @@ int CRYPTO_THREAD_compare_id(CRYPTO_THREAD_ID a, CRYPTO_THREAD_ID b)
@@ -556,6 +578,45 @@
return (a == b);
}

Expand Down
Loading