Re: mingw packaging: equivalent of %cmake_build, %cmake_install macros?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For mingw the more recent "%cmake_build" and "%cmake_install" have never been implemented (one could add them [1]).

For mingw, the most common approach is

%build
%mingw_cmake
%mingw_make_build

%install
%mingw_make_install
# Don't forget this one
%mingw_debug_install_post

See also [1] for an example.

Hope this helps

Sandro

[1] https://src.fedoraproject.org/rpms/proj/blob/rawhide/f/proj.spec

[1] https://src.fedoraproject.org/rpms/mingw-filesystem/blob/rawhide/f/macros.mingw64

On 29.01.24 10:13 AM, Eric Smith wrote:
I'm trying to add mingw build support to the fmt package spec. I've done this previously with the pugixml and zipios packages, and submitted the spec diffs to the package maintainer of those.. Both packages use cmake. Both in the %build section use %cmake then %cmake_build, and in the %install section use %cmake_install. As expert neither on cmake nor on mingw, I'm somewhat baffled as to why there are %cmake_build and %cmake_install macros, but no corresponding %mingw_cmake_build and %mingw_cmake_install macros. Is there some equivalent that just happens to not be obvious to me? What I found worked for both pugixml and zipios was:

original: %cmake; %cmake_build
original install: %cmake_install
added for mingw build:  %mingw_cmake (and did not add anything equivalent to %cmake_build)
added for mingw install: %mingw_make_install; %{?mingw_debug_install_post)

Unfortunately this simple attempt failed for fmt. The %mingw_cmake doesn't cause an error, but also doesn't build fmt. The attempted %mingw_make_install results in: "make: *** No rule to make target 'install'.  Stop." Perhaps this has to do with the fmt build also using Ninja, which pugixml and zipios do not.

If anyone can offer advice, it would be much appreciated. I started from the specs from the packages:

pugixml-1.13-4
zipios-2.2.5.0-7
fmt-10.0.0-3

My modified spec files are at:
http://www.brouhaha.com/~eric/fedora-packaging-test/

Best regards,
Eric
@brouhaha

--
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
--
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux