Mailinglist Archive: opensuse-buildservice (348 mails)
| < Previous | Next > |
[opensuse-buildservice] Re: %prefix variable not being substituted
- From: Matt Williams <matt@xxxxxxxxxxxx>
- Date: Fri, 2 Apr 2010 01:28:15 +0100
- Message-id: <u2ydc9412191004011728h41781da0kcab4b08e2b53dc43@xxxxxxxxxxxxxx>
On Fri, Apr 2, 2010 at 12:46 AM, Matt Williams <matt@xxxxxxxxxxxx> wrote:
Darix helped me out on IRC and pointed out that %prefix should not be
used but rather %_prefix. It does indeed fix the problem but it's
strange that using %prefix has worked for me in the past and I still
use it extensively in %files sections. I guess I'll be converting all
those to use %_prefix instead now.
Sorry for the noise all,
Matt Williams
http://milliams.com
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx
I'm trying to update OGRE in the games project
(https://build.opensuse.org/package/show?package=ogre&project=games)
to the latest version but in the process of updating the .spec file
for some reason the %prefix variable isn't being substituted.
I call (in %prep but maybe it should be in %build) CMake with something like:
cmake .. -DCMAKE_INSTALL_PREFIX=%prefix
which I would expect to get turned in to:
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
but it doesn't as can be seen at
https://build.opensuse.org/package/rawlog?arch=x86_64&package=ogre&project=games&repository=openSUSE_11.2
(search for "CMAKE_INSTALL_PREFIX").
Now, I assume this is caused by something I'm doing wrong but I can;t
work out what it is. Can anyone be of any help?
Darix helped me out on IRC and pointed out that %prefix should not be
used but rather %_prefix. It does indeed fix the problem but it's
strange that using %prefix has worked for me in the past and I still
use it extensively in %files sections. I guess I'll be converting all
those to use %_prefix instead now.
Sorry for the noise all,
Matt Williams
http://milliams.com
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx
| < Previous | Next > |