Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 May 2023 15:03:01 GMT
From:      Cy Schubert <cy@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: 635bab9761ae - 2023Q2 - x11/xcoloredit: Fix LLVM15 error
Message-ID:  <202305291503.34TF319B038832@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2023Q2 has been updated by cy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=635bab9761ae6812a6277c3dc800a945853c79a7

commit 635bab9761ae6812a6277c3dc800a945853c79a7
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2023-05-25 08:50:06 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2023-05-29 15:02:53 +0000

    x11/xcoloredit: Fix LLVM15 error
    
    xcoloredit.c:356:14: error: incompatible pointer to integer conversion assigning to 'int' from 'void *' [-Wint-conversion]
            bars_locked = NULL;
                        ^ ~~~~
    
    While at it adopt this feral port.
    
    (cherry picked from commit 8fc5e393c4a9e1589291f6580415636786dfd105)
---
 x11/xcoloredit/Makefile                 |  2 +-
 x11/xcoloredit/files/patch-xcoloredit.c | 13 +++++++++++--
 2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/x11/xcoloredit/Makefile b/x11/xcoloredit/Makefile
index 3200ec83ccdf..dc9d123f3d04 100644
--- a/x11/xcoloredit/Makefile
+++ b/x11/xcoloredit/Makefile
@@ -5,7 +5,7 @@ CATEGORIES=	x11
 MASTER_SITES=	XCONTRIB/../R5contrib
 DISTNAME=	${PORTNAME}
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	cy@FreeBSD.org
 COMMENT=	Find colour values by graphical colour mixing
 
 USES=		imake tar:Z xorg
diff --git a/x11/xcoloredit/files/patch-xcoloredit.c b/x11/xcoloredit/files/patch-xcoloredit.c
index cbc7f594a24a..588f6d1a89dc 100644
--- a/x11/xcoloredit/files/patch-xcoloredit.c
+++ b/x11/xcoloredit/files/patch-xcoloredit.c
@@ -1,5 +1,5 @@
---- xcoloredit.c.orig	Wed May 30 22:10:09 2007
-+++ xcoloredit.c	Wed May 30 22:10:57 2007
+--- xcoloredit.c.orig	1992-01-25 08:00:21.000000000 -0800
++++ xcoloredit.c	2023-05-25 01:40:26.543747000 -0700
 @@ -38,6 +38,7 @@
   */
  
@@ -35,6 +35,15 @@
  char **argv;
  {
  	Status ok;
+@@ -350,7 +353,7 @@
+ 	unboxedGC = XtGetGC(mixingForm, GCForeground | GCLineWidth, &values);
+ 
+ 	original_background = values.foreground;
+-	bars_locked = NULL;
++	bars_locked = 0;
+ 
+ 	XtAddCallback(redScroll, XtNjumpProc, Thumbed, (XtPointer)RED);
+ 	XtAddCallback(greenScroll, XtNjumpProc, Thumbed, (XtPointer)GREEN);
 @@ -696,7 +699,7 @@
  								(float)0.025);
  	XawScrollbarSetThumb(valScroll, (float)(1.0 - hsv_values.v),



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