[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: autoconf and epel-5
- From: Stephen John Smoogen <smooge gmail com>
- To: EPEL development disccusion <epel-devel-list redhat com>
- Subject: Re: autoconf and epel-5
- Date: Tue, 24 Feb 2009 13:28:39 -0700
On Tue, Feb 24, 2009 at 1:01 PM, Simon Wesp
<cassmodiah fedoraproject org> wrote:
> Hi all,
>
> i have a little issue with autoconf and epel-5
>
> the statement of the problem:
>
> in configure.ac stands:
> CXXFLAGS="-Wall -O2"
>
> to honor the rpmoptflags i removed this line and create a patch of my
> changes.
>
> now i have to run autoconf to implement my changes. no problem in
> fedora. in epel-5 it will abort:
> http://buildsys.fedoraproject.org/logs/fedora-5-epel/1476-hosts3d-0.97-3.el5/i386/build.log
>
>
>
> my idea to handle this problem is:
>
> 1) run autoconf in fedora and create a diff of the changes (as patch1)
>
> 2) handle it in the specfile:
>
> %if 0%{?fedora}
> BuildRequires: autoconf
> %endif
>
> %prep
> %setup -q -n %{name}-%{srcversion}
>
> # Patch to remove CXXFLAGS from configure.ac
> %patch0 -p1
>
> %if 0%{?rhel}
> # Patch for autoconf 2.60
> %patch1 -p1
> %endif
>
>
> %build
> %if 0%{?fedora}
> autoconf
> %endif
>
>
> is this the right way to solve this problem? i didn't found a helpful
> text passage in the packaging-guidelines
>
That looks close to what the OpenSSH package used to do for dealing
with various autoconf versions. However, not sure what is best
practice either.
--
Stephen J Smoogen. -- BSD/GNU/Linux
How far that little candle throws his beams! So shines a good deed
in a naughty world. = Shakespeare. "The Merchant of Venice"
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]