[Bug 1195117] New LD version string problems obtaining version
https://bugzilla.suse.com/show_bug.cgi?id=1195117 https://bugzilla.suse.com/show_bug.cgi?id=1195117#c1 Michael Matz <matz@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WONTFIX --- Comment #1 from Michael Matz <matz@suse.com> --- This is not a new version string, it's like this since about forever. We're using the official marker to differentiate ours from upstream binutils versions (configure's --with-pkgversion mechanism), which leads to a version string of: 'GNU $program ($pkgversion) $version' ($program being "ld", "as", "objdump", and so on, $pkgversion being an arbitrary string, and $version being the version of binutils). Note that our pkgversion string is basically the distro for which this binutils was built (e.g. on some versions from the buildservice it's "devel:gcc / SLE-11" and the like). We could remove the "15" (and "12" and "11") of our marker for the code stream that binutils was supposed to be for, if it's one of the SLE code streams, but there are slight differences in their configuration and it's advantageous to know it right from the version string. So, sorry, no, we won't remove that number. But what will work for all binutils versions out there (when they also use --with-pkgversion and don't directly patch the --version output) is to use the _last_ word of the output: FULLVERSION=$(shell $(LD) -v | sed 's/.* //') Alternatively, you could remove everything between '()', which will also work for all GNU programs that use this mechanism for providing an annotated version string. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com