Mailinglist Archive: opensuse-packaging (130 mails)

< Previous Next >
Re: [opensuse-packaging] Re: Re: Re: binary is linked against libraries in /usr/ or /opt
  • From: Michael Foerster <foerster@xxxxxxxx>
  • Date: Sat, 20 Mar 2010 21:19:58 +0100 (CET)
  • Message-id: <alpine.LFD.2.00.1003202115350.12501@xxxxxxxxxxxxxxxxxxxxxx>
On Sat, 20 Mar 2010, David Haller wrote:

Hello,

On Sat, 20 Mar 2010, Michael Foerster wrote:
On Sat, 20 Mar 2010, David Haller wrote:
On Fri, 19 Mar 2010, Sascha 'saigkill' Manns wrote:
Does anyone know, how to fix this?

Just as I thought: you don't provide a "prefix", as the Makefile
misuses 'DESTDIR' as prefix.

i.e. use:

%build
make DESTDIR="%{_prefix}"

%install
make DESTDIR="%{buildroot}%{_prefix}" install

Thank you so much! this clears so many errors in my private repo at home
it's not even funny.

Could this error be published in the FAQ or under "Common Errors" in the
Wiki ?

Above applies _only_ in the case, when a single vriable (here DESTDIR,
often PREFIX) is used to install. I.e. when there's no DESTDIR or
whatever variable with that function.

Yes this I understood. It's the thought / mechanism behind, what was the key, before I've had to use cp/mv to get the things done.

This clears up my spec-files oh so nicely.

Cheers, Michael

--
"The word 'politics' is derived from the
word 'poly', meaning 'many', and the
word 'ticks', meaning 'blood sucking parasites'."

--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >