Skip to content

Commit 3fc43d8

Browse files
Merge pull request #1932 from craigcomstock/ENT-13016/master
ENT-13016 ENT-13164: Added Redhat 10 and Debian 13 platforms
2 parents 5eda683 + 4818bab commit 3fc43d8

File tree

9 files changed

+30
-10
lines changed

9 files changed

+30
-10
lines changed

build-scripts/detect-environment

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ detect_distribution() {
129129
# CentOS Linux release 7.6.1810 (Core)
130130
OS=centos
131131
;;
132-
"Red Hat Enterprise Linux "*)
132+
"Red Hat Enterprise Linux "*|"Rocky Linux release "*)
133133
# Example output for RHEL:
134134
# Red Hat Enterprise Linux release 8.10 (Ootpa)
135135
OS=rhel

build-scripts/labels.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ PACKAGES_HUB_x86_64_linux_debian_11
44
PACKAGES_HUB_arm_64_linux_debian_11
55
PACKAGES_HUB_x86_64_linux_debian_12
66
PACKAGES_HUB_arm_64_linux_debian_12
7+
PACKAGES_HUB_x86_64_linux_debian_13
8+
PACKAGES_HUB_arm_64_linux_debian_13
79

810
PACKAGES_HUB_x86_64_linux_redhat_7
911
PACKAGES_HUB_x86_64_linux_redhat_8
1012
PACKAGES_HUB_x86_64_linux_redhat_9
13+
PACKAGES_HUB_x86_64_linux_redhat_10
14+
PACKAGES_HUB_arm_64_linux_redhat_10
1115

1216
PACKAGES_HUB_x86_64_linux_ubuntu_20
1317
PACKAGES_HUB_x86_64_linux_ubuntu_22
@@ -19,10 +23,14 @@ PACKAGES_x86_64_linux_debian_11
1923
PACKAGES_arm_64_linux_debian_11
2024
PACKAGES_x86_64_linux_debian_12
2125
PACKAGES_arm_64_linux_debian_12
26+
PACKAGES_x86_64_linux_debian_13
27+
PACKAGES_arm_64_linux_debian_13
2228

2329
PACKAGES_x86_64_linux_redhat_7
2430
PACKAGES_x86_64_linux_redhat_8
2531
PACKAGES_x86_64_linux_redhat_9
32+
PACKAGES_x86_64_linux_redhat_10
33+
PACKAGES_arm_64_linux_redhat_10
2634

2735
PACKAGES_x86_64_linux_suse_12
2836
PACKAGES_x86_64_linux_suse_15

build-scripts/package

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ rpm | lpp)
225225
# eval is needed to preserve spaces in arguments within quotes
226226
# Example: --define 'with_expansion 1' needs to be passed as two args
227227
log_debug "Building RPM package with rpmbuild"
228+
# rhel-10 rpmbuild is more picky about /var/cfengine/lib RPATH we need
229+
export QA_RPATHS=2 # this is a set of bit flags, we just want 0x0002 here
228230
eval rpmbuild -bb \
229231
--define "'_topdir $BASEDIR/$PKG'" \
230232
--define "'buildprefix $BUILDPREFIX'" \

ci/setup-cfengine-build-host.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ elif [ -f /etc/os-release ]; then
3030
fi
3131
fi
3232
if [ "$ID" = "ubuntu" ]; then
33-
_version=$(echo "$VERSION_ID" | cut -d. -f1)
33+
_version="$(echo "$VERSION_ID" | cut -d. -f1)"
3434
if [ "$_version" -lt "16" ]; then
3535
echo "Platform $ID $VERSION_ID is too old."
3636
exit 9

deps-packaging/apache/cfbuild-apache.spec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Release: 1
88
Source0: httpd-%{apache_version}.tar.gz
99
Source1: httpd.conf
1010
Patch0: apachectl.patch
11+
Patch1: fixed-implicit-decl-gettid.patch
1112
License: MIT
1213
Group: Other
1314
Url: https://cfengine.com
@@ -21,7 +22,8 @@ AutoReqProv: no
2122
mkdir -p %{_builddir}
2223
%setup -q -n httpd-%{apache_version}
2324

24-
%patch0 -p0
25+
%patch -P 0
26+
%patch -P 1 -p1
2527

2628
CPPFLAGS=-I%{buildprefix}/include
2729

deps-packaging/leech/cfbuild-leech.spec

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ mkdir -p %{_builddir}
2121
./configure --prefix=%{prefix} --enable-shared --disable-static
2222

2323
rm -f ${RPM_BUILD_ROOT}%{prefix}/lib/libleech.a
24-
rm -f ${RPM_BUILD_ROOT}%{prefix}/lib/libleech.la
2524

2625
%build
2726

@@ -31,6 +30,7 @@ make
3130
rm -rf ${RPM_BUILD_ROOT}
3231

3332
make install DESTDIR=${RPM_BUILD_ROOT}
33+
rm -f ${RPM_BUILD_ROOT}%{prefix}/lib/libleech.la
3434

3535
%clean
3636
rm -rf $RPM_BUILD_ROOT
@@ -59,6 +59,5 @@ CFEngine Build Automation -- leech -- development files
5959
%{prefix}/include/*.h
6060

6161
%dir %{prefix}/lib
62-
%{prefix}/lib/*.la
6362

6463
%changelog

deps-packaging/librsync/cfbuild-librsync.spec

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ touch -t 0001010102 ar-lib
5353
./configure --prefix=%{prefix} --enable-shared --disable-static
5454

5555
rm -f ${RPM_BUILD_ROOT}%{prefix}/lib/librsync.a
56-
rm -f ${RPM_BUILD_ROOT}%{prefix}/lib/librsync.la
5756

5857
%build
5958

@@ -63,6 +62,7 @@ make
6362
rm -rf ${RPM_BUILD_ROOT}
6463

6564
make install DESTDIR=${RPM_BUILD_ROOT}
65+
rm -f ${RPM_BUILD_ROOT}%{prefix}/lib/librsync.la
6666

6767
%clean
6868
rm -rf $RPM_BUILD_ROOT
@@ -91,7 +91,6 @@ CFEngine Build Automation -- librsync -- development files
9191
%{prefix}/include/*.h
9292

9393
%dir %{prefix}/lib
94-
%{prefix}/lib/*.la
9594
%{prefix}/lib/pkgconfig
9695

9796
%changelog

deps-packaging/libyaml/cfbuild-libyaml.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ $MAKE
3333
%install
3434
rm -rf ${RPM_BUILD_ROOT}
3535
$MAKE DESTDIR=${RPM_BUILD_ROOT} install
36+
rm -rf ${RPM_BUILD_ROOT}%{prefix}/lib/libyaml.la
3637

3738
%clean
3839
rm -rf $RPM_BUILD_ROOT
@@ -65,7 +66,6 @@ CFEngine Build Automation -- lmdb -- development files
6566
%dir %{prefix}/lib
6667
%{prefix}/lib/pkgconfig
6768
%{prefix}/lib/*.a
68-
%{prefix}/lib/*.la
6969

7070
%changelog
7171

deps-packaging/pkg-build-rpm

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,15 @@ if [ $TARGET != native ]; then
7676
exit 42
7777
fi
7878

79+
# deps packages may result in binaries without debug symbols even when debugsym=yes aka BUILD_TYPE=DEBUG
80+
# to avoid rpmbuild errors when this occurs, allow empties
81+
RPMBUILD_OPTIONS="$RPMBUILD_OPTIONS --define '_empty_manifest_terminate_build 0'"
82+
7983
case "$TESTS" in
8084
no)
81-
RPMBUILD_OPTIONS="--define 'with_testsuite 0'";;
85+
RPMBUILD_OPTIONS="$RPMBUILD_OPTIONS --define 'with_testsuite 0'";;
8286
yes)
83-
RPMBUILD_OPTIONS="--define 'with_testsuite 1'";;
87+
RPMBUILD_OPTIONS="$RPMBUILD_OPTIONS --define 'with_testsuite 1'";;
8488
*)
8589
fatal "Unknown tests option: $TESTS";;
8690
esac
@@ -112,6 +116,12 @@ fi
112116
# example cmd --define 'a b':
113117
# - argv[1] = --define
114118
# - argv[2] = a b
119+
120+
# We have /var/cfengine/lib in RPATHS which should be OK
121+
# We asked in https://github.com/rpm-software-management/rpm/issues/3982, and it seems allowing this is OK
122+
# 0x0002 - contains an invalid RPATH - in our case /var/cfengine/lib is OK so allow it as an exception
123+
# Here we only want to specify this one flag: 0x0002. Sadly these scripts run on POSIX shell (especially e.g. aix71 runs as /bin/sh which is ksh) so no bitwise operators. Add them together manually to a decimal integer.
124+
export QA_RPATHS=2 # 0x0002 all by itself, no &(ands)
115125
eval rpmbuild -bb \
116126
--define "'_topdir $BASEDIR/$PKGNAME'" \
117127
--define "'version $VERSION'" \

0 commit comments

Comments
 (0)