Opened 4 years ago

Last modified 2 years ago

#62240 new defect

hfstar has conflicting message files with gnutar — at Version 5

Reported by: rlhamil Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Cc: cooljeanius (Eric Gallager), barracuda156
Port: hfstar gnutar

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Both ports want to install the following:

  /opt/local/share/locale/cs/LC_MESSAGES/tar.mo
  /opt/local/share/locale/da/LC_MESSAGES/tar.mo
  /opt/local/share/locale/de/LC_MESSAGES/tar.mo
  /opt/local/share/locale/es/LC_MESSAGES/tar.mo
  /opt/local/share/locale/et/LC_MESSAGES/tar.mo
  /opt/local/share/locale/fr/LC_MESSAGES/tar.mo
  /opt/local/share/locale/it/LC_MESSAGES/tar.mo
  /opt/local/share/locale/ja/LC_MESSAGES/tar.mo
  /opt/local/share/locale/ko/LC_MESSAGES/tar.mo
  /opt/local/share/locale/nl/LC_MESSAGES/tar.mo
  /opt/local/share/locale/pl/LC_MESSAGES/tar.mo
  /opt/local/share/locale/pt/LC_MESSAGES/tar.mo
  /opt/local/share/locale/pt_BR/LC_MESSAGES/tar.mo
  /opt/local/share/locale/ru/LC_MESSAGES/tar.mo
  /opt/local/share/locale/sl/LC_MESSAGES/tar.mo
  /opt/local/share/locale/sv/LC_MESSAGES/tar.mo

Perhaps hfstar should be patched to change the names of its message files to end in hfstar.mo rather than tar.mo (and to find them accordingly). Ryan also suggested that its info file should be changed from tar.info to hfstar.info. He also mentioned the possibility that as ancient as hfstar is, its unique features MIGHT have been subsumed into gnutar, making it obsolete. Perhaps that's worth checking, too.

Change History (5)

comment:1 Changed 4 years ago by mf2k (Frank Schima)

In the future, please use WikiFormatting.

comment:2 Changed 4 years ago by mf2k (Frank Schima)

Description: modified (diff)
Port: gnutar added
Summary: hfstar has conflicting message files with guitarhfstar has conflicting message files with gnutar

comment:3 Changed 4 years ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:4 Changed 4 years ago by cooljeanius (Eric Gallager)

He also mentioned the possibility that as ancient as hfstar is, its unique features MIGHT have been subsumed into guitar, making it obsolete. Perhaps that's worth checking, too.

Note that another symptom of it being ancient and obsolete is that it runs into the usual implicit function declaration issues that result from -Werror=implicit-function-declaration being on by default on Catalina and Big Sur, too:

error.c:175:7: error: implicit declaration of function 'strerror_r' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
      __strerror_r (errnum, errbuf, sizeof errbuf);
      ^
error.c:101:24: note: expanded from macro '__strerror_r'
#  define __strerror_r strerror_r
                       ^
error.c:216:36: error: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Werror,-Wimplicit-function-declaration]
          (file_name == old_file_name || !strcmp (old_file_name, file_name)))
                                          ^
error.c:216:36: note: include the header <string.h> or explicitly provide a declaration for 'strcmp'
error.c:257:7: error: implicit declaration of function 'strerror_r' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
      __strerror_r (errnum, errbuf, sizeof errbuf);
      ^
error.c:101:24: note: expanded from macro '__strerror_r'
#  define __strerror_r strerror_r
                       ^
3 errors generated.
make[2]: *** [error.o] Error 1
make[2]: *** Waiting for unfinished jobs....
dirname.c:68:3: error: implicitly declaring library function 'memcpy' with type 'void *(void *, const void *, unsigned long)' [-Werror,-Wimplicit-function-declaration]
  memcpy (newpath, path, length);
  ^
dirname.c:68:3: note: include the header <string.h> or explicitly provide a declaration for 'memcpy'
1 error generated.
argmatch.c:69:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
  ARGMATCH_DIE;
  ^
argmatch.c:59:23: note: expanded from macro 'ARGMATCH_DIE'
# define ARGMATCH_DIE exit (EXIT_FAILURE)
                      ^
argmatch.c:69:3: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
argmatch.c:59:23: note: expanded from macro 'ARGMATCH_DIE'
# define ARGMATCH_DIE exit (EXIT_FAILURE)
                      ^
argmatch.c:99:12: error: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-declaration]
  arglen = strlen (arg);
           ^
argmatch.c:99:12: note: include the header <string.h> or explicitly provide a declaration for 'strlen'
argmatch.c:105:7: error: implicitly declaring library function 'strncmp' with type 'int (const char *, const char *, unsigned long)' [-Werror,-Wimplicit-function-declaration]
          ? !strncmp (arglist[i], arg, arglen)
             ^
argmatch.c:105:7: note: include the header <string.h> or explicitly provide a declaration for 'strncmp'
argmatch.c:106:7: error: implicitly declaring library function 'strncasecmp' with type 'int (const char *, const char *, unsigned long)' [-Werror,-Wimplicit-function-declaration]
          : !strncasecmp (arglist[i], arg, arglen))
             ^
argmatch.c:106:7: note: include the header <strings.h> or explicitly provide a declaration for 'strncasecmp'
make[2]: *** [dirname.o] Error 1
argmatch.c:118:8: error: implicitly declaring library function 'memcmp' with type 'int (const void *, const void *, unsigned long)' [-Werror,-Wimplicit-function-declaration]
                  || memcmp (vallist + valsize * matchind,
                     ^
argmatch.c:118:8: note: include the header <string.h> or explicitly provide a declaration for 'memcmp'
modechange.c:478:7: error: implicit declaration of function 'free' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
      free (changes);
      ^
1 error generated.
5 errors generated.
make[2]: *** [modechange.o] Error 1
make[2]: *** [argmatch.o] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_hfstar/hfstar/work/hfstar/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_hfstar/hfstar/work/hfstar'
make: *** [all-recursive-am] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_hfstar/hfstar/work/hfstar'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_archivers_hfstar/hfstar/work/hfstar" && /usr/bin/make -j16 -w all 
Exit code: 2
Error: Failed to build hfstar: command execution failed
DEBUG: Error code: CHILDSTATUS 10542 2

(should I open a separate bug for that, or are we just going to say that since it's obsolete it's not worth bothering?)

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

Cc: barracuda156 added
Description: modified (diff)

Has duplicate #66009.

Note: See TracTickets for help on using tickets.