[cpp-linbuild] 01/02: Generate RPM package repository metadata with createrepo

John W. O'Brien john at saltant.com
Wed Oct 11 11:23:05 UTC 2023


This is an automated email from the git hooks/post-receive script.

obrienjw pushed a commit to branch main
in repository cpp-linbuild.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-linbuild.git;a=commit;h=2215c45767e2cf5e69bdeefef3dd7070052e8d99

commit 2215c45767e2cf5e69bdeefef3dd7070052e8d99
Author: John W. O'Brien <john at saltant.com>
AuthorDate: Sun Oct 8 15:24:50 2023 -0400

    Generate RPM package repository metadata with createrepo
    
    This patch sets up to more smoothly support building in an
    RHEL 7-based execution environment wherein supplying an RPM
    package that provides a createrepo_c executable is challenging.
    
    On CentOS 7 and RHEL 7, the availability of createrepo_c is
    uneven, while a createrepo package is more dependable. The
    createrepo package supplies only a createrepo executable,
    while the createrepo_c package on any platform where it is
    supported supplies a createrepo executable.
---
 common/build.sh             | 4 ++--
 os/centos7/image/Dockerfile | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/common/build.sh b/common/build.sh
index cc6b671..14844d8 100644
--- a/common/build.sh
+++ b/common/build.sh
@@ -20,7 +20,7 @@ localrepo=${EXT_BASE}/out/RPMS/${arch}
 if [ ! -e ${localrepo}/repodata/repomd.xml ]; then
     # Initialize empty local RPM repository
     mkdir -p ${localrepo}
-    createrepo_c ${localrepo}
+    createrepo ${localrepo}
 fi
 
 # Install dependencies
@@ -35,4 +35,4 @@ rpmspec -q --rpms ${component}.spec > ${EXT_BASE}/out/${component}.rpms
 rpmspec -q --srpm ${component}.spec > ${EXT_BASE}/out/${component}.srpm
 
 # Generate/update local RPM repository
-createrepo_c ${localrepo}
+createrepo ${localrepo}
diff --git a/os/centos7/image/Dockerfile b/os/centos7/image/Dockerfile
index 2d6a73c..0cc5938 100644
--- a/os/centos7/image/Dockerfile
+++ b/os/centos7/image/Dockerfile
@@ -8,7 +8,7 @@ RUN yum -y update \
         httpd-devel libidn-devel libmemcached-devel libtool make \
         openldap-devel openssl-devel pkgconfig \
         rpm-build stunnel systemd-devel unixODBC-devel zlib-devel \
-        createrepo_c \
+        createrepo \
     && yum clean all
 
 # internal and external are w.r.t. a container, where external locations

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list