On Sun, Nov 24, 2019 at 12:08:04AM +0100, Charlene Wendling wrote:
> Hi,
> 
> The latest libtasn1 committed a few hours ago is broken on gcc archs,
> as seen in the current macppc bulk:
> 
> > corpus2array.c:123: error: 'for' loop initial declaration used outside
> > C99 mode
> 
> INSTALL mentions clearly the use of a C99-aware compiler, and done that
> way, it builds on macppc [0] while still being fine on amd64.
> 
> I prefered to bump revision despite it has not been packaged on any
> arch as i'm sending this.
> 
> OK? 
> 
> Charlène.
> 
> 
> [0] https://bin.charlenew.xyz/libtasn1.log

Sure.

> 
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/security/libtasn1/Makefile,v
> retrieving revision 1.48
> diff -u -p -u -p -r1.48 Makefile
> --- Makefile  23 Nov 2019 12:13:33 -0000      1.48
> +++ Makefile  23 Nov 2019 21:56:24 -0000
> @@ -4,6 +4,7 @@ COMMENT=              Abstract Syntax Notation One s
>  
>  DISTNAME=            libtasn1-4.15.0
>  CATEGORIES=          security
> +REVISION=            0
>  
>  SHARED_LIBS +=  tasn1                4.1      # 11.7
>  
> @@ -19,6 +20,9 @@ WANTLIB += c
>  MASTER_SITES=                ${MASTER_SITE_GNU:=libtasn1/}
>  
>  CONFIGURE_STYLE=     gnu
> +
> +# Allow building with base-gcc
> +CFLAGS +=            -std=gnu99
>  
>  DEBUG_PACKAGES=              ${BUILD_PACKAGES}
>  

-- 
Antoine

Reply via email to