RPM

Comment 5 for bug 633750

Revision history for this message
In , Rguenther (rguenther) wrote :

I don't see where finddebuginfo.diff changes anything for mono.

But ...

+# Find mono debugging data
+if [ -x "/usr/bin/mono" ] ; then
+ echo "find in $RPM_BUILD_ROOT/usr/lib"
+ find $RPM_BUILD_ROOT/usr/lib -type f \( -name "*.dll.mdb" -or -name "*.exe.mdb" \) | sed "s|$RPM_BUILD_ROOT||" >> "$LISTFILE"
+fi
+

so you are special-casing packages that have /usr/bin/mono. Why not simply
manually add a

Package: debuginfo
...

%files debuginfo
...

which is possible now (well, not mono-debuginfo as that exists already and
you can't add to it - I didn't see that would be necessary yet). Likely
what you want is something like mono-runtime-debuginfo anyway (or wherever
that pieces are).

The proposed solution to finddebuginfo.sh is a hack. If more packages
would provide debuginformation in a mono format then if a mono
build environment is present there needs to be a way to identify a
*.dll.mdb or *.exe.mdb file as proper debuginformation and the packaging
should be done for all packages not just the one containing /usr/bin/mono.