(In reply to Ralf Habacker from comment #12) > Conclusion: The use of native objdump with -WL options seems to be a real > step forward. I checked an additional package $ osc checkout windows:mingw:win32/mingw32-dbus-1 $ cd $_ $ osc build openSUSE_Leap_15.5 $ osc chroot openSUSE_Leap_15.5 and with the current implementation I get $ i686-w64-mingw32-objdump -Wi /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/.libs/libdbus-1-3.dll | i686-w64-mingw32-objdump-srcfiles | grep /home/abuild/rpmbuild/BUILD/dbus-1.14.4 | wc -l 47 $ i686-w64-mingw32-objdump -Wi /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/.libs/libdbus-1-3.dll | i686-w64-mingw32-objdump-srcfiles | grep /home/abuild/rpmbuild/BUILD/dbus-1.14.4 /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-address.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-auth.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-bus.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-connection.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-credentials.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-errors.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-keyring.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-marshal-header.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-marshal-byteswap.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-marshal-recursive.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-marshal-validate.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-message.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-misc.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-nonce.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-object-tree.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-pending-call.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-resources.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-server.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-server-debug-pipe.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-server-socket.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-server-win.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-sha.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-signature.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-syntax.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-timeout.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-threads.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-transport.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-transport-socket.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-watch.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-dataslot.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-file.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-hash.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-internals.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-list.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-marshal-basic.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-memory.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-mempool.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-pipe.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-string.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-file-win.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-pipe-win.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-sysdeps-win.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-sysdeps-thread-win.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-transport-win.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-sysdeps.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-test-tap.c /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-init-win.cpp there are no header included. This issue is tracked with bug 1221463. With the mingw objdump and the parameter -WL I get $ i686-w64-mingw32-objdump -WL /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/.libs/libdbus-1-3.dll | gawk '$1 ~ /^\/.*:$/ && $1 ~ SRCDIR { gsub(/:/,"", $1); print $1}' SRCDIR=/home/abuild/rpmbuild/BUILD/dbus-1.14.4/ | xargs realpath | sort | uniq /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/.libs/libdbus-1-3.dll which returns an incomplete list of files With the native objdump $ objdump -WL /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/.libs/libdbus-1-3.dll | gawk '$1 ~ /^\/.*:$/ && $1 ~ SRCDIR { gsub(/:/,"", $1); print $1}' SRCDIR=/home/abuild/rpmbuild/BUILD/dbus-1.14.4/ | xargs realpath | sort | uniq /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/.libs/libdbus-1-3.dll /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-credentials.h /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-internals.h /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-string.h /home/abuild/rpmbuild/BUILD/dbus-1.14.4/dbus/dbus-sysdeps.h also an uncomplete list is returned. The situation is therefore not clear-cut - the current solution generates partially incomplete file lists and the envisaged solution also requires adjustments.