Package: openmsx
Version: 21.0+dfsg-2
Severity: normal
Tags: patch
X-Debbugs-Cc: [email protected]
User: [email protected]
Usertags: origin-ubuntu resolute ubuntu-patch

Dear Maintainer,

openmsx 21.0+dfsg-2 fails to build on Ubuntu with:

```
g++: error: unrecognized command-line option 
ā€˜--package-metadata=%7B%22type%22:%22deb%22%2C%22os%22:%22ubuntu%22%2C%22name%22:%22openmsx%22%2C%22version%22:%2221.0+dfsg-2%22%2C%22architecture%22:%22amd64%22%7D’
```

The linker options -Bsymbolic-functions and --package-metadata lack the
-Wl, prefix.

*** /tmp/tmp_meenmny/bug_body

In Ubuntu, the attached patch was applied to achieve the following:

  * dpkg-buildflags.diff: do not strip -Wl, from LDFLAGS (LP: #2137455)


Thanks for considering the patch.

--
Benjamin Drung
Debian & Ubuntu Developer
diff -Nru openmsx-21.0+dfsg/debian/patches/dpkg-buildflags.diff 
openmsx-21.0+dfsg/debian/patches/dpkg-buildflags.diff
--- openmsx-21.0+dfsg/debian/patches/dpkg-buildflags.diff       2025-12-29 
13:39:16.000000000 +0100
+++ openmsx-21.0+dfsg/debian/patches/dpkg-buildflags.diff       2026-01-05 
12:22:53.000000000 +0100
@@ -16,7 +16,7 @@
 +# for the compiler driver, but in openmsx's build system, LINK_FLAGS
 +# take that role.
 +LINK_FLAGS += \
-+    $(shell dpkg-buildflags --get LDFLAGS | sed -e 's/-Wl,//g')
++    $(shell dpkg-buildflags --get LDFLAGS)
 +
 +CXXFLAGS += \
 +    $(shell dpkg-buildflags --get CXXFLAGS | sed -e 's/ *-O[0-3] */ /') \

Reply via email to