[packages/efax] Rel 5

arekm arekm at pld-linux.org
Thu May 21 15:29:20 CEST 2026


commit 7319665a5bf5e21660fb6f4fa8c6fcf37aef8a5b
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu May 21 15:29:04 2026 +0200

    Rel 5

 efax-fno-common.patch      | 23 +++++++++++++++++++++++
 efax-format-security.patch | 15 +++++++++++++++
 efax-nostrip.patch         | 14 ++++++++++++++
 efax.spec                  | 10 ++++++++--
 4 files changed, 60 insertions(+), 2 deletions(-)
---
diff --git a/efax.spec b/efax.spec
index d3f892d..83b9714 100644
--- a/efax.spec
+++ b/efax.spec
@@ -5,13 +5,16 @@ Summary(pl.UTF-8):	Wysyłanie i odbieranie faksów modemami klasy 1 oraz 2
 Summary(tr.UTF-8):	1 veya 2 sınıfı modemler üzerinden fax gönderir
 Name:		efax
 Version:	0.9a
-Release:	4
+Release:	5
 License:	GPL
 Group:		Applications/Communications
 Source0:	http://www.cce.com/efax/download/%{name}-%{version}-001114.tar.gz
 # Source0-md5:	28abef47d9700eb1c20bf5770565aa7d
 Patch0:		%{name}.patch
 Patch1:		%{name}-nullptr.patch
+Patch2:		%{name}-format-security.patch
+Patch3:		%{name}-fno-common.patch
+Patch4:		%{name}-nostrip.patch
 URL:		http://www.cce.com/efax/
 Requires:	ghostscript
 Requires:	setup >= 2.6.1-1
@@ -44,9 +47,12 @@ bulunmaktadır.
 %setup -q -n %{name}-%{version}-001114
 %patch -P0 -p1
 %patch -P1 -p1
+%patch -P2 -p1
+%patch -P3 -p1
+%patch -P4 -p1
 
 %build
-%{__make} CFLAGS="%{rpmcflags} -ansi" LDFLAGS="%{rpmldflags}"
+%{__make} CFLAGS="%{rpmcflags} %{rpmcppflags} -ansi" LDFLAGS="%{rpmldflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
diff --git a/efax-fno-common.patch b/efax-fno-common.patch
new file mode 100644
index 0000000..5be7d86
--- /dev/null
+++ b/efax-fno-common.patch
@@ -0,0 +1,23 @@
+--- efax-0.9a-001114/efaxlib.h.orig
++++ efax-0.9a-001114/efaxlib.h
+@@ -208,7 +208,7 @@
+ /* Bit reversal lookup tables (note that the `normalbits' array
+    is the one actually used for the bit reversal.  */
+
+-uchar reversebits [ 256 ], normalbits [ 256 ] ;
++extern uchar reversebits [ 256 ], normalbits [ 256 ] ;
+
+ void initbittab(void) ;
+
+--- efax-0.9a-001114/efaxlib.c.orig
++++ efax-0.9a-001114/efaxlib.c
+@@ -23,6 +23,9 @@
+ extern t4tab wtab [ ( 64 + 27 + 13 ) + 1 ] ; /* T.4 coding tables */
+ extern t4tab btab [ ( 64 + 27 + 13 ) + 1 ] ;
+
++/* Bit reversal lookup tables.  */
++uchar reversebits [ 256 ], normalbits [ 256 ] ;
++
+ short short256 = 256 ;		/* for endian-ness detection */
+
+ /* Make sure printf strings have only %d escapes and n or fewer
diff --git a/efax-format-security.patch b/efax-format-security.patch
new file mode 100644
index 0000000..2f7947b
--- /dev/null
+++ b/efax-format-security.patch
@@ -0,0 +1,15 @@
+--- efax-0.9a-001114/efaxlib.c.orig
++++ efax-0.9a-001114/efaxlib.c
+@@ -1784,10 +1784,10 @@
+       tiffinit(f) ;		/* rewind & update TIFF header */
+       break ;
+     case O_PCL:
+-      fprintf ( f->f, PCLEND ) ;
++      fputs ( PCLEND, f->f ) ;
+       break ;
+     case O_PS:
+-      fprintf ( f->f, PSPAGEEND ) ;
++      fputs ( PSPAGEEND, f->f ) ;
+       if ( f->fname || page<0 ) fprintf ( f->f, PSEND, f->lastpageno ) ;
+       break ;
+     case O_PCX:
diff --git a/efax-nostrip.patch b/efax-nostrip.patch
new file mode 100644
index 0000000..d45caba
--- /dev/null
+++ b/efax-nostrip.patch
@@ -0,0 +1,14 @@
+--- efax-0.9a-001114/Makefile.orig
++++ efax-0.9a-001114/Makefile
+@@ -23,11 +23,9 @@
+
+ efax:	efax.o efaxlib.o efaxio.o efaxos.o efaxmsg.o
+ 	$(CC) -o efax $(LDFLAGS) efax.o efaxlib.o efaxio.o efaxos.o efaxmsg.o
+-	strip efax
+
+ efix:	efix.o efaxlib.o efaxmsg.o
+ 	$(CC) -o efix $(LDFLAGS) efix.o efaxlib.o efaxmsg.o
+-	strip efix
+
+ install:
+ 	cp fax efax efix $(BINDIR)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/efax.git/commitdiff/7319665a5bf5e21660fb6f4fa8c6fcf37aef8a5b



More information about the pld-cvs-commit mailing list