]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
crossbuild: now need yubikey library for tests
authorMatthew Newton <matthew-git@newtoncomputing.co.uk>
Mon, 22 Apr 2024 15:49:27 +0000 (16:49 +0100)
committerMatthew Newton <matthew-git@newtoncomputing.co.uk>
Tue, 23 Apr 2024 12:14:56 +0000 (13:14 +0100)
scripts/crossbuild/docker/centos7/Dockerfile
scripts/crossbuild/docker/rocky8/Dockerfile
scripts/crossbuild/docker/rocky9/Dockerfile
scripts/crossbuild/m4/Dockerfile.rpm.m4

index 8a7dee5f8b8a712fc9dba337120a2fcc9478cdde..81188fb44ea6442ccf73caaedf3f89c2fea64098 100644 (file)
@@ -75,6 +75,7 @@ RUN git clone --depth 1 --no-single-branch ${source}
 #
 #  Install build dependencies for all branches from v3 onwards
 #  Nodesource has issues (no SRPMS in some repos) and is not needed here
+#  CentOS/RHEL 7 do not support "-D" for yum-builddep so do that separately below if needed
 #
 WORKDIR freeradius-server
 RUN for i in $(git for-each-ref --format='%(refname:short)' refs/remotes/origin 2>/dev/null | sed -e 's#origin/##' | egrep "^(v[3-9]*\.[0-9x]*\.x|master)$");\
@@ -83,6 +84,11 @@ RUN for i in $(git for-each-ref --format='%(refname:short)' refs/remotes/origin
                [ -e redhat/freeradius.spec ] && yum-builddep --disablerepo="nodesource*" -y redhat/freeradius.spec; \
        done
 
+#  Yubikey deps for CentOS/RHEL 7
+RUN yum install -y ykclient-devel ykclient
+
+RUN yum install -y libyubikey-devel
+
 #
 #  Which is required by fixture setup utilities
 #
index c96f16843ec87c98ead861e700c186d7ee3165c3..ba7fc56c3c88e2d868e4bc806ef4a71b84febaa5 100644 (file)
@@ -68,14 +68,18 @@ RUN git clone --depth 1 --no-single-branch ${source}
 #
 #  Install build dependencies for all branches from v3 onwards
 #  Nodesource has issues (no SRPMS in some repos) and is not needed here
+#  CentOS/RHEL 7 do not support "-D" for yum-builddep so do that separately below if needed
 #
 WORKDIR freeradius-server
 RUN for i in $(git for-each-ref --format='%(refname:short)' refs/remotes/origin 2>/dev/null | sed -e 's#origin/##' | egrep "^(v[3-9]*\.[0-9x]*\.x|master)$");\
        do \
                git checkout $i; \
-               [ -e redhat/freeradius.spec ] && yum-builddep  -y redhat/freeradius.spec; \
+               [ -e redhat/freeradius.spec ] && yum-builddep -D "_with_rlm_yubikey 1" -y redhat/freeradius.spec; \
        done
 
+
+RUN yum install -y libyubikey-devel
+
 #
 #  Which is required by fixture setup utilities
 #
index 96860d345af34c48c9562e77f891e4aada047e2d..e85ee512f67d9193f4be6fd9bbc4c196335ad72f 100644 (file)
@@ -52,14 +52,18 @@ RUN git clone --depth 1 --no-single-branch ${source}
 #
 #  Install build dependencies for all branches from v3 onwards
 #  Nodesource has issues (no SRPMS in some repos) and is not needed here
+#  CentOS/RHEL 7 do not support "-D" for yum-builddep so do that separately below if needed
 #
 WORKDIR freeradius-server
 RUN for i in $(git for-each-ref --format='%(refname:short)' refs/remotes/origin 2>/dev/null | sed -e 's#origin/##' | egrep "^(v[3-9]*\.[0-9x]*\.x|master)$");\
        do \
                git checkout $i; \
-               [ -e redhat/freeradius.spec ] && yum-builddep  -y redhat/freeradius.spec; \
+               [ -e redhat/freeradius.spec ] && yum-builddep -D "_with_rlm_yubikey 1" -y redhat/freeradius.spec; \
        done
 
+
+RUN yum install -y libyubikey-devel
+
 #
 #  Which is required by fixture setup utilities
 #
index ff6e1f606d23f46d49cc4b811bd172c8de64dbb2..5a33166f68c416c770d293bdbefc9f5d189cfe23 100644 (file)
@@ -88,15 +88,23 @@ RUN git clone --depth 1 --no-single-branch ${source}
 #
 #  Install build dependencies for all branches from v3 onwards
 #  Nodesource has issues (no SRPMS in some repos) and is not needed here
+#  CentOS/RHEL 7 do not support "-D" for yum-builddep so do that separately below if needed
 #
-define(`EXTRA_DISABLE', ifelse(OS_VER, 7, `--disablerepo="nodesource*"', `'))dnl
+define(`BUILDDEP_EXTRA', ifelse(OS_VER, 7, `--disablerepo="nodesource*"', `-D "_with_rlm_yubikey 1"'))dnl
 WORKDIR freeradius-server
 RUN for i in $(git for-each-ref --format='%(refname:short)' refs/remotes/origin 2>/dev/null | sed -e 's#origin/##' | egrep "^(v[3-9]*\.[0-9x]*\.x|master)$");\
        do \
                git checkout $i; \
-               [ -e redhat/freeradius.spec ] && yum-builddep EXTRA_DISABLE -y redhat/freeradius.spec; \
+               [ -e redhat/freeradius.spec ] && yum-builddep BUILDDEP_EXTRA -y redhat/freeradius.spec; \
        done
 
+ifelse(OS_VER, 7,`dnl
+#  Yubikey deps for CentOS/RHEL 7
+RUN yum install -y ykclient-devel ykclient
+')dnl
+
+RUN yum install -y libyubikey-devel
+
 #
 #  Which is required by fixture setup utilities
 #