Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Harald Eilertsen
@harald@hub.volse.no  ·  activity timestamp 2 weeks ago

⁂ Article

Introducing FLAVORS for OpenJDK on FreeBSD

A quick writeup of my thoughts around packaging OpenJDK for FreeBSD after adding FLAVORS to the OpenJDK 25 port:

Traditionally it's been possible to build OpenJDK for FreeBSD either as the full Java Development Kit (JDK), or as the slimmed down Jave Runtime Environment (JRE) via the FreeBSD ports system. This has been acheived by having two different ports, where the -jre port has been just a meta port that configures the main OpenJDK port for building the...

— https://kodeknekkeriet.net/en/blog/introducing-flavors-in-openjdk-freebsd/

I'd really like som input from the community on this, as I'm not entirely sure about what would be the best way to deal with this.

Thanks to the FreeBSD Foundation for sponsoring this project!

# FreeBSD # OpenJDK # ports # packaging

  • Copy link
  • Flag this article
  • Block
dch :flantifa: :flan_hacker:
@dch@bsd.network replied  ·  activity timestamp 2 weeks ago

@harald I for one would love these flavours!

My general use case is running JVM apps like Graylog and Riemann, and atm this requires my poudriere builds to do all the gui stuff which I wouldn’t otherwise need.

I would likely need a full jvm to build the port but at runtime need only the lightweight one.

  • Copy link
  • Flag this comment
  • Block
Harald Eilertsen
@harald@hub.volse.no replied  ·  activity timestamp 2 weeks ago

@dch :flantifa: :flan_hacker: Yeah, that's the idea too. I especially think the -jre-headless version will be useful in jails and server environments.

But, the issue is that we need some way to let ports and packages of Java apps specify which flavor they depend on. And the ports/pkg system needs to be smart enough that it won't install the headless JRE when you have the full JRE or even the full JDK installed already.

What I like about the Debian way of packaging OpenJDK is that you get that part for free. I'm not sure how to get that effect with flavors.

  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1-alpha.8 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login