From owner-svn-ports-all@freebsd.org Mon Feb 19 13:02:26 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 4B75AF246E6; Mon, 19 Feb 2018 13:02:26 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0043E74308; Mon, 19 Feb 2018 13:02:26 +0000 (UTC) (envelope-from lev@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 D6A531AE77; Mon, 19 Feb 2018 13:02:25 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w1JD2PcI079370; Mon, 19 Feb 2018 13:02:25 GMT (envelope-from lev@FreeBSD.org) Received: (from lev@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w1JD2PC4079367; Mon, 19 Feb 2018 13:02:25 GMT (envelope-from lev@FreeBSD.org) Message-Id: <201802191302.w1JD2PC4079367@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: lev set sender to lev@FreeBSD.org using -f From: "Lev A. Serebryakov" Date: Mon, 19 Feb 2018 13:02:25 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r462314 - in head/devel/stlink: . files X-SVN-Group: ports-head X-SVN-Commit-Author: lev X-SVN-Commit-Paths: in head/devel/stlink: . files X-SVN-Commit-Revision: 462314 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 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: Mon, 19 Feb 2018 13:02:26 -0000 Author: lev Date: Mon Feb 19 13:02:25 2018 New Revision: 462314 URL: https://svnweb.freebsd.org/changeset/ports/462314 Log: Update to 1.5.0 and fix on 32 bit platforms. Added: head/devel/stlink/files/extra-pacth-32bit (contents, props changed) Modified: head/devel/stlink/Makefile head/devel/stlink/distinfo Modified: head/devel/stlink/Makefile ============================================================================== --- head/devel/stlink/Makefile Mon Feb 19 12:50:30 2018 (r462313) +++ head/devel/stlink/Makefile Mon Feb 19 13:02:25 2018 (r462314) @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= stlink -PORTVERSION= 1.4.0 +PORTVERSION= 1.5.0 PORTREVISION= 0 CATEGORIES= devel @@ -23,10 +23,16 @@ USE_LDCONFIG= yes PORTDOCS= README.md tested-boards.md tutorial.md +.include + +.if ${ARCH} == "i386" || ${ARCH} == "powerpc" || ${ARCH} == "arm" || ${ARCH} == "armv6" || ${ARCH} == "mips" +EXTRA_PATCHES+= ${FILESDIR}/extra-pacth-32bit +.endif + post-install: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}/README.md ${INSTALL_DATA} ${WRKSRC}/doc/tested-boards.md ${STAGEDIR}${DOCSDIR}/tested-boards.md ${INSTALL_DATA} ${WRKSRC}/doc/tutorial.md ${STAGEDIR}${DOCSDIR}/tutorial.md -.include +.include Modified: head/devel/stlink/distinfo ============================================================================== --- head/devel/stlink/distinfo Mon Feb 19 12:50:30 2018 (r462313) +++ head/devel/stlink/distinfo Mon Feb 19 13:02:25 2018 (r462314) @@ -1,3 +1,3 @@ -TIMESTAMP = 1503328091 -SHA256 (texane-stlink-1.4.0_GH0.tar.gz) = d99b8385cce8071d5e58de21b6c8866058af20a8dd46ecf01e1c1dc3aa038cc9 -SIZE (texane-stlink-1.4.0_GH0.tar.gz) = 138765 +TIMESTAMP = 1519044524 +SHA256 (texane-stlink-1.5.0_GH0.tar.gz) = ce26b3db73f0bdf87ced78a2a90f3d515914f7d1211b1ca4b9acdf1882ca9d81 +SIZE (texane-stlink-1.5.0_GH0.tar.gz) = 140486 Added: head/devel/stlink/files/extra-pacth-32bit ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/stlink/files/extra-pacth-32bit Mon Feb 19 13:02:25 2018 (r462314) @@ -0,0 +1,18 @@ +--- src/common.c.orig 2018-02-19 15:59:51.068865000 +0300 ++++ src/common.c 2018-02-19 16:00:23.483652000 +0300 +@@ -1032,13 +1032,13 @@ + goto on_error; + } + +- mf->base = (uint8_t*) mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0); ++ mf->base = (uint8_t*) mmap(NULL, (size_t)st.st_size, PROT_READ, MAP_SHARED, fd, 0); + if (mf->base == MAP_FAILED) { + fprintf(stderr, "mmap() == MAP_FAILED\n"); + goto on_error; + } + +- mf->len = st.st_size; ++ mf->len = (size_t)st.st_size; + + /* success */ + error = 0;