Bugzilla – Bug 1213235
windows:mingw:win{32|64}/mingw{32|64}-cross-cmake: /usr/bin/mingw{32|64}-cmake are broken links
Last modified: 2023-07-12 14:37:15 UTC
/usr/bin/mingw32-cmake -> ../lib/mingw32-scripts /usr/bin/mingw64-cmake -> ../lib/mingw64-scripts /usr/bin/mingw32-configure -> ../libexec/mingw32-scripts /usr/bin/mingw32-gdb -> ../libexec/mingw32-scripts /usr/bin/mingw32-make -> ../libexec/mingw32-scripts /usr/bin/mingw64-configure -> ../libexec/mingw64-scripts /usr/bin/mingw64-gdb -> ../libexec/mingw64-scripts /usr/bin/mingw64-make -> ../libexec/mingw64-scripts Because /usr/bin/mingw{32|64}-cmake points to the wrong path, they can't be used. I tried refreshing, updating and reinstalling mingw{32|64}-cross-cmake but the problem persisted. However linking /usr/bin/mingw64-cmake to ../libexec/mingw64-scripts fixed the problem.
Looks like line 56 is what needs to be updated https://build.opensuse.org/package/view_file/windows:mingw:win64/mingw64-cross-cmake/mingw64-cross-cmake.spec?expand=1
With LCP's help I learned how to make the one line change, I tested both. https://build.opensuse.org/request/show/1098315 https://build.opensuse.org/request/show/1098330
(In reply to Imnotgivingmy nametoamachine from comment #1) > Looks like line 56 is what needs to be updated > https://build.opensuse.org/package/view_file/windows:mingw:win64/mingw64- > cross-cmake/mingw64-cross-cmake.spec?expand=1 This issue is limited to openSUSE Tumbleweed $ source /etc/os-release ; echo $ID opensuse-tumbleweed the files are symlinked to ../libexec/mingw32-scripts $ ls /usr/bin/mingw32-gdb -l lrwxrwxrwx 1 root root 26 14. Jun 16:34 /usr/bin/mingw32-gdb -> ../libexec/mingw32-scripts $ ls /usr/libexec/mingw32-scripts /usr/libexec/mingw32-scripts On openSUSE Leap the script the link point to is installed in /usr/lib $ ls /usr/lib/mingw32-scripts /usr/lib/mingw32-scripts
(In reply to Ralf Habacker from comment #3) > (In reply to Imnotgivingmy nametoamachine from comment #1) > > Looks like line 56 is what needs to be updated > > https://build.opensuse.org/package/view_file/windows:mingw:win64/mingw64- > > cross-cmake/mingw64-cross-cmake.spec?expand=1 > > This issue is limited to openSUSE Tumbleweed > > $ source /etc/os-release ; echo $ID > opensuse-tumbleweed > > the files are symlinked to ../libexec/mingw32-scripts > > $ ls /usr/bin/mingw32-gdb -l > lrwxrwxrwx 1 root root 26 14. Jun 16:34 /usr/bin/mingw32-gdb -> > ../libexec/mingw32-scripts > > $ ls /usr/libexec/mingw32-scripts > /usr/libexec/mingw32-scripts > > On openSUSE Leap the script the link point to is installed in /usr/lib > > $ ls /usr/lib/mingw32-scripts > /usr/lib/mingw32-scripts Is there a variable I can use instead that will be set to the correct folder depending on the distribution?
(In reply to Imnotgivingmy nametoamachine from comment #4) > Is there a variable I can use instead that will be set to the correct folder > depending on the distribution? yes, %{_libexecdir} can be used instead of ../lib
(In reply to Ralf Habacker from comment #5) > (In reply to Imnotgivingmy nametoamachine from comment #4) > > > Is there a variable I can use instead that will be set to the correct folder > > depending on the distribution? > > yes, %{_libexecdir} can be used instead of ../lib or %_mingw32_create_macro_links %{buildroot}%{_bindir}/mingw32-cmake and %_mingw64_create_macro_links %{buildroot}%{_bindir}/mingw64-cmake
(In reply to Ralf Habacker from comment #6) > (In reply to Ralf Habacker from comment #5) > > (In reply to Imnotgivingmy nametoamachine from comment #4) > > > > > Is there a variable I can use instead that will be set to the correct folder > > > depending on the distribution? > > > > yes, %{_libexecdir} can be used instead of ../lib > > or > > %_mingw32_create_macro_links %{buildroot}%{_bindir}/mingw32-cmake > > and > > %_mingw64_create_macro_links %{buildroot}%{_bindir}/mingw64-cmake Thanks, I'll test these and make a new request.
Made a new request for mingw64-cross-cmake https://build.opensuse.org/request/show/1098348 If this is correct I'll make corrected request for mingw32-cross-cmake too and for another package I just found has the same problem.
fixed with https://build.opensuse.org/request/show/1098364 https://build.opensuse.org/request/show/1098370 https://build.opensuse.org/request/show/1098371 Thanks for your patience and the much needed hand holding, it was a very valuable experience and I hope to contribute more in the future, hopefully without needing much less intervention now with some experience, I'll try to find and read related wiki pages about contributing.