https://bugzilla.redhat.com/show_bug.cgi?id=1058812 Jan Pazdziora <jpazdziora@xxxxxxxxxx> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jpazdziora@xxxxxxxxxx --- Comment #3 from Jan Pazdziora <jpazdziora@xxxxxxxxxx> --- (In reply to Jakub Hrozek from comment #2) > > * You shouldn't Require httpd itself, but rather httpd-mmn. "mmn" stands for > "module magic number" and will ensure that you only Require the version of > httpd that has compatible module API. httpd-mmn is provided by httpd, it's > just versioned, so the dependency tree stays the same. You can use the > following one-liner: > %{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat > %{_includedir}/httpd/.mmn || echo 0-0)}} > And then: > Requires: httpd-mmn = %{_httpd_mmn} Per https://fedoraproject.org/wiki/PackagingDrafts/ApacheHTTPModules I've attempted to define the macro as %{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo missing-httpd-devel)}} My problem however is that I don't seem to be able to get httpd-devel installed on Fedora 21 in koji: http://kojipkgs.fedoraproject.org//work/tasks/930/6470930/root.log The net effect is that in build.log, there is then cat: /usr/include/httpd/.mmn: No such file or directory error: line 20: Double separator '-' in: missing-httpd-devel: Requires: httpd-mmn = missing-httpd-devel Building target platforms: x86_64 I could go with 0-0 as you propose but I wonder why the behaviour is different on Fedora 21. Also, having the missing-httpd-devel acts as nice safeguard against broken setup ... but I am not sure how to fix the setup. Note that on Fedora 20 it works fine: http://kojipkgs.fedoraproject.org//work/tasks/926/6470926/root.log -- You are receiving this mail because: You are on the CC list for the bug. You are always notified about changes to this product and component _______________________________________________ package-review mailing list package-review@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/package-review