On Wed, Oct 01, 2025 at 08:55:14PM +0300, Ileana Dumitrescu wrote: > On 22/09/2025 01:51, Patrice Dumas wrote: > > I am curious to understand why the test does not fail, in that case, as > > in general the test should not be run as root?
Actually I checked on OpenBSD, and the test (180) seems to lead to an expected failure. > > It seems to me that some of this information should be in the libtool > > documentation, namely I think that: > > * it should be said that there is a need to have root/enough privileges > > * it seems to me that it is not really fit for having the libraries > > found after installing as in some cases (if the /var/run directory > > is not saved), the change is temporary. > > * it should be said that the change is system-wide, and to cleanup the > > directories should be removed and the command rerun (without > > argument?) > > > > If this is agreed, I could propose some changes to the documentation. > > This is an edge case for building and testing shared libraries locally > without installing on OpenBSD. The documentation does state that > --reorder-cache should be used before and after testing changes, but it > does not go into the details of what that means users need to do. I do > not think specifying whether root is required is necessary to add to the > libtool documentation, since libtool already uses ldconfig when > executing finish commands on several systems. It seems to me that the case of calling ldconfig for building and testing shared libraries locally is quite different from the case of calling ldconfig when executing finish commands. Indeed, building and testing shared libraries locally is supposed to be done as a user without special permissions. Conversly, calling ldconfig when executing finish commands is, in general, expected to be done as a user with high priviledges. > However, I am happy to > review documentation update patches and apply them if it will help user > understanding. I am actully somewhat hesitant, as I think that it is not necessarily a good thing to document all the specificities of every platform in libtool. In any case, if I propose something, I should post to the patches mailing list, sorry to have missed that information. -- Pat
