Accepting request 990652 from home:rhabacker:branches:windows:mingw:win64

- Update to 20220801
- Fetch real used shared library name from import libraries to avoid
  file name generation errors, for example with mingw32-glib2
- Scan all archives for shared library names as packages may not use
  the default import library extension

OBS-URL: https://build.opensuse.org/request/show/990652
OBS-URL: https://build.opensuse.org/package/show/windows:mingw:win64/mingw64-filesystem?expand=0&rev=139
This commit is contained in:
Ralf Habacker 2022-07-23 16:18:26 +00:00 committed by Git OBS Bridge
parent 97ed581d6c
commit cb18632f38
3 changed files with 15 additions and 3 deletions

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Wed Jul 20 07:11:15 UTC 2022 - Ralf Habacker <ralf.habacker@freenet.de>
- Update to 20220801
- Fetch real used shared library name from import libraries to avoid
file name generation errors, for example with mingw32-glib2
- Scan all archives for shared library names as packages may not use
the default import library extension
-------------------------------------------------------------------
Tue Jul 12 07:18:39 UTC 2022 - Ralf Habacker <ralf.habacker@freenet.de>

View File

@ -31,7 +31,7 @@
%define _rpmmacrodir %{_sysconfdir}/rpm
%endif
Name: mingw64-filesystem
Version: 20220620
Version: 20220801
Release: 0
Summary: MinGW base filesystem and environment
License: GPL-2.0-or-later

View File

@ -106,11 +106,14 @@ for f in $dlls; do
sed 's/\(.*\)/'"$target"'(\1)/'
done | sort -u
# scan import libraries - all archive files are scanned, not only
# '.dll.a' as some packages do not use the standard extension
# for import libraries
if [ -n "$scan_implibs" ]; then
implibs=$(echo "$filelist" | grep '\.dll.a$')
implibs=$(echo "$filelist" | grep '\.a$')
for f in $implibs; do
[ ! -f "$f" ] && continue
"$OBJDUMP" -r "$f" | grep '_iname' | sed 's,^.*lib,lib,g;s,_iname,,g;s,_dll,.dll,g;s,_,-,g' |
"$STRINGS" "$f" | grep '\.dll$' |
tr "[:upper:]" "[:lower:]" |
grep -Ev "$exclude_pattern" |
sed 's/\(.*\)/'"$target"'(\1)/'