Re: Need help with rpmbuild

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

 



Joe Zeff wrote, at 03/30/2011 03:45 PM +9:00:
> On 03/29/2011 11:25 PM, Panu Matilainen wrote:
>> One or more python scripts in your package contain this shebang:
>> #!/usr/local/bin/python
>>
>> Rpm is right to complain: If you tried to execute that file, it would
>> fail because no such python interpreter exists on a normal Fedora
>> installation. You need to locate + patch those files to refer to the
>> system python path instead.
>
> That's a fair amount of work.  It's a lot easier if you run this command
> as root:
>
> ln /usr/bin/python /usr/local/bin/python
>
> Because that makes link that the b0rken rpms can all use.

Well, usually this method doesn't work
- because (perhaps) "/usr/local/bin/python" is not installed by installing some rpm
   (but installed by compiling python package by sysadmin him/herself, for example),
   So, "/usr/local/bin/python" is not in rpm's database (rpm registers files' names or
   so only when they are installed from some rpm packages).

   Then if you install a rpm package which has the dependency for "/usr/local/bin/python",
   rpm will still complain that such file is missing because such file is not in rpm's
   database, even if /usr/local/bin/python actually exists.

Regards,
Mamoru
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux