View | Details | Raw Unified | Return to bug 136795 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/home/emma/ports/sysutils/e2fsprogs/Makefile (-2 / +2 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME=	e2fsprogs
8
PORTNAME=	e2fsprogs
9
PORTVERSION=	1.41.5
9
PORTVERSION=	1.41.8
10
PORTREVISION?=	0
10
PORTREVISION?=	0
11
CATEGORIES?=	sysutils
11
CATEGORIES?=	sysutils
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE_EXTENDED}
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE_EXTENDED}
Lines 46-52 Link Here
46
46
47
PKGDEINSTALL=	${PKGINSTALL}
47
PKGDEINSTALL=	${PKGINSTALL}
48
48
49
MAKE_JOBS=SAFE=	yes
49
MAKE_JOBS_SAFE=	yes
50
50
51
.include <bsd.port.pre.mk>
51
.include <bsd.port.pre.mk>
52
52
(-)/usr/home/emma/ports/sysutils/e2fsprogs/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (e2fsprogs-1.41.5.tar.gz) = e218df6c84fc17c1126d31de9472a76c
1
MD5 (e2fsprogs-1.41.8.tar.gz) = 6708cc8e484809fc5cfb232882e48489
2
SHA256 (e2fsprogs-1.41.5.tar.gz) = b3d7d0e1058a3740ddae83d47285bd9dce161eec9e299dde7996ed721da32198
2
SHA256 (e2fsprogs-1.41.8.tar.gz) = 782c9f281ca970d176c61759465beec12b40c7793bb5fa52c8d9a61741e33801
3
SIZE (e2fsprogs-1.41.5.tar.gz) = 4415819
3
SIZE (e2fsprogs-1.41.8.tar.gz) = 4436913
(-)/usr/home/emma/ports/sysutils/e2fsprogs/files/patch-configure (+9 lines)
Lines 9-11 Link Here
9
 stdlib.h string.h unistd.h sys/param.h
9
 stdlib.h string.h unistd.h sys/param.h
10
 do
10
 do
11
 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11
 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12
@@ -16592,7 +16592,7 @@
13
 	lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
14
 	misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15
 	debugfs/Makefile tests/Makefile tests/progs/Makefile \
16
-	resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
17
+	resize/Makefile doc/Makefile intl/Makefile intl/libgnuintl.h po/Makefile.in ; do
18
 	if test -d `dirname ${srcdir}/$i` ; then
19
 		outlist="$outlist $i"
20
 	fi
(-)/usr/home/emma/ports/sysutils/e2fsprogs/files/patch-intl_Makefile.in (+25 lines)
Line 0 Link Here
1
--- ./intl/Makefile.in.orig	2009-07-02 04:46:40.000000000 +0200
2
+++ ./intl/Makefile.in	2009-07-15 16:36:29.000000000 +0200
3
@@ -43,6 +43,22 @@
4
 MKINSTALLDIRS = @MKINSTALLDIRS@
5
 mkinstalldirs = $(SHELL) $(MKINSTALLDIRS)
6
 
7
+@SET_MAKE@
8
+
9
+@ifGNUmake@ V =
10
+@ifGNUmake@ ifeq ($(strip $(V)),)
11
+@ifGNUmake@ #  E = @echo
12
+@ifGNUmake@ #  Q = @
13
+@ifGNUmake@    E = @E@
14
+@ifGNUmake@    Q = @Q@
15
+@ifGNUmake@ else
16
+@ifGNUmake@    E = @\#
17
+@ifGNUmake@    Q =
18
+@ifGNUmake@ endif
19
+
20
+@ifNotGNUmake@ E = @E@
21
+@ifNotGNUmake@ Q = @Q@
22
+
23
 l = @INTL_LIBTOOL_SUFFIX_PREFIX@
24
 
25
 AR = ar
(-)/usr/home/emma/ports/sysutils/e2fsprogs/files/patch-misc_Makefile.in (-14 / +11 lines)
Lines 1-5 Link Here
1
--- a/misc/Makefile.in.orig	2009-04-22 14:59:33.000000000 +0200
1
--- a/misc/Makefile.in.orig	2009-07-11 21:25:17.000000000 +0200
2
+++ b/misc/Makefile.in	2009-04-24 09:47:25.000000000 +0200
2
+++ b/misc/Makefile.in	2009-07-15 15:56:29.000000000 +0200
3
@@ -25,14 +25,14 @@
3
@@ -25,14 +25,14 @@
4
 
4
 
5
 SPROGS=		mke2fs badblocks tune2fs dumpe2fs $(BLKID_PROG) logsave \
5
 SPROGS=		mke2fs badblocks tune2fs dumpe2fs $(BLKID_PROG) logsave \
Lines 12-29 Link Here
12
+			logsave.8 e2undo.8 @FSCK_MAN@
12
+			logsave.8 e2undo.8 @FSCK_MAN@
13
 FMANPAGES=	mke2fs.conf.5
13
 FMANPAGES=	mke2fs.conf.5
14
 
14
 
15
-UPROGS=		chattr lsattr uuidgen
15
-UPROGS=		chattr lsattr @UUID_CMT@ uuidgen
16
-UMANPAGES=	chattr.1 lsattr.1 uuidgen.1
16
-UMANPAGES=	chattr.1 lsattr.1 @UUID_CMT@ uuidgen.1
17
+UPROGS=		chattr lsattr
17
+UPROGS=		chattr lsattr
18
+UMANPAGES=	chattr.1 lsattr.1
18
+UMANPAGES=	chattr.1 lsattr.1
19
 
19
 
20
 LPROGS=		@E2INITRD_PROG@
20
 LPROGS=		@E2INITRD_PROG@
21
 
21
 
22
@@ -456,35 +456,10 @@
22
@@ -457,34 +457,9 @@
23
 		echo "	INSTALL_DATA $(man5dir)/$$i"; \
23
 		echo "	INSTALL_DATA $(man5dir)/$$i"; \
24
 		$(INSTALL_DATA) $$i $(DESTDIR)$(man5dir)/$$i; \
24
 		$(INSTALL_DATA) $$i $(DESTDIR)$(man5dir)/$$i; \
25
 	done
25
 	done
26
-	@if test -f $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; then \
26
-	$(Q) if test -f $(DESTDIR)$(root_sysconfdir)/mke2fs.conf; then \
27
-		if cmp -s $(DESTDIR)$(root_sysconfdir)/mke2fs.conf \
27
-		if cmp -s $(DESTDIR)$(root_sysconfdir)/mke2fs.conf \
28
-			$(srcdir)/mke2fs.conf; then \
28
-			$(srcdir)/mke2fs.conf; then \
29
-			true; \
29
-			true; \
Lines 48-61 Link Here
48
-		fi; \
48
-		fi; \
49
-	else \
49
-	else \
50
-		echo "	INSTALL_DATA $(root_sysconfdir)/mke2fs.conf"; \
50
-		echo "	INSTALL_DATA $(root_sysconfdir)/mke2fs.conf"; \
51
-		$(INSTALL_DATA) $(srcdir)/mke2fs.conf \
51
+	$(Q) echo "	INSTALL_DATA $(root_sysconfdir)/mke2fs.conf"; \
52
 		$(INSTALL_DATA) $(srcdir)/mke2fs.conf \
52
-			$(DESTDIR)$(root_sysconfdir)/mke2fs.conf; \
53
-			$(DESTDIR)$(root_sysconfdir)/mke2fs.conf; \
53
-	fi
54
-	fi
54
-
55
+			$(DESTDIR)$(root_sysconfdir)/mke2fs.conf.dist
55
+	echo "	INSTALL_DATA $(root_sysconfdir)/mke2fs.conf"; \
56
 
56
+  	$(INSTALL_DATA) $(srcdir)/mke2fs.conf \
57
+		$(DESTDIR)$(root_sysconfdir)/mke2fs.conf.dist
58
+ 
59
 install-strip: install
57
 install-strip: install
60
 	@for i in $(SPROGS); do \
58
 	$(Q) for i in $(SPROGS); do \
61
 		echo "	STRIP $(root_sbindir)/$$i"; \
(-)/usr/home/emma/ports/sysutils/e2fsprogs/files/patch-uuid-loop (-109 lines)
Lines 1-109 Link Here
1
--- /dev/null
2
+++ b/lib/read_all.h
3
@@ -0,0 +1,32 @@
4
+/*
5
+ * read_all - a read variant that masks EAGAIN and EINTR.
6
+ * This function tries hard to make sure to read the complete requested
7
+ * length, and if it hits EOF while reading, it returns 0.
8
+ *
9
+ * Originally written by Theodore Y. Ts'o.
10
+ * Factored out from misc/uuidd.c and lib/uuid/gen_uuid.c
11
+ * and bugfixed by Matthias Andree, 2009.
12
+ */
13
+
14
+ssize_t read_all(int fd, char *buf, size_t count)
15
+{
16
+	ssize_t ret;
17
+	ssize_t c = 0;
18
+
19
+	memset(buf, 0, count);
20
+	while (count > 0) {
21
+		ret = read(fd, buf, count);
22
+		if (ret == -1) {
23
+			if ((errno == EAGAIN) || (errno == EINTR))
24
+				continue;
25
+			return -1;
26
+		}
27
+		if (ret == 0) {
28
+			return c;
29
+		}
30
+		count -= ret;
31
+		buf += ret;
32
+		c += ret;
33
+	}
34
+	return c;
35
+}
36
--- a/lib/uuid/Makefile.in
37
+++ b/lib/uuid/Makefile.in
38
@@ -190,7 +190,7 @@ clear.o: $(srcdir)/clear.c $(srcdir)/uuidP.h $(srcdir)/uuid.h
39
 compare.o: $(srcdir)/compare.c $(srcdir)/uuidP.h $(srcdir)/uuid.h
40
 copy.o: $(srcdir)/copy.c $(srcdir)/uuidP.h $(srcdir)/uuid.h
41
 gen_uuid.o: $(srcdir)/gen_uuid.c $(srcdir)/uuidP.h $(srcdir)/uuid.h \
42
- $(srcdir)/uuidd.h
43
+ $(srcdir)/uuidd.h $(top_srcdir)/lib/read_all.h
44
 isnull.o: $(srcdir)/isnull.c $(srcdir)/uuidP.h $(srcdir)/uuid.h
45
 pack.o: $(srcdir)/pack.c $(srcdir)/uuidP.h $(srcdir)/uuid.h
46
 parse.o: $(srcdir)/parse.c $(srcdir)/uuidP.h $(srcdir)/uuid.h
47
--- a/lib/uuid/gen_uuid.c
48
+++ b/lib/uuid/gen_uuid.c
49
@@ -415,25 +415,11 @@ try_again:
50
 	return 0;
51
 }
52
 
53
-static ssize_t read_all(int fd, char *buf, size_t count)
54
-{
55
-	ssize_t ret;
56
-	ssize_t c = 0;
57
-
58
-	memset(buf, 0, count);
59
-	while (count > 0) {
60
-		ret = read(fd, buf, count);
61
-		if (ret < 0) {
62
-			if ((errno == EAGAIN) || (errno == EINTR))
63
-				continue;
64
-			return -1;
65
-		}
66
-		count -= ret;
67
-		buf += ret;
68
-		c += ret;
69
-	}
70
-	return c;
71
-}
72
+/*
73
+ * Import read_all function and make it static.
74
+ */
75
+static
76
+#include "read_all.h"
77
 
78
 /*
79
  * Close all file descriptors
80
--- a/misc/uuidd.c
81
+++ b/misc/uuidd.c
82
@@ -85,25 +85,8 @@ static void create_daemon(void)
83
 		die("setreuid");
84
 }
85
 
86
-static int read_all(int fd, char *buf, size_t count)
87
-{
88
-	ssize_t ret;
89
-	int c = 0;
90
-
91
-	memset(buf, 0, count);
92
-	while (count > 0) {
93
-		ret = read(fd, buf, count);
94
-		if (ret < 0) {
95
-			if ((errno == EAGAIN) || (errno == EINTR))
96
-				continue;
97
-			return -1;
98
-		}
99
-		count -= ret;
100
-		buf += ret;
101
-		c += ret;
102
-	}
103
-	return c;
104
-}
105
+static
106
+#include "read_all.h"
107
 
108
 static int write_all(int fd, char *buf, size_t count)
109
 {
(-)/usr/home/emma/ports/sysutils/e2fsprogs/files/patch-version.h (+8 lines)
Line 0 Link Here
1
--- ./version.h~	2009-07-11 23:24:37.000000000 +0200
2
+++ ./version.h	2009-07-15 16:47:11.000000000 +0200
3
@@ -8,4 +8,4 @@
4
  */
5
 
6
 #define E2FSPROGS_VERSION "1.41.8"
7
-#define E2FSPROGS_DATE "11-July-2009"
8
+#define E2FSPROGS_DATE "11-Jul-2009"

Return to bug 136795