rpm unwanted autodep

Jeffrey Johnson n3npq at me.com
Mon Aug 31 00:36:18 CEST 2015


> 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).

> # fool rpm dependency generator
> $ yes '###########################################################' | head -n4000 > junk

IIRC, file’s keyword categorizing as python uses a 64K buffer … 

> $ mv lib/fpm/package/pyfpm/get_metadata.py .
> $ cat junk get_metadata.py > lib/fpm/package/pyfpm/get_metadata.py
> $ file lib/fpm/package/pyfpm/get_metadata.py
> lib/fpm/package/pyfpm/get_metadata.py: Python script, ASCII text executable
> 

You can filter the dependency easily enough as well.

73 de Jeff
> -- 
> glen
> 
> _______________________________________________
> pld-devel-en mailing list
> pld-devel-en at lists.pld-linux.org
> http://lists.pld-linux.org/mailman/listinfo/pld-devel-en



More information about the pld-devel-en mailing list