From owner-svn-ports-all@freebsd.org Fri Sep 4 04:32:15 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8213F3D5D97; Fri, 4 Sep 2020 04:32:15 +0000 (UTC) (envelope-from danfe@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 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 4BjPsW2w7cz4Vgd; Fri, 4 Sep 2020 04:32:15 +0000 (UTC) (envelope-from danfe@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 2BB2426CD2; Fri, 4 Sep 2020 04:32:15 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 0844WFbm086776; Fri, 4 Sep 2020 04:32:15 GMT (envelope-from danfe@FreeBSD.org) Received: (from danfe@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 0844WEJN086773; Fri, 4 Sep 2020 04:32:14 GMT (envelope-from danfe@FreeBSD.org) Message-Id: <202009040432.0844WEJN086773@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: danfe set sender to danfe@FreeBSD.org using -f From: Alexey Dokuchaev Date: Fri, 4 Sep 2020 04:32:14 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r547510 - in head/graphics/gcolor2: . files X-SVN-Group: ports-head X-SVN-Commit-Author: danfe X-SVN-Commit-Paths: in head/graphics/gcolor2: . files X-SVN-Commit-Revision: 547510 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.33 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, 04 Sep 2020 04:32:15 -0000 Author: danfe Date: Fri Sep 4 04:32:14 2020 New Revision: 547510 URL: https://svnweb.freebsd.org/changeset/ports/547510 Log: - Unbreak the build with -fno-common (e.g. Clang 11, GCC 10) - Do not needlessly modify CPPFLAGS and LDFLAGS: correct paths are obtained via pkgconf(1); define LICENSE (GPLv2) while here Reported by: pkg-fallout Added: head/graphics/gcolor2/files/patch-src_callbacks.h (contents, props changed) Modified: head/graphics/gcolor2/Makefile head/graphics/gcolor2/files/patch-src_main.c Modified: head/graphics/gcolor2/Makefile ============================================================================== --- head/graphics/gcolor2/Makefile Fri Sep 4 04:31:22 2020 (r547509) +++ head/graphics/gcolor2/Makefile Fri Sep 4 04:32:14 2020 (r547510) @@ -10,11 +10,11 @@ MASTER_SITES= SF MAINTAINER= ps.ports@smyrak.com COMMENT= Simple GTK+ 2.0 color selector +LICENSE= GPLv2 + USES= gnome pkgconfig USE_GNOME= gtk20 gnomeprefix intltool GNU_CONFIGURE= yes -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib SUB_FILES= gcolor2.desktop Added: head/graphics/gcolor2/files/patch-src_callbacks.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/gcolor2/files/patch-src_callbacks.h Fri Sep 4 04:32:14 2020 (r547510) @@ -0,0 +1,15 @@ +--- src/callbacks.h.orig 2005-07-11 23:18:59 UTC ++++ src/callbacks.h +@@ -41,9 +41,9 @@ + "\302\267 Usability / user interface enhancements\n" \ + "\302\267 Code cleanup" + +-GtkWidget *gcolor2; +-GtkWidget *menu; +-GdkColor colorvalue; ++extern GtkWidget *gcolor2; ++extern GtkWidget *menu; ++extern GdkColor colorvalue; + + enum + { Modified: head/graphics/gcolor2/files/patch-src_main.c ============================================================================== --- head/graphics/gcolor2/files/patch-src_main.c Fri Sep 4 04:31:22 2020 (r547509) +++ head/graphics/gcolor2/files/patch-src_main.c Fri Sep 4 04:32:14 2020 (r547510) @@ -1,6 +1,6 @@ ---- src/main.c.orig 2010-06-21 22:38:34.000000000 +0200 -+++ src/main.c 2010-06-21 22:36:23.000000000 +0200 -@@ -9,6 +9,11 @@ +--- src/main.c.orig 2005-07-11 14:55:49 UTC ++++ src/main.c +@@ -9,11 +9,19 @@ #include "support.h" #include "callbacks.h" @@ -12,8 +12,16 @@ GtkListStore *liststore; GdkWindow *gdkwin; gchar *user_filename; -@@ -48,8 +53,6 @@ + gchar *sys_filename; ++GtkWidget *gcolor2; ++GtkWidget *menu; ++GdkColor colorvalue; + + void set_user_file () + { +@@ -48,8 +56,6 @@ + void add_list_color (gchar *spec, gchar *name, gchar *type, gboolean is_new_color) { - GdkPixmap *pixmap; @@ -21,7 +29,7 @@ GdkPixbuf *buf; GtkTreeIter iter; -@@ -103,7 +106,7 @@ +@@ -103,7 +109,7 @@ gchar *name; gchar buffer[512]; gchar spec[8]; @@ -30,7 +38,7 @@ fp = fopen (filename, "r"); if (!fp) -@@ -140,7 +143,6 @@ +@@ -140,7 +146,6 @@ GtkTreeViewColumn *column; GtkWidget *treeview; GtkTreeSelection *select;