Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4fcd5edb97 | ||
|
|
a804f36550 | ||
|
|
f9eba36ba9 | ||
|
|
59ddeac813 |
4 changed files with 22 additions and 22 deletions
0
.cvsignore → .gitignore
vendored
0
.cvsignore → .gitignore
vendored
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
||||||
# Makefile for source rpm: arj
|
|
||||||
# $Id$
|
|
||||||
NAME := arj
|
|
||||||
SPECFILE = $(firstword $(wildcard *.spec))
|
|
||||||
|
|
||||||
define find-makefile-common
|
|
||||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
|
||||||
|
|
||||||
ifeq ($(MAKEFILE_COMMON),)
|
|
||||||
# attept a checkout
|
|
||||||
define checkout-makefile-common
|
|
||||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
|
||||||
endif
|
|
||||||
|
|
||||||
include $(MAKEFILE_COMMON)
|
|
||||||
15
arj-3.10.22-custom-printf.patch
Normal file
15
arj-3.10.22-custom-printf.patch
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
Patch by Lubomir Rintel <lkundrak@v3.sk> for arj >= 3.10.22, which disables
|
||||||
|
the custom printf to avoid conflicting strnlen definition with the glibc
|
||||||
|
headers. By using custom printf (as in the past), we're completely loosing
|
||||||
|
all the _FORTIFY_SOURCE printf protections.
|
||||||
|
|
||||||
|
--- arj-3.10.22/fardata.c 2004-04-17 13:39:42.000000000 +0200
|
||||||
|
+++ arj-3.10.22/fardata.c.printf 2009-04-18 16:23:52.000000000 +0200
|
||||||
|
@@ -13,7 +13,6 @@
|
||||||
|
/* ASR fix 02/05/2003: need that regardless of COLOR_OUTPUT to support -jp
|
||||||
|
correctly */
|
||||||
|
#if SFX_LEVEL>=ARJ
|
||||||
|
- #define CUSTOM_PRINTF
|
||||||
|
#define CHUNK_SIZE 512 /* Size of the output block */
|
||||||
|
#define CHUNK_THRESHOLD (CHUNK_SIZE-256) /* Safety bound */
|
||||||
|
#endif
|
||||||
8
arj.spec
8
arj.spec
|
|
@ -1,7 +1,7 @@
|
||||||
Summary: Archiver for .arj files
|
Summary: Archiver for .arj files
|
||||||
Name: arj
|
Name: arj
|
||||||
Version: 3.10.22
|
Version: 3.10.22
|
||||||
Release: 7%{?dist}
|
Release: 8%{?dist}
|
||||||
License: GPL+
|
License: GPL+
|
||||||
Group: Applications/Archiving
|
Group: Applications/Archiving
|
||||||
URL: http://arj.sourceforge.net/
|
URL: http://arj.sourceforge.net/
|
||||||
|
|
@ -11,6 +11,7 @@ Source1: unarj.sh
|
||||||
Source2: unarj.1
|
Source2: unarj.1
|
||||||
Patch0: http://ftp.debian.org/debian/pool/main/a/%{name}/%{name}_%{version}-6.diff.gz
|
Patch0: http://ftp.debian.org/debian/pool/main/a/%{name}/%{name}_%{version}-6.diff.gz
|
||||||
Patch1: arj-3.10.22-missing-protos.patch
|
Patch1: arj-3.10.22-missing-protos.patch
|
||||||
|
Patch2: arj-3.10.22-custom-printf.patch
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
Provides: unarj = %{version}-%{release}
|
Provides: unarj = %{version}-%{release}
|
||||||
Obsoletes: unarj < 3
|
Obsoletes: unarj < 3
|
||||||
|
|
@ -26,6 +27,7 @@ Software, Inc.
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
%patch2 -p1
|
||||||
|
|
||||||
for i in debian/patches/00*.patch; do
|
for i in debian/patches/00*.patch; do
|
||||||
patch -p1 < $i
|
patch -p1 < $i
|
||||||
|
|
@ -67,6 +69,10 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
%{_mandir}/man1/*arj*1.*
|
%{_mandir}/man1/*arj*1.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Apr 18 2009 Robert Scheck <robert@fedoraproject.org> 3.10.22-8
|
||||||
|
- Added patch to disable the custom printf to avoid conflicting
|
||||||
|
strnlen definition with glibc headers (thanks to Lubomir Rintel)
|
||||||
|
|
||||||
* Mon Feb 23 2009 Robert Scheck <robert@fedoraproject.org> 3.10.22-7
|
* Mon Feb 23 2009 Robert Scheck <robert@fedoraproject.org> 3.10.22-7
|
||||||
- Rebuild against gcc 4.4 and rpm 4.6
|
- Rebuild against gcc 4.4 and rpm 4.6
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue