Skip to main content
added 6 characters in body
Source Link
Marcus Müller
  • 52.7k
  • 4
  • 80
  • 123

You might simply build this yourself. If it worked before, chances are the build for Fedora works:. You will need a Fedora 34+ host to cross-build this.

# Don't build as root. Only need root privileges to install `fedpkg`, # which is part of EPEL. sudo yumdnf install epel-release git sudo yum instally fedpkg # Now get the package description git clone https://src.fedoraproject.org/rpms/java-17-openjdk   # Use fedpkg to kick off a mock build cd java-17-openjdk fedpkg mockbuild -r-root centos-7-x86_64 

This will take a while¹; and in the end, you should be getting a line that tells you where the RPMs you've just built were put.


¹ mock sets up a chroot, in which it installs a CentOS 7 base system, then EPEL, which you'll almost certainly will need, I think, then the tools necessary to build any RPM, then the build-time dependencies of the java-17-openjdk package. Then it will download all the necessary source code, hand off to rpm-build to do the build, which includes applying all patches, then compiling OpenJDK, then, running the OpenJDK installation, collecting the installed files, compressing them into valid RPMs.

You might simply build this yourself. If it worked before, chances are the build for Fedora works:

# Don't build as root. Only need root privileges to install `fedpkg`, # which is part of EPEL. sudo yum install epel-release git sudo yum install fedpkg # Now get the package description git clone https://src.fedoraproject.org/rpms/java-17-openjdk   # Use fedpkg to kick off a mock build cd java-17-openjdk fedpkg mockbuild -r centos-7-x86_64 

This will take a while¹; and in the end, you should be getting a line that tells you where the RPMs you've just built were put.


¹ mock sets up a chroot, in which it installs a CentOS 7 base system, then EPEL, which you'll almost certainly will need, I think, then the tools necessary to build any RPM, then the build-time dependencies of the java-17-openjdk package. Then it will download all the necessary source code, hand off to rpm-build to do the build, which includes applying all patches, then compiling OpenJDK, then, running the OpenJDK installation, collecting the installed files, compressing them into valid RPMs.

You might simply build this yourself. If it worked before, chances are the build for Fedora works. You will need a Fedora 34+ host to cross-build this.

# Don't build as root. Only need root privileges to install `fedpkg`, sudo dnf install -y fedpkg # Now get the package description git clone https://src.fedoraproject.org/rpms/java-17-openjdk # Use fedpkg to kick off a mock build cd java-17-openjdk fedpkg mockbuild --root centos-7-x86_64 

This will take a while¹; and in the end, you should be getting a line that tells you where the RPMs you've just built were put.


¹ mock sets up a chroot, in which it installs a CentOS 7 base system, then EPEL, which you'll almost certainly will need, I think, then the tools necessary to build any RPM, then the build-time dependencies of the java-17-openjdk package. Then it will download all the necessary source code, hand off to rpm-build to do the build, which includes applying all patches, then compiling OpenJDK, then, running the OpenJDK installation, collecting the installed files, compressing them into valid RPMs.

Source Link
Marcus Müller
  • 52.7k
  • 4
  • 80
  • 123

You might simply build this yourself. If it worked before, chances are the build for Fedora works:

# Don't build as root. Only need root privileges to install `fedpkg`, # which is part of EPEL. sudo yum install epel-release git sudo yum install fedpkg # Now get the package description git clone https://src.fedoraproject.org/rpms/java-17-openjdk # Use fedpkg to kick off a mock build cd java-17-openjdk fedpkg mockbuild -r centos-7-x86_64 

This will take a while¹; and in the end, you should be getting a line that tells you where the RPMs you've just built were put.


¹ mock sets up a chroot, in which it installs a CentOS 7 base system, then EPEL, which you'll almost certainly will need, I think, then the tools necessary to build any RPM, then the build-time dependencies of the java-17-openjdk package. Then it will download all the necessary source code, hand off to rpm-build to do the build, which includes applying all patches, then compiling OpenJDK, then, running the OpenJDK installation, collecting the installed files, compressing them into valid RPMs.