mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] The second symbolic links are not copied to the target
Date: Tue, 10 Jul 2018 08:48:48 +0200	[thread overview]
Message-ID: <20180710064848.24x3dokfm4b5yqap@pengutronix.de> (raw)
In-Reply-To: <CABDcavbq1WuQKVwAMq9H+p6bPDYcnimy6wak_cST8bSnY0GS-A@mail.gmail.com>

On Fri, Jul 06, 2018 at 12:30:51PM +0200, Guillermo Rodriguez Garcia wrote:
> >> There are no elf files involved. Java
> >> applications/libraries can request that a native library is loaded via
> >> the System.loadLibrary runtime API. This takes a "generic" (platform
> >> independent) library name, which is then "resolved" to a platform
> >> specific filename by the JVM. For Windows this is typically "foo" ->
> >> "foo.dll", and for Linux it is "foo" -> "libfoo.so".
> >>
> >> So it seems that removing the .so links breaks all Java applications..
> >>
> >> Can this be reconsidered?
> >
> > No, install_lib is for proper versioned shared libraries. If you need extra
> > links, then you can add those with install_link.
> 
> .... however, this is a different case. The problem with Java is not
> that the libraries themselves are not properly versioned. The problem
> is that due to the way native libraries are loaded in Java, the JVM
> must map a "generic" name such as foo to a platform-specific filename,
> which for Linux would be "libfoo.so", and then it tries to load that
> by filename. This assumes that the .so file is present and links to
> the appropriate libfoo.so.X.

And as I said, this is not the intended use-case for install_lib. It makes
no sense to install unnecessary links for all libraries just to simplify
one obscure corner case.
Use install_link to create the necessary symlinks.

Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

      reply	other threads:[~2018-07-10  6:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-01  4:28 Alejandro Vázquez
2018-07-05  8:25 ` Guillermo Rodriguez Garcia
2018-07-05 11:02   ` Alejandro Vázquez
2018-07-05 12:22     ` Michael Olbrich
2018-07-05 12:50       ` Guillermo Rodriguez Garcia
2018-07-06  9:54         ` Michael Olbrich
2018-07-06 10:30           ` Guillermo Rodriguez Garcia
2018-07-10  6:48             ` Michael Olbrich [this message]

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=20180710064848.24x3dokfm4b5yqap@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /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