[Bug 1209611] New: windows:mingw:win{32|64}/mingw{32|64}-filesystem: Move out cmake related support to mingw{32|64}-cross-cmake

http://bugzilla.opensuse.org/show_bug.cgi?id=1209611 Bug ID: 1209611 Summary: windows:mingw:win{32|64}/mingw{32|64}-filesystem: Move out cmake related support to mingw{32|64}-cross-cmake Classification: openSUSE Product: openSUSE.org Version: unspecified Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: 3rd party software Assignee: fstrba@suse.com Reporter: ralf.habacker@freenet.de QA Contact: screening-team-bugs@suse.de CC: fridrich.strba@bluewin.ch, hib@hiberis.nl, mkbosmans@gmail.com Found By: --- Blocker: --- CMake support files and macros for native packages are provided by the cmake package and not by the basic filesystem. To have a better separation and less updates of the mingw{32|64}-filesystem package when improving cmake support, it would be helpful to have a separate mingw32-cross-cmake package that provides the relevant rpm macros. The condition for this is that packages that use cmake use mingw32-cross-cmake as a build dependency. This could also be set centrally via the project configuration. -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1209611 http://bugzilla.opensuse.org/show_bug.cgi?id=1209611#c1 --- Comment #1 from Ralf Habacker <ralf.habacker@freenet.de> --- With the Meson Build System, a similar package called mingw{32|64}-cross-meson is already available. -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1209611 http://bugzilla.opensuse.org/show_bug.cgi?id=1209611#c2 --- Comment #2 from Ralf Habacker <ralf.habacker@freenet.de> --- (In reply to Ralf Habacker from comment #1)
This could also be set centrally via the project configuration.
It was planned to use 'Substitute:' in the project configuration. However, this option does not distinguish between build and runtime dependencies, so that an adjustment of only the build dependency is not possible. After accepting https://build.opensuse.org/request/show/1074827 and https://build.opensuse.org/request/show/1074822 it is therefore necessary to manually adjust all 146 packages in question, which is done in a mass change. -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1209611 http://bugzilla.opensuse.org/show_bug.cgi?id=1209611#c3 Ralf Habacker <ralf.habacker@freenet.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #3 from Ralf Habacker <ralf.habacker@freenet.de> --- The required change has been submitted to windows:mingw:win32 -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1209611 http://bugzilla.opensuse.org/show_bug.cgi?id=1209611#c4 --- Comment #4 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1209611) was mentioned in https://build.opensuse.org/request/show/1074855 Factory / mingw32-cross-cmake -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1209611 http://bugzilla.opensuse.org/show_bug.cgi?id=1209611#c5 --- Comment #5 from Ralf Habacker <ralf.habacker@freenet.de> --- To convert a whole project to use the new package mingw32-cross-cmake you can use the following commands: 1. find all packages where cmake is used as build requirement find -maxdepth 2 -name '*.spec' -exec gawk '$1 == "BuildRequires:" && $2 == "cmake" { print FILENAME}' {} \; > out.log 2. convert all references to use the new package cat out.log | xargs gawk -i inplace '$1 == "BuildRequires:" && $2 == "cmake" { gsub(/cmake/, "mingw32-cross-cmake", $0);} { print $0 }' 3. Add an entry to the changes file of patched packages for i in $(cat out.log | sed 's,\.spec,.changes,g'); do osc vc -m "Use mingw32-cross-cmake package (boo#1209611)" $i; done 4. Add newly added changes files cat out.log | xargs dirname | xargs osc status | gawk '$1 == "?" { print $2}' | xargs osc add 5. Inspect all changed files cat out.log | xargs dirname | xargs osc diff 6. submit all applied changes cat out.log | xargs dirname | xargs osc ci -m "Use mingw32-cross-cmake package (boo#1209611)" -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1209611 http://bugzilla.opensuse.org/show_bug.cgi?id=1209611#c6 --- Comment #6 from Ralf Habacker <ralf.habacker@freenet.de> --- (In reply to Ralf Habacker from comment #5)
2. convert all references to use the new package
cat out.log | xargs gawk -i inplace '$1 == "BuildRequires:" && $2 == "cmake" { gsub(/cmake/, "mingw32-cross-cmake", $0);} { print $0 }'
The following commands should be used here to drop the original cmake version cat out.log | xargs gawk -i inplace '$1 == "BuildRequires:" && $2 == "cmake" { gsub(/cmake.*$/, "mingw32-cross-cmake", $0);} { print $0 }' -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1209611 http://bugzilla.opensuse.org/show_bug.cgi?id=1209611#c7 --- Comment #7 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1209611) was mentioned in https://build.opensuse.org/request/show/1077077 Factory / mingw64-cross-cmake -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1209611 http://bugzilla.opensuse.org/show_bug.cgi?id=1209611#c8 --- Comment #8 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1209611) was mentioned in https://build.opensuse.org/request/show/1077092 Factory / mingw64-filesystem -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com