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: pgpHL354efHVA.pgp
Description: PGP signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux