Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I generate and upload source packages to my PPA, what's the best way to pass DEB_BUILD_OPTIONS that Launchpad will use when building binary versions of the package?

In particular, I want to pass in the "nodocs" option so that the documentation isn't built.

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

The PPAs do not have a way to specify an environment variables (including DEB_BUILD_OPTIONS) unfortunately. Until they do, you will need to edit the debian/rules file and set it manually yourself near the top (but not the first line if it uses a "#!"):

DEB_BUILD_OPTIONS=nodocs

Optionally, just find the section of the rules file that looks for "nodocs" and change it to do what you need it to do.

share|improve this answer
add comment

Set it in your debian/rules file.

share|improve this answer
    
What to set would be benficial. Esp some links. –  Manish Sinha Feb 14 '11 at 5:07
1  
@Manish Sinha: the question was HOW to set it, not what to set it to. He already said he wants to set it to "nodocs". –  psusi Feb 14 '11 at 15:08
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.