Re: Computing `cur_prefix_arg` argument to `set_relocation_prefix`

2021-01-30 Thread Reuben Thomas
Apologies, I see that relocatable-prog actually already covers what I'm trying to do with progreloc.c. Sorry for the noise!

Re: Computing `cur_prefix_arg` argument to `set_relocation_prefix`

2021-01-30 Thread Reuben Thomas
On Sat, 30 Jan 2021 at 18:25, Reuben Thomas wrote: > > 1. Have I overlooked a simpler method of computing `cur_prefix_arg`? > Whether or not there is a simpler way, it would be good to have this > functionality included in the relocatable-prog gnulib module. > In particular, I meant to add: it

Computing `cur_prefix_arg` argument to `set_relocation_prefix`

2021-01-30 Thread Reuben Thomas
I'm using the relocatable-prog module, and assuming that my program may be running on a platform that needs to call `set_relocation_prefix`. Therefore, I need to compute the `cur_prefix_arg`. I assume that the program is installed with the standard directory layout under some prefix. To compute

canonicalize, canonicalize-lgpl: Straighten dependencies

2021-01-30 Thread Bruno Haible
The modules canonicalize, canonicalize-lgpl don't need to depend on 'malloc-posix', 'free-posix' any more, since they don't call malloc() or free() directly (as they now delegate their memory handling to the module 'scratch_buffer'). OTOH, since they include , they need to depend on module

scratch_buffer: Fix dependencies

2021-01-30 Thread Bruno Haible
lib/malloc/scratch_buffer.h states that for scratch_buffer_grow scratch_buffer_grow_preserve scratch_buffer_set_array_size scratch_buffer_dupfree errno gets set upon failure. Looking at the code, this requires for scratch_buffer_grow: requires malloc-posix, for