Mailinglist Archive: opensuse-packaging (284 mails)

< Previous Next >
Re: [opensuse-packaging] FLU packaging compiles but no result
  • From: Nelson Marques <nmo.marques@xxxxxxxxx>
  • Date: Fri, 11 Feb 2011 21:19:36 +0000
  • Message-id: <AANLkTik64WAKOaV1cPNB=LJ47mjztvQ3+mkjmYwA1GSk@mail.gmail.com>
created request id 60623

Added Patch with the intention of using DESTDIR and added devel, libs packages.
This doesn't fix the build errors, which seem to be related to GCC versioning ;)

%if 0%{?suse_version} >= 11xx
PatchY: foobar.patch
%endif

and on %prep

%if 0%{?suse_version} >= 11xx
%patchY ...
%endif

once you have the patch for the gcc version present on newer releases.

Hope it helps,

NM



On Fri, Feb 11, 2011 at 6:54 PM, Sascha Manns <saigkill@xxxxxxxxxxxx> wrote:
Michal Marek <mmarek@xxxxxxx> wrote at Friday 11 February 2011:

On 11.2.2011 16:51, Sascha Manns wrote:
Hi Michal,

Michal Marek <mmarek@xxxxxxx> wrote at Friday 11 February 2011:
On 10.2.2011 22:41, Sascha Manns wrote:
Now i have just this Problem:
+ make DESTDIR=/usr/src/packages/BUILDROOT/fltk-flu-2.14-6.1.i386
 install
=== installing FLU ===
Installing binaries in /usr/bin...
cp: cannot create regular file `/usr/bin/flu-config': Permission
de nied

But that i don't understand. I've set %{buildroot} and flu-config
is a binary and should placed in %{_bindir}.

You need to patch the Makefile to understand DESTDIR.

Thanks for spending time :-)
The Problem i see is, that the Makefile is created by the configure
Script. But the Configure Script is self written by the Author, no
"normal" configure.

Have you an idea, what i must change to make it runable?

In general, the commands in the Makefile need to be changed from

    install somebinary /usr/bin/somebinary

to

    install somebinary $(DESTDIR)/usr/bin/somebinary

Often the Makefile is generated by configure from Makefile.in, in
that case you need to make the changes there. Otherwise, try to find
out what generates such commands and add the $(DESTDIR) there.
A part of the Problem is solved.
If i use configure --prefix=%{_prefix} i got the Permission denied
Issue.
If i use configure --prefix=%{buildroot}%{_prefix} i got:
file-contains-buildroot (Badness: 10000) /usr/bin/flu-config

I've pasted the configure there: http://susepaste.org/27212307

Any ideas?
--
Sincerely Yours

Sascha Manns
open-slx Community & Support Agent
openSUSE Membership Comitee
openSUSE Marketing Team

Blog: http://saigkill.wordpress.com
German Community Portal: http://community.open-slx.de
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx





--
nelson marques
nmo.marques@xxxxxxxxx
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >