This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PING][PATCH v4] Add pretty printers for the NPTL lock types


> As for the install directory, I discussed this with Mike Frysinger and we agreed
> that this should be handled by the maintainers of each distro, since the paths
> may vary from one distro to another. We also agreed that this issue shouldn't
> block the merging of this patch either.

I disagree.  While distributions will eventually decide on where to
place the pretty printers, the locations are not going to be as
different as you think.  libstdc++ has already set an example with
their setup and it is a good act to follow IMO.  On my Fedora box, the
libstdc++ pretty-printer scripts are all installed in
/usr/share/gcc-nvr/python/libstdc++/v6 and the auto-load file is in
/usr/share/gdb/auto-load/usr/lib64/libstdc++.so.6.0.21-gdb.py.  It is
similar on a Ubuntu installation I have, with the lib64 replaced by
their multiarch hierarchy.

So I would recommend using that as an example and installing glibc
pretty printers accordingly so that during packaging, distributions
only have to make standard adjustments to their paths and those
installing by hand also don't have to manually copy over files.

You could do that as a separate patch to this one though.  The general
approach otherwise looks good to me.  I will try to do a more detailed
review this weekend.

Siddhesh


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]