diff options
Diffstat (limited to 'redhat/docker/mga6')
-rw-r--r-- | redhat/docker/mga6/Dockerfile.i686 | 54 | ||||
-rw-r--r-- | redhat/docker/mga6/Dockerfile.x86_64 | 54 | ||||
-rw-r--r-- | redhat/docker/mga6/packages.i686 | 21 | ||||
-rw-r--r-- | redhat/docker/mga6/packages.x86_64 | 20 | ||||
-rw-r--r-- | redhat/docker/mga6/rpmmacros | 1 |
5 files changed, 101 insertions, 49 deletions
diff --git a/redhat/docker/mga6/Dockerfile.i686 b/redhat/docker/mga6/Dockerfile.i686 index 956755001..3b98ac460 100644 --- a/redhat/docker/mga6/Dockerfile.i686 +++ b/redhat/docker/mga6/Dockerfile.i686 @@ -1,35 +1,47 @@ FROM mageia32:6 -ARG TDE_VERSION=14.0.5 +ARG TDE_VERSION=14.0.8 ARG ARCH=i686 # Reset URPMI repositories to default -RUN urpmi.removemedia -a -RUN urpmi.addmedia --distrib --mirrorlist '$MIRRORLIST' - # Enable more URPMI repositories -RUN sed -i "/etc/urpmi/urpmi.cfg" -e "/Tainted\\\ Release {/{p;N;d}" -e "/Tainted\\\ Updates {/{p;N;d}" +RUN urpmi.removemedia -a \ + && urpmi.addmedia --distrib http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/6/i586/ \ + && sed -i "/etc/urpmi/urpmi.cfg" -e "/Tainted\\\ Release {/{p;N;d}" -e "/Tainted\\\ Updates {/{p;N;d}" # Update distribution -RUN urpmi.update -a -RUN urpmi --auto-select --auto - # Install Trinity build dependencies -ADD packages.${ARCH} /etc/urpmi/packages -RUN while ! urpmi --auto $(</etc/urpmi/packages); do urpmi.update -a; done +ADD packages.${ARCH} /packages +RUN urpmi.update -a \ + && urpmi --auto-select --auto \ + && urpmi --auto $(</packages) -# Add rpmbuild repositories -RUN mkdir -p /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/${ARCH} /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/noarch -RUN genhdlist2 --allow-empty-media /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/${ARCH} -RUN urpmi.addmedia rpmbuild.${ARCH} /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/${ARCH} -RUN genhdlist2 --allow-empty-media /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/noarch -RUN urpmi.addmedia rpmbuild.noarch /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/noarch +# Enable ccache +RUN sed -i "/etc/sysconfig/ccache" -e "s|USE_CCACHE_DEFAULT=.*|USE_CCACHE_DEFAULT=\"yes\"|" + +# Fix poppler include causing FTBFS +RUN sed -i "/usr/include/poppler/PDFDoc.h" -e "/^#define PDFDOC_H/ s|$|\n#define nullptr NULL|" + +# Fix utempter detection +RUN chmod a+r /usr/libexec/utempter/utempter # 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 +RUN rm -rf /home/trinity \ + && useradd -m -s /bin/bash -u 1000 trinity \ + && echo "trinity ALL=(ALL) NOPASSWD: ALL" >>"/etc/sudoers" + +# Configure user trinity +USER trinity ADD rpmmacros /home/trinity/.rpmmacros -# Enable ccache -RUN sed -i "/etc/sysconfig/ccache" -e "s|USE_CCACHE_DEFAULT=.*|USE_CCACHE_DEFAULT=\"yes\"|" +# Add rpmbuild repositories +RUN mkdir -p ${HOME}/rpmbuild/RPMS.tde-${TDE_VERSION}/${ARCH} \ + && genhdlist2 --allow-empty-media --clean ${HOME}/rpmbuild/RPMS.tde-${TDE_VERSION}/${ARCH} \ + && sudo urpmi.addmedia rpmbuild.${ARCH} ${HOME}/rpmbuild/RPMS.tde-${TDE_VERSION}/${ARCH} \ + && mkdir -p ${HOME}/rpmbuild/RPMS.tde-${TDE_VERSION}/noarch \ + && genhdlist2 --allow-empty-media --clean ${HOME}/rpmbuild/RPMS.tde-${TDE_VERSION}/noarch \ + && sudo urpmi.addmedia rpmbuild.noarch ${HOME}/rpmbuild/RPMS.tde-${TDE_VERSION}/noarch + +# Build development packages that are missing +RUN setarch ${ARCH} rpmbuild --rebuild http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/6.1/SRPMS/core/release/perl-PAR-Packer-1.32.0-1.mga6.src.rpm \ + && sudo rpm -Uvh --force "${HOME}/rpmbuild/RPMS/"*"/perl-PAR-Packer-"*".rpm" diff --git a/redhat/docker/mga6/Dockerfile.x86_64 b/redhat/docker/mga6/Dockerfile.x86_64 index 8a1048fe8..d8d826d48 100644 --- a/redhat/docker/mga6/Dockerfile.x86_64 +++ b/redhat/docker/mga6/Dockerfile.x86_64 @@ -1,35 +1,47 @@ FROM mageia:6 -ARG TDE_VERSION=14.0.5 +ARG TDE_VERSION=14.0.8 ARG ARCH=x86_64 # Reset URPMI repositories to default -RUN urpmi.removemedia -a -RUN urpmi.addmedia --distrib --mirrorlist '$MIRRORLIST' - # Enable more URPMI repositories -RUN sed -i "/etc/urpmi/urpmi.cfg" -e "/Tainted\\\ Release {/{p;N;d}" -e "/Tainted\\\ Updates {/{p;N;d}" +RUN urpmi.removemedia -a \ + && urpmi.addmedia --distrib http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/6/x86_64/ \ + && sed -i "/etc/urpmi/urpmi.cfg" -e "/Tainted\\\ Release {/{p;N;d}" -e "/Tainted\\\ Updates {/{p;N;d}" # Update distribution -RUN urpmi.update -a -RUN urpmi --auto-select --auto - # Install Trinity build dependencies -ADD packages.${ARCH} /etc/urpmi/packages -RUN while ! urpmi --auto $(</etc/urpmi/packages); do urpmi.update -a; done +ADD packages.${ARCH} /packages +RUN urpmi.update -a \ + && urpmi --auto-select --auto \ + && urpmi --auto $(</packages) -# Add rpmbuild repositories -RUN mkdir -p /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/${ARCH} /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/noarch -RUN genhdlist2 --allow-empty-media /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/${ARCH} -RUN urpmi.addmedia rpmbuild.${ARCH} /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/${ARCH} -RUN genhdlist2 --allow-empty-media /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/noarch -RUN urpmi.addmedia rpmbuild.noarch /home/trinity/rpmbuild/RPMS.tde-${TDE_VERSION}/noarch +# Enable ccache +RUN sed -i "/etc/sysconfig/ccache" -e "s|USE_CCACHE_DEFAULT=.*|USE_CCACHE_DEFAULT=\"yes\"|" + +# Fix poppler include causing FTBFS +RUN sed -i "/usr/include/poppler/PDFDoc.h" -e "/^#define PDFDOC_H/ s|$|\n#define nullptr NULL|" + +# Fix utempter detection +RUN chmod a+r /usr/libexec/utempter/utempter # 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 +RUN rm -rf /home/trinity \ + && useradd -m -s /bin/bash -u 1000 trinity \ + && echo "trinity ALL=(ALL) NOPASSWD: ALL" >>"/etc/sudoers" + +# Configure user trinity +USER trinity ADD rpmmacros /home/trinity/.rpmmacros -# Enable ccache -RUN sed -i "/etc/sysconfig/ccache" -e "s|USE_CCACHE_DEFAULT=.*|USE_CCACHE_DEFAULT=\"yes\"|" +# Add rpmbuild repositories +RUN mkdir -p ${HOME}/rpmbuild/RPMS.tde-${TDE_VERSION}/${ARCH} \ + && genhdlist2 --allow-empty-media --clean ${HOME}/rpmbuild/RPMS.tde-${TDE_VERSION}/${ARCH} \ + && sudo urpmi.addmedia rpmbuild.${ARCH} ${HOME}/rpmbuild/RPMS.tde-${TDE_VERSION}/${ARCH} \ + && mkdir -p ${HOME}/rpmbuild/RPMS.tde-${TDE_VERSION}/noarch \ + && genhdlist2 --allow-empty-media --clean ${HOME}/rpmbuild/RPMS.tde-${TDE_VERSION}/noarch \ + && sudo urpmi.addmedia rpmbuild.noarch ${HOME}/rpmbuild/RPMS.tde-${TDE_VERSION}/noarch + +# Build development packages that are missing +RUN rpmbuild --rebuild http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/6.1/SRPMS/core/release/perl-PAR-Packer-1.32.0-1.mga6.src.rpm \ + && sudo rpm -Uvh --force "${HOME}/rpmbuild/RPMS/"*"/perl-PAR-Packer-"*".rpm" diff --git a/redhat/docker/mga6/packages.i686 b/redhat/docker/mga6/packages.i686 index 973e8b7b4..24079d712 100644 --- a/redhat/docker/mga6/packages.i686 +++ b/redhat/docker/mga6/packages.i686 @@ -17,12 +17,14 @@ clamav-devel cmake ctags cups-devel +curl curl-devel db5-devel dbus-devel dbus-glib dbus-glib-devel djvulibre +docbook2x docbook-dtd412-xml docbook-style-xsl docbook-utils @@ -54,6 +56,7 @@ gtk+3.0-devel gtk-doc hspell-devel hunspell-en +iceauth ImageMagick-devel imake imlib2-devel @@ -84,9 +87,9 @@ libgstreamer-plugins-base1.0-devel libinotifytools-devel libjasper-devel libjpeg-devel -libmp3lame-devel liblua-devel libmad-devel +libmp3lame-devel libpaper-devel libpkcs11-helper-devel libpoppler-devel @@ -95,9 +98,9 @@ libsane1-devel libt1lib-devel libtiff-devel libtwolame-devel -libutempter libudev-devel libusb1.0-devel +libutempter0 libutempter-devel libv4l-devel libxaw-devel @@ -119,13 +122,13 @@ libdvdread-devel libffmpeg-devel libflac-devel libflac++-devel -libidn-devel libgadu-devel libgpod-devel libgsf-devel libhd-devel libical-devel libice-devel +libidn-devel libifp-devel libinotifytools-devel libiodbc-devel @@ -155,6 +158,7 @@ libsndfile-devel libt1lib-devel libtheora-devel libungif-devel +libutempter libvisual-devel libvorbis-devel libwmf-devel @@ -191,18 +195,26 @@ openldap-servers-devel opensc openslp-devel opensp-devel +openssh-clients optipng pam-devel pciutils-devel perl-devel +perl(Archive::Zip) +perl(Getopt::ArgvFile) +perl(Module::ScanDeps) +perl(PAR) +perl(PAR::Dist) perl(XML::Parser) pilot-link-devel pinentry-gtk2 pkgconfig(audiofile) pkgconfig(libpng16) +pkgconfig(pygtk-2.0) polkit-agent-none postgresql9.4 postgresql9.4-devel +ppp pth-devel python-devel python-sip @@ -217,8 +229,9 @@ SDL-devel speex-devel sqlite3-devel sqlite-devel -sudo +sshfs-fuse subversion-devel +sudo sword-devel taglib-devel torsocks diff --git a/redhat/docker/mga6/packages.x86_64 b/redhat/docker/mga6/packages.x86_64 index 996963cf2..edf18316c 100644 --- a/redhat/docker/mga6/packages.x86_64 +++ b/redhat/docker/mga6/packages.x86_64 @@ -17,12 +17,14 @@ clamav-devel cmake ctags cups-devel +curl curl-devel db5-devel dbus-devel dbus-glib dbus-glib-devel djvulibre +docbook2x docbook-dtd412-xml docbook-style-xsl docbook-utils @@ -54,6 +56,7 @@ gtk+3.0-devel gtk-doc hspell-devel hunspell-en +iceauth ImageMagick-devel imake imlib2-devel @@ -84,9 +87,9 @@ lib64gstreamer-plugins-base1.0-devel lib64inotifytools-devel lib64jasper-devel lib64jpeg-devel -lib64mp3lame-devel lib64lua-devel lib64mad-devel +lib64mp3lame-devel lib64paper-devel lib64pkcs11-helper-devel lib64poppler-devel @@ -97,6 +100,7 @@ lib64tiff-devel lib64twolame-devel lib64udev-devel lib64usb1.0-devel +lib64utempter0 lib64utempter-devel lib64v4l-devel lib64xaw-devel @@ -118,13 +122,13 @@ libdvdread-devel libffmpeg-devel libflac-devel libflac++-devel -libidn-devel libgadu-devel libgpod-devel libgsf-devel libhd-devel libical-devel libice-devel +libidn-devel libifp-devel libinotifytools-devel libiodbc-devel @@ -154,6 +158,7 @@ libsndfile-devel libt1lib-devel libtheora-devel libungif-devel +libutempter libvisual-devel libvorbis-devel libwmf-devel @@ -190,18 +195,26 @@ openldap-servers-devel opensc openslp-devel opensp-devel +openssh-clients optipng pam-devel pciutils-devel perl-devel +perl(Archive::Zip) +perl(Getopt::ArgvFile) +perl(Module::ScanDeps) +perl(PAR) +perl(PAR::Dist) perl(XML::Parser) pilot-link-devel pinentry-gtk2 pkgconfig(audiofile) pkgconfig(libpng16) +pkgconfig(pygtk-2.0) polkit-agent-none postgresql9.4 postgresql9.4-devel +ppp pth-devel python-devel python-sip @@ -216,8 +229,9 @@ SDL-devel speex-devel sqlite3-devel sqlite-devel -sudo +sshfs-fuse subversion-devel +sudo sword-devel taglib-devel torsocks diff --git a/redhat/docker/mga6/rpmmacros b/redhat/docker/mga6/rpmmacros index 87fb3a9b9..427abf5c4 100644 --- a/redhat/docker/mga6/rpmmacros +++ b/redhat/docker/mga6/rpmmacros @@ -1,3 +1,4 @@ %dist .mga6 %_smp_mflags -j8 %jobs 8 +%_program_prefix "" |