summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/0001-Remove-the-definition-of-NOUNCRYPT.patch46
-rw-r--r--packaging/zlib.spec2
2 files changed, 48 insertions, 0 deletions
diff --git a/packaging/0001-Remove-the-definition-of-NOUNCRYPT.patch b/packaging/0001-Remove-the-definition-of-NOUNCRYPT.patch
new file mode 100644
index 0000000..834c16e
--- /dev/null
+++ b/packaging/0001-Remove-the-definition-of-NOUNCRYPT.patch
@@ -0,0 +1,46 @@
+From c3bd529aa71a18cceccb144ffd59c0a7956f1970 Mon Sep 17 00:00:00 2001
+From: DongHun Kwak <dh0128.kwak@samsung.com>
+Date: Tue, 3 Jul 2018 14:04:28 +0900
+Subject: [PATCH] Remove the definition of NOUNCRYPT
+
+https://stackoverflow.com/questions/6711173/how-to-use-unzopencurrentfilepassword
+
+[Model] All
+[BinType] AP
+[Customer] OPEN
+
+[Issue#] N/A
+[Request] N/A
+[Occurrence Version] N/A
+
+[Problem] password not supported at zlib
+[Cause & Measure] Remove definition NOUNCRYPT
+[Checking Method]
+
+[Team] Open Source Management and Setting Part
+[Developer] dh0128.kwak
+[Solution company] Samsung
+[Change Type] N/A
+
+Change-Id: I9c00895558e94306e847c841c9f7291b68ffadf5
+Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
+---
+ contrib/minizip/unzip.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/contrib/minizip/unzip.c b/contrib/minizip/unzip.c
+index bcfb941..b1cae82 100644
+--- a/contrib/minizip/unzip.c
++++ b/contrib/minizip/unzip.c
+@@ -69,7 +69,7 @@
+ #include <string.h>
+
+ #ifndef NOUNCRYPT
+- #define NOUNCRYPT
++//#define NOUNCRYPT
+ #endif
+
+ #include "zlib.h"
+--
+2.25.1
+
diff --git a/packaging/zlib.spec b/packaging/zlib.spec
index 2a40dd2..280817f 100644
--- a/packaging/zlib.spec
+++ b/packaging/zlib.spec
@@ -13,6 +13,7 @@ Source: http://zlib.net/zlib-%{version}.tar.bz2
Source1: LICENSE
Source2: baselibs.conf
Source1001: zlib.manifest
+Source1002: 0001-Remove-the-definition-of-NOUNCRYPT.patch
BuildRequires: pkgconfig
%description
@@ -65,6 +66,7 @@ developing applications which use minizip.
%setup -q
cp %{SOURCE1} .
cp %{SOURCE1001} .
+%{__patch} -p1 < %{SOURCE1002}
%build
export LDFLAGS="-Wl,-z,relro,-z,now"