Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
892fa82fb4
!13 Fix compilation failure due to cmocka update to 1.1.7
From: @starlet-dx 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-07-04 07:27:52 +00:00
starlet-dx
4b9722c4e3 Fix compilation failure due to cmocka update to 1.1.7 2023-06-21 16:34:20 +08:00
openeuler-ci-bot
57ec95fa20
!12 update to 1.1.15
From: @lyn1001 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-04-17 09:31:22 +00:00
lyn1001
7fd71c3a0b update to 1.1.15 2023-04-17 17:20:07 +08:00
openeuler-ci-bot
b654727c73
!9 License compliance rectification
From: @caodongxia 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
2022-05-10 13:06:33 +00:00
caodongxia
75620a2cc6 License compliance rectification 2022-05-09 21:01:46 +08:00
openeuler-ci-bot
50a408af71 !8 [sync] PR-7: Upgrade to 1.1.11
Merge pull request !8 from openeuler-sync-bot/sync-pr7-openEuler-22.03-LTS-Next-to-master
2021-12-31 10:30:00 +00:00
wk333
14265cff70 Update to 1.1.11
(cherry picked from commit 54900cd123dd242f7ec244e66352454e569e02e7)
2021-12-31 10:55:26 +08:00
openeuler-ci-bot
9ead6e7e2b !6 添加gcc依赖, 解决gcc command not found.
From: @shine_
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2021-06-07 20:27:43 +08:00
shine_
aeb8ce8cf3 fix failed: gcc command not found. 2021-06-04 16:39:50 +08:00
4 changed files with 53 additions and 6 deletions

BIN
nss_wrapper-1.1.15.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,31 @@
From 2c879a0ffa70cee33329291d7576ec971d420da2 Mon Sep 17 00:00:00 2001
From: Andreas Schneider <asn@samba.org>
Date: Fri, 17 Feb 2023 17:51:27 +0100
Subject: [PATCH] cmake: Fix cmocka >= 1.1.6 find_package() in CONFIG mode
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
---
tests/CMakeLists.txt | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 3b94076..733cc4e 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,5 +1,9 @@
project(tests C)
+if (TARGET cmocka::cmocka)
+ set(CMOCKA_LIBRARY cmocka::cmocka)
+endif()
+
set(TESTSUITE_LIBRARIES nss_utils ${NWRAP_REQUIRED_LIBRARIES} ${CMOCKA_LIBRARY})
string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LOWER)
--
2.39.2

View File

@ -1,13 +1,14 @@
Name: nss_wrapper
Version: 1.1.3
Release: 3
License: BSD
Version: 1.1.15
Release: 2
License: BSD-3-Clause
Summary: A wrapper for the user, group and hosts NSS API
Url: https://cwrap.org/
Source0: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
Patch0000: 0001-Optimized-group_save-implemenation-in-case-of-selinux-attr-changes.patch
Patch0001: nss_wrapper-fix-cmocka-1.1.6+-support.patch
BuildRequires: cmake libcmocka-devel
BuildRequires: gcc cmake libcmocka-devel
Requires: cmake pkgconfig
%description
@ -60,7 +61,8 @@ cd build
make test
%files
%doc AUTHORS COPYING
%doc AUTHORS README.md CHANGELOG
%license LICENSE
%{_bindir}/nss_wrapper.pl
%{_libdir}/libnss_wrapper.so*
%dir %{_libdir}/cmake/nss_wrapper
@ -68,10 +70,24 @@ make test
%{_libdir}/pkgconfig/nss_wrapper.pc
%files help
%doc README ChangeLog
%{_mandir}/man1/nss_wrapper.1*
%changelog
* Wed Jun 21 2023 yaoxin <yao_xin001@hoperun.com> - 1.1.15-2
- Fix compilation failure due to cmocka update to 1.1.7
* Mon Apr 17 2023 liyanan <thistleslyn@163.com> - 1.1.15-1
- Update to 1.1.15
* Mon May 9 2022 caodongxia <caodongxia@h-partners.com> - 1.1.11-2
- License compliance rectification
* Wed Dec 29 2021 wangkai<wangkai385@huawei.com> - 1.1.11-1
- Update to 1.1.11
* Web 02 Jun 2021 zhaoyao<zhaoyao32@huawei.com> - 1.1.3-4
- faileds: /bin/sh: gcc: command not found.
* Thu Sep 3 2020 Guoshuai Sun <sunguoshuai@huawei.com> - 1.1.3-3
- Optimized group_save implemenation in case of selinux attr changes