(SOLVED) How to enable tainted build with rpmbuild

This forum is dedicated to packaging and translating :

On those activities rely the making of Mageia Linux Distribution.

Post all questions and information about packaging and translating : feedbacks, discussion about guidelines, packaging practices...

(SOLVED) How to enable tainted build with rpmbuild

Postby pete910 » Mar 12th, '17, 13:16

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:
Last edited by pete910 on Mar 12th, '17, 23:04, edited 3 times in total.
User avatar
pete910
 
Posts: 357
Joined: Jan 8th, '12, 18:53

Re: rpmbuild Q

Postby doktor5000 » Mar 12th, '17, 19:30

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 ?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17630
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: rpmbuild Q

Postby pete910 » Mar 12th, '17, 23:03

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
User avatar
pete910
 
Posts: 357
Joined: Jan 8th, '12, 18:53


Return to Packaging and translating for Mageia

Who is online

Users browsing this forum: No registered users and 1 guest