From owner-svn-ports-all@freebsd.org Sun Mar 4 03:12:32 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 AAA3EF2E2F6; Sun, 4 Mar 2018 03:12:32 +0000 (UTC) (envelope-from jhale@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 5E6A2850DC; Sun, 4 Mar 2018 03:12:32 +0000 (UTC) (envelope-from jhale@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 595477B95; Sun, 4 Mar 2018 03:12:32 +0000 (UTC) (envelope-from jhale@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w243CWX0038065; Sun, 4 Mar 2018 03:12:32 GMT (envelope-from jhale@FreeBSD.org) Received: (from jhale@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w243CVCp038062; Sun, 4 Mar 2018 03:12:31 GMT (envelope-from jhale@FreeBSD.org) Message-Id: <201803040312.w243CVCp038062@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jhale set sender to jhale@FreeBSD.org using -f From: "Jason E. Hale" Date: Sun, 4 Mar 2018 03:12:31 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r463547 - in head/editors/mp: . files X-SVN-Group: ports-head X-SVN-Commit-Author: jhale X-SVN-Commit-Paths: in head/editors/mp: . files X-SVN-Commit-Revision: 463547 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: Sun, 04 Mar 2018 03:12:32 -0000 Author: jhale Date: Sun Mar 4 03:12:31 2018 New Revision: 463547 URL: https://svnweb.freebsd.org/changeset/ports/463547 Log: - Fix build with aarch64, armv6, armv7 - Fix QT4 option on all platforms (needs USES=gmake, and fix for moc location) - Remove some substitutions that didn't do anything - Don't try to create directories already in mtree Added: head/editors/mp/files/patch-config.sh (contents, props changed) head/editors/mp/files/patch-mpdm_mpdm__s.c (contents, props changed) Modified: head/editors/mp/Makefile Modified: head/editors/mp/Makefile ============================================================================== --- head/editors/mp/Makefile Sun Mar 4 02:34:49 2018 (r463546) +++ head/editors/mp/Makefile Sun Mar 4 03:12:31 2018 (r463547) @@ -12,11 +12,7 @@ COMMENT= Programming text editor LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_aarch64= fails to compile: conflicting types for __wcwidth -BROKEN_armv6= fails to compile: conflicting types for __wcwidth -BROKEN_armv7= fails to compile: conflicting types for __wcwidth - -USES= iconv ncurses +USES= gmake iconv ncurses HAS_CONFIGURE= yes CONFIGURE_SCRIPT= config.sh CONFIGURE_ARGS= --prefix=${PREFIX} --without-win32 --without-kde4 @@ -37,8 +33,9 @@ GTK2_LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfi GTK3_USE= gnome=cairo,gdkpixbuf2,gtk30 PCRE_LIB_DEPENDS= libpcre.so:devel/pcre PCRE_CONFIGURE_WITH= pcre -QT4_USE= qt4=corelib,gui,moc_build -QT4_CONFIGURE_ENV= CPP="${CXX}" CCLINK="${CXX}" +QT4_USE= qt4=corelib,gui,moc_build \ + xorg=x11 +QT4_CONFIGURE_ENV= CPP="${CXX}" CCLINK="${CXX}" MOC="${MOC}" QT4_CONFIGURE_WITH= qt4 .include @@ -72,20 +69,17 @@ QT_NONSTANDARD= yes post-patch: @${REINPLACE_CMD} -e \ - 's|||g' ${WRKSRC}/${i} .endfor @@ -104,7 +98,6 @@ do-install: do-install-NLS-on: .for lang in de es it nl ru sv - @${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/${lang}/LC_MESSAGES ${INSTALL_DATA} ${WRKSRC}/po/${lang}.mo \ ${STAGEDIR}${PREFIX}/share/locale/${lang}/LC_MESSAGES/minimum-profit.mo .endfor Added: head/editors/mp/files/patch-config.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/mp/files/patch-config.sh Sun Mar 4 03:12:31 2018 (r463547) @@ -0,0 +1,22 @@ +--- config.sh.orig 2018-03-04 01:48:31 UTC ++++ config.sh +@@ -101,7 +101,7 @@ if [ "$CPP" = "" ] ; then + which g++ > /dev/null 2>&1 && CPP=g++ + fi + +-MOC="moc" ++MOC?="moc" + which moc-qt4 > /dev/null 2>&1 && MOC=moc-qt4 + + echo "CC=$CC" >> makefile.opts +@@ -364,8 +364,8 @@ if [ "$WITHOUT_QT4" = "1" ] ; then + else + if which pkg-config > /dev/null 2>&1 + then +- TMP_CFLAGS=$(pkg-config --cflags QtGui) +- TMP_LDFLAGS="$(pkg-config --libs QtGui) -lX11" ++ TMP_CFLAGS="$(pkg-config --cflags QtGui) $(pkg-config --cflags x11)" ++ TMP_LDFLAGS="$(pkg-config --libs QtGui) $(pkg-config --libs x11)" + + echo "#include " > .tmp.cpp + echo "int main(int argc, char *argv[]) { new QApplication(argc, argv) ; return 0; } " >> .tmp.cpp Added: head/editors/mp/files/patch-mpdm_mpdm__s.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/mp/files/patch-mpdm_mpdm__s.c Sun Mar 4 03:12:31 2018 (r463547) @@ -0,0 +1,26 @@ +Fix build with aarch64, armv6, and armv7 + +--- mpdm_s.o --- +mpdm_s.c:1070:5: error: conflicting types for '__wcwidth' +int wcwidth(wchar_t); + ^ +/usr/include/wchar.h:211:21: note: expanded from macro 'wcwidth' +#define wcwidth(_c) __wcwidth(_c) + ^ +/usr/include/_ctype.h:159:1: note: previous definition is here +__wcwidth(__ct_rune_t _c) +^ +1 error generated. +*** [mpdm_s.o] Error code 1 + +--- mpdm/mpdm_s.c.orig 2018-03-04 00:49:18 UTC ++++ mpdm/mpdm_s.c +@@ -1067,8 +1067,6 @@ int mpdm_gettext_domain(const mpdm_t dom, const mpdm_t + + #ifdef CONFOPT_WCWIDTH + +-int wcwidth(wchar_t); +- + int mpdm_wcwidth(wchar_t c) + { + return wcwidth(c);