File: Dockerfile

package info (click to toggle)
popt 1.19%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,700 kB
  • sloc: sh: 5,259; ansic: 4,304; makefile: 94; sed: 16
file content (25 lines) | stat: -rw-r--r-- 701 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM registry.fedoraproject.org/fedora:36
MAINTAINER rpm-maint@lists.rpm.org

WORKDIR /srv/popt

RUN echo -e "deltarpm=0\ninstall_weak_deps=0\ntsflags=nodocs" >> /etc/dnf/dnf.conf
RUN rm -f /etc/yum.repos.d/*modular.repo
RUN dnf -y update
RUN dnf -y install \
  autoconf \
  automake \
  libtool \
  gettext-devel \
  make \
  gcc \
  binutils \
  && dnf clean all

COPY . .

RUN ./autogen.sh
RUN ./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"
RUN make

CMD make distcheck DISTCHECK_CONFIGURE_FLAGS=--enable-werror