Find the commit to build from ----------------------------- Check the latest F42 build: $> koji list-builds --package=java-latest-openjdk --state=COMPLETE | grep "23\..*fc42" | sort -V | tail -1 | awk '{print $1}' java-latest-openjdk-23.0.2.0.7-6.rolling.fc42 Find the source: $> koji buildinfo java-latest-openjdk-23.0.2.0.7-6.rolling.fc42 | grep '^Source:' | awk '{print $2}' git+https://src.fedoraproject.org/rpms/java-latest-openjdk.git#4f9e2ac494d85342e4a56f92cf2c3320647ea27a Let's check how many commits 4f9e2ac494d85342e4a56f92cf2c3320647ea27a behind HEAD. (We don't need to apply them all) $> git log 4f9e2ac494d85342e4a56f92cf2c3320647ea27a..HEAD --oneline 64a3cf8 (HEAD -> main-riscv64, origin/main-riscv64, kashyapc-r/main-riscv64) Remove riscv64 from simdsort_arches 1dfe7bc Fix src_image path on riscv64 8348683 Add riscv64 4b66ec1 Merge remote-tracking branch 'up/main' into main-riscv64 0f023d6 Switch buildjdkver to being featurever (19) 541022e Add riscv64 to sa_arches 1e5d0a2 Bootstrap OpenJDK 19 Checkout a branch based on the commit from which java-latest-openjdk-23.0.2.0.7-6.rolling.fc42 was built: $> git checkout -b draft-f43-23-riscv64 4f9e2ac494d85342e4a56f92cf2c3320647ea27a Figure out the 'diff' with portable ----------------------------------- And that's the 'diff' between upstream 'f43' and rocks 'f43-23-riscv64' for "java-latest-openjdk-portable": $> git log --oneline fedora/f43..origin/f43-23-riscv64 c3920a8 (HEAD -> f43-23-riscv64, origin/f43-23-riscv64) Try to use -fpermissive to avoid compile errors 0bcafdb Set a proper buildjdkver 22 -> 23 d98d586 Bootstrap OpenJDK 23 for riscv64 Tips to save time (thanks, David) --------------------------------- - Exclude "JavaCallWrapper" GDB symbol check on riscv64: (See: http://fedora.riscv.rocks:3000/rpms/java-21-openjdk/commit/3c536363fa764b585dd7fc2d50e57df244b8ac27) - Disable debug package: global debug_package %{nil} (See: http://fedora.riscv.rocks:3000/rpms/java-21-openjdk/commit/2df5cccdb4761fd6ba8f65a601a8c2d6912a84d7) - You probably need to fix "src_image': (See: http://fedora.riscv.rocks:3000/rpms/java-21-openjdk/commit/2df5cccdb4761fd6ba8f65a601a8c2d6912a84d7) (See also: "Fix src_image path on riscv64" -- http://fedora.riscv.rocks:3000/rpms/java-latest-openjdk/commit/1dfe7bc90b1) * * * Final list: ----------------------------------------------------------------------- • [X] "Use '-fpermissive' flag to compile errors" • [X] "Bootstrap OpenJDK 23 for riscv64" • [X] "Exclude "JavaCallWrapper" GDB symbol check on riscv64" • [X] "Fix src_image path on riscv64" • [X] "Disable debug config" • [Not required] "Remove riscv64 from simdsort_arches" - it's already in via b706724c8e, "libsimdsort.so built only on simdsort_arches x86_64"] ----------------------------------------------------------------------- Result: http://fedora.riscv.rocks:3000/rpms/java-latest-openjdk/src/branch/f43-23-riscv64/ Build ----- NB: They must be built in F42 then tagged into F43. $> riscv-koji build --wait-repo --nowait f42 "git+http://fedora.riscv.rocks:3000/rpms/java-latest-openjdk.git#bfea406290524d785abe12a89349403d54b523d8" $> riscv-koji set-task-priority --priority 18 110970