Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package mingw32-filesystem for openSUSE:Factory checked in at 2025-02-03 21:44:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mingw32-filesystem (Old) and /work/SRC/openSUSE:Factory/.mingw32-filesystem.new.2316 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mingw32-filesystem" Mon Feb 3 21:44:17 2025 rev:30 rq:1242269 version:20250202 Changes: -------- --- /work/SRC/openSUSE:Factory/mingw32-filesystem/mingw32-filesystem.changes 2024-11-18 20:03:01.849700561 +0100 +++ /work/SRC/openSUSE:Factory/.mingw32-filesystem.new.2316/mingw32-filesystem.changes 2025-02-03 21:45:23.327126168 +0100 @@ -1,0 +2,19 @@ +Sun Feb 2 20:32:09 UTC 2025 - Ralf Habacker <[email protected]> + +- Syntax fix in %_mingw32_debug_package on Leap 15.x + +------------------------------------------------------------------- +Sun Feb 2 08:30:18 UTC 2025 - Ralf Habacker <[email protected]> + +- Update version to 20250202 +- Extend mingw32-find-debuginfo.sh: + * Merging debug source package into debug info package is now + provided with option '--merge-debug-source-package' + * Add option '--no-debug-source-package' to skip building of + debug source package used by wine package + * Add option '--src-root-dir' to specify a custom directory + for installing debug source files +- mingw32.macros: Add parameter '-e' to %_mingw32_debug_package + to exclude BuildArch: noarch + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mingw32-filesystem.spec ++++++ --- /var/tmp/diff_new_pack.E6OlHi/_old 2025-02-03 21:45:24.207162492 +0100 +++ /var/tmp/diff_new_pack.E6OlHi/_new 2025-02-03 21:45:24.211162657 +0100 @@ -1,7 +1,7 @@ # # spec file for package mingw32-filesystem # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -31,7 +31,7 @@ %define _rpmmacrodir %{_sysconfdir}/rpm %endif Name: mingw32-filesystem -Version: 20241118 +Version: 20250202 Release: 0 Summary: MinGW base filesystem and environment License: GPL-2.0-or-later ++++++ macros.mingw32 ++++++ --- /var/tmp/diff_new_pack.E6OlHi/_old 2025-02-03 21:45:24.311166785 +0100 +++ /var/tmp/diff_new_pack.E6OlHi/_new 2025-02-03 21:45:24.315166950 +0100 @@ -93,15 +93,20 @@ %_mingw32_find_lang /usr/lib/rpm/mingw32-find-lang.sh %{buildroot} %_mingw32_debug_install_post \ - /usr/lib/rpm/mingw32-find-debuginfo.sh %{_builddir} 1\ + /usr/lib/rpm/mingw32-find-debuginfo.sh --merge-debug-source-package %{_builddir} \ %{nil} +# # Template for combined debuginfo and debugsource sub-package. -%_mingw32_debug_package(n:) \ +# Parameter: +# -e exclude BuildArch: noarch +# -n package name (-debug will be appended) +# +%_mingw32_debug_package(en:) \ %package %{-n:-n %{-n*}-}debug \ Summary: Debug information for package %{name} \ Group: Development/Sources \ -BuildArch: noarch \ +%{!-e:BuildArch: noarch} \ %description %{-n:-n %{-n*}-}debug \ This package provides debug information for package %{name}.\ Debug information is useful when developing applications that use this\ ++++++ mingw32-find-debuginfo.sh ++++++ --- /var/tmp/diff_new_pack.E6OlHi/_old 2025-02-03 21:45:24.359168767 +0100 +++ /var/tmp/diff_new_pack.E6OlHi/_new 2025-02-03 21:45:24.363168931 +0100 @@ -1,13 +1,23 @@ #!/bin/bash -#mingw32-find-debuginfo.sh - automagically generate debug info and file list -#for inclusion in an rpm spec file for mingw32-* packages. +# mingw32-find-debuginfo.sh - automatically generate debug info, sources and file list +# for inclusion in an rpm spec file for mingw32-* packages. # +# syntax: mingw32--find-debuginfo.sh [<options>] [<BUILDDIR>] +# options: +# --merge-debug-source-package merge debug source package into debug info package +# --no-debug-source-package do not create debug source package +# --src-root-dir root dir for installing debug source files (src/debug is appended) +# BUILDDIR build directory (often $HOME/rpmbuild/BUILD) +# +# environment variables: +# ROOT_DIR - directory where to install debug sources (optional, default is <$ROOT_DIR>/src/debug) +# # $PWD package dir below $BUILDDIR target="mingw32" host="i686-w64-mingw32" -# create for single package as child process +# extract debug info for a single file as child process if [[ -v RUN_SINGLE ]]; then f=$1 case $("$host-objdump" -h "$f" 2>/dev/null | egrep -o '(debug[\.a-z_]*|gnu.version)') in @@ -34,16 +44,29 @@ export MALLOC_PERTURB_=0 BUILDDIR=. -if [ -n "$1" ]; then - BUILDDIR="$1" -fi +MERGE_SOURCE_PACKAGE=0 +SOURCE_PACKAGE=1 -# generate separate debuginfo and debugsource or single debug package combining both -if [ -n "$2" ]; then - SINGLE_DEBUG_PACKAGE=1 -else - SINGLE_DEBUG_PACKAGE=0 -fi +while [ $# -gt 0 ]; do + case "$1" in + --merge-debug-source-package) + MERGE_SOURCE_PACKAGE=1 + ;; + --no-debug-source-package) + SOURCE_PACKAGE=0 + ;; + --src-root-dir) + ROOT_DIR=$2 + shift + ;; + *) + BUILDDIR=$1 + shift + break + ;; + esac + shift +done SOURCEFILE="$BUILDDIR/$target-debugsources.list" > "$SOURCEFILE" @@ -55,13 +78,11 @@ mkdir -p "$BUILDDIR" fi +# extract debug info find $RPM_BUILD_ROOT -type f -name "*.exe" -or -name "*.dll" | sort | \ srcdir=$srcdir SOURCEFILE=$SOURCEFILE BUILDDIR=$BUILDDIR RPM_BUILD_ROOT=$RPM_BUILD_ROOT RUN_SINGLE=1 xargs --max-args=1 --max-procs=0 bash -x $0 -ROOT_DIR="/usr/$host/sys-root/mingw" -SOURCE_DIR="${ROOT_DIR}/src" -DEBUGSOURCE_DIR="${SOURCE_DIR}/debug" - +# generate debug info file list find $RPM_BUILD_ROOT -type f \ -name "*.exe.debug" \ -or -name "*.dll.debug" \ @@ -70,7 +91,17 @@ | sort \ | sed -n -e "s#^$RPM_BUILD_ROOT##p" > $BUILDDIR/$target-debugfiles.list -echo creating debugsource file structure +if [ "$SOURCE_PACKAGE" -eq 0 ]; then + echo creating debugsource file structure skipped + exit 0 +else + echo creating debugsource file structure +fi + +# create debug sources +ROOT_DIR="${ROOT_DIR:-/usr/$host/sys-root/mingw}" +SOURCE_DIR="${ROOT_DIR}/src" +DEBUGSOURCE_DIR="${SOURCE_DIR}/debug" destdir=${RPM_BUILD_ROOT}${DEBUGSOURCE_DIR} if [ ! -e "$destdir" ]; then @@ -99,7 +130,7 @@ echo "$DEBUGSOURCE_DIR" >> $SOURCEFILE fi -if test "$SINGLE_DEBUG_PACKAGE" -eq 1; then +if [ "$MERGE_SOURCE_PACKAGE" -eq 1 ]; then cat $SOURCEFILE >> $BUILDDIR/$target-debugfiles.list rm $SOURCEFILE* fi
