We already have too many environment variables. I’m a fan of having precisely 1 way of configuration for any given feature.
On Fri, Feb 15, 2019 at 11:06 PM Reinhard Tartler <[email protected]> wrote: > Awesome, thanks! > > One thing that I noticed is that I apparently can't add the tags to the > '%' rule, I do need to override 'dh_auto_build'. That's strange.. > > TBH, since much of the debhelper's behavior is currently controlled via > environment variables, I somehow had expected to set them that way as well. > This way, I wouldn't have to add overrides. > > Michael, have you considered this idea before? > > Best, > -rt > > On Fri, Feb 15, 2019 at 7:15 AM Michael Stapelberg <[email protected]> > wrote: > >> You can find a few examples using >> https://codesearch.debian.net/search?q=path%3Adebian%2Frules+tag+path%3Agolang, >> e.g. >> https://sources.debian.org/src/golang-golang-x-sys/0.0~git20181228.9a3f9b0-1/debian/rules/?hl=40#L40 >> >> In general, I would encourage you to nudge upstream to make the default >> behavior sensitive and only require build tags for unusual setups. >> >> Also, please feel free to send documentation improvement pull requests :) >> >> On Fri, Feb 15, 2019 at 1:12 PM Reinhard Tartler <[email protected]> >> wrote: >> >>> Hi, >>> >>> I may be missing something obvious, but I'm looking for a way to set >>> build tags in debian/rules. >>> >>> While working on the github.com/containers/image library, upstream has >>> advised me to avoid some dependencies by setting build tags. After reading >>> the Debian::Debhelper::Buildsystem::golang perldoc it is not clear to me >>> how to achieve this. (BTW, I would have expected lots of the information >>> found in that perldoc to in the manpage dh_golang(1p). >>> >>> Has this been done in other packages before where I could take >>> inspiration from? >>> >>> Thanks! >>> >>> -- >>> regards, >>> Reinhard >>> >> >> >> -- >> Best regards, >> Michael >> > > > -- > regards, > Reinhard > -- Best regards, Michael
