[Rpm-maint] [rpm-software-management/rpm] RFE: Disable subpackage check at SRPM build time (#674)

Robert-André Mauchin notifications at github.com
Fri Apr 19 15:39:34 UTC 2019


Following my issue #672:

In Golang packaging (Fedora), the -devel subpackages are computed by a Lua macro called `gopkg`. They are handled by the `go-rpm-macros` package. This package is a BR for all Go packages, so available when we build the RPM. However, since it is not in the default BuildRoot  (and won't ever be as it pull Golang as a dep), it is not available at SRPM build time.

As such, `gopkg` is not expanded as SRPM build time. This cause issue with package containing scriplets:

```
error: line 41: %pretrans devel -p <lua>
: package golang-github-hashicorp-cleanhttp-devel does not exist
```

The check in place notices that the -devel subpackage do not exist.

We would like you to disable this type of check when we're building a SRPM so we don't encounter such failures. The SRPM build part of rpmbuild should not worry about subpackages, only the RPM build part should.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/674
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190419/c458459e/attachment.html>


More information about the Rpm-maint mailing list