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]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux