summaryrefslogtreecommitdiffstats
path: root/redhat/docker
diff options
context:
space:
mode:
authorFrançois Andriot <[email protected]>2023-05-03 23:02:51 +0200
committerFrançois Andriot <[email protected]>2023-05-03 23:05:36 +0200
commitae2a5ca1f263a80fb1cb8f82d54c0251ff1efabe (patch)
treee3167c3ebb114c1f33d6f6b045c3e418f9d24440 /redhat/docker
parente0663918336a27443c9deb5d6cfee4e5283d6ed9 (diff)
downloadtde-packaging-ae2a5ca1f263a80fb1cb8f82d54c0251ff1efabe.tar.gz
tde-packaging-ae2a5ca1f263a80fb1cb8f82d54c0251ff1efabe.zip
RPM: update build scripts for pclinuxos
Signed-off-by: François Andriot <[email protected]>
Diffstat (limited to 'redhat/docker')
-rw-r--r--redhat/docker/pclinuxos.pkg19
-rwxr-xr-xredhat/docker/pclinuxos.sh15
-rw-r--r--redhat/docker/pclinuxos/Dockerfile.x86_6411
-rw-r--r--redhat/docker/pclinuxos/packages.x86_646
4 files changed, 31 insertions, 20 deletions
diff --git a/redhat/docker/pclinuxos.pkg b/redhat/docker/pclinuxos.pkg
index 30bb665db..7d4f78529 100644
--- a/redhat/docker/pclinuxos.pkg
+++ b/redhat/docker/pclinuxos.pkg
@@ -22,13 +22,13 @@ gawk
gcrypt
gdk-pixbuf2.0
glibc
-glibc-devel
gnupg
gnutls
grep
gzip
icu
icu69-data
+icu71-data
info-install
kernel-userspace-headers
krb5
@@ -39,7 +39,6 @@ lib64apt-pkg0
lib64assuan0
lib64attr1
lib64audit1
-lib64audit-devel
lib64blkid1
lib64brotlicommon1
lib64brotlidec1
@@ -69,8 +68,12 @@ lib64glib2.0_0
lib64gmp10
lib64gnutls30
lib64gpg-error0
+libgpg-error-common
+lib64gsasl
lib64gudev1.0_0
lib64icu69
+lib64icu71
+lib64idn11
lib64idn2_0
lib64intl8
lib64iso9660_7
@@ -86,6 +89,7 @@ lib64cap-ng0
lib64lua5.1
lib64lzma5
lib64magic1
+lib64mnl0
lib64mount1
lib64mpfr6
lib64ncurses5
@@ -97,11 +101,11 @@ lib64notify4
lib64npth0
lib64nspr4
lib64nss3
+lib64ntlm
lib64openssl1.0.0
lib64openssl1.1.0
lib64opts25
lib64pam0
-lib64pam-devel
lib64pam_userpass1
lib64pcre1
lib64pcre2_0
@@ -110,13 +114,15 @@ lib64png16_16
lib64png3
lib64popt0
lib64psl5
-lib64python3.6
+lib64python3.10
lib64readline7
lib64readline8
lib64rpm1
lib64rtmp1
lib64sasl2
lib64secret1_0
+lib64selinux
+lib64sharpyuv0
lib64sigsegv2
lib64smartcols1
lib64sqlite3_0
@@ -127,6 +133,7 @@ lib64tiff3
lib64tiff5
lib64tirpc3
lib64udev0
+lib64udev
lib64unbound8
lib64unistring2
lib64usb1.0_0
@@ -137,7 +144,6 @@ lib64webp7
lib64x11_6
lib64xau6
lib64xcrypt1
-lib64xcrypt-devel
lib64xdmcp6
lib64xml2_2
lib64zstd1
@@ -147,6 +153,7 @@ libnotify
libstdc++6
libtirpc
libxcb
+lsb-release
makedev
mktemp
multiarch-utils
@@ -158,6 +165,7 @@ openssl
p11-kit
pam
pam_tcb
+patch
perl
perl-base
perl-File-Sync
@@ -169,6 +177,7 @@ popt-data
procps
publicsuffix-list-dafsa
python3
+python3-rpm-macros
rmt
rootcerts
rpm
diff --git a/redhat/docker/pclinuxos.sh b/redhat/docker/pclinuxos.sh
index cd7689569..1b428daf0 100755
--- a/redhat/docker/pclinuxos.sh
+++ b/redhat/docker/pclinuxos.sh
@@ -1,7 +1,7 @@
#!/bin/bash -ex
NAME="pclinuxos"
-VERSION="${1:-2021}" # E.g: '2020'
+VERSION="${1:-2023}" # E.g: '2020'
IMAGE="${NAME}:${VERSION}"
INSTALLROOT="/dev/shm/${IMAGE}"
@@ -29,19 +29,17 @@ sudo mount --bind "/dev" "${INSTALLROOT}/dev"
sudo mkdir -p "${INSTALLROOT}/var/lib/rpm"
sudo rpmdb --initdb --root="${INSTALLROOT}"
-sudo rpm -Uvh --noscripts --root="${INSTALLROOT}" "/dev/shm/packages/"*".rpm"
-
-# Fix lzma library location
-sudo mv "${INSTALLROOT}/lib/liblzma."* "${INSTALLROOT}/lib64"
+sudo rpm -Uvh --noscripts --nodeps --root="${INSTALLROOT}" "/dev/shm/packages/"*".rpm"
# Réinstall distro from inside chroot
sudo mount --bind "/dev/shm" "${INSTALLROOT}/dev/shm"
sudo rm -rf "${INSTALLROOT}/var/lib/rpm"
sudo chroot "${INSTALLROOT}" rpmdb --initdb
-sudo chroot "${INSTALLROOT}" rpm -Uvh "/dev/shm/packages/"*".rpm"
+sudo chroot "${INSTALLROOT}" rpm -Uvh --nodeps "/dev/shm/packages/"*".rpm"
sudo cp "/etc/resolv.conf" "${INSTALLROOT}/etc/resolv.conf"
sudo chroot "${INSTALLROOT}" apt-get -y update
+sudo chroot "${INSTALLROOT}" apt-get -y --fix-broken install
sudo chroot "${INSTALLROOT}" apt-get -y upgrade
sudo umount "${INSTALLROOT}/dev/shm"
@@ -52,7 +50,4 @@ sudo tar -C "${INSTALLROOT}" -c . | docker import - "${IMAGE}"
docker run -ti --rm "${IMAGE}" ls -l
sudo rm -rf "${INSTALLROOT}"
-docker image save "${IMAGE}" >"${IMAGE}.tar"
-rm -f "${IMAGE}.tar.gz"
-pigz -9 "${IMAGE}.tar"
-mv -vf "${IMAGE}.tar.gz" "${HOME}/tde/obs"
+docker image save "${IMAGE}" | pigz -9 >"${HOME}/tde/docker/${IMAGE}.tar.gz"
diff --git a/redhat/docker/pclinuxos/Dockerfile.x86_64 b/redhat/docker/pclinuxos/Dockerfile.x86_64
index 2aa9f8200..252953938 100644
--- a/redhat/docker/pclinuxos/Dockerfile.x86_64
+++ b/redhat/docker/pclinuxos/Dockerfile.x86_64
@@ -1,4 +1,4 @@
-FROM pclinuxos:2021
+FROM pclinuxos:2023
ARG TDE_VERSION=14.1.0
ARG ARCH=x86_64
@@ -6,8 +6,8 @@ ARG ARCH=x86_64
# Update distribution
# Install Trinity build dependencies
COPY packages.${ARCH} /packages
-RUN apt-get -y update \
- && apt-get -y install glibc \
+RUN set -x \
+ && apt-get -y update \
&& apt-get -y dist-upgrade \
&& apt-get -y install $(</packages)
@@ -56,3 +56,8 @@ RUN rpm -i http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/8/SRPM
RUN rpm -i http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/8/SRPMS/core/release/html2ps-2.0-3.b7.8.mga8.src.rpm \
&& rpmbuild -ba ${HOME}/rpmbuild/SPECS/html2ps.spec \
&& sudo rpm -Uvh /home/trinity/rpmbuild/RPMS/*/html2ps-2*.rpm
+
+RUN rpm -i http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/8/SRPMS/core/updates/heimdal-7.7.1-1.3.mga8.src.rpm \
+ && sed -i ${HOME}/rpmbuild/SPECS/heimdal.spec -e "s|%autopatch|%patch1|" -e "/Conflicts: krb5-devel/ s|^|#|" \
+ && rpmbuild -ba ${HOME}/rpmbuild/SPECS/heimdal.spec \
+ && sudo rpm -Uvh /home/trinity/rpmbuild/RPMS/*/heimdal-{devel,libs}-7*.rpm
diff --git a/redhat/docker/pclinuxos/packages.x86_64 b/redhat/docker/pclinuxos/packages.x86_64
index 85dd12684..c774baccf 100644
--- a/redhat/docker/pclinuxos/packages.x86_64
+++ b/redhat/docker/pclinuxos/packages.x86_64
@@ -65,6 +65,7 @@ lib64gstreamer-plugins-base1.0-devel
lib64idn-devel
lib64inotifytools-devel
lib64iw29-devel
+lib64jack-devel
lib64nm-devel
lib64mpcdec-devel
lib64OpenSP5-devel
@@ -158,6 +159,7 @@ net-snmp-devel
ocaml
OpenEXR-devel
openldap-devel
+openldap-servers
opensc
openslp-devel
pam-devel
@@ -168,17 +170,17 @@ perl-PAR-Packer
perl-pcsc-perl
pilot-link-devel
pkgconfig(pygtk-2.0)
+popt-devel
postgresql
postgresql-devel
ppp
pth-devel
python3
-python-devel
+python3-devel
python-rpm
qt4-devel
recode
rpm-build
-rpm-devel
ruby-devel
scons
SDL-devel