159 Commits

Author SHA1 Message Date
Andrew G. Morgan
3b2513a1ba Up the release version to 2.77
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2025-10-26 11:29:03 -07:00
Ariel Otilibili
a37b302883 Make.Rules: Fix broken link to the sendmail issue
The link points to a dead resource.

Replace it with the correct link.

Signed-off-by: Ariel Otilibili <ariel.otilibili-anieli@eurecom.fr>
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2025-07-07 07:09:18 -07:00
Andrew G. Morgan
5f3e12ca39 Up the release version to 2.76
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2025-04-13 09:47:12 -07:00
Andrew G. Morgan
4425764d96 Nothing references the SYSTEM_HEADERS make variable.
It was introduced between libcap-1.97 and libcap-2.00 but never
actually referenced in the build tree. Thanks to Ross Burton for
pointing this out!

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2025-03-17 19:25:46 -07:00
Andrew G. Morgan
f02e46a44a Up the release version to 2.75
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2025-03-04 08:56:39 -08:00
Andrew G. Morgan
def8fab2a3 Up the release version to 2.74
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2025-03-02 16:09:34 -08:00
Andrew G. Morgan
6ef6a9d1e4 Up the release version to 2.73
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2024-12-01 20:18:58 -08:00
Andrew G. Morgan
1a02e34cc4 Up the release version to 2.72
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2024-11-10 15:26:15 -08:00
Andrew G. Morgan
b017fcff26 Eliminating -wrap use.
This addresses the following bug:

   https://bugzilla.kernel.org/show_bug.cgi?id=219456

insofar as it eliminates the need for -wrap=pthread_create
linkage. Mostly, code that uses -lpsx functions can simply
link with -lpsx now. However, for legacy reasons the library
still works when linked wrapped or with the new content of
the libpsx.pc file:

   -Wl,--no-as-needed -Wl,--whole-archive -lpsx -Wl,--no-whole-archive -Wl,--as-needed -lpthread

These last options are required for getting -lcap to act at a
consistent process level and not a thread level.

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2024-11-09 23:19:18 -08:00
Andrew G. Morgan
c7dbcf0bc9 Up the release version to 2.71
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2024-10-25 22:17:54 -07:00
Andrew G. Morgan
8fe536b53f Up the release version to 2.70
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2024-05-18 21:43:17 -07:00
Andrew G. Morgan
8bed80f9b5 Up the release version to 2.69
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2023-05-14 19:10:04 -07:00
Andrew G. Morgan
3c7dda330b Up the release version to 2.68
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2023-03-25 17:03:17 -07:00
Andrew G. Morgan
34b0329dc7 Up the release version to 2.67
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2023-02-02 20:10:27 -08:00
David Seifert
45bf9259a0 Use POSIX grep
* GNU grep 3.8 considers `egrep` and `fgrep` obsolescent and throws warnings:

    ./mkcapshdoc.sh > capshdoc.c.cf
    fgrep: warning: fgrep is obsolescent; using /bin/grep -F
    fgrep: warning: fgrep is obsolescent; using /bin/grep -F
    fgrep: warning: fgrep is obsolescent; using /bin/grep -F
    fgrep: warning: fgrep is obsolescent; using /bin/grep -F
    [...]

  https://lists.gnu.org/archive/html/info-gnu/2022-09/msg00001.html

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2022-09-29 06:54:24 -07:00
Andrew G. Morgan
4f96e6788d Up the release version to 2.66
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2022-09-24 13:37:39 -07:00
Andrew G. Morgan
a47d86dfb9 Up the release version to 2.65
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2022-07-17 15:33:06 -07:00
Andrew G. Morgan
38cfa2e958 Up the release version to 2.64
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2022-04-10 15:39:39 -07:00
Andrew G. Morgan
1d88048c31 Up the release version to 2.63
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2022-01-23 16:36:22 -08:00
Andrew G. Morgan
e1bd9ac089 Trim includes.
I've upgraded one of my systems to Fedora 35 and I found trimming
the headers in this way made the three compilations of libcap, used
by `make distcheck`, work with standard Fedora 35 compiler packages.

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2022-01-23 16:36:06 -08:00
Andrew G. Morgan
cc91f55960 Up the release version to 2.62
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-12-11 18:06:34 -08:00
Andrew G. Morgan
1fe7dbe984 Drop perl from the build requirements.
David Seifert at Gentoo made a request to not require perl for
the libcap build since their distribution wants to build it prior
to building perl and so requiring it requires they maintain some
extra patches.

We previously introduced the need for perl in response to some
apparent incompatibilities between various versions of sed:

https://git.kernel.org/pub/scm/libs/libcap/libcap.git/commit/?id=9494a1fab59ac0b6e4f0bfc536fa482c6d6490b6

However, it has been 13 years since that time so we're optimistic
those problems are no longer present for anyone and we've also
added a make variable abstraction in case some builder wants to
override their system default 'sed' as make BUILD_SED=... etc.

We've also done something similar with make uses of grep, egrep
and fgrep.

Finally, for make variable naming consistency, we've replaced use
of BUILD_GPERF with USE_GPERF. Since folk may be using BUILD_GPERF
in their package building scripts, we error out if it is set.
The expectation is that people will update their package defs.
(Eventually, we plan to reuse BUILD_GPERF as an alias for 'gperf'.)

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-12-04 10:18:50 -08:00
Andrew G. Morgan
d63835d491 Up the release version to 2.61
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-11-20 22:20:04 -08:00
Andrew G. Morgan
5306fa23ff Up the release version to 2.60
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-10-22 21:29:14 -07:00
Andrew G. Morgan
d07df10aaa Fix miscellaneous build and lint warnings.
Addresses the issues listed here:

   https://bugzilla.kernel.org/show_bug.cgi?id=214579

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-09-29 21:42:33 -07:00
Andrew G. Morgan
9eb56596ee Up the release version to 2.59
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-09-26 18:20:33 -07:00
Andrew G. Morgan
01627eae86 Up the release version to 2.58
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-09-17 19:35:42 -07:00
Andrew G. Morgan
1dd3fb4312 Add in something the builder can override to augment the GO builds
I've been looking at reasons packagers are not building the Go binaries
and found this with respect to RPMs:

  https://github.com/rpm-software-management/rpm/issues/367

There has been no easy way to inject the otherwise unneeded workaround:
-ldflags=-linkmode=external for building (which, strangely, generates
some sort of warning and gratuitously links glibc to an otherwise
static build), but seems to work.

Until RPM supports Go's native '.note.go.buildid', and RPM requires
'.note.gnu.build-id' on binaries, I guess this can work around it:

   GO_BUILD_FLAGS='-ldflags=-linkmode=external'

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-09-11 16:13:56 -07:00
Andrew G. Morgan
3906730197 Up the release version to 2.57
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-09-09 13:57:36 -07:00
David Seifert
3249c26964 Build system fixes
Summary:
- Always keep $(WARNINGS) when overriding CFLAGS

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-09-04 11:50:33 -07:00
Andrew G. Morgan
0f286b584e Up the release version to 2.56
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-09-02 20:03:32 -07:00
Andrew G. Morgan
264b784089 Resurrect the $(WARNINGS) for the target build
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-08-31 06:57:54 -07:00
Andrew G. Morgan
f5ae31ebd3 Be more consistent with make variables.
Noticed that we weren't applying the same amount of flag discipline
to local BUILD_* tool rules. Fixing that, I see we've been carrying
a source code issue in libcap/_makenames.c for a while. (FIXED).

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-08-30 20:02:22 -07:00
Andrew G. Morgan
2bfe36c999 Up the release version to 2.55
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-08-29 18:54:03 -07:00
Andrew G. Morgan
de1130dbfe Speculative fix for build failure.
Not sure exactly what is causing the build server to fail (can't
reproduce yet), but add some extra padding to a calloc and also
some test debugging printf()s.

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-08-27 13:55:11 -07:00
Andrew G. Morgan
07cdff9ac9 Up the release version to 2.54
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-08-25 21:09:19 -07:00
Andrew G. Morgan
a0aaea6e27 Add a comment about overriding DYNAMIC.
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-08-25 19:50:46 -07:00
Andrew G. Morgan
935ab8f7cd Support overriding choice of 'sudo'.
Use something like:

  make SUDO=my_sudo sudotest

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-08-25 19:48:12 -07:00
Andrew G. Morgan
7a75dbc2bb Absorb some of archlinux's Make.Rule customizations.
These allow overriding of the sbin target directory with

  make sbindir=xxx

or

  make sbin=xxx

We've recently made some CPPFLAGS changes, so I'm not going to
disturb those further this iteration.

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-08-25 19:11:22 -07:00
Andrew G. Morgan
2e28d3f3e8 Allow the builder to force -lpam linkage.
I've yet to understand why this is needed. But, apparently, folk
feel strongly that there is a reason one might want to force it
one way or another. If you don't care one way or the other, let
the Makefiles figure out something that works.

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-08-23 19:17:42 -07:00
Andrew G. Morgan
d21a561ddb Drop non-standard IPATH in favor of CPPFLAGS.
This also required locally augmenting CFLAGS with -fPIC in the
Makefile's that required it.

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-08-19 20:49:39 -07:00
Andrew G. Morgan
797050ca7f Up the release version to 2.53
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-08-15 19:06:35 -07:00
Samanta Navarro
e721aff543 Fix typos.
Typos found with codespell

Signed-off-by: Samanta Navarro <ferivoz@riseup.net>
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-08-14 11:03:27 -07:00
Andrew G. Morgan
6dea1813f2 Support CC=clang again.
I didn't realize CC=clang used to work. Now it does again.
I've also added a test build for clang in distcheck.

This fixes:

  https://bugzilla.kernel.org/show_bug.cgi?id=214047

Also, add a note about pam_cap.so building after debugging:

  https://bugzilla.kernel.org/show_bug.cgi?id=214023

Finally, removed a redundant LDFLAGS link directory override.

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-08-11 19:59:24 -07:00
Andrew G. Morgan
8070dfec39 Up the release version to 2.52
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-08-01 17:49:56 -07:00
Andrew G. Morgan
ee3b25c0a8 Support simply executing the built shared libraries.
Some system libraries support being run as regular executables.
Now that I have figured out how to do it, add support for libcap.so
and libpsx.so to print some information and exit.

Note, I've explained how most of this stuff works in this answer:

  https://stackoverflow.com/a/68339111/14760867

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-07-12 21:23:32 -07:00
Andrew G. Morgan
3857d17677 Up the release version to 2.51
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-06-20 16:57:57 -07:00
Andrew G. Morgan
1b59ff9848 Do away with GOPATH based GO building.
From here on out, we use go ... -mod=vendor to build/test/run in
tree. This blog post suggets that GOPATH building is on the way
out:

   https://blog.golang.org/go116-module-changes

This addresses this feature request:

   https://bugzilla.kernel.org/show_bug.cgi?id=212453

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-06-20 15:40:15 -07:00
Andrew G. Morgan
4408d8ae5b Up the release version to 2.50
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-05-24 12:05:16 -07:00
Andrew G. Morgan
c8a101dc9d Up the release version to 2.49
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-03-13 16:26:47 -08:00