Subject: pkg/14824: Package update: archivers/lha
To: None <gnats-bugs@gnats.netbsd.org>
From: None <uebayasi@soum.co.jp>
List: netbsd-bugs
Date: 12/03/2001 22:23:27
>Number: 14824
>Category: pkg
>Synopsis: Package update: archivers/lha
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Mon Dec 03 05:22:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Masao Uebayashi
>Release: NetBSD 1.5.2
>Organization:
SOUM Corporation
SOUM Corporation
>Environment:
System: NetBSD sebastes.soum.co.jp 1.5.2 NetBSD 1.5.2 (SEBASTES) #0: Fri Nov 2 20:03:26 JST 2001 masao@sebastes.soum.co.jp:/usr/src_netbsd-1-5-PATCH002/sys/arch/i386/compile/SEBASTES i386
>Description:
Update of archivers/lha, an archiver very popular in Japan.
Changes from 114f to 114i includes:
* Header Level 2 handling bug.
* Level 2 file append bug.
* Symbolic link file append bug.
* Lh7 archive support.
* Lh7 archive bug.
* Directory handling bug on Mac.
* Case handling bug on MS-DOS.
>How-To-Repeat:
>Fix:
diff -Nru lha.orig/Makefile lha/Makefile
--- lha.orig/Makefile Mon Dec 3 22:22:14 2001
+++ lha/Makefile Mon Dec 3 22:21:38 2001
@@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.10 2001/07/16 10:29:50 jlam Exp $
-DISTNAME= lha-114f
+DISTNAME= lha-114i
CATEGORIES= archivers
MASTER_SITES= http://www2m.biglobe.ne.jp/~dolphin/lha/prog/ \
ftp://ftp.win.ne.jp/pub/misc/
@@ -10,7 +10,7 @@
USE_BUILDLINK_ONLY= # defined
-MAKE_FLAGS= CC="${CC}"
+MAKE_FLAGS= CC="${CC}" MAKE="${MAKE}"
MAKE_FLAGS+= MACHINE="-DSYSTIME_HAS_NO_TM -DTIMELOCAL -DUSESTRCASECMP -DSYSV_SYSTEM_DIR"
do-install:
diff -Nru lha.orig/distinfo lha/distinfo
--- lha.orig/distinfo Mon Dec 3 22:22:14 2001
+++ lha/distinfo Mon Dec 3 22:21:38 2001
@@ -1,6 +1,7 @@
$NetBSD: distinfo,v 1.2 2001/04/18 11:21:06 agc Exp $
-SHA1 (lha-114f.tar.gz) = 379168bc8c96b3a8b9401426e5360aa8978ba9fc
-Size (lha-114f.tar.gz) = 63668 bytes
-SHA1 (patch-ad) = 952365147b6e4b493ccbf230e8f2df476e15ffc3
-SHA1 (patch-ae) = b073e65ab6089bb4ad258e01973ec90756c7d3d8
+SHA1 (lha-114i.tar.gz) = 79e35271f2cf783f946db3f22e304fef72dbac99
+Size (lha-114i.tar.gz) = 64608 bytes
+SHA1 (patch-ae) = ad6040f318ecb2762618f210fbac35c03a17af66
+SHA1 (patch-af) = 0c2f6d5bf23c3c98b102487abe3dd1190470f50c
+SHA1 (patch-ag) = 9ad3bc807a3cda4f71d8fbbbea19306f252f2489
diff -Nru lha.orig/patches/patch-ad lha/patches/patch-ad
--- lha.orig/patches/patch-ad Mon Dec 3 22:22:14 2001
+++ lha/patches/patch-ad Thu Jan 1 09:00:00 1970
@@ -1,11 +0,0 @@
-$NetBSD: patch-ad,v 1.1 1999/11/30 01:54:16 sakamoto Exp $
-
---- ./src/lhext.c.orig Sun Aug 29 01:36:16 1999
-+++ ./src/lhext.c Tue Nov 30 10:31:41 1999
-@@ -163,5 +163,5 @@
- if (!getuid()) {
- #ifndef HAVE_NO_LCHOWN
-- if ((hdr->unix_mode & UNIX_FILE_TYPEMASK) != UNIX_FILE_SYMLINK)
-+ if ((hdr->unix_mode & UNIX_FILE_TYPEMASK) == UNIX_FILE_SYMLINK)
- lchown(name, hdr->unix_uid, hdr->unix_gid);
- else
diff -Nru lha.orig/patches/patch-ae lha/patches/patch-ae
--- lha.orig/patches/patch-ae Mon Dec 3 22:22:14 2001
+++ lha/patches/patch-ae Mon Dec 3 22:21:38 2001
@@ -1,37 +1,39 @@
-$NetBSD: patch-ae,v 1.2 2000/03/11 15:03:39 fredb Exp $
+$NetBSD$
---- ./Makefile.orig Sun Aug 29 01:36:34 1999
-+++ ./Makefile Tue Nov 30 10:33:28 1999
-@@ -11,23 +11,21 @@
+--- Makefile.orig Mon Dec 3 14:32:27 2001
++++ Makefile
+@@ -10,11 +10,10 @@
+ # SWITCHES macro definitions ... see config.eng or config.jpn.
#-----------------------------------------------------------------------
-SHELL=/bin/sh
-MAKE = make
-+SHELL=${SH}
-+#MAKE = make
++SHELL = ${SH}
++MAKE = ${MAKE}
- #CC = cc
+-#CC = cc
-CC = gcc
--SWITCHES = -DNEED_INCREMENTAL_INDICATOR \
-- -DTMP_FILENAME_TEMPLATE="\"/tmp/lhXXXXXX\""
-+#CC = gcc
-+SWITCHES = -DNEED_INCREMENTAL_INDICATOR -DEUC -DSUPPORT_LH6
-
- #MACHINE = -DSYSTIME_HAS_NO_TM -DFTIME -DEUC
- #MACHINE = -DSYSTIME_HAS_NO_TM -DEUC -DHAVE_TM_ZONE -DSYSV_SYSTEM_DIR
--MACHINE = -DSYSTIME_HAS_NO_TM -DEUC -DSYSV_SYSTEM_DIR -DMKTIME
-+MACHINE = -DSYSTIME_HAS_NO_TM -DSYSV_SYSTEM_DIR -DMKTIME -DUSESTRCASECMP
-
--#OPTIMIZE = -O2 -fstrength-reduce -fomit-frame-pointer
--OPTIMIZE = -O2 -DSUPPORT_LH6
-+OPTIMIZE = ${CFLAGS}
++CC = ${CC}
+ SWITCHES = -DNEED_INCREMENTAL_INDICATOR \
+ -DTMP_FILENAME_TEMPLATE="\"/tmp/lhXXXXXX\""
+
+@@ -25,8 +24,8 @@
+ #OPTIMIZE = -O2 -fstrength-reduce -fomit-frame-pointer
+ OPTIMIZE = -O2 -DSUPPORT_LH7 -DMKSTEMP
-BINDIR = /usr/local/bin
-MANDIR = /usr/local/man
--MANSECT = n
+BINDIR = ${PREFIX}/bin
-+MANDIR = ${PREFIX}/man/ja_JP.EUC
-+MANSECT = 1
++MANDIR = ${PREFIX}/man
+ MANSECT = n
INSTALL = install
- INSTALLBIN = -s -m 755
+@@ -42,7 +41,7 @@
+ LIBRARYOBJS = patmatch$(O)
+
+ MYMAKEFLAGS = 'BINDIR=$(BINDIR)' 'MANDIR=$(MANDIR)' 'MANSECT=$(MANSECT)'\
+- 'INSTALL=$(INSTALL)' 'INSTALLBIN=$(INSTALLBIN)' 'INSTALLMAN=$(INSTALLMAN)'\
++ 'BSD_INSTALL_BIN=$(BSD_INSTALL_BIN)' 'BSD_INSTALL_MAN=$(BSD_INSTALL_MAN)'\
+ 'CC=$(CC)' 'SWITCHES=$(SWITCHES)' 'O=$(O)' 'LIBRARYOBJS=$(LIBRARYOBJS)' \
+ 'OPTIMIZE=$(OPTIMIZE)' 'MACHINE=$(MACHINE)'
+
diff -Nru lha.orig/patches/patch-af lha/patches/patch-af
--- lha.orig/patches/patch-af Thu Jan 1 09:00:00 1970
+++ lha/patches/patch-af Mon Dec 3 22:21:38 2001
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- man/Makefile.orig Fri Dec 15 21:13:16 2000
++++ man/Makefile
+@@ -11,7 +11,7 @@
+ $(NROFF) -man lha.n > lha.man
+
+ install:
+- $(INSTALL) $(INSTALLMAN) lha.n $(MANDIR)/man$(MANSECT)/lha.$(MANSECT)
++ $(BSD_INSTALL_MAN) lha.n $(MANDIR)/man$(MANSECT)/lha.$(MANSECT)
+
+ clean:
+ rm -f *~
diff -Nru lha.orig/patches/patch-ag lha/patches/patch-ag
--- lha.orig/patches/patch-ag Thu Jan 1 09:00:00 1970
+++ lha/patches/patch-ag Mon Dec 3 22:21:38 2001
@@ -0,0 +1,10 @@
+$NetBSD$
+
+--- src/Makefile.orig Fri Dec 15 21:13:15 2000
++++ src/Makefile
+@@ -49,4 +49,4 @@
+ rm -f core *.o lha.tar lha.tar.Z *~ \#* *.orig
+
+ install:
+- $(INSTALL) $(INSTALLBIN) lha $(BINDIR)/lha
++ $(BSD_INSTALL_BIN) lha $(BINDIR)/lha
>Release-Note:
>Audit-Trail:
>Unformatted: