summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Drake <dsd@gentoo.org>2005-05-17 19:30:17 +0000
committerDaniel Drake <dsd@gentoo.org>2005-05-17 19:30:17 +0000
commitca3a4f784a7dc5d2d10184699807f16512a583d4 (patch)
tree524fb90d93a3780919b3b6b33be3ea0ace6c7c31 /sys-fs/cloop
parentusing genpatches-base, fixing several recent sec vulns by patching up to 2.6.... (diff)
downloadhistorical-ca3a4f784a7dc5d2d10184699807f16512a583d4.tar.gz
historical-ca3a4f784a7dc5d2d10184699807f16512a583d4.tar.bz2
historical-ca3a4f784a7dc5d2d10184699807f16512a583d4.zip
Fix compilation with Linux 2.4 headers thanks to Christophe Garault <gentoo@garault.org> in bug #90646
Package-Manager: portage-1.589-cvs
Diffstat (limited to 'sys-fs/cloop')
-rw-r--r--sys-fs/cloop/ChangeLog7
-rw-r--r--sys-fs/cloop/Manifest5
-rw-r--r--sys-fs/cloop/cloop-2.01.5-r1.ebuild10
-rw-r--r--sys-fs/cloop/files/cloop-2.01.5-netinet-gentoo.patch18
4 files changed, 29 insertions, 11 deletions
diff --git a/sys-fs/cloop/ChangeLog b/sys-fs/cloop/ChangeLog
index 9d7c11bd459d..dc66a9498551 100644
--- a/sys-fs/cloop/ChangeLog
+++ b/sys-fs/cloop/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-fs/cloop
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/cloop/ChangeLog,v 1.7 2005/04/27 11:26:02 genstef Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/cloop/ChangeLog,v 1.8 2005/05/17 19:30:17 dsd Exp $
+
+ 17 May 2005; Daniel Drake <dsd@gentoo.org>
+ +files/cloop-2.01.5-netinet-gentoo.patch, cloop-2.01.5-r1.ebuild:
+ Fix compilation with Linux 2.4 headers thanks to Christophe Garault
+ <gentoo@garault.org> in bug #90646
27 Apr 2005; Stefan Schweizer <genstef@gentoo.org>
-files/kernel-2.6.8-fs_h-fix.patch, -files/cloop.fix.patch,
diff --git a/sys-fs/cloop/Manifest b/sys-fs/cloop/Manifest
index 6066226c456d..ca882c503d28 100644
--- a/sys-fs/cloop/Manifest
+++ b/sys-fs/cloop/Manifest
@@ -1,8 +1,9 @@
-MD5 2d33326852e550e6a6da4d65bbae9ae7 cloop-2.01.5-r1.ebuild 1996
-MD5 fd0218795f4f2b6b5348dd2b7e0a49d9 ChangeLog 3118
+MD5 06f22b38961cce2906d9f50a3992c260 cloop-2.01.5-r1.ebuild 1811
+MD5 407218e1a57ad874b54055fe43ef963e ChangeLog 3335
MD5 6e89ba8198764bfd079a0cfa18dca593 metadata.xml 264
MD5 a2d63d27b9964865fe89d44549587504 files/cloop.fix-create_compressed_fs-segfault-on-amd64.patch 1091
MD5 eba344b1fcf93c086a762d9f059adf84 files/digest-cloop-2.01.5-r1 64
MD5 4666ce65a6ce33f0a2c449fcec7e0488 files/cloop.fix-7z-syntax-for-gcc-3.4.patch 2071
MD5 6ae2fe661ad5deb5e98a50537d06b43f files/cloop.fix-incompatible-kernel-2.6.7-and-later.patch 995
MD5 ab48f2b1094c297eaa04e42906bf652b files/cloop.fix-Makefile-for-kernel-2.6-and-amd64.patch 2121
+MD5 a4ba7f6242034c7d6253cb26c32c1dc1 files/cloop-2.01.5-netinet-gentoo.patch 535
diff --git a/sys-fs/cloop/cloop-2.01.5-r1.ebuild b/sys-fs/cloop/cloop-2.01.5-r1.ebuild
index ad57eb99d387..8616bae2c8c1 100644
--- a/sys-fs/cloop/cloop-2.01.5-r1.ebuild
+++ b/sys-fs/cloop/cloop-2.01.5-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/cloop/cloop-2.01.5-r1.ebuild,v 1.2 2005/04/27 11:26:02 genstef Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/cloop/cloop-2.01.5-r1.ebuild,v 1.3 2005/05/17 19:30:17 dsd Exp $
inherit linux-mod eutils versionator
@@ -33,16 +33,10 @@ src_unpack() {
cd ${S}
epatch ${FILESDIR}/cloop.fix-7z-syntax-for-gcc-3.4.patch
epatch ${FILESDIR}/cloop.fix-create_compressed_fs-segfault-on-amd64.patch
+ epatch ${FILESDIR}/${P}-netinet-gentoo.patch
# Debian uses conf.vars, everyone else uses .config
sed -i "s:conf.vars:.config:" Makefile
-
- # Remove erroneous 2.4 include
- has_version =sys-kernel/linux-headers-2.4.* && \
- sed -i "s:#include <netinet/in.h>::" \
- advancecomp-1.9_create_compressed_fs/advfs.cc \
- create_compressed_fs.c \
- extract_compressed_fs.c
}
src_install() {
diff --git a/sys-fs/cloop/files/cloop-2.01.5-netinet-gentoo.patch b/sys-fs/cloop/files/cloop-2.01.5-netinet-gentoo.patch
new file mode 100644
index 000000000000..4d7d73c8c334
--- /dev/null
+++ b/sys-fs/cloop/files/cloop-2.01.5-netinet-gentoo.patch
@@ -0,0 +1,18 @@
+--- cloop-2.01/advancecomp-1.9_create_compressed_fs/advfs.cc.orig 2005-05-17 20:19:15.000000000 +0100
++++ cloop-2.01/advancecomp-1.9_create_compressed_fs/advfs.cc 2005-05-17 20:19:36.000000000 +0100
+@@ -21,6 +21,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <sys/stat.h>
++#include <netinet/in.h>
+ #include <asm/byteorder.h>
+ #include <fcntl.h>
+ #include <zlib.h>
+@@ -31,7 +32,6 @@
+ #include "compress.h"
+ #include "siglock.h"
+ #define __OPTIMIZE__
+-#include <netinet/in.h>
+
+ #include "lib/mng.h"
+ #include "lib/endianrw.h"