Skip to content

[bug] pkgm doesn’t create symbolic links using major version numbers breaking libs #24

@andrewcrook

Description

@andrewcrook

Hi

Using curl I noticed that the pkgm installed curl wasn’t working it gave an error message indicating that the openssl library could not be found.

PKGM

>  curl -Ssf https://pkgxdev.github.io/mash/
dyld[7009]: Library not loaded: @rpath/openssl.org/v1/lib/libssl.dylib
  Referenced from: <EA6AA020-36E8-3F24-A7DA-2FFCFA5DFD4E> /usr/local/pkgs/curl.se/v8.12.1/bin/curl
  Reason: tried: '/usr/local/pkgs/curl.se/v8.12.1/bin/../../../openssl.org/v1/lib/libssl.dylib' (no such file), '/usr/local/pkgs/curl.se/v8.12.1/bin/../../../openssl.org/v1/lib/libssl.dylib' (no such file)
zsh: abort      curl -Ssf https://pkgxdev.github.io/mash/

I noticed that the directory of the missing library /openssl.org/v1/lib/libssl.dylib in the message has v1.
Under pkgx I noticed that ‘v1' existed as a symbolic link to ‘v1.1.1w’.

Looking at pkgm’s package directory '/usr/local/pkgs/openssl.org/' I noticed that only ‘v1.1.1w’. existed.

So I created a symbolic link from v1.1.1w to v1

sudo ln -s v1.1.1w v1

This solved the issue

> curl -Ssf https://pkgxdev.github.io/mash/
{
  "scripts": [
    {
      "fullname": "muhil28/magic”, 
# .......... REST OF RESULT

I think pkgm should have created these e.g v1 and v1.1 ?
Would that be covered in pkgm or the calls to pkgx?

I also saw symbolic links to individual files in '/usr/local/lib’ when are these used?

lrwxr-xr-x - root   18 Feb 13:13 libcurl.la -> /usr/local/pkgs/curl.se/v8.12.1/lib/libcurl.la
lrwxr-xr-x - root   18 Feb 13:26 libssl.1.1.dylib -> /usr/local/pkgs/openssl.org/v1.1.1w/lib/libssl.1.1.dylib
lrwxr-xr-x - root   18 Feb 13:26 libssl.a -> /usr/local/pkgs/openssl.org/v1.1.1w/lib/libssl.a
lrwxr-xr-x - root   18 Feb 13:26 libssl.dylib -> /usr/local/pkgs/openssl.org/v1.1.1w/lib/libssl.dylib

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions