[PATCH] sysutils/e2fsprogs: update to 1.35.w20040131, take maintainership

Matthias Andree matthias.andree at gmx.de
Sun Feb 1 19:20:54 PST 2004


>Submitter-Id:	current-users
>Originator:	Matthias Andree
>Organization:	
>Confidential:	no 
>Synopsis:	[PATCH] sysutils/e2fsprogs: update to 1.35.w20040131, take maintainership
>Severity:	non-critical
>Priority:	low
>Category:	ports 
>Class:		update
>Release:	FreeBSD 4.9-STABLE i386
>Environment:
System: FreeBSD libertas.emma.line.org 4.9-STABLE FreeBSD 4.9-STABLE #78: Wed Jan 28 22:34:32 CET 2004
>Description:
- Update to 1.35.w20040131
  some FreeBSD and other bugfixing has gone on behind the scenes,
  I'd submitted some patches to the upstream
  This version actually works - tested on 4-STABLE and 5-CURRENT x86 as of late
  January.
- Take maintainership
- run test suite as part of the build
- support -DDISABLE_NLS to compile without gettext
- clean out files/, no longer needed - COMMITTER, please remember to "cvs rm"!

Port maintainer (ports at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.50
>How-To-Repeat:
>Fix:

--- e2fsprogs-1.35.w20040131.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/sysutils/e2fsprogs/Makefile /usr/home/emma/e2fsprogs/Makefile
--- /usr/ports/sysutils/e2fsprogs/Makefile	Mon Sep  1 22:11:10 2003
+++ /usr/home/emma/e2fsprogs/Makefile	Mon Feb  2 03:56:33 2004
@@ -6,40 +6,72 @@
 #
 
 PORTNAME=	e2fsprogs
-PORTVERSION=	1.32
+PORTVERSION=	1.35.w20040131
 CATEGORIES=	sysutils
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
+DISTNAME=	${PORTNAME}-1.35-WIP-0131
 
-MAINTAINER=	ports at FreeBSD.org
-COMMENT=	A set of utilities and library to manipulate an ext2 filesystem
+MAINTAINER=	matthias.andree at gmx.de
+COMMENT=	Utilities and library to manipulate an ext2 or ext3 filesystem
+
+.if !defined(DISABLE_NLS)
+LIB_DEPENDS=	intl.5:${PORTSDIR}/devel/gettext-old
+.endif
+
+WRKSRC=		${WRKDIR}/${PORTNAME}-1.35
 
 USE_REINPLACE=	yes
 USE_GMAKE=	yes
 INSTALLS_SHLIB=	yes
+NO_FILTER_SHLIBS=	yes
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--enable-elf-shlibs
-CONFIGURE_ENV=	CPPFLAGS="-Derrcode_t=long"
+CONFIGURE_ARGS=	--enable-elf-shlibs --disable-fsck "--with-ldopts=-L${LOCALBASE}/lib"
+CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include"
+.if defined(DISABLE_NLS)
+CONFIGURE_ARGS+=	--disable-nls
+PLIST_SUB=	NLS="@comment "
+.else
+MAKE_ARGS+=	STATIC_LIBS="../lib/libext2fs.a ../lib/libcom_err.a ../lib/libblkid.a  ../lib/libuuid.a ${LOCALBASE}/lib/libintl.a ${LOCALBASE}/lib/libiconv.a"
+PLIST_SUB=	NLS=""
+.endif
 
 MAN1=	chattr.1 lsattr.1 uuidgen.1
-MAN8=	badblocks.8 debugfs.8 dumpe2fs.8 e2fsck.8 e2image.8 e2label.8 fsck.8 \
-	findfs.8 mke2fs.8 mklost+found.8 resize2fs.8 tune2fs.8 \
-	fsck.ext2.8 fsck.ext3.8 mkfs.ext2.8 mkfs.ext3.8
+MAN8=	badblocks.8 debugfs.8 dumpe2fs.8 e2fsck.8 e2image.8 e2label.8 \
+	mke2fs.8 mklost+found.8 resize2fs.8 tune2fs.8 \
+	fsck.ext2.8 fsck.ext3.8 mkfs.ext2.8 mkfs.ext3.8 \
+	findfs.8 blkid.8 logsave.8 filefrag.8
+
+pre-everything::
+	@${ECHO_CMD} "-------------------------------------------------------------"
+	@${ECHO_CMD} "Use -DDISABLE_NLS to build without national language support."
+	@${ECHO_CMD} "-------------------------------------------------------------"
 
 post-patch:
-	@${FIND} ${WRKSRC} -name "*.[ch]" | ${XARGS} ${CHMOD} 644
-	@${FIND} ${WRKSRC} -name "*.[ch]" | ${XARGS} ${REINPLACE_CMD} -e \
-		's|LIST_HEAD|LIN_LST_HEAD|g ; \
-		 s|et/com_err.h|com_err.h|g ; s|<malloc.h>|<stdlib.h>|'
-
-pre-build:
-	@cd ${WRKSRC}/lib/et && ${GMAKE}
-	@cd ${WRKSRC}/lib/ss && ${GMAKE}
+	${REINPLACE_CMD} -e 's|-DRESOURCE_TRACK||' ${WRKSRC}/e2fsck/Makefile.in
+	${GUNZIP_CMD} ${WRKSRC}/tests/m_*/expect*.gz
+	${REINPLACE_CMD} -e 's|OS type: Linux|OS type: (unknown os)|' \
+	-e 's|Filesystem OS type:       Linux|Filesystem OS type:       unknown|' \
+	-e 's|group root|group wheel|' \
+	-e '/Exit status is 0/ N;s/Exit status is 0\n/Exit status is 0/' \
+	${WRKSRC}/tests/m_*/expect.1
+
+post-extract:
+	${CHMOD} u+w ${WRKSRC}/po/*.po ${WRKSRC}/po/*.pot
+
+post-build:
+	cd ${WRKSRC}/tests && ${GMAKE} check
 
 post-install:
-	@${MKDIR} ${PREFIX}/include/ext2fs
-	@${INSTALL_DATA} ${WRKSRC}/lib/ext2fs/*.h ${PREFIX}/include/ext2fs
-	@${MKDIR} ${PREFIX}/include/uuid
-	@${INSTALL_DATA} ${WRKSRC}/lib/uuid/*.h ${PREFIX}/include/uuid
+	${INSTALL_PROGRAM} ${WRKSRC}/e2fsck/e2fsck.shared ${PREFIX}/sbin/e2fsck
+	${INSTALL_PROGRAM} ${WRKSRC}/e2fsck/e2fsck.static ${PREFIX}/sbin/e2fsck.static
+	${LN} 2>/dev/null ${PREFIX}/sbin/e2fsck.static /sbin/fsck_ext2fs || ${CP} -n -p ${PREFIX}/sbin/e2fsck.static /sbin/fsck_ext2fs
+	${MKDIR} ${PREFIX}/include/ext2fs
+	${INSTALL_DATA} ${WRKSRC}/lib/ext2fs/*.h ${PREFIX}/include/ext2fs/
+	${MKDIR} ${PREFIX}/include/uuid
+	${INSTALL_DATA} ${WRKSRC}/lib/uuid/*.h ${PREFIX}/include/uuid/
+.for i in e2p ext2fs uuid
+	${INSTALL_DATA} ${WRKSRC}/lib/${i}/lib${i}.a ${PREFIX}/lib/
+.endfor
 
 .include <bsd.port.mk>
diff -ruN --exclude=CVS /usr/ports/sysutils/e2fsprogs/distinfo /usr/home/emma/e2fsprogs/distinfo
--- /usr/ports/sysutils/e2fsprogs/distinfo	Fri Jan 30 21:11:44 2004
+++ /usr/home/emma/e2fsprogs/distinfo	Mon Feb  2 02:32:42 2004
@@ -1,2 +1,2 @@
-MD5 (e2fsprogs-1.32.tar.gz) = a7ced9d6edaba3a000ccc5200e09b90d
-SIZE (e2fsprogs-1.32.tar.gz) = 2894603
+MD5 (e2fsprogs-1.35-WIP-0131.tar.gz) = eccc46cd55d8295d686cf5ac6bbc3784
+SIZE (e2fsprogs-1.35-WIP-0131.tar.gz) = 3123309
diff -ruN --exclude=CVS /usr/ports/sysutils/e2fsprogs/files/patch-MCONFIG.in /usr/home/emma/e2fsprogs/files/patch-MCONFIG.in
--- /usr/ports/sysutils/e2fsprogs/files/patch-MCONFIG.in	Mon Sep  1 22:11:10 2003
+++ /usr/home/emma/e2fsprogs/files/patch-MCONFIG.in	Thu Jan  1 01:00:00 1970
@@ -1,12 +0,0 @@
-$FreeBSD: ports/sysutils/e2fsprogs/files/patch-MCONFIG.in,v 1.3 2003/08/31 10:42:37 obrien Exp $
-
---- MCONFIG.in.orig	Thu Oct 31 00:49:21 2002
-+++ MCONFIG.in	Wed Aug 27 20:00:17 2003
-@@ -64 +64 @@
--LIBCOM_ERR = $(LIB)/libcom_err at LIB_EXT@
-+LIBCOM_ERR = /usr/lib/libcom_err.so
-@@ -70,2 +70,2 @@
--STATIC_LIBSS = $(LIB)/libss at STATIC_LIB_EXT@
--STATIC_LIBCOM_ERR = $(LIB)/libcom_err at STATIC_LIB_EXT@
-+STATIC_LIBSS = STATIC_LIBSS = $(LIB)/libss at STATIC_LIB_EXT@
-+STATIC_LIBCOM_ERR = /usr/lib/libcom_err.a
diff -ruN --exclude=CVS /usr/ports/sysutils/e2fsprogs/files/patch-Makefile.in /usr/home/emma/e2fsprogs/files/patch-Makefile.in
--- /usr/ports/sysutils/e2fsprogs/files/patch-Makefile.in	Mon Sep  1 22:11:10 2003
+++ /usr/home/emma/e2fsprogs/files/patch-Makefile.in	Thu Jan  1 01:00:00 1970
@@ -1,7 +0,0 @@
-$FreeBSD: ports/sysutils/e2fsprogs/files/patch-Makefile.in,v 1.2 2003/08/31 10:42:37 obrien Exp $
-
---- Makefile.in.orig	Wed Jul 23 06:08:04 2003
-+++ Makefile.in	Wed Aug 27 10:52:04 2003
-@@ -14 +14 @@
--LIB_SUBDIRS=lib/et lib/ss lib/e2p lib/ext2fs lib/uuid lib/blkid intl
-+LIB_SUBDIRS=              lib/e2p lib/ext2fs lib/uuid lib/blkid intl
diff -ruN --exclude=CVS /usr/ports/sysutils/e2fsprogs/files/patch-debugfs::Makefile.in /usr/home/emma/e2fsprogs/files/patch-debugfs::Makefile.in
--- /usr/ports/sysutils/e2fsprogs/files/patch-debugfs::Makefile.in	Fri Aug 23 17:20:10 2002
+++ /usr/home/emma/e2fsprogs/files/patch-debugfs::Makefile.in	Thu Jan  1 01:00:00 1970
@@ -1,17 +0,0 @@
-
-$FreeBSD: ports/sysutils/e2fsprogs/files/patch-debugfs::Makefile.in,v 1.2 2002/08/04 07:27:59 clive Exp $
-
---- debugfs/Makefile.in.orig	Sat Jun 23 07:25:59 2001
-+++ debugfs/Makefile.in	Tue Jul  3 18:49:18 2001
-@@ -75,9 +75,9 @@
- # the Makefile.in file
- #
- debug_cmds.o: debug_cmds.c $(top_srcdir)/lib/ss/ss.h \
-- $(top_builddir)/lib/ss/ss_err.h
-+
- debugfs.o: $(srcdir)/debugfs.c $(top_srcdir)/lib/et/com_err.h \
-- $(top_srcdir)/lib/ss/ss.h $(top_builddir)/lib/ss/ss_err.h \
-+ $(top_srcdir)/lib/ss/ss.h \
-  $(srcdir)/debugfs.h $(top_srcdir)/lib/ext2fs/ext2_fs.h \
-  $(top_builddir)/lib/ext2fs/ext2_types.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
-  $(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
diff -ruN --exclude=CVS /usr/ports/sysutils/e2fsprogs/files/patch-e2fsck::journal.c /usr/home/emma/e2fsprogs/files/patch-e2fsck::journal.c
--- /usr/ports/sysutils/e2fsprogs/files/patch-e2fsck::journal.c	Tue Jul  3 20:13:14 2001
+++ /usr/home/emma/e2fsprogs/files/patch-e2fsck::journal.c	Thu Jan  1 01:00:00 1970
@@ -1,14 +0,0 @@
-
-$FreeBSD: ports/sysutils/e2fsprogs/files/patch-e2fsck::journal.c,v 1.1 2001/07/03 18:13:14 sobomax Exp $
-
---- e2fsck/journal.c	2001/07/03 14:35:01	1.1
-+++ e2fsck/journal.c	2001/07/03 14:35:13
-@@ -13,6 +13,8 @@
-  */
- 
- #ifdef HAVE_SYS_MOUNT_H
-+#include <sys/param.h>
-+#include <sys/types.h>
- #include <sys/mount.h>
- #define MNT_FL (MS_MGC_VAL | MS_RDONLY)
- #endif
diff -ruN --exclude=CVS /usr/ports/sysutils/e2fsprogs/files/patch-intl%Makefile.in /usr/home/emma/e2fsprogs/files/patch-intl%Makefile.in
--- /usr/ports/sysutils/e2fsprogs/files/patch-intl%Makefile.in	Sun Aug 31 12:42:37 2003
+++ /usr/home/emma/e2fsprogs/files/patch-intl%Makefile.in	Thu Jan  1 01:00:00 1970
@@ -1,10 +0,0 @@
-$FreeBSD: ports/sysutils/e2fsprogs/files/patch-intl%Makefile.in,v 1.1 2003/08/31 10:42:37 obrien Exp $
-
---- intl/Makefile.in.orig	Sun Feb 24 13:03:59 2002
-+++ intl/Makefile.in	Sun Aug 31 02:58:10 2003
-@@ -142,4 +142,5 @@
- # Define this as empty until I found a useful application.
- installcheck:
-+install-shlibs:
- 
- uninstall:
diff -ruN --exclude=CVS /usr/ports/sysutils/e2fsprogs/files/patch-lib::Makefile.elf-lib /usr/home/emma/e2fsprogs/files/patch-lib::Makefile.elf-lib
--- /usr/ports/sysutils/e2fsprogs/files/patch-lib::Makefile.elf-lib	Tue Jul  3 20:13:14 2001
+++ /usr/home/emma/e2fsprogs/files/patch-lib::Makefile.elf-lib	Thu Jan  1 01:00:00 1970
@@ -1,22 +0,0 @@
-
-$FreeBSD: ports/sysutils/e2fsprogs/files/patch-lib::Makefile.elf-lib,v 1.1 2001/07/03 18:13:14 sobomax Exp $
-
---- lib/Makefile.elf-lib.orig	Sat Jun 23 07:25:59 2001
-+++ lib/Makefile.elf-lib	Tue Jul  3 18:57:04 2001
-@@ -39,13 +39,12 @@
- installdirs:: installdirs-elf-lib
- 
- install-shlibs install:: $(ELF_LIB) installdirs-elf-lib
--	$(INSTALL_PROGRAM) $(ELF_LIB) $(DESTDIR)$(ELF_INSTALL_DIR)/$(ELF_LIB)
-+	$(INSTALL_PROGRAM) $(ELF_LIB) $(DESTDIR)$(ELF_INSTALL_DIR)/$(ELF_SONAME)
-+	$(INSTALL_DATA) $(ELF_IMAGE).a $(DESTDIR)$(ELF_INSTALL_DIR)/
- 	$(STRIP) --strip-debug \
--		$(DESTDIR)$(ELF_INSTALL_DIR)/$(ELF_LIB)
--	$(LN_S) -f $(ELF_LIB) $(DESTDIR)$(ELF_INSTALL_DIR)/$(ELF_SONAME)
-+		$(DESTDIR)$(ELF_INSTALL_DIR)/$(ELF_SONAME)
- 	$(LN_S) -f $(ELF_INSTALL_DIR)/$(ELF_SONAME) \
- 		$(DESTDIR)$(libdir)/$(ELF_IMAGE).so
--	-$(LDCONFIG)
- 
- uninstall-shlibs uninstall::
- 	$(RM) -f $(DESTDIR)$(ELF_INSTALL_DIR)/$(ELF_LIB) \
diff -ruN --exclude=CVS /usr/ports/sysutils/e2fsprogs/files/patch-lib::ext2fs::Makefile.in /usr/home/emma/e2fsprogs/files/patch-lib::ext2fs::Makefile.in
--- /usr/ports/sysutils/e2fsprogs/files/patch-lib::ext2fs::Makefile.in	Mon Sep  1 22:11:10 2003
+++ /usr/home/emma/e2fsprogs/files/patch-lib::ext2fs::Makefile.in	Thu Jan  1 01:00:00 1970
@@ -1,5 +0,0 @@
---- lib/ext2fs/Makefile.in.orig	Wed Jul 23 06:53:05 2003
-+++ lib/ext2fs/Makefile.in	Thu Aug 28 09:58:57 2003
-@@ -173 +173 @@
--COMPILE_ET=../et/compile_et --build-tree
-+COMPILE_ET=compile_et
diff -ruN --exclude=CVS /usr/ports/sysutils/e2fsprogs/files/patch-lib::ext2fs::flushb.c /usr/home/emma/e2fsprogs/files/patch-lib::ext2fs::flushb.c
--- /usr/ports/sysutils/e2fsprogs/files/patch-lib::ext2fs::flushb.c	Tue Jul  3 20:13:14 2001
+++ /usr/home/emma/e2fsprogs/files/patch-lib::ext2fs::flushb.c	Thu Jan  1 01:00:00 1970
@@ -1,13 +0,0 @@
-
-$FreeBSD: ports/sysutils/e2fsprogs/files/patch-lib::ext2fs::flushb.c,v 1.1 2001/07/03 18:13:14 sobomax Exp $
-
---- lib/ext2fs/flushb.c	2001/07/03 14:28:59	1.1
-+++ lib/ext2fs/flushb.c	2001/07/03 14:30:57
-@@ -21,6 +21,7 @@
- #include <sys/ioctl.h>
- #endif
- #if HAVE_SYS_MOUNT_H
-+#include <sys/param.h>
- #include <sys/mount.h>		/* This may define BLKFLSBUF */
- #endif
- 
diff -ruN --exclude=CVS /usr/ports/sysutils/e2fsprogs/files/patch-pass1.c /usr/home/emma/e2fsprogs/files/patch-pass1.c
--- /usr/ports/sysutils/e2fsprogs/files/patch-pass1.c	Sun Aug 31 12:42:37 2003
+++ /usr/home/emma/e2fsprogs/files/patch-pass1.c	Thu Jan  1 01:00:00 1970
@@ -1,7 +0,0 @@
-$FreeBSD: ports/sysutils/e2fsprogs/files/patch-pass1.c,v 1.1 2003/08/31 10:42:37 obrien Exp $
-
---- e2fsck/pass1.c.orig	Wed Aug 27 19:59:14 2003
-+++ e2fsck/pass1.c	Wed Aug 27 19:59:19 2003
-@@ -165 +165 @@
--static int strnlen(const char * s, int count)
-+int strnlen(const char * s, int count)
diff -ruN --exclude=CVS /usr/ports/sysutils/e2fsprogs/pkg-descr /usr/home/emma/e2fsprogs/pkg-descr
--- /usr/ports/sysutils/e2fsprogs/pkg-descr	Tue Jul  3 20:13:09 2001
+++ /usr/home/emma/e2fsprogs/pkg-descr	Sat Jan 31 18:40:55 2004
@@ -1,3 +1,3 @@
-Set of utilities and library to manipulate an ext2 filesystem.
+Set of utilities and library to manipulate an ext2 or ext3 filesystem.
 
 WWW: http://e2fsprogs.sourceforge.net/
diff -ruN --exclude=CVS /usr/ports/sysutils/e2fsprogs/pkg-plist /usr/home/emma/e2fsprogs/pkg-plist
--- /usr/ports/sysutils/e2fsprogs/pkg-plist	Mon Sep  1 22:11:10 2003
+++ /usr/home/emma/e2fsprogs/pkg-plist	Mon Feb  2 02:56:17 2004
@@ -20,31 +20,57 @@
 include/ext2fs/kernel-list.h
 include/uuid/uuid.h
 include/uuid/uuidP.h
+include/uuid/uuid_types.h
 info/libext2fs.info.gz
+lib/libblkid.so.1.0
+lib/libblkid.so.1
+lib/libblkid.so
+lib/libcom_err.so.2.1
+lib/libcom_err.so.2
+lib/libcom_err.so
 lib/libe2p.a
 lib/libe2p.so
 lib/libe2p.so.2
+lib/libe2p.so.2.3
 lib/libext2fs.a
 lib/libext2fs.so
 lib/libext2fs.so.2
+lib/libext2fs.so.2.4
 lib/libuuid.a
 lib/libuuid.so
 lib/libuuid.so.1
+lib/libuuid.so.1.2
+lib/libss.so.2.0
+lib/libss.so.2
+lib/libss.so
 sbin/badblocks
+sbin/blkid
 sbin/debugfs
 sbin/dumpe2fs
 sbin/e2fsck
+sbin/e2fsck.static
 sbin/e2image
 sbin/e2label
+sbin/filefrag
 sbin/findfs
-sbin/fsck
 sbin/fsck.ext2
 sbin/fsck.ext3
+sbin/logsave
 sbin/mke2fs
 sbin/mkfs.ext2
 sbin/mkfs.ext3
 sbin/mklost+found
 sbin/resize2fs
 sbin/tune2fs
+%%NLS%%share/locale/cs/LC_MESSAGES/e2fsprogs.mo
+%%NLS%%share/locale/de/LC_MESSAGES/e2fsprogs.mo
+%%NLS%%share/locale/es/LC_MESSAGES/e2fsprogs.mo
+%%NLS%%share/locale/it/LC_MESSAGES/e2fsprogs.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/e2fsprogs.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/e2fsprogs.mo
+%%NLS%%share/locale/tr/LC_MESSAGES/e2fsprogs.mo
+%%NLS%%@unexec for i in cs de es it pl sv tr ; do rmdir -p %D/share/locale/$i/LC_MESSAGES 2>/dev/null || true ; done
 @dirrm include/uuid
 @dirrm include/ext2fs
+ at exec ln %D/sbin/e2fsck.static /sbin/fsck_ext2fs 2>/dev/null || cp -n -p %D/sbin/e2fsck.static /sbin/fsck_ext2fs
+ at unexec rm -f /sbin/fsck_ext2fs
--- e2fsprogs-1.35.w20040131.patch ends here ---



More information about the freebsd-ports mailing list