Opened 10 years ago

Closed 7 years ago

#47632 closed enhancement (wontfix)

p7zip executables in lib/ instead of bin/

Reported by: stuartwesterman (Stuart Westerman) Owned by: macports-tickets@…
Priority: Low Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), kurthindenburg (Kurt Hindenburg)
Port: p7zip

Description

This was emailed to me from a concerned macports user:

I just installed p7zip via ports and was surprised that the executables were not in my path after installation.

A short search on /opt/local showed that the executables were installed under /opt/local/lib/p7zip. It is my strong belief that the correct place for the executables is /opt/local/bin, while the libraries are properly placed under /opt/local/lib/p7zip.

I have of course linked my executables to bin, while leaving them in /opt/local/lib/p7zip so as to not upset port, but I suggest that the above referenced correction be made to this port.

I'll try to add the patch here when I get around to it.

Change History (6)

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

It is your port, so feel free to make that change. I agree it would be more normal for binaries to be in /opt/local/bin. Perhaps there is a reason why the developers chose to install them /opt/local/lib/p7zip instead and install wrapper scripts in /opt/local/bin. Have you asked them? Also in /opt/local/lib/p7zip are files 7z.so and 7zCon.sfx. Odd names for executables, those. If they are not executables, then they should not be moved into /opt/local/bin.

comment:2 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Cc Me!

comment:3 Changed 10 years ago by larryv (Lawrence Velázquez)

Agreed that it’s kind of weird, but you should try to address this upstream instead of hacking it into the port.

From the README in the source distribution:

  - 7za is a stand-alone program, you can put this program where you want.
  example :  cp bin/7za /usr/local/bin/7za

  - 7z needs its plugins. You must copy the file 7z, 7z.so
    and the directory Codecs in the same destination directory.

  - if you want to be able to create SFX archive, copy bin/7zCon.sfx
  to the directory where 7za or 7z can be found.

comment:4 Changed 9 years ago by kurthindenburg (Kurt Hindenburg)

Cc: khindenburg@… added

Cc Me!

comment:5 Changed 9 years ago by kurthindenburg (Kurt Hindenburg)

It appears to work as-is since the bin files are just small script files

  /opt/local/bin/7z
  /opt/local/bin/7za
  /opt/local/bin/7zr

 cat /opt/local/bin/7z                                                                                             
#! /bin/sh
"/opt/local/lib/p7zip/7z" "$@"

comment:6 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: wontfix
Status: newclosed

I'm going to close this, since it's not our problem to fix.

Note: See TracTickets for help on using tickets.