forked from pool/openafs
Accepting request 874976 from home:hauky:branches:filesystems
- fix building of perl module AFS::ukernel OBS-URL: https://build.opensuse.org/request/show/874976 OBS-URL: https://build.opensuse.org/package/show/filesystems/openafs?expand=0&rev=76
This commit is contained in:
parent
8e6465d313
commit
9637ad5cc6
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 22 16:38:07 UTC 2021 - Michael Meffie <mmeffie@sinenomine.net>
|
||||||
|
|
||||||
|
- fix building of perl module AFS::ukernel
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Feb 22 11:44:25 UTC 2021 - Matthias Gerstner <matthias.gerstner@suse.com>
|
Mon Feb 22 11:44:25 UTC 2021 - Matthias Gerstner <matthias.gerstner@suse.com>
|
||||||
|
|
||||||
|
18
openafs.spec
18
openafs.spec
@ -126,7 +126,11 @@ BuildRequires: krb5-devel
|
|||||||
BuildRequires: libtirpc-devel
|
BuildRequires: libtirpc-devel
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
|
%if 0%{?suse_version} < 1120
|
||||||
|
BuildRequires: perl-macros
|
||||||
|
%endif
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
|
BuildRequires: swig
|
||||||
|
|
||||||
%if 0%{?suse_version} < 1210
|
%if 0%{?suse_version} < 1210
|
||||||
Requires(post): %insserv_prereq
|
Requires(post): %insserv_prereq
|
||||||
@ -366,7 +370,8 @@ export PATH_KRB5_CONFIG=%{krb5_config}
|
|||||||
--sysconfdir=%{_sysconfdir} \
|
--sysconfdir=%{_sysconfdir} \
|
||||||
--mandir=%{_mandir} \
|
--mandir=%{_mandir} \
|
||||||
--with-afs-sysname=$afs_sysname \
|
--with-afs-sysname=$afs_sysname \
|
||||||
--disable-kernel-module
|
--disable-kernel-module \
|
||||||
|
--with-swig
|
||||||
|
|
||||||
make CCFLAGS="$CFLAGS" XCFLAGS="$CFLAGS" PAM_CFLAGS="$CFLAGS" KOPTS="$CFLAGS" all_nolibafs
|
make CCFLAGS="$CFLAGS" XCFLAGS="$CFLAGS" PAM_CFLAGS="$CFLAGS" KOPTS="$CFLAGS" all_nolibafs
|
||||||
make CCFLAGS="$CFLAGS" XCFLAGS="$CFLAGS" PAM_CFLAGS="$CFLAGS" KOPTS="$CFLAGS" only_libafs_tree
|
make CCFLAGS="$CFLAGS" XCFLAGS="$CFLAGS" PAM_CFLAGS="$CFLAGS" KOPTS="$CFLAGS" only_libafs_tree
|
||||||
@ -385,7 +390,7 @@ for flavor in %flavors_to_build; do
|
|||||||
pushd obj/$flavor
|
pushd obj/$flavor
|
||||||
find . -name "*.c" -exec sed -i '/MODULE_LICENSE(/a MODULE_INFO(retpoline, "Y");' "{}" "+"
|
find . -name "*.c" -exec sed -i '/MODULE_LICENSE(/a MODULE_INFO(retpoline, "Y");' "{}" "+"
|
||||||
./configure --with-linux-kernel-build=/usr/src/linux-obj/%{_target_cpu}/$flavor --with-linux-kernel-headers=/usr/src/linux \
|
./configure --with-linux-kernel-build=/usr/src/linux-obj/%{_target_cpu}/$flavor --with-linux-kernel-headers=/usr/src/linux \
|
||||||
--disable-transarc-paths
|
--disable-transarc-paths --without-swig
|
||||||
export EXTRA_CFLAGS='-DVERSION=\"%version\"'
|
export EXTRA_CFLAGS='-DVERSION=\"%version\"'
|
||||||
export LINUX_MAKE_ARCH="ARCH=%{_arch}"
|
export LINUX_MAKE_ARCH="ARCH=%{_arch}"
|
||||||
make
|
make
|
||||||
@ -504,6 +509,12 @@ mv %{buildroot}/%{_libdir}/afs/* %{buildroot}/%{_libdir}/openafs
|
|||||||
mv %{buildroot}/%{_libdir}/*.* %{buildroot}/%{_libdir}/openafs
|
mv %{buildroot}/%{_libdir}/*.* %{buildroot}/%{_libdir}/openafs
|
||||||
rm -rf %{buildroot}/%{_libdir}/afs
|
rm -rf %{buildroot}/%{_libdir}/afs
|
||||||
|
|
||||||
|
# move perl module to perl vendor library path
|
||||||
|
mkdir -p %{buildroot}/%{perl_vendorlib}/AFS
|
||||||
|
mv %{buildroot}/%{_libdir}/perl/AFS/ukernel.pm %{buildroot}/%{perl_vendorlib}/AFS/ukernel.pm
|
||||||
|
mkdir -p %{buildroot}%{perl_vendorarch}
|
||||||
|
mv %{buildroot}/%{_libdir}/perl/ukernel.so %{buildroot}/%{perl_vendorarch}/ukernel.so
|
||||||
|
|
||||||
# firewalld
|
# firewalld
|
||||||
|
|
||||||
%if %{have_firewalld}
|
%if %{have_firewalld}
|
||||||
@ -949,6 +960,9 @@ fi
|
|||||||
%{_includedir}/openafs/
|
%{_includedir}/openafs/
|
||||||
%{_libdir}/openafs/libafshcrypto.so
|
%{_libdir}/openafs/libafshcrypto.so
|
||||||
%{_libdir}/openafs/librokenafs.so
|
%{_libdir}/openafs/librokenafs.so
|
||||||
|
%{perl_vendorarch}/ukernel.so
|
||||||
|
%dir %{perl_vendorlib}/AFS
|
||||||
|
%{perl_vendorlib}/AFS/ukernel.pm
|
||||||
|
|
||||||
%files kernel-source
|
%files kernel-source
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
Reference in New Issue
Block a user