On 05/31/2016 05:56 AM, Daniel Peebles wrote:
What would it take to get a patch merged into gnulib for this issue?
The last time I looked at it, it didn't appear that it would work on platforms other than OS X and glibc, and it wasn't clear that it would work even on glibc when some other modules were used. Plus, the effect on the program_name variable (whatever it is) would need to be documented in the .texi files, e.g., what is the relationship between program_name and program_invocation_name on OS X. I'm attaching a list of places that should be looked at, in 'grep' format.
I do think the patch should go in, it's just that it needs to be done without hurting other platforms and so that it's documented.
doc/error.texi:5:@vindex program_name doc/relocatable-maint.texi:68:set_program_name (argv[0]); doc/relocatable-maint.texi:92:The @code{set_program_name} function can also configure some lib/argmatch.c:212:char *program_name; lib/argp-help.c:1713:__argp_short_program_name (void) lib/argp-namefrob.h:154:# define __argp_short_program_name() (program_invocation_short_name) lib/c-stack.c:91:extern char *program_name; lib/chdir-long.c:215:char *program_name; lib/error.c:66:# define program_name program_invocation_name lib/error.c:118:extern char *program_name; lib/euidaccess.c:200:char *program_name; lib/group-member.c:100:char *program_name; lib/progname.c:33:const char *program_name = NULL; lib/progname.h:32:extern const char *program_name; lib/progreloc.c:325:/* Set program_name, based on argv[0], and original installation prefix and tests/test-c-stack.c:33:char *program_name; tests/test-closein.c:30:char *program_name; tests/test-yesno.c:30:char *program_name; top/maint.mk:1610:# Without gnulib's progname module, you might put program_name here.