Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
829d85b360
!11 Update to 0.17.18
From: @starlet-dx 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2023-08-23 07:14:47 +00:00
starlet-dx
46a96daf69 Update to 0.17.18 2023-08-23 14:27:17 +08:00
openeuler-ci-bot
e598123608
!10 update to 0.17.17
From: @chen-jan 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2023-07-17 07:42:19 +00:00
chen-jan
eb90a7ebd1 update to 0.17.17 2023-07-17 15:12:44 +08:00
openeuler-ci-bot
2138612da0
!7 【轻量级PR】修正changelog中的错误日期
From: @konglidong 
Reviewed-by: @overweight 
Signed-off-by: @overweight
2022-08-04 09:15:19 +00:00
konglidong
cb23c98e03 modify bad date in changelog 2022-06-16 10:32:07 +08:00
openeuler-ci-bot
d1f1c1a56e
!6 update to 0.17.9
From: @caodongxia 
Reviewed-by: @overweight 
Signed-off-by: @overweight
2022-04-26 01:18:29 +00:00
caodongxia
bfa0e03bc4 update to 0.17.9 2022-04-25 15:05:15 +08:00
openeuler-ci-bot
db5b84fec4 !5 解决umockdev软件包在mainline的编译失败问题
From: @tushenmei
Reviewed-by: @small_leek,@licihua
Signed-off-by: @small_leek,@licihua
2021-08-05 02:12:07 +00:00
tushenmei
681c0182c3 bugfix of gcc 10 2021-08-04 12:00:07 +08:00
4 changed files with 24 additions and 46 deletions

Binary file not shown.

View File

@ -1,34 +0,0 @@
From f1b416400479d861deffb4c5a40422dcdf190e85 Mon Sep 17 00:00:00 2001
From: Martin Pitt <martin@piware.de>
Date: Fri, 23 Oct 2020 14:58:50 +0200
Recent glibc deprecated/dropped the `__xstat*()` family from the header
files, so the build started to fail on "no previous prototype". However,
umockdev still needs needs to keep the wrappers to run programs that got
built against an earlier glibc.
Thus declare the prototype explicitly. It should still fail to build if
glibc defines it differently.
Fixes #108
---
src/libumockdev-preload.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/libumockdev-preload.c b/src/libumockdev-preload.c
index 9328dc1..9bbec62 100644
--- a/src/libumockdev-preload.c
+++ b/src/libumockdev-preload.c
@@ -1215,8 +1215,11 @@ int prefix ## stat ## suffix (const char *path, struct stat ## suffix *st) \
/* wrapper template for __xstat family; note that we abuse the sticky bit in
* the emulated /dev to indicate a block device (the sticky bit has no
- * real functionality for device nodes) */
+ * real functionality for device nodes)
+ * This family got deprecated/dropped in glibc 2.32.9000, but we still need
+ * to keep it for a while for programs that were built against previous versions */
#define WRAP_VERSTAT(prefix, suffix) \
+int prefix ## stat ## suffix (int ver, const char *path, struct stat ## suffix *st); \
int prefix ## stat ## suffix (int ver, const char *path, struct stat ## suffix *st) \
{ \
const char *p; \

BIN
umockdev-0.17.18.tar.xz Normal file

Binary file not shown.

View File

@ -1,14 +1,14 @@
Name: umockdev
Version: 0.11.3
Release: 4
Version: 0.17.18
Release: 1
Summary: Mock hardware devices
License: LGPLv2+
URL: https://github.com/martinpitt/%{name}
Source0: https://github.com/martinpitt/%{name}/archive/%{version}.tar.gz
Source0: https://github.com/martinpitt/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
Patch0000: fix-glibc-update-error.patch
BuildRequires: autoconf automake libtool gtk-doc gobject-introspection-devel glib2-devel
BuildRequires: libgudev1-devel systemd-devel vala chrpath python3 gphoto2
BuildRequires: libgudev1-devel systemd-devel vala chrpath python3
BuildRequires: meson libpcap-devel systemd-udev
%description
umockdev mocks Linux devices for creating integration tests for hardware related libraries and programs.
@ -26,12 +26,11 @@ The umockdev-devel package contains umockdev development library.
%autosetup -n %{name}-%{version} -p1
%build
NOCONFIGURE=1 ./autogen.sh
%configure --disable-static --enable-gtk-doc
%make_build
%meson -Dgtk_doc=true
%meson_build
%install
%make_install
%meson_install
%delete_la
@ -46,9 +45,10 @@ rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc/umockdev
%files
%license COPYING
%doc README.rst
%doc README.md
%{_bindir}/umockdev-*
%{_libdir}/*.so.*
%{_libdir}/libumockdev.so.*
%{_libdir}/libumockdev-preload.so*
%{_libdir}/girepository-1.0/UMockdev-1.0.typelib
%files devel
@ -61,8 +61,20 @@ rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc/umockdev
%{_datadir}/vala/vapi/umockdev-1.0.vapi
%changelog
* Wed Aug 23 2023 yaoxin <yao_xin001@hoperun.com> - 0.17.18-1
- Update to 0.17.18
* Mon Jul 17 2023 chenchen <chen_aka_jan@163.com> - 0.17.17-1
- update to 0.17.17
* Mon Apr 25 2022 caodongxia <caodongxia@h-partners.com> - 0.17.9-1
- update to 0.17.9
* Wed Aug 4 2021 wutao <tushenmei@huawei.com> - 0.11.3-5
- bugfix-of-gcc10.patch
* Sat Jun 26 2021 wutao <wutao61@huawei.com> - 0.11.3-4
- fix build error due to glibc update
* Tue Jan 07 2019 yangjian<yangjian79@huawei.com> - 0.11.3-3
* Mon Jan 07 2019 yangjian<yangjian79@huawei.com> - 0.11.3-3
- Package init