[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Setting build tags in dh-golang



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 <siretart@gmail.com> 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 <stapelberg@debian.org> wrote:

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 <siretart@gmail.com> 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

Reply to: