diff options
Diffstat (limited to 'redhat/docker/pclinuxos')
-rw-r--r-- | redhat/docker/pclinuxos/Dockerfile.x86_64 | 32 | ||||
-rwxr-xr-x | redhat/docker/pclinuxos/genla.sh | 64 | ||||
-rw-r--r-- | redhat/docker/pclinuxos/packages.x86_64 | 174 | ||||
-rw-r--r-- | redhat/docker/pclinuxos/rpmbuild.list | 1 | ||||
-rw-r--r-- | redhat/docker/pclinuxos/rpmmacros | 4 |
5 files changed, 275 insertions, 0 deletions
diff --git a/redhat/docker/pclinuxos/Dockerfile.x86_64 b/redhat/docker/pclinuxos/Dockerfile.x86_64 new file mode 100644 index 000000000..67f7893d1 --- /dev/null +++ b/redhat/docker/pclinuxos/Dockerfile.x86_64 @@ -0,0 +1,32 @@ +FROM pclinuxos:2017 + +ARG TDE_VERSION=14.0.5 +ARG ARCH=x86_64 + +# Update distribution +RUN apt-get -y update +RUN apt-get -y dist-upgrade + +# Install Trinity build dependencies +ADD packages.${ARCH} /packages +RUN apt-get -y install $(</packages) + +# Add rpmbuild repositories +ADD rpmbuild.list /etc/apt/sources.list.d/rpmbuild.list +RUN sed -i "/etc/apt/sources.list.d/rpmbuild.list" -e "s|\${ARCH}|${ARCH}|g" -e "s|\${TDE_VERSION}|${TDE_VERSION}|g" + +# Add non-root user to build packages +RUN rm -rf /home/trinity +RUN useradd -m -s /bin/bash -u 1000 trinity +RUN echo "trinity ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers +ADD rpmmacros /home/trinity/.rpmmacros + +# Fix SUDO configuration +RUN sed -i "/etc/pam.d/sudo" -e "/pam_limits.so/ s|^|#|" + +# Fix missing '.la' files +ADD genla.sh /usr/bin/genla.sh +RUN genla.sh libbluetooth && mv /usr/lib64/libbluetooth.la /lib64 +RUN genla.sh libjpeg +RUN genla.sh liblcms +RUN genla.sh libusb-1.0 && mv /usr/lib64/libusb-1.0.la /lib64 && cp /lib64/libusb-1.0.la /lib64/libusb.la diff --git a/redhat/docker/pclinuxos/genla.sh b/redhat/docker/pclinuxos/genla.sh new file mode 100755 index 000000000..ecc7ac98f --- /dev/null +++ b/redhat/docker/pclinuxos/genla.sh @@ -0,0 +1,64 @@ +#!/bin/bash + +LIB="$1" +LIBDIR="$(rpm -E %_libdir)" +FILENAME="${LIB}.la" +FILE="${LIBDIR}/${FILENAME}" + +if [ -r "${FILE}" ]; then + echo "Already exists !!! Abort" + exit 1 +fi + +LIBLONG="$(echo ${LIBDIR}/${LIB}.so.*.*)" +LIBSHORT="$(echo ${LIBDIR}/${LIB}.so.?)" + +echo "Library: ${LIBLONG} | ${LIBSHORT}" + + +cat <<EOF >/tmp/$LIB.$$ +# ${FILENAME} - a libtool library file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='${LIBSHORT}' + +# Names of this library. +library_names='${LIBLONG} ${LIBSHORT} ${LIB}.so' + +# The name of the static archive. +old_library='${LIB}.a' + +# Linker flags that can not go in dependency_libs. +inherited_linker_flags='' + +# Libraries that this one depends upon. +dependency_libs=' -lm' + +# Names of additional weak libraries provided by this library +weak_library_names='' + +# Version information for ${LIB}. +current=4 +age=2 +revision=0 + +# Is this an already installed library? +installed=yes + +# Should we warn about portability when linking against -modules? +shouldnotlink=no + +# Files to dlopen/dlpreopen +dlopen='' +dlpreopen='' + +# Directory that this library needs to be installed in: +libdir='${LIBDIR}' +EOF + +[ $(whoami) = "root" ] || SUDO="sudo" +$SUDO mv "/tmp/$LIB.$$" "${FILE}" diff --git a/redhat/docker/pclinuxos/packages.x86_64 b/redhat/docker/pclinuxos/packages.x86_64 new file mode 100644 index 000000000..7079d8d65 --- /dev/null +++ b/redhat/docker/pclinuxos/packages.x86_64 @@ -0,0 +1,174 @@ +alsa-lib-devel +aspell-devel +audiofile-devel +audit-devel +binutils-devel +bison +boost-devel +ccache +cdparanoia +chmlib-devel +chrpath +cmake +cups-devel +desktop-file-utils +djvulibre +docbook-style-xsl +doxygen +drakconf +dssi-devel +esound-devel +exempi-devel +fdupes +file-devel +firebird-devel +flex +fontconfig-devel +freetype-devel +fribidi-devel +gamin-devel +gcc-c++ +gettext-devel +glib2-devel +gnokii-devel +gnutls-devel +gpgme-devel +gphoto2-devel +GraphicsMagick-devel +gsl-devel +gtk2-devel +gtk+3.0-devel +hspell-devel +htdig +ImageMagick-devel +imake +java-devel +lcms-devel +lib64cryptsetup-devel +lib64dvdread-devel +lib64exiv2-devel +lib64gif-devel +lib64idn-devel +lib64inotifytools-devel +lib64iw29-devel +lib64nm-devel +lib64mpcdec-devel +lib64OpenSP5-devel +lib64pkcs11-helper-devel +lib64poppler-devel +lib64readline-devel +lib64sane1-devel +lib64usb1.0-devel +lib64usb-compat0.1-devel +lib64wv2-devel +lib64xaw-devel +lib64xine1.2-devel +lib64yaz-devel +libcap-devel +libcdda-devel +libconfig-devel +libcurl-devel +libffmpeg-devel +libflac-devel +libflac++-devel +libfontenc-devel +libgadu-devel +libgpod-devel +libgstreamer0.10-devel +libical-devel +libice-devel +libjack-devel +libjasper-devel +libjpeg-devel +liblame-devel +liblo-devel +liblrdf-devel +libmad-devel +libmng-devel +libmp4v2-devel +libmtp-devel +libmusicbrainz-devel +libnjb-devel +libofa-devel +libofx-devel +libotr-devel +libpaper-devel +lib64png1.6-devel +libpqxx-devel +libpthread-stubs +libpulseaudio-devel +libqalculate-devel +libraw1394-devel +librsvg +librsync-devel +libsmbclient-devel +libsm-devel +libt1lib-devel +libtheora-devel +libudev-devel +libuuid-devel +libv4l-devel +libvisual-devel +libvorbis-devel +libwmf-devel +libwpd-devel +libx11-devel +libxcb-devel +libxcursor-devel +libxext-devel +libxft-devel +libxi-devel +lib64xine1.2-devel +libxinerama-devel +libxkbfile-devel +libxmu-devel +libxrandr-devel +libxrender-devel +libxscrnsaver-devel +libxslt-devel +libxxf86dga-devel +lirc-devel +lm_sensors-devel +mesaglu-devel +mysql-devel +nas-devel +neon-devel +net-snmp-devel +ocaml +OpenEXR-devel +openldap-devel +opensc +openslp-devel +pam-devel +perl-devel +pilot-link-devel +postgresql +postgresql-devel +pth-devel +python-devel +python-rpm +recode +rpm-build +rpm-devel +ruby-devel +scons +SDL-devel +speex-devel +sqlite3-devel +sqlite-devel +subversion-devel +sudo +sword-devel +taglib-devel +transfig +udisks2-devel +unixODBC-devel +utempter-devel +valgrind +vim-enhanced +x11-font-util +xscreensaver +xscreensaver-base +xscreensaver-extrusion +xscreensaver-gl +yaz diff --git a/redhat/docker/pclinuxos/rpmbuild.list b/redhat/docker/pclinuxos/rpmbuild.list new file mode 100644 index 000000000..5b838caa9 --- /dev/null +++ b/redhat/docker/pclinuxos/rpmbuild.list @@ -0,0 +1 @@ +rpm file:/home/trinity/rpmbuild RPMS.tde-${TDE_VERSION} ${ARCH} noarch diff --git a/redhat/docker/pclinuxos/rpmmacros b/redhat/docker/pclinuxos/rpmmacros new file mode 100644 index 000000000..59b0e9d95 --- /dev/null +++ b/redhat/docker/pclinuxos/rpmmacros @@ -0,0 +1,4 @@ +%dist .pclos2018 +%_smp_mflags -j8 +%jobs 8 +%pclinuxos 2018 |