Skip to content

Commit

Permalink
Merge pull request wolfi-dev#19186 from vaikas/remaining-jmods
Browse files Browse the repository at this point in the history
Add jmods provides for rest of jdks, fix configure flags.
  • Loading branch information
vaikas committed May 20, 2024
2 parents 654f1a8 + 16b99f8 commit 03150d3
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 5 deletions.
11 changes: 10 additions & 1 deletion openjdk-12.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: openjdk-12
version: 12.0.2.10
epoch: 2
epoch: 3
description:
copyright:
- license: GPL-2.0-only
Expand Down Expand Up @@ -60,9 +60,15 @@ pipeline:

- runs: chmod +x configure

# Note that despite using --with-extra-cflags, --with-extra-cxxflags, and
# --with-extra-ldflags, the configure still produces warnings like:
# https://github.com/wolfi-dev/os/issues/18747
- uses: autoconf/configure
with:
opts: |
--with-extra-cflags="$CFLAGS" \
--with-extra-cxxflags="$CXXFLAGS" \
--with-extra-ldflags="$LDFLAGS" \
--with-boot-jdk=/usr/lib/jvm/java-11-openjdk \
--prefix=/usr/lib/jvm/java-12-openjdk \
--with-vendor-name=wolfi \
Expand Down Expand Up @@ -179,6 +185,9 @@ subpackages:
- name: "openjdk-12-jmods"
description: "OpenJDK 12 jmods"
dependencies:
provides:
- openjdk-jmods=${{package.full-version}}
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}"/usr/lib/jvm/java-12-openjdk
Expand Down
11 changes: 10 additions & 1 deletion openjdk-13.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: openjdk-13
version: 13.0.14.5
epoch: 2
epoch: 3
description:
copyright:
- license: GPL-2.0-only
Expand Down Expand Up @@ -57,9 +57,15 @@ pipeline:

- runs: chmod +x configure

# Note that despite using --with-extra-cflags, --with-extra-cxxflags, and
# --with-extra-ldflags, the configure still produces warnings like:
# https://github.com/wolfi-dev/os/issues/18747
- uses: autoconf/configure
with:
opts: |
--with-extra-cflags="$CFLAGS" \
--with-extra-cxxflags="$CXXFLAGS" \
--with-extra-ldflags="$LDFLAGS" \
--with-boot-jdk=/usr/lib/jvm/java-12-openjdk \
--prefix=/usr/lib/jvm/java-13-openjdk \
--with-vendor-name=wolfi \
Expand Down Expand Up @@ -175,6 +181,9 @@ subpackages:
- name: "openjdk-13-jmods"
description: "OpenJDK 13 jmods"
dependencies:
provides:
- openjdk-jmods=${{package.full-version}}
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}"/usr/lib/jvm/java-13-openjdk
Expand Down
11 changes: 10 additions & 1 deletion openjdk-14.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: openjdk-14
version: 14.0.2.12
epoch: 4
epoch: 5
description:
copyright:
- license: GPL-2.0-only
Expand Down Expand Up @@ -57,9 +57,15 @@ pipeline:

- runs: chmod +x configure

# Note that despite using --with-extra-cflags, --with-extra-cxxflags, and
# --with-extra-ldflags, the configure still produces warnings like:
# https://github.com/wolfi-dev/os/issues/18747
- uses: autoconf/configure
with:
opts: |
--with-extra-cflags="$CFLAGS" \
--with-extra-cxxflags="$CXXFLAGS" \
--with-extra-ldflags="$LDFLAGS" \
--with-boot-jdk=/usr/lib/jvm/java-13-openjdk \
--prefix=/usr/lib/jvm/java-14-openjdk \
--with-vendor-name=wolfi \
Expand Down Expand Up @@ -170,6 +176,9 @@ subpackages:
- name: "openjdk-14-jmods"
description: "OpenJDK 14 jmods"
dependencies:
provides:
- openjdk-jmods=${{package.full-version}}
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}"/usr/lib/jvm/java-14-openjdk
Expand Down
8 changes: 7 additions & 1 deletion openjdk-15.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: openjdk-15
version: 15.0.10.5
epoch: 4
epoch: 5
description:
copyright:
- license: GPL-2.0-only
Expand Down Expand Up @@ -64,6 +64,9 @@ pipeline:

- runs: chmod +x configure

# Note that despite using --with-extra-cflags, --with-extra-cxxflags, and
# --with-extra-ldflags, the configure still produces warnings like:
# https://github.com/wolfi-dev/os/issues/18747
- uses: autoconf/configure
with:
opts: |
Expand Down Expand Up @@ -177,6 +180,9 @@ subpackages:
- name: "openjdk-15-jmods"
description: "OpenJDK 15 jmods"
dependencies:
provides:
- openjdk-jmods=${{package.full-version}}
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}"/usr/lib/jvm/java-15-openjdk
Expand Down
11 changes: 10 additions & 1 deletion openjdk-16.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: openjdk-16
version: 16.0.2.7
epoch: 4
epoch: 5
description:
copyright:
- license: GPL-2.0-only
Expand Down Expand Up @@ -64,9 +64,15 @@ pipeline:

- runs: chmod +x configure

# Note that despite using --with-extra-cflags, --with-extra-cxxflags, and
# --with-extra-ldflags, the configure still produces warnings like:
# https://github.com/wolfi-dev/os/issues/18747
- uses: autoconf/configure
with:
opts: |
--with-extra-cflags="$CFLAGS" \
--with-extra-cxxflags="$CXXFLAGS" \
--with-extra-ldflags="$LDFLAGS" \
--with-boot-jdk=/usr/lib/jvm/java-15-openjdk \
--prefix=/usr/lib/jvm/java-16-openjdk \
--with-vendor-name=wolfi \
Expand Down Expand Up @@ -177,6 +183,9 @@ subpackages:
- name: "openjdk-16-jmods"
description: "OpenJDK 16 jmods"
dependencies:
provides:
- openjdk-jmods=${{package.full-version}}
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}"/usr/lib/jvm/java-16-openjdk
Expand Down

0 comments on commit 03150d3

Please sign in to comment.