[packages/squashfs_lzma] fix linking
glen
glen at pld-linux.org
Tue Mar 3 19:02:50 CET 2015
commit 43ec8bb231be80b3dd1a913621d6802b45979e9a
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Mar 3 20:02:41 2015 +0200
fix linking
libm.patch | 11 +++++++++++
squashfs_lzma.spec | 14 ++++++++------
2 files changed, 19 insertions(+), 6 deletions(-)
---
diff --git a/squashfs_lzma.spec b/squashfs_lzma.spec
index 8454d8e..2663320 100644
--- a/squashfs_lzma.spec
+++ b/squashfs_lzma.spec
@@ -13,7 +13,7 @@
%endif
%define origname squashfs
-%define rel 0.1
+%define rel 1
Summary: Set of tools which creates squashfs filesystem with lzma compression
Summary(pl.UTF-8): Zestaw narzędzi do tworzenia systemu plików squashfs z kompresją lzma
Name: squashfs_lzma
@@ -35,6 +35,7 @@ Patch3: squashfs_lzma-2.6.25.patch
Patch4: squashfs_lzma-sqlzma2u-3.3.patch
Patch5: squashfs_lzma-sqlzma2k-3.3.patch
Patch6: squashfs_lzma-2.6.28.patch
+Patch7: libm.patch
URL: http://www.squashfs-lzma.org/
BuildRequires: patchutils
%if %{with kernel}
@@ -104,12 +105,12 @@ Ten pakiet zawiera moduł jądra Linuksa.
#cp ~/sqlzma2k-3.3.patch .
%{__patch} -p1 < sqlzma1-457.patch
#{__patch} -p1 < sqlzma2u-3.3.patch
-%patch4 -p1
+%patch4 -p1
# in this patch all are new files except init/do_mounts_rd.c:
filterdiff -i '*/fs/squashfs/*' -i '*/include/linux/*' < kernel-patches/linux-2.6.27-rc4/squashfs3.4-patch | %{__patch} -p1
#{__patch} -p1 < sqlzma2k-3.3.patch
-%patch5 -p1
+%patch5 -p1
ln -s ../../sqlzma.h fs/squashfs
ln -s ../../sqmagic.h fs/squashfs
@@ -119,7 +120,8 @@ mv C/Compress/Lzma/kmod/* C/Compress/Lzma
sed -i 's at ../LzmaDecode.c at LzmaDecode.c@' C/Compress/Lzma/module.c
ln -s ../../../sqlzma.h C/Compress/Lzma
#patch3 -p1 # obsoleted for 3.4 at 2.6.27
-%patch6 -p1
+%patch6 -p1
+%patch7 -p1
%build
%if %{with userspace}
@@ -158,8 +160,8 @@ rm -rf $RPM_BUILD_ROOT
%if %{with userspace}
install -d $RPM_BUILD_ROOT%{_sbindir}
-install squashfs-tools/mksquashfs $RPM_BUILD_ROOT%{_sbindir}/mksquashfs_lzma
-install squashfs-tools/unsquashfs $RPM_BUILD_ROOT%{_sbindir}/unsquashfs_lzma
+install -p squashfs-tools/mksquashfs $RPM_BUILD_ROOT%{_sbindir}/mksquashfs_lzma
+install -p squashfs-tools/unsquashfs $RPM_BUILD_ROOT%{_sbindir}/unsquashfs_lzma
%endif
%if %{with kernel}
diff --git a/libm.patch b/libm.patch
new file mode 100644
index 0000000..ee4529a
--- /dev/null
+++ b/libm.patch
@@ -0,0 +1,11 @@
+--- squashfs3.4/squashfs-tools/Makefile~ 2015-03-03 19:59:49.000000000 +0200
++++ squashfs3.4/squashfs-tools/Makefile 2015-03-03 20:01:19.511808325 +0200
+@@ -12,7 +12,7 @@
+ DebugFlags = -g -Wall -Wno-unused-variable -O0 -UNDEBUG
+ endif
+ CFLAGS += -I${Sqlzma} -D_REENTRANT -DNDEBUG ${DebugFlags}
+-LDLIBS += -lz -L${LzmaAlone} -L${LzmaC}
++LDLIBS += -lz -lm -L${LzmaAlone} -L${LzmaC}
+ Tgt = mksquashfs unsquashfs
+
+ all: ${Tgt}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/squashfs_lzma.git/commitdiff/43ec8bb231be80b3dd1a913621d6802b45979e9a
More information about the pld-cvs-commit
mailing list