DevHeads.net

Packaging Question - Building the Binaries of my package

Comments

Re: Packaging Question - Building the Binaries of my package

By Matthew Miller at 03/08/2019 - 16:07

On Thu, Mar 07, 2019 at 06:49:12PM +0000, Michael Zhang wrote:
It should be in the %build section, not %install, but that's a detail.

Can you elaborate on why you can build it in Travis CI but not in the RPM
build itself? That might help us help you better.

We have a proposal and some interesting work focused on going from source to
RPM in a more automated way — see <a href="https://github.com/packit-service/packit" title="https://github.com/packit-service/packit">https://github.com/packit-service/packit</a>.
This doesn't solve your problem today, but perhaps could make things easier
and better for you in the future.

Re: Packaging Question - Building the Binaries of my package

By Rex Dieter at 03/07/2019 - 19:11

See
<a href="https://docs.fedoraproject.org/en-US/packaging-guidelines/what-can-be-packaged/#prebuilt-binaries-or-libraries" title="https://docs.fedoraproject.org/en-US/packaging-guidelines/what-can-be-packaged/#prebuilt-binaries-or-libraries">https://docs.fedoraproject.org/en-US/packaging-guidelines/what-can-be-pa...</a>

-- Rex

Re: Packaging Question - Building the Binaries of my package

By Randy Barlow at 03/07/2019 - 17:26

On Thu, 2019-03-07 at 18:49 +0000, Michael Zhang wrote:
The building should happein the %build phase. The %install phase is
where the resulting artifacts are copied into the buildroot.

Re: Packaging Question - Building the Binaries of my package

By Matthew Miller at 03/07/2019 - 17:07

On Thu, Mar 07, 2019 at 06:49:12PM +0000, Michael Zhang wrote:
As I understand it, in Debian, developers can build packages on their own
systems and upload them. In Fedora, it doesn't work like that -- we have
dist-git (<a href="https://src.fedoraproject.org/" title="https://src.fedoraproject.org/">https://src.fedoraproject.org/</a>) which holds spec files and patches
and references to source code in the look-aside cache. Those source files
should be "pure" -- they shouldn't have pre-built binaries.

So, no. :) Travis CI is completely outside of our control, and we don't have
a way to verify that the thing built there came from the provided source.
And, someone without access to Travis CI wouldn't be able to replicate your
build.

Re: Packaging Question - Building the Binaries of my package

By Felix Schwarz at 03/07/2019 - 16:41

Am 07.03.19 um 19:49 schrieb Michael Zhang:
To the best of my knowledge all building from source has to happen on Fedora
infrastructure.
(There are - rare - exceptions for bootstrapping compilers but that it likely
not the case for OpenLiberty.).

Felix