You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Tim Moloney <mo...@mrsl.com> on 2002/11/04 16:40:03 UTC
Re: Changing mmn in Apache
Joe Orton wrote:
> If you're building 2.0.43, you should change the "%define mmn xxxx" at
> the top of httpd.spec to use the new MMN number, so that this
> incompatiblity is reflected in the package dependencies. Any Apache 2.0
> module packages designed to work with the Red Hat Linux 8.0 httpd
> package should have a line like:
>
> Requires: httpd-mmn = %(cat %{_includedir}/httpd/.mmn)
>
> so that they pick up a dependency on the module ABI version.
Yes, you're right. Doing this would catch the incompatibility
at installation time rather than at runtime. Since Greg Stein
has convinced me that my short-cut is a bad idea, I will
definitely do this and rebuild the RPMs for the modules I need.
Thanks for the reminder.
--
Tim Moloney
ManTech Real-time Systems Laboratory
2015 Cattlemen Road \ /
Sarasota, FL 34232 .________\(O)/________.
(941) 377-6775 x208 ' ' O(.)O ' '
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Changing mmn in Apache
Posted by Joe Orton <jo...@manyfish.co.uk>.
On Mon, Nov 04, 2002 at 11:40:03AM -0500, Tim Moloney wrote:
> Joe Orton wrote:
>
> >If you're building 2.0.43, you should change the "%define mmn xxxx" at
> >the top of httpd.spec to use the new MMN number, so that this
> >incompatiblity is reflected in the package dependencies. Any Apache 2.0
> >module packages designed to work with the Red Hat Linux 8.0 httpd
> >package should have a line like:
> >
> >Requires: httpd-mmn = %(cat %{_includedir}/httpd/.mmn)
> >
> >so that they pick up a dependency on the module ABI version.
>
> Yes, you're right. Doing this would catch the incompatibility
> at installation time rather than at runtime. Since Greg Stein
> has convinced me that my short-cut is a bad idea, I will
> definitely do this and rebuild the RPMs for the modules I need.
> Thanks for the reminder.
Great. I've added a check to our %pre which checks that %mmn matches the
value from the actual sources, to avoid this kind of thing in the
future:
# Safety check: prevent build if defined MMN does not equal upstream
vmmn=`echo MODULE_MAGIC_NUMBER_MAJOR | cpp -include \`pwd\`/include/ap_mmn.h | grep -v '#'`
if test "x${vmmn}" != "x%{mmn}"; then
: Error: Upstream MMN is now ${vmmn}, packaged MMN is %{mmn}.
: Update the mmn macro and rebuild.
exit 1
fi
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org