osmith has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-ci/+/29602 )

Change subject: obs: build_binpkg: debian: don't install manpages
......................................................................

obs: build_binpkg: debian: don't install manpages

Configure dpkg to not extract man pages. Otherwise it will spend some
time regenerating the man page index whenever installing build
dependencies before starting to build a package.

Related: OS#2385
Change-Id: I1c9e3883b976e023c96dfd59eb147770f7ad99a7
---
M scripts/obs/data/build_binpkg.Dockerfile
1 file changed, 5 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved
  pespin: Looks good to me, but someone else must approve



diff --git a/scripts/obs/data/build_binpkg.Dockerfile 
b/scripts/obs/data/build_binpkg.Dockerfile
index feacbc9..de53478 100644
--- a/scripts/obs/data/build_binpkg.Dockerfile
+++ b/scripts/obs/data/build_binpkg.Dockerfile
@@ -12,8 +12,13 @@
 # build recipe. For rpm-based distributions, there is no build-essential or
 # similar package. Instead add relevant packages from prjconf, e.g.:
 # https://build.opensuse.org/projects/CentOS:CentOS-8/prjconf
+# For debian, make sure we don't have man pages as otherwise it takes some time
+# to regenerate the manuals database when installing build dependencies.
 RUN    case "$DISTRO" in \
        debian*) \
+               echo "path-exclude=/usr/share/man/*" \
+                       > /etc/dpkg/dpkg.cfg.d/exclude-man-pages && \
+               rm -rf /usr/share/man/ && \
                apt-get update && \
                apt-get install -y --no-install-recommends \
                        build-essential \

--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/29602
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I1c9e3883b976e023c96dfd59eb147770f7ad99a7
Gerrit-Change-Number: 29602
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-MessageType: merged

Reply via email to