public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Florian Schmaus" <flow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/java-config:master commit in: src/
Date: Tue, 14 Nov 2023 13:52:17 +0000 (UTC)	[thread overview]
Message-ID: <1699961922.951de94124539904d9aa498d89ae8f0daf8aa508.flow@gentoo> (raw)

commit:     951de94124539904d9aa498d89ae8f0daf8aa508
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 14 11:36:15 2023 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Tue Nov 14 11:38:42 2023 +0000
URL:        https://gitweb.gentoo.org/proj/java-config.git/commit/?id=951de941

gjl: obtain library directory via LIBDIR

Newer versions of java-config-2.eclass will record LIBDIR in
package.env, which we obtain in gjl and use to set java.library.path
when invoking the Java VM.

Bug: https://bugs.gentoo.org/917326
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 src/gjl | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/gjl b/src/gjl
index 1639ef2..1baa899 100755
--- a/src/gjl
+++ b/src/gjl
@@ -47,7 +47,15 @@ def get_args(pkg):
     envlp = os.getenv('LD_LIBRARY_PATH')
     envjlp = os.getenv('JAVA_LIBRARY_PATH')
 
-    newlibrary = manager.eprefix + '/lib:'+ manager.eprefix + '/usr/lib'
+    libdir = pkg.query('LIBDIR')
+    if libdir:
+        newlibrary = manager.eprefix + '/' + libdir
+    else:
+        # Old, obsolete fallback path for packages that where
+        # installed before java-utils-2.eclass recorded LIBDIR.
+        # Bug #917326.
+        newlibrary = manager.eprefix + '/lib:'+ manager.eprefix + '/usr/lib'
+
     if library:
         newlibrary = ':'.join((library, newlibrary))
     if envjlp:


             reply	other threads:[~2023-11-14 13:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-14 13:52 Florian Schmaus [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-12-28 13:15 [gentoo-commits] proj/java-config:master commit in: src/ Ralph Sennhauser
2013-12-27 11:28 Ralph Sennhauser

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1699961922.951de94124539904d9aa498d89ae8f0daf8aa508.flow@gentoo \
    --to=flow@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox