Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora Development (http://www.linux-archive.org/fedora-development/)
-   -   %configure assuming in-source-tree builds (http://www.linux-archive.org/fedora-development/111453-configure-assuming-source-tree-builds.html)

Michael Schwendt 06-22-2008 05:42 PM

%configure assuming in-source-tree builds
 
On Sun, 22 Jun 2008 13:13:06 -0400, Michel Salim wrote:

> Hi all,
>
> Some upstream developers recommend that their software (thinking of LLVM
> and PLT Scheme, but there must be others) *not* be configured and built
> at the top-level source directory (typically recommending using build/,
> object/ or some such).
>
> When this is needed, currently the Fedora packager has to revert to
> calling the configure script directly, foregoing the %configure macro,
> and copying as much of the configure settings by hand. Would it be a
> desirable feature to, say, be able to declare
>
> %define configure_relative_path ..
>
> and then have %configure use the value of that instead of './' when
> calling the actual configure script?

Try this in your spec (substitute SOMEPATH appropriately):

%global configure %(rpm --eval %%configure|sed -e 's!./configure!SOMEPATH/configure!')

--
Fedora release 8 (Werewolf) - Linux 2.6.23.15-137.fc8
loadavg: 1.22 1.27 1.17

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list

Mamoru Tasaka 06-22-2008 06:26 PM

%configure assuming in-source-tree builds
 
Michel Salim wrote, at 06/23/2008 02:13 AM +9:00:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

Some upstream developers recommend that their software (thinking of LLVM
and PLT Scheme, but there must be others) *not* be configured and built
at the top-level source directory (typically recommending using build/,
object/ or some such).

When this is needed, currently the Fedora packager has to revert to
calling the configure script directly, foregoing the %configure macro,
and copying as much of the configure settings by hand. Would it be a
desirable feature to, say, be able to declare

%define configure_relative_path ..

and then have %configure use the value of that instead of './' when
calling the actual configure script?

Thanks,


xscreensaver uses:

%build
archdir=`./config.guess`
mkdir $archdir
cd $archdir
.....
ln -s ../configure .
%configure $CONFIG_OPTS
rm -f configure

make %{?_smp_mflags}

Regards,
Mamoru

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list

Michel Salim 06-22-2008 09:43 PM

%configure assuming in-source-tree builds
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michel Salim wrote:
> Hi all,
>
> Some upstream developers recommend that their software (thinking of LLVM
> and PLT Scheme, but there must be others) *not* be configured and built
> at the top-level source directory (typically recommending using build/,
> object/ or some such).
>
> When this is needed, currently the Fedora packager has to revert to
> calling the configure script directly, foregoing the %configure macro,
> and copying as much of the configure settings by hand. Would it be a
> desirable feature to, say, be able to declare
>
Thanks to Michael and Mamoru -- should these be listed in our packaging
guidelines?

- --
Michel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkhex5UACgkQWt0J3fd+7ZAQAgCeMIJcla7PVO N/3jx4i25ILcOM
ebMAoJB+rstX/gFaiNe5+EKEfTOzLfdY
=l/bp
-----END PGP SIGNATURE-----

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list

Patrice Dumas 06-22-2008 11:11 PM

%configure assuming in-source-tree builds
 
On Sun, Jun 22, 2008 at 05:43:49PM -0400, Michel Salim wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Thanks to Michael and Mamoru -- should these be listed in our packaging
> guidelines?

I don't think so, but you can go ahead and add it to
https://fedoraproject.org/wiki/PackagingTricks


--
Pat

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list

Peter Jones 06-23-2008 02:39 PM

%configure assuming in-source-tree builds
 
Michel Salim wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michel Salim wrote:

Hi all,

Some upstream developers recommend that their software (thinking of LLVM
and PLT Scheme, but there must be others) *not* be configured and built
at the top-level source directory (typically recommending using build/,
object/ or some such).

When this is needed, currently the Fedora packager has to revert to
calling the configure script directly, foregoing the %configure macro,
and copying as much of the configure settings by hand. Would it be a
desirable feature to, say, be able to declare


Thanks to Michael and Mamoru -- should these be listed in our packaging
guidelines?


I'd really rather see something like your initial suggestion.

--
Peter

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list

Stepan Kasal 08-11-2008 10:18 AM

%configure assuming in-source-tree builds
 
Hello,

On Mon, Jun 23, 2008 at 10:39:49AM -0400, Peter Jones wrote:
>> Michel Salim wrote:
>>> Hi all,
>>>
>>> Some upstream developers recommend that their software (thinking of LLVM
>>> and PLT Scheme, but there must be others) *not* be configured and built
>>> at the top-level source directory (typically recommending using build/,
>>> object/ or some such).
>>>
>>> When this is needed, currently the Fedora packager has to revert to
>>> calling the configure script directly, foregoing the %configure macro,
>>> and copying as much of the configure settings by hand. Would it be a
>>> desirable feature to, say, be able to declare
>>>
>>> %define configure_relative_path

> I'd really rather see something like [this] suggestion.

Agreed. Filed as http://bugzilla.redhat.com/458644

[This is suitable to be submitted upstream, but rpm.org does not have
a bug tracker, it features only lists, and I did not care to
subscribe before cc'ing this mail, so I guess my chanced to get
heared there are low. They read fedora bugzilla, though. ;-) ]

Stepan Kasal

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list

"Vasile Gaburici" 08-11-2008 10:22 AM

%configure assuming in-source-tree builds
 
Poppler's spec does this:

%build
pushd %{name}-%{version}
# despair
sed -i s/qt3/qt-3.3/g configure
%configure
--disable-static
--enable-cairo-output
--enable-poppler-qt
--enable-poppler-qt4
--enable-xpdf-headers
make %{?_smp_mflags}
popd

Is this not good enough for some reason?

On Mon, Aug 11, 2008 at 1:18 PM, Stepan Kasal <skasal@redhat.com> wrote:
> Hello,
>
> On Mon, Jun 23, 2008 at 10:39:49AM -0400, Peter Jones wrote:
>>> Michel Salim wrote:
>>>> Hi all,
>>>>
>>>> Some upstream developers recommend that their software (thinking of LLVM
>>>> and PLT Scheme, but there must be others) *not* be configured and built
>>>> at the top-level source directory (typically recommending using build/,
>>>> object/ or some such).
>>>>
>>>> When this is needed, currently the Fedora packager has to revert to
>>>> calling the configure script directly, foregoing the %configure macro,
>>>> and copying as much of the configure settings by hand. Would it be a
>>>> desirable feature to, say, be able to declare
>>>>
>>>> %define configure_relative_path
>
>> I'd really rather see something like [this] suggestion.
>
> Agreed. Filed as http://bugzilla.redhat.com/458644
>
> [This is suitable to be submitted upstream, but rpm.org does not have
> a bug tracker, it features only lists, and I did not care to
> subscribe before cc'ing this mail, so I guess my chanced to get
> heared there are low. They read fedora bugzilla, though. ;-) ]
>
> Stepan Kasal
>
> --
> fedora-devel-list mailing list
> fedora-devel-list@redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-devel-list
>
>

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list


All times are GMT. The time now is 12:51 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.