Opened 3 years ago

Closed 3 years ago

#64872 closed defect (fixed)

gnutar: info file and manpage reference "tar" instead of "gnutar"

Reported by: fgunbin Owned by: Filipp Gunbin <fgunbin@…>
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: gnutar

Description

Package gnutar ships with gnutar.info file

If we do

install-info gnutar.info /opt/local/share/info/dir

Then the resulting line in dir looks like

Archiving
* Tar: (tar).                   Making tape (or disk) archives.

Which refers to "tar" file instead of "gnutar"...

Change History (4)

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

Summary: gnutar info incorrectly installedgnutar: info file and manpage reference "tar" instead of "gnutar"

You could say the same thing about the manpage. (Oddly the port installs two different manpages...)

The port has no maintainer. Would you like to prepare a pull request to fix these issues?

comment:2 in reply to:  1 Changed 3 years ago by fgunbin

Replying to ryandesign:

You could say the same thing about the manpage. (Oddly the port installs two different manpages...)

The port has no maintainer. Would you like to prepare a pull request to fix these issues?

This port doesn't seem to follow the usual convention (like in coreutils) to prefix GNU program's name with "g", while putting original name in libexec/gnubin: the port itself is named "gnutar".

I think the right way for man pages is:

  • /opt/local/share/man/man1/gnutar.1.gz - the file itself
  • /opt/local/libexec/gnubin/man/man1/tar.1.gz - symlink

Currently it's already like that, but file and symlink are "swapped". This can be fixed in Portfile.

The info file is put here:

  • /opt/local/share/info/gnutar.info

It seems right, however the file contains menu items like "(tar)..." so they work incorrectly from "dir", thus my bug report. They should be "(gnutar)..." instead.

Does it all make sense? I have not yet contributed to MacPorts, maybe I misunderstand something.

Last edited 3 years ago by fgunbin (previous) (diff)

comment:3 in reply to:  1 Changed 3 years ago by fgunbin

Replying to ryandesign:

You could say the same thing about the manpage. (Oddly the port installs two different manpages...)

The port has no maintainer. Would you like to prepare a pull request to fix these issues?

Please check the PR https://github.com/macports/macports-ports/pull/14400

comment:4 Changed 3 years ago by Filipp Gunbin <fgunbin@…>

Owner: set to Filipp Gunbin <fgunbin@…>
Resolution: fixed
Status: newclosed

In 69c1ce7c20ff807fb169c80bd27ed09510d3d826/macports-ports (master):

gnutar: fix man/info pages

  • Man: Put into libexec/gnubin a symlink to normal man page, instead of generating another one with help2man.
  • Info: Fix file name in *.info files.

Closes: #64872

Note: See TracTickets for help on using tickets.