[MacPorts] #56410: 'port selfupdate' from 2.4.2 to 2.4.3 fails on PPC running OSX10.5.8
MacPorts
noreply at macports.org
Thu May 3 00:46:01 UTC 2018
#56410: 'port selfupdate' from 2.4.2 to 2.4.3 fails on PPC running OSX10.5.8
--------------------------+---------------------------------------
Reporter: josephsacco | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 2.4.3
Resolution: | Keywords: leopard powerpc legacy-os
Port: |
--------------------------+---------------------------------------
Comment (by josephsacco):
Ryan,
The bad news is when 'port selfupdate' failed, I installed the MacPorts
update using the prebuilt dmg archive, so my ancient PPC is now at
version 2.4.3. Grrr....
I do have a hunch...
Poking around the source code for the "base", readline.c contains the
following:
{{{
#ifdef HAVE_READLINE_READLINE_H
#include <readline/readline.h>
#endif
...
/* Work-around libedit incompatibilities */
#if HAVE_DECL_RL_FILENAME_COMPLETION_FUNCTION
# define FILENAME_COMPLETION_FUNCTION rl_filename_completion_function
#elif HAVE_DECL_FILENAME_COMPLETION_FUNCTION
# define FILENAME_COMPLETION_FUNCTION filename_completion_function
#endif
#if HAVE_DECL_RL_USERNAME_COMPLETION_FUNCTION
# define USERNAME_COMPLETION_FUNCTION rl_username_completion_function
#elif HAVE_DECL_USERNAME_COMPLETION_FUNCTION
# define USERNAME_COMPLETION_FUNCTION username_completion_function
#endif
#if HAVE_DECL_RL_COMPLETION_MATCHES
# define COMPLETION_MATCHES rl_completion_matches
#elif HAVE_DECL_COMPLETION_MATCHES
# define COMPLETION_MATCHES completion_matches
#endif
}}}
readline @7.0.003_1 is active, so let's look at <readline/readline.h> and
see where filename_completion_function is declared:
{{{
/* Completion functions. */
extern int rl_complete_internal PARAMS((int));
extern void rl_display_match_list PARAMS((char **, int, int));
extern char **rl_completion_matches PARAMS((const char *,
rl_compentry_func_t *));
extern char *rl_username_completion_function PARAMS((const char *, int));
extern char *rl_filename_completion_function PARAMS((const char *, int));
extern int rl_completion_mode PARAMS((rl_command_func_t *));
#if 0
/* Backwards compatibility (compat.c). These will go away sometime. */
extern void free_undo_list PARAMS((void));
extern int maybe_save_line PARAMS((void));
extern int maybe_unsave_line PARAMS((void));
extern int maybe_replace_line PARAMS((void));
extern int ding PARAMS((void));
extern int alphabetic PARAMS((int));
extern int crlf PARAMS((void));
extern char **completion_matches PARAMS((char *, rl_compentry_func_t *));
extern char *username_completion_function PARAMS((const char *, int));
extern char *filename_completion_function PARAMS((const char *, int));
#endif
}}}
Appears the declaration for file_name_completion_function has been
commented out.
-Joseph
--
Ticket URL: <https://trac.macports.org/ticket/56410#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list