[procps] Re: Next for newlib?

  • From: Jim Warner <james.warner@xxxxxxxxxxx>
  • To: Procps-ng Mail list <procps@xxxxxxxxxxxxx>
  • Date: Thu, 25 Aug 2022 03:57:17 -0500

On 8/24/22 4:22 PM, Craig Small (csmall) wrote:

So that would mean for install we would have:
/usr/include/libproc2/*.h
/usr/lib/<triplet>/libproc-2.so

Hi Craig,

Why not drop the dash on the library itself? Using 'libproc2' consistently just feels better.

My suggestion:
doc/ Project documentation except for the items that should be in root
man/ Includes all manpages
local/ Contains the headers and utility sources, what was in include/ and lib/
src/ Source for binaries, there can be a ps and top subdirectory or not.
src/tests source for test programs for binaries.
proclib/ source for library. Not too sure about this, could be libsrc or srclib or something else. Could even still be proc/
proclib/libproc2 headers for library. The "libproc2" part should be the same as the install directory is e.g if we decide /usr/include/rainyday/*.h is the directory, this one would be called proclib/rainyday
proclib/tests test programs for library
testsuite/ Remains the same, test scripts only

This would mean
. -> remain, src/ and doc/
contrib/ Let's see if we can remove this, does anyone use any of this?
doc -> man/
Documentation -> doc
include -> local
lib -> local and src/tests
misc -> move this one file to root
proc -> proclib and proclib/tests
ps -> src/ps
testsuite -> testsuite
top -> src/top

Aside from whitespace changes and license prologues the last substantive change to contrib was back in 2004. So let's just whack the whole thing.

I like keeping the separate ps and top directories under the new src directory.

How about also renaming man-po/ to po-man/ which would place it adjacent to the po/ directory.

Lastly, maybe use a generic 'library' instead of proclib and a generic 'include' instead of libproc2 (rainyday). So in our development tree we end up with:
    ./library/          (*.c files, both private & public)
    ./library/tests/    (the test_*.c files)
    ./library/include/  (*.h files, both private & public)
And the installed stuff goes into:
    /usr/[local/]include/libproc2/*.h
    /usr/[local/]lib/<triplet>/libproc2.so

Regards,

Jim

Other related posts: