Skip to content

Link dynamic libraries more granularly to Java #21676

Open

Description

@abbradar

Issue description

Currently we link several libraries (fontconfig, GTK etc.) to Java using NIX_LDFLAGS to help it find them via dlopen(3). However, this loads a lot of libraries into the address space of Java even when corresponding Java libraries (GUI, printing etc.) aren't used. This betrays general expectations of what's loaded in the address space by 3rd party library developers, leading to subtle bugs like #21606.

Instead we need to link those libraries to corresponding JNI .sos -- it's tedious but should save us from those problems.

Technical details

  • Nixpkgs version: (run nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion) 59dbcef

Activity

  1. added
    0.kind: bug
    on Jan 5, 2017
  2. spacekitteh commented on Feb 7, 2017

    @spacekitteh
    Contributor

    Has any work been done on this?

  3. mmahut commented on Aug 11, 2019

    @mmahut
    Member

    Are there any updates to this issue, please?

  4. stale commented on Jun 2, 2020

    @stale

    Thank you for your contributions.

    This has been automatically marked as stale because it has had no activity for 180 days.

    If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

    Here are suggestions that might help resolve this more quickly:

    1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
    2. Ask on the NixOS Discourse.
    3. Ask on the #nixos channel on irc.freenode.net.
  5. added
    2.status: stale
    on Jun 2, 2020
  6. spacekitteh commented on Jun 3, 2020

    @spacekitteh
    Contributor

    not stale

  7. removed
    2.status: stale
    on Jun 3, 2020
  8. stale commented on Nov 30, 2020

    @stale

    I marked this as stale due to inactivity. → More info

  9. added
    2.status: stale
    on Nov 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bug2.status: stale

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions