Re: How do Fedora developers get access to devtoolset for testing.

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

 



On 20/07/20 13:09 -0500, Steven Munroe wrote:
Then I would have to learn what a "EL7 mock chroot" is. And how it is

man mock

different from "rpmbuild <spec-file>"

That builds the package on your local system, using the packages
available on your local system. If that's Fedora, then you're not
going to be able to install devtoolset.

and "fedpkg  --release f33 scratch-build".

That submits a build to koji, to build it using the packages available
in the f33 buildroot. That's Fedora, so again, you're not going to be
able to make use of devtoolset (because it's not in the f33
buildroot).

The documentation is a bit sparse ...

I think you need to take a step back and figure out what you're doing.

Why are you asking fedpkg to build for f33 if you are trying to
package something for el7 and el8?

If you want to package something for el7 and/or el8, using the
packages present on el7 or el8, stop trying to build on Fedora.
They're not the same.

There are several ways to build for el7 or el8:

1) Install CentOS 7 (or 8) and then build locally. This can be on a
physical machine or VM.  But it's quite a heavyweight approach. There
are much simpler ways.

2) Build in a container using a CentOS 7 (or 8) image, using podman or
docker. That's less heavyweight than setting up a whole new machine,
but there are still easier ways.

3) Use mock to build locally in a chroot that contains the filesystem
and the packages from CentOS 7 (or 8). You can use the 'fedpkg
mockbuild' command to simplify that.

4) Use koji to build the package using the repos for CentOS 7 (or 8).
That's what 'fedpkg scratch-build' and 'fedpkg build' do, but you need
to tell koji which distro to use with --release epel7, not f33.

What you're trying to do now sems to be to create a frankenstein
system containing bits of fedora and bits of el7, then build on that
system.  That's a terrible idea. Even if you manage to bring the
monster to life, it will be a freak, and nobody else trying to build
your package will be using the same environment.

_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux