mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
Log all installed system packages and Python libraries before build
This commit is contained in:
@@ -317,6 +317,14 @@ stages:
|
|||||||
grep -e "^#define HAVE_LIBEDIT" build/config.h;
|
grep -e "^#define HAVE_LIBEDIT" build/config.h;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
.list_installed_package_versions: &list_installed_package_versions
|
||||||
|
- echo -e "\e[0Ksection_start:`date +%s`:installed_packages_section[collapsed=true]\r\e[0KHeader of the installed packages collapsible section"
|
||||||
|
- ( pip3 list || pip list || echo "no pip" ) 2>/dev/null
|
||||||
|
- for cmd in "apk info --verbose" "dpkg-query --show --showformat='\${Package}-\${Version}\n'" "pkg info --quiet" "rpm -qa | sort"; do
|
||||||
|
eval "$cmd" 2>/dev/null && break;
|
||||||
|
done || true
|
||||||
|
- echo -e "\e[0Ksection_end:`date +%s`:installed_packages_section\r\e[0K"
|
||||||
|
|
||||||
# Unpack release tarball and continue work in the extracted directory.
|
# Unpack release tarball and continue work in the extracted directory.
|
||||||
.unpack_release_tarball: &unpack_release_tarball
|
.unpack_release_tarball: &unpack_release_tarball
|
||||||
- tar --extract --file build/meson-dist/bind-*.tar.xz
|
- tar --extract --file build/meson-dist/bind-*.tar.xz
|
||||||
@@ -353,6 +361,7 @@ stages:
|
|||||||
stage: build
|
stage: build
|
||||||
before_script:
|
before_script:
|
||||||
- test -w "${CCACHE_DIR}" && export PATH="/usr/lib/ccache:${PATH}"
|
- test -w "${CCACHE_DIR}" && export PATH="/usr/lib/ccache:${PATH}"
|
||||||
|
- *list_installed_package_versions
|
||||||
script:
|
script:
|
||||||
- *configure
|
- *configure
|
||||||
- *check_readline_setup
|
- *check_readline_setup
|
||||||
@@ -765,6 +774,8 @@ docs:
|
|||||||
<<: *default_triggering_rules
|
<<: *default_triggering_rules
|
||||||
<<: *base_image
|
<<: *base_image
|
||||||
<<: *docs_job
|
<<: *docs_job
|
||||||
|
before_script:
|
||||||
|
- *list_installed_package_versions
|
||||||
variables:
|
variables:
|
||||||
DOC_CHECK_MISC_CHANGE: 1
|
DOC_CHECK_MISC_CHANGE: 1
|
||||||
needs: []
|
needs: []
|
||||||
@@ -1010,6 +1021,7 @@ gcc:tarball:nosphinx:
|
|||||||
<<: *almalinux_9_amd64_image
|
<<: *almalinux_9_amd64_image
|
||||||
<<: *build_job
|
<<: *build_job
|
||||||
before_script:
|
before_script:
|
||||||
|
- *list_installed_package_versions
|
||||||
- (! command -v sphinx-build >/dev/null)
|
- (! command -v sphinx-build >/dev/null)
|
||||||
- *unpack_release_tarball
|
- *unpack_release_tarball
|
||||||
needs:
|
needs:
|
||||||
@@ -1083,6 +1095,8 @@ scan-build:
|
|||||||
CFLAGS: "${CFLAGS_COMMON}"
|
CFLAGS: "${CFLAGS_COMMON}"
|
||||||
EXTRA_CONFIGURE: "-Didn=enabled"
|
EXTRA_CONFIGURE: "-Didn=enabled"
|
||||||
SCANBUILD: "${CI_PROJECT_DIR}/scan-build.sh"
|
SCANBUILD: "${CI_PROJECT_DIR}/scan-build.sh"
|
||||||
|
before_script:
|
||||||
|
- *list_installed_package_versions
|
||||||
script:
|
script:
|
||||||
- *configure
|
- *configure
|
||||||
- *scan_build
|
- *scan_build
|
||||||
@@ -1160,6 +1174,7 @@ gcc:tarball:
|
|||||||
<<: *base_image
|
<<: *base_image
|
||||||
<<: *build_job
|
<<: *build_job
|
||||||
before_script:
|
before_script:
|
||||||
|
- *list_installed_package_versions
|
||||||
- *unpack_release_tarball
|
- *unpack_release_tarball
|
||||||
needs:
|
needs:
|
||||||
- job: tarball-create
|
- job: tarball-create
|
||||||
@@ -1788,6 +1803,8 @@ reproducible-build:
|
|||||||
variables:
|
variables:
|
||||||
CC: gcc
|
CC: gcc
|
||||||
CFLAGS: "${CFLAGS_COMMON}"
|
CFLAGS: "${CFLAGS_COMMON}"
|
||||||
|
before_script:
|
||||||
|
- *list_installed_package_versions
|
||||||
script:
|
script:
|
||||||
- meson reprotest
|
- meson reprotest
|
||||||
--intermediaries
|
--intermediaries
|
||||||
|
Reference in New Issue
Block a user