Fix multilib conflicts in libyang-devel headers
Resolves: RHEL-182750
This commit is contained in:
parent
8087281fff
commit
128280c142
21
libyang.spec
21
libyang.spec
@ -8,7 +8,7 @@
|
||||
|
||||
Name: libyang
|
||||
Version: 2.1.148
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: YANG data modeling language library
|
||||
Url: https://github.com/CESNET/libyang
|
||||
Source: %{url}/archive/v%{version}.tar.gz
|
||||
@ -80,6 +80,21 @@ popd
|
||||
mkdir -m0755 -p %{buildroot}/%{_docdir}/libyang
|
||||
cp -r doc/html %{buildroot}/%{_docdir}/libyang/html
|
||||
|
||||
#downstream fix for multilib install of devel pkg
|
||||
mv %{buildroot}%{_includedir}/libyang/config.h \
|
||||
%{buildroot}%{_includedir}/libyang/config-%{__isa_bits}.h
|
||||
cat > %{buildroot}%{_includedir}/libyang/config.h << EOF
|
||||
#include <bits/wordsize.h>
|
||||
|
||||
#if __WORDSIZE == 32
|
||||
#include "config-32.h"
|
||||
#elif __WORDSIZE == 64
|
||||
#include "config-64.h"
|
||||
#else
|
||||
#error "Unknown word size"
|
||||
#endif
|
||||
EOF
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%{_bindir}/yanglint
|
||||
@ -103,6 +118,10 @@ cp -r doc/html %{buildroot}/%{_docdir}/libyang/html
|
||||
%{_docdir}/libyang
|
||||
|
||||
%changelog
|
||||
* Tue Jun 16 2026 Michal Ruprich <mruprich@redhat.com> - 2.1.148-3
|
||||
- Fix multilib conflicts in libyang-devel headers
|
||||
- Resolves: RHEL-182750
|
||||
|
||||
* Wed May 27 2026 Michal Ruprich <mruprich@redhat.com> - 2.1.148-2
|
||||
- Fix integer overflow and OOM in LYB parser string/value reading
|
||||
- Resolves: RHEL-177018
|
||||
|
||||
Loading…
Reference in New Issue
Block a user