Mailinglist Archive: opensuse-buildservice (233 mails)

< Previous Next >
[opensuse-buildservice] %make_install in prjconfig
I want to build tmux for many older versions of suse.

The current .spec from factory uses %{make_install}
OS versions before 11.2 do not have that macro.

I got it working by making this change to the .spec from the current version 1.8 in factory:

- %{?make_install}

+ %{?make_install} %{!?make_install:%%{__make} install DESTDIR=%{buildroot}}


I have had other packages with the same problem, and I would like my branched copies of packages to stay clean of differences as possible so they keep tracking the devel packages instead of going stale or breaking when the devel package changes. And a lot of package maintainers are not interested in accepting SR's that add support for old targets like that, they would rather have the .spec file be small and pretty than functional.

So now I want to move the fix from all the individual .spec files to my prjconfig, so the spec files can stay as upstream has them.

I put this in my prjconfig

%{!?make_install: %define make_install %{__make} install DESTDIR=%{buildroot}}

And restored the .spec file to just assuming %{make_install} will always exist.

It didn't work. OS 11.2 and up built fine as normal, 11.1 and below failed as normal.

What did I do wrong? Can I actually centralize this this way?
Is there a problem with trying to resolve %buildroot maybe?
Can I escape the % in buildroot to cause it to be expanded later or something?

Thanks

--
bkw
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups