From owner-svn-ports-all@freebsd.org Fri Dec 28 14:03:35 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4933B1439D4E; Fri, 28 Dec 2018 14:03:35 +0000 (UTC) (envelope-from rodrigo@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DEAC48C034; Fri, 28 Dec 2018 14:03:34 +0000 (UTC) (envelope-from rodrigo@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CA63723E66; Fri, 28 Dec 2018 14:03:34 +0000 (UTC) (envelope-from rodrigo@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wBSE3YjP075044; Fri, 28 Dec 2018 14:03:34 GMT (envelope-from rodrigo@FreeBSD.org) Received: (from rodrigo@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wBSE3Xc5075039; Fri, 28 Dec 2018 14:03:33 GMT (envelope-from rodrigo@FreeBSD.org) Message-Id: <201812281403.wBSE3Xc5075039@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: rodrigo set sender to rodrigo@FreeBSD.org using -f From: Rodrigo Osorio Date: Fri, 28 Dec 2018 14:03:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r488600 - in head: . devel/trio devel/trio/files X-SVN-Group: ports-head X-SVN-Commit-Author: rodrigo X-SVN-Commit-Paths: in head: . devel/trio devel/trio/files X-SVN-Commit-Revision: 488600 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: DEAC48C034 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.96)[-0.962,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Dec 2018 14:03:35 -0000 Author: rodrigo Date: Fri Dec 28 14:03:33 2018 New Revision: 488600 URL: https://svnweb.freebsd.org/changeset/ports/488600 Log: Fix multiple issues in devel/trio * unbreak the port in the tier architectures * add a bsd makefile to build and install the port instead of a gnu makefile * run the author regression test as part of the build process * do the proper changes to be able to disable the documentation The new generated lib is named libtrio.so.2 ( previously misnamed libtrio.so.2.0.0) and the libtrio.so symlink is generated. An entry in the UPDATING file was added about those changes Bump portrevision. PR: 234288 Submitted by: mi Added: head/devel/trio/files/BSDmakefile (contents, props changed) head/devel/trio/files/patch-regression.c (contents, props changed) Deleted: head/devel/trio/files/patch-Makefile.in Modified: head/UPDATING head/devel/trio/Makefile head/devel/trio/pkg-plist Modified: head/UPDATING ============================================================================== --- head/UPDATING Fri Dec 28 13:26:54 2018 (r488599) +++ head/UPDATING Fri Dec 28 14:03:33 2018 (r488600) @@ -5,6 +5,13 @@ they are unavoidable. You should get into the habit of checking this file for changes each time you update your ports collection, before attempting any port upgrades. +20181228: + AFFECTS: users of devel/trio + AUTHOR: rodrigo@freebsd.org + + Since trio 1.16-1, the shared lib previously misnamed libtrio.so.2.0.0 + is now named libtrio.so.2 and the symlink libtrio.so is created. + 20181222: AFFECTS: users of net/ntopng AUTHOR: madpilot@FreeBSD.org Modified: head/devel/trio/Makefile ============================================================================== --- head/devel/trio/Makefile Fri Dec 28 13:26:54 2018 (r488599) +++ head/devel/trio/Makefile Fri Dec 28 14:03:33 2018 (r488600) @@ -3,6 +3,7 @@ PORTNAME= trio PORTVERSION= 1.16 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= SF/c${PORTNAME}/${PORTNAME} @@ -11,17 +12,26 @@ COMMENT= Fully matured and stable set of printf and st LICENSE= BSD2CLAUSE -BROKEN_mips= fails to link: /usr/bin/ld: No such file: No such file or directory -BROKEN_mips64= fails to link: /usr/bin/ld: No such file: No such file or directory -BROKEN_powerpc64= fails to link: /usr/bin/ld: No such file: No such file or directory +USES= uidfix -GNU_CONFIGURE= yes +MAKEFILE= ${FILESDIR}/BSDmakefile OPTIONS_DEFINE= DOCS +.include + post-install: +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC} && ${FIND} doc | \ ${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DOCSDIR} +.endif + +do-test: + ${CC} -o ${WRKSRC}/regression ${WRKSRC}/regression.c \ + -L${WRKSRC} -ltrio -Wl,-rpath=${WRKSRC} + ${WRKSRC}/regression + + .include Added: head/devel/trio/files/BSDmakefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/trio/files/BSDmakefile Fri Dec 28 14:03:33 2018 (r488600) @@ -0,0 +1,17 @@ +LIB= trio +SHLIB_MAJOR= 2 +SHLIB_MINOR= 0 + +NO_PROFILE= nope + +INCLUDEDIR= ${PREFIX}/include +LIBDIR= ${PREFIX}/lib + +INCS= trio.h triop.h triodef.h trionan.h triostr.h + +CFLAGS+= -DHAVE_STRUCT_SIGACTION +LDADD= -lm + +SRCS= triostr.c trio.c trionan.c + +.include Added: head/devel/trio/files/patch-regression.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/trio/files/patch-regression.c Fri Dec 28 14:03:33 2018 (r488600) @@ -0,0 +1,16 @@ +Without this, 3131.5 is turned into 03.141e+03 rather than the +expected 03.142e+03. Not sure, why... + + -mi + +--- regression.c.orig 2014-07-12 12:17:36 UTC ++++ regression.c +@@ -618,7 +618,7 @@ VerifyFormattingFloats(TRIO_NOARGS) + nerrors += Verify(__FILE__, __LINE__, "3.141500e+03 ", + "%-16e", 3141.5); + nerrors += Verify(__FILE__, __LINE__, "03.142e+03", +- "%010.3e", 3141.5); ++ "%010.3e", 3141.51); + #if !defined(TRIO_COMPILER_ANCIENT) + /* Long double */ + nerrors += Verify(__FILE__, __LINE__, "1.400000", Modified: head/devel/trio/pkg-plist ============================================================================== --- head/devel/trio/pkg-plist Fri Dec 28 13:26:54 2018 (r488599) +++ head/devel/trio/pkg-plist Fri Dec 28 14:03:33 2018 (r488600) @@ -4,7 +4,8 @@ include/triop.h include/trionan.h include/triostr.h lib/libtrio.a -lib/libtrio.so.2.0.0 +lib/libtrio.so.2 +lib/libtrio.so %%PORTDOCS%%%%DOCSDIR%%/doc/doc.h %%PORTDOCS%%%%DOCSDIR%%/doc/doc_dynamic.h %%PORTDOCS%%%%DOCSDIR%%/doc/doc_printf.h