Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Feb 2017 20:15:37 +0000 (UTC)
From:      David Thiel <lx@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r434050 - in head/devel/libowfat: . files
Message-ID:  <201702132015.v1DKFb1m029802@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: lx
Date: Mon Feb 13 20:15:36 2017
New Revision: 434050
URL: https://svnweb.freebsd.org/changeset/ports/434050

Log:
  Update to 0.31, fixing some security issues.
  
  PR:		217063
  Reported by:	Jan Bramkamp
  MFH:		2017Q1
  Security:	Integer overflow checking and string formatting error

Modified:
  head/devel/libowfat/Makefile
  head/devel/libowfat/distinfo
  head/devel/libowfat/files/patch-GNUmakefile
  head/devel/libowfat/pkg-plist

Modified: head/devel/libowfat/Makefile
==============================================================================
--- head/devel/libowfat/Makefile	Mon Feb 13 20:08:22 2017	(r434049)
+++ head/devel/libowfat/Makefile	Mon Feb 13 20:15:36 2017	(r434050)
@@ -2,15 +2,17 @@
 # $FreeBSD$
 
 PORTNAME=	libowfat
-PORTVERSION=	0.29
-PORTREVISION=	1
+PORTVERSION=	0.31
 CATEGORIES=	devel ipv6
-MASTER_SITES=	http://dl.fefe.de/
+MASTER_SITES=	http://www.fefe.de/libowfat/
 
 MAINTAINER=	lx@FreeBSD.org
 COMMENT=	General purpose library based on code by D. J. Bernstein
 
-USES=		gmake tar:bzip2
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+USES=		gmake tar:xz
 ALL_TARGET=	dep all
 
 MAKEFILE=	GNUmakefile

Modified: head/devel/libowfat/distinfo
==============================================================================
--- head/devel/libowfat/distinfo	Mon Feb 13 20:08:22 2017	(r434049)
+++ head/devel/libowfat/distinfo	Mon Feb 13 20:15:36 2017	(r434050)
@@ -1,2 +1,3 @@
-SHA256 (libowfat-0.29.tar.bz2) = 4badbdeed6bef4337f1edd6b86fb7154c5592509c272dcdc09c693161cbc6427
-SIZE (libowfat-0.29.tar.bz2) = 139489
+TIMESTAMP = 1487011932
+SHA256 (libowfat-0.31.tar.xz) = d1e4ac1cfccbb7dc51d77d96398e6302d229ba7538158826c84cb4254c7e8a12
+SIZE (libowfat-0.31.tar.xz) = 183684

Modified: head/devel/libowfat/files/patch-GNUmakefile
==============================================================================
--- head/devel/libowfat/files/patch-GNUmakefile	Mon Feb 13 20:08:22 2017	(r434049)
+++ head/devel/libowfat/files/patch-GNUmakefile	Mon Feb 13 20:15:36 2017	(r434050)
@@ -1,5 +1,5 @@
---- GNUmakefile.orig	2012-04-17 14:26:31.000000000 -0700
-+++ GNUmakefile	2014-06-04 17:26:54.000000000 -0700
+--- GNUmakefile.orig	2016-10-01 16:07:35.000000000 -0700
++++ GNUmakefile	2017-02-13 11:05:04.236623000 -0800
 @@ -4,10 +4,10 @@
  # in /opt/diet, where they are in the default search path for my diet libc
  # work but don't conflict with anything there.  YMMV.
@@ -14,39 +14,54 @@
  
  LIBS=byte.a fmt.a scan.a str.a uint.a open.a stralloc.a unix.a socket.a \
  buffer.a mmap.a taia.a tai.a dns.a case.a mult.a array.a io.a \
-@@ -15,14 +15,6 @@
+@@ -15,26 +15,14 @@
  
- all: $(LIBS) libowfat.a libsocket t
+ all: ent $(LIBS) libowfat.a libsocket t
  
 -CROSS=
 -#CROSS=i686-mingw-
--CC=$(CROSS)gcc
--CFLAGS=-pipe -W -Wall -O2 -fomit-frame-pointer
--#CFLAGS=-pipe -Os -march=pentiumpro -mcpu=pentiumpro -fomit-frame-pointer -fschedule-insns2 -Wall
+-CC=gcc
+-CCC=$(CROSS)$(CC)
++CCC=${CC}
+ WERROR=
+ WARN=-W -Wall -Wextra $(WERROR)
+ 
+-# Use the second version if you are building for a binary that is only
+-# supposed to run on this machine. It tells gcc to use CPU instructions
+-# that are specific to the CPU the code is compiled on.
+-NATIVE=
+-#NATIVE=-march=native -mtune=native
 -
--# CFLAGS += -fstrict-aliasing -Wstrict-aliasing=2
+-OPT_REG=-O2
+-OPT_PLUS=-O3 $(NATIVE)
 -
- CFLAGS += -D_REENTRANT
+ DEFINE=-D_REENTRANT
  
- # startrip
-@@ -169,16 +161,16 @@
- errmsg.h cdb.h cdb_make.h rangecheck.h iarray.h va_narg.h isset.h
+-CFLAGS=-pipe $(WARN) $(DEFINE) $(OPT_REG)
+-CFLAGS_OPT=-pipe $(WARN) $(DEFINE) $(OPT_PLUS)
++CFLAGS+=-pipe $(WARN) $(DEFINE)
++CFLAGS_OPT=$(CFLAGS)
+ 
+ #CFLAGS=-pipe -Os -march=pentiumpro -mcpu=pentiumpro -fomit-frame-pointer -fschedule-insns2 -Wall
+ 
+@@ -205,16 +193,16 @@
+ compiletimeassert.h critbit.h
  
  install-inc:
--	install -d $(INCLUDEDIR)
--	install -m 644 $(INCLUDES) $(INCLUDEDIR)
+-	install -d $(DESTDIR)$(INCLUDEDIR)
+-	install -m 644 $(INCLUDES) $(DESTDIR)$(INCLUDEDIR)
 +	${INSTALL} -d $(INCLUDEDIR)
 +	${BSD_INSTALL_DATA} -m 644 $(INCLUDES) $(INCLUDEDIR)
  
  install-lib: libowfat.a
--	install -d $(LIBDIR)
--	install -m 644 libowfat.a $(LIBDIR)
+-	install -d $(DESTDIR)$(LIBDIR)
+-	install -m 644 libowfat.a $(DESTDIR)$(LIBDIR)
 +	${INSTALL} -d $(LIBDIR)
 +	${BSD_INSTALL_DATA} -m 644 libowfat.a $(LIBDIR)
  
  install-man:
--	install -d $(MAN3DIR)
--	install -m 644 $(wildcard */*.3) $(MAN3DIR)
+-	install -d $(DESTDIR)$(MAN3DIR)
+-	install -m 644 $(wildcard */*.3) $(DESTDIR)$(MAN3DIR)
 +	${INSTALL} -d $(MAN3DIR)
 +	${BSD_INSTALL_MAN} -m 644 $(wildcard */*.3) $(MAN3DIR)
  

Modified: head/devel/libowfat/pkg-plist
==============================================================================
--- head/devel/libowfat/pkg-plist	Mon Feb 13 20:08:22 2017	(r434049)
+++ head/devel/libowfat/pkg-plist	Mon Feb 13 20:15:36 2017	(r434050)
@@ -4,6 +4,8 @@ include/libowfat/byte.h
 include/libowfat/case.h
 include/libowfat/cdb.h
 include/libowfat/cdb_make.h
+include/libowfat/compiletimeassert.h
+include/libowfat/critbit.h
 include/libowfat/dns.h
 include/libowfat/errmsg.h
 include/libowfat/fmt.h
@@ -34,6 +36,18 @@ include/libowfat/uint32.h
 include/libowfat/uint64.h
 include/libowfat/va_narg.h
 lib/libowfat.a
+man/man3/add_of.3.gz
+man/man3/assign.3.gz
+man/man3/buffer_fromarray.3.gz
+man/man3/buffer_frombuf.3.gz
+man/man3/critbit0_allprefixed.3.gz
+man/man3/critbit0_clear.3.gz
+man/man3/critbit0_contains.3.gz
+man/man3/critbit0_delete.3.gz
+man/man3/critbit0_insert.3.gz
+man/man3/fmt_iso8601.3.gz
+man/man3/fmt_netstring.3.gz
+man/man3/io_fd_flags.3.gz
 man/man3/libowfat_array.3.gz
 man/man3/libowfat_array_allocate.3.gz
 man/man3/libowfat_array_bytes.3.gz
@@ -377,3 +391,12 @@ man/man3/libowfat_uint64_unpack_big.3.gz
 man/man3/libowfat_umult16.3.gz
 man/man3/libowfat_umult32.3.gz
 man/man3/libowfat_umult64.3.gz
+man/man3/mmap_readat.3.gz
+man/man3/scan_asn1derlengthvalue.3.gz
+man/man3/scan_iso8601.3.gz
+man/man3/scan_netstring.3.gz
+man/man3/socket_fastopen.3.gz
+man/man3/socket_fastopen_connect4.3.gz
+man/man3/socket_fastopen_connect6.3.gz
+man/man3/socket_quickack.3.gz
+man/man3/sub_of.3.gz



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702132015.v1DKFb1m029802>