From 0396ab84cc60af85dfd90e36cf1ef123d14542bc Mon Sep 17 00:00:00 2001 From: changhan Date: Fri, 18 Apr 2025 02:05:31 +0000 Subject: [PATCH] fix build: Refactor autogen call into before_script Signed-off-by: changhan --- ...ctor-autogen-call-into-before_script.patch | 47 +++++++++++++++++++ libmd.spec | 6 ++- 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 backport-Refactor-autogen-call-into-before_script.patch diff --git a/backport-Refactor-autogen-call-into-before_script.patch b/backport-Refactor-autogen-call-into-before_script.patch new file mode 100644 index 0000000..ca2568b --- /dev/null +++ b/backport-Refactor-autogen-call-into-before_script.patch @@ -0,0 +1,47 @@ +From 7a35890722b07243ce000acc60dc899fdc6c510c Mon Sep 17 00:00:00 2001 +From: changhan +Date: Thu, 17 Apr 2025 20:08:39 +0800 +Subject: [PATCH] Refactor-autogen-call-into-before_script + +--- + .gitlab-ci.yml | 29 +++++++++++++++++++++++++++++ + 1 file changed, 29 insertions(+) + create mode 100644 .gitlab-ci.yml + +diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml +new file mode 100644 +index 0000000..f19a306 +--- /dev/null ++++ b/.gitlab-ci.yml +@@ -0,0 +1,29 @@ ++image: debian:latest ++ ++before_script: ++ - apt-get update -qq ++ - apt-get install -qq -y --no-install-recommends ++ git gcc make autoconf automake libtool gcovr ++ - ./autogen ++ ++vpath-tests: ++ stage: test ++ script: ++ - mkdir -p build-tree ++ - cd build-tree ++ - ../configure ++ - make check ++ ++unit-tests: ++ stage: test ++ script: ++ - ./configure --enable-sanitize ++ - make check ++ ++coverage: ++ stage: test ++ script: ++ - ./configure --disable-static ++ - make check CFLAGS="--coverage -O0 -ggdb" LDFLAGS="--coverage -O0 -ggdb" ++ - gcovr -s -e test/ ++ coverage: /^TOTAL.*\s+(\d+\%)$/ +-- +2.33.0 diff --git a/libmd.spec b/libmd.spec index ad4bc86..1c22a15 100644 --- a/libmd.spec +++ b/libmd.spec @@ -1,7 +1,7 @@ Summary: Library that provides message digest functions from BSD systems Name: libmd Version: 1.1.0 -Release: 3 +Release: 4 # Breakdown in COPYING file of libmd release tarball License: BSD-2-Clause AND BSD-3-Clause AND ISC AND Beerware URL: https://www.hadrons.org/software/libmd/ @@ -13,6 +13,7 @@ BuildRequires: gcc BuildRequires: make Patch1: backport-fix-out-of-tree-build.patch +Patch2: backport-Refactor-autogen-call-into-before_script.patch %description The libmd library provides a few message digest ("hash") functions, as @@ -88,6 +89,9 @@ make check %{_mandir}/man3/sha2.3* %changelog +* Fri Apr 18 2025 changhan - 1.1.0-4 +- fix build: Refactor autogen call into before_script + * Thu Apr 17 2025 changhan - 1.1.0-3 - Fix out-of-tree build