rpm unwanted autodep

Elan Ruusamäe glen at pld-linux.org
Tue Sep 1 20:42:29 CEST 2015


On 31.08.2015 01:40, Jeffrey Johnson wrote:
>> On Aug 30, 2015, at 6:36 PM, Jeffrey Johnson <n3npq at me.com> wrote:
>>
>>
>>> On Aug 26, 2015, at 5:03 AM, Elan Ruusamäe <glen at pld-linux.org> wrote:
>>>
>>> On 26.08.2015 11:55, Elan Ruusamäe wrote:
>>>> hi
>>>>
>>>> how to avoid rpm to generate python(abi) dependency on this file
>>> i tried to input bunch of junk in front of the file, but file-5.24 is SOOOO persistent, it still considers it as python:
>>>
>> Try
>> 	chmod -x lib/fpm/package/pyfpm/get_metadata.py
>> to disable automated dependencies
>>
>> If you really need +x when installed, then add a %attr in %files (rather then adding chmod +x in %post).
>>
> Yes you trued this. There are certain cases where the *.py suffix is used instead of
> the execute bit for dispatching.
>
> I personally consider using paths or suffix’s (instead of content) a bug, but I have been
> out-shouted by others over the years.
>
> hah

so used _noautoreqfiles macro

https://github.com/pld-linux/fpm/commit/2a24ca30d7e85b0e4d9a8680f634819e097999f7

aside, content check here is worse than extension check.
i needed to input 5mb junk beginning of file to prevent file(1) 
detecting content as python!


-- 
glen



More information about the pld-devel-en mailing list