Commit Graph

77 Commits

Author SHA1 Message Date
Ondrej Mosnacek
f95b05caae Add a few more convenience conditionals
Allow optionally building without `make test`, fuzz tests, `make scan`,
or without the -doc subpackage.

You can now e.g. quickly build locally without tests as follows:

    fedpkg mockbuild --without test

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2021-03-27 14:25:08 +01:00
Ondrej Mosnacek
eee399ccc3 Clean up cppcheck conditional
Move it up near the other conditional macro defs and utilize it for the
temporary cppcheck disablement.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2021-03-26 16:25:38 +01:00
Sahana Prasad
f0029bf72c Update to upstream version 1.2.1
Remove cppcheck dependency for rhel bz#1931518 and Fedora (temporarily) #bz1923600

Signed-off-by: Sahana Prasad <sahana@redhat.com>
2021-03-15 20:29:19 +01:00
Fedora Release Engineering
dbcdc9af40 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 17:21:13 +00:00
Robert Scheck
70628a02c9 Minor spec file optimizations 2021-01-13 01:47:40 +00:00
Tom Stellard
e34cfed412 Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-05 02:05:31 +00:00
Ondrej Mosnacek
7a34808f0c Depend on git-core instead of full git
See:
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/GS7GOUITUEASRELL7SKGLVJLGS3ZVJ45/

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2020-11-03 16:51:47 +01:00
Ondrej Mosnacek
ba6b846bc3 Bump release and update changelog for 1.2.0-3
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2020-08-14 11:27:26 +02:00
Ondrej Mosnacek
afdaa1cd48 Backport fix for 5.9 kernels
Kernel 5.9 will become more strict about the usage of MSG_MORE so this
upstream patch is needed to keep libkcapi working with the new kernel.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2020-08-14 11:24:32 +02:00
Ondrej Mosnacek
fb857c42d0 Require perl-interpreter instead of full perl
perl-interpreter pulls in less packages and as it turns out is actually
sufficient to build the package and run the tests so swtich to it.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2020-08-14 11:08:30 +02:00
Fedora Release Engineering
225db776e3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-28 04:56:25 +00:00
Sahana Prasad
d7a1af30f2 Update to upstream version 1.2.0 tracked by BZ 1839592
Signed-off-by: Sahana Prasad <sahana@redhat.com>
2020-05-25 12:13:40 +02:00
Ondrej Mosnacek
294dffd21f Bump release and update changelog for 1.1.5-5
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2020-05-05 10:23:27 +02:00
Ondrej Mosnacek
c57ecf7441 Avoid conflicts between different versions of packages
Remove duplicate files from the -doc subpackage and make it depend on
the base package (intentionally without %{_isa} since any base package
of the same version ships the same license files).

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2020-04-30 13:35:02 +02:00
Ondrej Mosnacek
7393454a2f Enable building on old kernels
This adds scripts that mock sha512hmac and fipshmac using openssl. These
are used instead of the built hashers to hash libkcapi binaries on
kernels that don't suport the userspace Crypto API interface properly
(e.g. RHEL-7 kernels).

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2020-04-30 08:35:22 +02:00
Tomas Mraz
c19476ae79 Add . prefix to files created by fipshmac if -d option is not specified 2020-04-23 14:41:44 +02:00
Tomáš Mráz
87985ec6fd Produce fipscheck replacement on Fedora 33+ 2020-04-22 10:53:38 +00:00
Ondrej Mosnacek
65b6380cc1 Cleanup previous commit
Remove backticks added by mistake and add a comment explaining the reson
for the workaround.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2020-04-22 12:42:49 +02:00
Sahana Prasad
d1117b07e6 libkcapi.spec: Disables kcapi-enc tests until the kernel bug bz 1826022 is fixed.
Signed-off-by: Sahana Prasad <sahana@redhat.com>
2020-04-22 11:45:41 +02:00
Fedora Release Engineering
50dcd7a51f - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-29 09:29:32 +00:00
Ondrej Mosnacek
c645f59d4c Update to upstream version 1.1.5 2019-08-13 14:58:56 +02:00
Ondrej Mosnacek
f5e4195060 Remove no longer needed ppc64 workaround
The kernel bug causing failures on ppc64le is now fixed in recent/stable
kernels [1], so we can remove the workaround.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=dcf7b48212c0fab7df69e84fab22d6cb7c8c0fb9

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2019-07-27 22:12:12 +02:00
Ondrej Mosnacek
3d486e6132 Backport patch to fix test failure on aarch64
Another patch needed to fix failing tests...

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2019-07-27 22:10:09 +02:00
Ondrej Mosnacek
154ab8363d Backport patch to fix tests
This patch fixes detection of kernel version, which should fix the
failing build-time tests on some arches.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2019-07-27 18:50:26 +02:00
Ondrej Mosnacek
4cdceabb5d Enable gating
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2019-07-25 17:19:25 +02:00
Ondrej Mosnacek
12b9ffe9da Work around cppcheck issue
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2019-07-25 17:19:07 +02:00
Fedora Release Engineering
4a47da3f29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-25 13:35:33 +00:00
Ondrej Mosnacek
782807f493 Fix FTBFS: hardlink is now in bindir
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2019-05-27 13:19:29 +02:00
Ondrej Mosnacek
84c3a32d11 Update to upstream version 1.1.4
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2019-02-02 12:00:24 +01:00
Ondrej Mosnacek
5d51b5804e Bump Release field
Forgot to add this to the previous commit...

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2019-02-01 22:03:39 +01:00
Ondrej Mosnacek
2a261ac6a0 Fix build with new GCC
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2019-02-01 22:02:35 +01:00
Fedora Release Engineering
459efb3df3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-01 07:26:40 +00:00
Ondrej Mosnacek
01f1016328 Update to upstream version 1.1.3 2018-08-23 15:38:18 +02:00
Ondrej Mosnacek
82e795531c Update patch from upstream 2018-08-09 15:35:02 +02:00
Ondrej Mosnacek
47361f07e4 Add missing dependencies to the tests package 2018-08-09 15:34:15 +02:00
Ondrej Mosnacek
3697cbee9f Build and tests require perl 2018-08-09 12:19:27 +02:00
Ondrej Mosnacek
bb258cf923 Add missing script to the 'tests' package 2018-08-09 10:27:29 +02:00
Ondrej Mosnacek
d40c36fd66 Add missing requires to the 'tests' subpackage 2018-08-08 13:30:33 +02:00
Ondrej Mosnacek
369fb01cd1 Build the 'tests' subpackage conditionally 2018-08-08 10:02:12 +02:00
Ondrej Mosnacek
04ed926005 Produce a subpackage with test scripts 2018-08-08 09:23:30 +02:00
Ondrej Mosnacek
ba8cc20c2b Add patch to fix unwanted closing of FD 0 2018-08-01 10:21:12 +02:00
Ondrej Mosnacek
5001e659a7 Remove the kernel headers workaround
The issue has been resoved upstream [1], so the workaround patch can be
removed,

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=9ba546c01976a426292af99e682a557075d6c010
2018-07-31 09:57:26 +02:00
Igor Gnatenko
314a35f7a3
Rebuild for new binutils
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-07-27 14:55:18 +02:00
Ondrej Mosnacek
9492899ff0 Fixup specfile 2018-07-27 11:56:51 +02:00
Ondrej Mosnacek
e542872a71 Add patch to fix AEAD fuzz test for BE arches 2018-07-27 11:53:06 +02:00
Ondrej Mosnacek
e55cfcddec Add more Coverity fixes from upstream
This commit updates the last PR patch (one of the commits was not
accepted upstream) and adds new fixes that have been added in the
meantime (including an alternative version of the patch that had been
dropped).
2018-07-27 09:40:09 +02:00
Ondrej Mosnacek
ea59de0d6c Drop the Requires on kernel package
See: https://bugzilla.redhat.com/show_bug.cgi?id=1600622
2018-07-23 14:59:14 +02:00
Ondrej Mosnacek
902fe4bfd1 Add various fixes from upstream 2018-07-23 13:27:48 +02:00
Ondrej Mosnacek
28355f75fe Put .hmac files into a separate directory
Putting the .hmac files into the same directory as the checked binary
causes rpmlint errors and is generaly not a good idea (there could be a
multilib conflict).

Since dracut is already hard-coded to search for them in
/lib(64)?/fipscheck and /lib(64)?/hmaccalc, let's just drop them there.
2018-07-16 15:55:37 +02:00
Fedora Release Engineering
17d760e698 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-13 08:18:36 +00:00