• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1FROM registry.fedoraproject.org/fedora:36
2MAINTAINER rpm-maint@lists.rpm.org
3
4WORKDIR /srv/popt
5
6RUN echo -e "deltarpm=0\ninstall_weak_deps=0\ntsflags=nodocs" >> /etc/dnf/dnf.conf
7RUN rm -f /etc/yum.repos.d/*modular.repo
8RUN dnf -y update
9RUN dnf -y install \
10  autoconf \
11  automake \
12  libtool \
13  gettext-devel \
14  make \
15  gcc \
16  binutils \
17  && dnf clean all
18
19COPY . .
20
21RUN ./autogen.sh
22RUN ./configure --enable-werror CFLAGS="-Wall -Wdeclaration-after-statement -Wextra -Wmissing-format-attribute -Wmissing-noreturn -Wno-gnu-alignof-expression -Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef -Wunused -Wwrite-strings"
23RUN make
24
25CMD make distcheck DISTCHECK_CONFIGURE_FLAGS=--enable-werror
26