Re: About mock and cross compiling 64 - 32 bit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fernando Apesteguía wrote:
> I solved the problem with the dependencies. But now I'm stuck with this error:
> 
> Binary file /var/tmp/lkmonitor-0.3-root/bin/lkmonitor matches
> /var/tmp/lkmonitor-0.3-root/share/gnome/apps/Applications/lkmonitor.desktop:Icon=/var/tmp/lkmonitor-0.3-root/share/pixmaps/lkmonitor/
> Found '/var/tmp/lkmonitor-0.3-root' in installed files; aborting
> error: Bad exit status from /var/tmp/rpm-tmp.27028 (%install)
> 
> I don't know what it means cause as before, the package compiles
> perfectly without mock in my native 64 bit environment. I was seeking
> in the web and I found "similar" problems discussed in
> fedoraproject.org, but not exactly this one.

Well, the problem is that a file in the package has the buildroot
location in it.  This needs to be fixed.  The file is the
lkmonitor.desktop, specifically the Icon= line.  The quick work-around
is to do soemthing like this in the %install section:

sed -i 's,%{buildroot},,' %{buildroot}/share/gnome/apps/Applications/lkmonitor.desktop

However, you really ought to look at what part of the install process
is creating the file with the %buildroot value included.  Also, it
seems like the .desktop file is being installed in the wrong location.
It should normally be installed in %{_datadir}/applications.

If you're using %makeinstall, you probably want to change that to:

    make DESTDIR=%{buildroot} install

See:

    http://fedoraproject.org/wiki/Packaging/Guidelines#head-fcaf3e6fcbd51194a5d0dbcfbdd2fcb7791dd002

for some of the reasoning.

> Probably this is not the proper place to ask but I don't know where to
> do it then.

I'm not sure if there's a general list for package building or not.
But it's not off-topic for this list.

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Careful. We don't want to learn from this.
    -- Calvin

Attachment: pgpUv08TasGyg.pgp
Description: PGP signature


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux