SHA256
1
0
forked from pool/libXpm

Accepting request 1078729 from home:favogt:xpmsimpler

- Drop n_no-compress-on-sle.patch and set XPM_PATH_COMPRESS instead

OBS-URL: https://build.opensuse.org/request/show/1078729
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libXpm?expand=0&rev=24
This commit is contained in:
Stefan Dirsch 2023-04-12 15:47:35 +00:00 committed by Git OBS Bridge
parent a6d21eef27
commit 9d14d04f42
3 changed files with 8 additions and 26 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Apr 12 13:39:54 UTC 2023 - Fabian Vogt <fvogt@suse.com>
- Drop n_no-compress-on-sle.patch and set XPM_PATH_COMPRESS instead
-------------------------------------------------------------------
Wed Apr 12 11:59:25 UTC 2023 - Stefan Dirsch <sndirsch@suse.com>

View File

@ -30,7 +30,6 @@ Source: https://xorg.freedesktop.org/releases/individual/lib/%{name}-%{v
Source1: https://xorg.freedesktop.org/releases/individual/lib/%{name}-%{version}.tar.xz.sig
Source2: libXpm.keyring
Source9: baselibs.conf
Patch0: n_no-compress-on-sle.patch
BuildRequires: /usr/bin/gzip
BuildRequires: autoconf
BuildRequires: automake
@ -51,7 +50,8 @@ storing/retrieving X pixmaps to/from files.
%package -n %{lname}
Summary: X Pixmap image file format library
Group: System/Libraries
# Invokes 'gzip' and 'uncompress' at runtime. 'compress' is disabled by n_no-compress-on-sle.patch
# Invokes 'gzip' and 'uncompress' at runtime.
# 'compress' is not available on SLE and unlikely used.
Requires: /usr/bin/gzip
Requires: /usr/bin/uncompress
@ -91,6 +91,7 @@ regard to its format.
%build
autoreconf -fi
export XPM_PATH_COMPRESS=%{_bindir}/compress
%configure --disable-static
%make_build

View File

@ -1,24 +0,0 @@
diff -u -r libXpm-3.5.15.orig/configure.ac libXpm-3.5.15/configure.ac
--- libXpm-3.5.15.orig/configure.ac 2023-04-03 22:10:42.223223000 +0200
+++ libXpm-3.5.15/configure.ac 2023-04-03 22:11:35.264112000 +0200
@@ -74,7 +74,6 @@
if test x$OPEN_ZFILE = xno ; then
AC_DEFINE(NO_ZPIPE, 1, [Define to 1 to disable decompression via pipes])
else
- XPM_PATH_PROG([XPM_PATH_COMPRESS], [compress])
XPM_PATH_PROG([XPM_PATH_UNCOMPRESS], [uncompress])
XPM_PATH_PROG([XPM_PATH_GZIP], [gzip])
AC_CHECK_FUNCS([closefrom close_range], [break])
diff -u -r libXpm-3.5.15.orig/src/WrFFrI.c libXpm-3.5.15/src/WrFFrI.c
--- libXpm-3.5.15.orig/src/WrFFrI.c 2023-04-03 22:10:41.615310000 +0200
+++ libXpm-3.5.15/src/WrFFrI.c 2023-04-03 22:17:45.861160000 +0200
@@ -342,8 +342,7 @@
#ifndef NO_ZPIPE
len = strlen(filename);
if (len > 2 && !strcmp(".Z", filename + (len - 2))) {
- mdata->stream.file = xpmPipeThrough(fd, XPM_PATH_COMPRESS, NULL, "w");
- mdata->type = XPMPIPE;
+ mdata->stream.file = NULL;
} else if (len > 3 && !strcmp(".gz", filename + (len - 3))) {
mdata->stream.file = xpmPipeThrough(fd, XPM_PATH_GZIP, "-q", "w");
mdata->type = XPMPIPE;