Page 1 of 1

(SOLVED) How to enable tainted build with rpmbuild

PostPosted: Mar 12th, '17, 13:16
by pete910
Stupid question, When rebuilding a tainted package like ffmpeg how do you enable the built package to have the tainted part of the file name?

Is there another command to be passed when built ?

Rebuilt ffmpeg to enable nvenc, Builds fine with
Code: Select all
rpmbuild -ba --with plf SPECS/ffmpeg.spec


Unable to suss how for the generated package to have tainted in the name.

:oops:

Re: rpmbuild Q

PostPosted: Mar 12th, '17, 19:30
by doktor5000
You can either do it via bm or rpmbuild by defining the respective macro distro_section each time you require it, or you define that macro as default in ~/.rpmmacros for your user
See also the first example at https://wiki.mageia.org/en/Mgarepo#I_wa ... positories
Does that work for you ?

Re: rpmbuild Q

PostPosted: Mar 12th, '17, 23:03
by pete910
doktor5000 wrote:You can either do it via bm or rpmbuild by defining the respective macro distro_section each time you require it, or you define that macro as default in ~/.rpmmacros for your user
See also the first example at https://wiki.mageia.org/en/Mgarepo#I_wa ... positories
Does that work for you ?


Had my command wrong, was trying to pass the bm define option then use rpmbuild instead of letting bm do it all :oops:

Code: Select all
bm --define 'distro_section tainted' SPECS/ffmpeg.spec


Did it :D

Cheers Dok