On Sun, Jan 12, 2025 at 10:11:47PM +0900, SASANO Takayoshi wrote:
> Hi,
> 
> I could not extract GenEi-Latin font (TTF archive) at
> https://okoneya.jp/font/GenEiLatin-Separate_v2.1.zip with unzip-6.0p17,
> and I found "unzip: backwards memcpy" in /var/log messages.
> 
> Remedy is simple, add -DNOMEMCPY.
> ok?

I had forgotten how ugly this codebase is.  The signal handler in
fileio.c makes it impossible to debug which memcpy() call should be
converted to memmove().

ok jca@

> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/archivers/unzip/Makefile,v
> diff -u -p -r1.71 Makefile
> --- Makefile  7 Nov 2023 14:19:18 -0000       1.71
> +++ Makefile  12 Jan 2025 13:06:18 -0000
> @@ -5,7 +5,7 @@ COMMENT =     extract, list & test files in 
>  VERSION =    6.0
>  DISTNAME =   unzip${VERSION:S/.//}
>  PKGNAME =    unzip-${VERSION}
> -REVISION =   17
> +REVISION =   18
>  CATEGORIES = archivers
>  SITES =              ${SITE_SOURCEFORGE:=infozip/} \
>               ftp://ftp.info-zip.org/pub/infozip/src/
> @@ -30,7 +30,7 @@ ALL_TARGET =        bsd
>  
>  DOCS =       COPYING.OLD LICENSE README WHERE
>  
> -LOC =                -DLARGE_FILE_SUPPORT -DNO_LCHMOD -DUSE_UNSHRINK
> +LOC =                -DLARGE_FILE_SUPPORT -DNO_LCHMOD -DUSE_UNSHRINK 
> -DNOMEMCPY
>  
>  .if ${FLAVOR:L:Miconv}
>  LIB_DEPENDS +=       converters/libiconv
> 
> -- 
> SASANO Takayoshi (JG1UAA) <u...@mx5.nisiq.net>
> 

-- 
jca

Reply via email to