Thanks for checking this.

>Perhaps removing the old HOMEPAGE might be better? It doesn't have
>to be set.

Yes, I removed HOMEPAGE.

>Please remove the MASTER_SITES0 line, and remove the :0 from the end of
>the SUPDISTFILES entries.

Sure.

On Tue, Jul 06, 2021 at 11:15:09PM +0200, Jeremie Courreges-Anglas wrote:
> On Wed, Jul 07 2021, Kinichiro Inoguchi <[email protected]> wrote:
> > This is update for sunclock 3.57.
> >
> > - remove REVISION for the first revision of 3.57.
> > - change MASTER_SITES to github.
> 
> This looks better than what I had, at least because my stubborn diff
> was using GH_PROJECT/GH_COMMIT/etc instead of using a standalone mirror.
> https://pbot.rmdir.de/_sNK4DwEWIutWVkColzqqg for reference, though
> I don't suggest using it.
> 
> > +MASTER_SITES=              
> > https://raw.githubusercontent.com/nongiach/Sunclock/master/
> > +MASTER_SITES0=             
> > https://raw.githubusercontent.com/nongiach/Sunclock/master/
>                                                                               
>       ^^^^^^
> Since those URLs embed a reference to the "master" branch they aren't
> stable.  Using the commit hash instead of "master" works and should be
> reasonably stable.

Changed to use commit hash instead of "master".

> 
> Also, as noted by sthen@ no need for two MASTER_SITES lines.
> 
> > - remove Xext, Xau and Xdmcp from WANTLIB-main
> 
> > - remove Sunclock.se from PLIST-main since 3.57 drops it
> 
> Please run ''make plist'', the file has been renamed to Sunclock.sv.

I looked over this. I added Sunclock.sv, now. Thanks.

> 
> > HOMEPAGE appears to be unreachable, but I left it as is
> > since I couldn't find better alternative.
> 
> I agree with sthen: no need to keep the old HOMEPAGE.
> 
> Overall, your changes look good but please address the issue mentioned
> above.

I attached updated diff below.
Could you check again, please ?

> 
> One thing that was not clear to me was the -maps distfiles handling: if
> they bear no license, should we mirror them?  (And If it's ok to mirror
> them - I don't say it is - then surely we could also redistribute those
> original files as part of the -maps subpackage?)

I have no idea about that, though I took a look at other distributions.
Debian has package named sunclock-maps but it does not contain any of these
extra map files. it just has three .vmf files those are included in our
sunclock-main package.
https://packages.debian.org/buster/all/sunclock-maps/filelist
FreeBSD ports sunclock does not provide sunclock-maps package.
https://svnweb.freebsd.org/ports/head/astro/sunclock/

I'm not sure but I think no distro provides sunclock 3.57 with extra map files.
If user wants to use those extra map files, they can download them from
github and deflate them under /usr/local/share/sunclock/earthmaps/.

> 
> -- 
> jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Index: astro/sunclock//Makefile
===================================================================
RCS file: /cvs/ports/astro/sunclock/Makefile,v
retrieving revision 1.30
diff -u -p -u -p -r1.30 Makefile
--- astro/sunclock//Makefile    4 Jul 2021 15:14:07 -0000       1.30
+++ astro/sunclock//Makefile    7 Jul 2021 10:03:52 -0000
@@ -3,22 +3,17 @@
 COMMENT-main=          display the phase of the Sun on a map of the Earth
 COMMENT-maps=          additional maps of the Earth for sunclock
 
-VERSION=               3.56
+VERSION=               3.57
 DISTNAME=              sunclock-${VERSION}
 PKGNAME-main=          ${DISTNAME}
 PKGNAME-maps=          sunclock-maps-${VERSION}
-REVISION-main=         5
-REVISION-maps=         0
 CATEGORIES=            astro
 
-HOMEPAGE=              http://www.arvernes.com/wiki/index.php/Sunclock
-
-MASTER_SITES=          ftp://ftp.ac-grenoble.fr/ge/geosciences/sunclock/
-MASTER_SITES0=         
ftp://ftp.ac-grenoble.fr/ge/geosciences/sunclock/data_packages/
-SUPDISTFILES=          big_images_270804.tar.bz2:0 \
-                       medium_images_270804.tar.bz2:0 \
-                       e43_color1_sh_16k.jpg:0 \
-                       huge.jpg:0
+MASTER_SITES=          
https://raw.githubusercontent.com/nongiach/Sunclock/f4106eb0a81f7594726d6b2859efd8fc64cc1225/
+SUPDISTFILES=          big_images_270804.tar.bz2 \
+                       medium_images_270804.tar.bz2 \
+                       e43_color1_sh_16k.jpg \
+                       huge.jpg
 EXTRACT_SUFX=          .tar.bz2
 
 CONFIGURE_STYLE=       imake
@@ -37,7 +32,7 @@ PKG_ARCH-maps=        *
 PERMIT_PACKAGE=        Yes
 PERMIT_PACKAGE-maps=   no license for additional maps
 
-WANTLIB-main=          X11 Xext Xpm Xau Xdmcp c m z jpeg png
+WANTLIB-main=          X11 Xpm c m z jpeg png
 DIST_SUBDIR=           sunclock
 
 
Index: astro/sunclock//distinfo
===================================================================
RCS file: /cvs/ports/astro/sunclock/distinfo,v
retrieving revision 1.5
diff -u -p -u -p -r1.5 distinfo
--- astro/sunclock//distinfo    4 Apr 2013 16:06:27 -0000       1.5
+++ astro/sunclock//distinfo    7 Jul 2021 10:03:52 -0000
@@ -2,9 +2,9 @@ SHA256 (sunclock/big_images_270804.tar.b
 SHA256 (sunclock/e43_color1_sh_16k.jpg) = 
BC2+a267GIMX35KRysfYHKFS4MuGfvc8O3iiJhd8sLQ=
 SHA256 (sunclock/huge.jpg) = uqQhPRRUiGfWexYzmC12WykMwPLWGP0nitEqdnA5Yls=
 SHA256 (sunclock/medium_images_270804.tar.bz2) = 
0RFqdPNlSwKsnRzyc+5rdE+wlgYbIbDM3TTM+3kh68U=
-SHA256 (sunclock/sunclock-3.56.tar.bz2) = 
J4caPw2Qjoh9y/EozDciuaYtqodI0h4kH3iCspxioi8=
+SHA256 (sunclock/sunclock-3.57.tar.bz2) = 
4328200ceaa31160e901fb855d664033566d72b26a90605acc5d0ed9365402be
 SIZE (sunclock/big_images_270804.tar.bz2) = 11871465
 SIZE (sunclock/e43_color1_sh_16k.jpg) = 20507641
 SIZE (sunclock/huge.jpg) = 11783876
 SIZE (sunclock/medium_images_270804.tar.bz2) = 3917192
-SIZE (sunclock/sunclock-3.56.tar.bz2) = 1313390
+SIZE (sunclock/sunclock-3.57.tar.bz2) = 1325138
Index: astro/sunclock//patches/patch-Imakefile
===================================================================
RCS file: /cvs/ports/astro/sunclock/patches/patch-Imakefile,v
retrieving revision 1.6
diff -u -p -u -p -r1.6 patch-Imakefile
--- astro/sunclock//patches/patch-Imakefile     4 Jun 2013 15:41:17 -0000       
1.6
+++ astro/sunclock//patches/patch-Imakefile     7 Jul 2021 10:03:52 -0000
@@ -1,6 +1,6 @@
 $OpenBSD: patch-Imakefile,v 1.6 2013/06/04 15:41:17 naddy Exp $
---- Imakefile.orig     Sun Jun 18 15:58:50 2006
-+++ Imakefile  Tue Jun  4 10:57:37 2013
+--- Imakefile.orig     Tue Jul  6 23:07:06 2021
++++ Imakefile  Tue Jul  6 23:05:29 2021
 @@ -1,5 +1,5 @@
  XCOMM Should install to /usr or /usr/local ??
 -DESTDIR=/usr
@@ -15,9 +15,9 @@ $OpenBSD: patch-Imakefile,v 1.6 2013/06/
 -SHAREDIR=/share/sunclock
 +SHAREDIR=${PREFIX}/share/sunclock
  
- XCOMM Name of DOCDIR's subdirectories of DESTDIR:
- DOCDIR=/X11R6/lib/X11/doc 
-@@ -42,31 +42,24 @@ CCOPTIONS = -Ae $(XPMINC) $(JINC) -DZLIB -DSHAREDIR=\"
+ XCOMM Name of library subdirectory of DESTDIR:
+ EMXBINDIR=/share/sunclock/bin
+@@ -48,13 +48,13 @@ CCOPTIONS = -Ae $(XPMINC) $(JINC) -DZLIB -DSHAREDIR=\"
  #CCOPTIONS=-O -DZLIB -DNEW_CTIME -DSHAREDIR=\"$(DESTDIR)$(SHAREDIR)\"
  
  # Solaris, Linux
@@ -32,17 +32,12 @@ $OpenBSD: patch-Imakefile,v 1.6 2013/06/
 +ZLIBDIR=
 +JINC=-I${LOCALBASE}/include
  
--CCOPTIONS=-O -DZLIB -DSHAREDIR=\"$(DESTDIR)$(SHAREDIR)\"
-+CCOPTIONS+= $(JINC) $(PINC) $(XPMINC) -DZLIB 
-DSHAREDIR=\"$(DESTDIR)$(SHAREDIR)\"
+-CCOPTIONS=-O -DZLIB -DSHAREDIR=\"$(DESTDIR)$(SHAREDIR)\" 
-DEMXBINDIR=\"$(DESTDIR)$(EMXBINDIR)\"
++CCOPTIONS=$(JINC) $(PINC) $(XPMINC) -DZLIB 
-DSHAREDIR=\"$(DESTDIR)$(SHAREDIR)\" -DEMXBINDIR=\"$(DESTDIR)$(EMXBINDIR)\"
  #endif
  
  SRCS=sunclock.c astro.c widgets.c tildepath.c dirlist.c \
-      readvmf.c readxpm.c readgif.c readjpeg.c readpng.c
- OBJS=sunclock.o astro.o widgets.o tildepath.o dirlist.o \
-      readvmf.o readxpm.o readgif.o readjpeg.o readpng.o
--LOCAL_LIBRARIES=$(XLIB) $(XPMLIBDIR) -lXpm $(ZLIBDIR) -lz \
-+LOCAL_LIBRARIES=$(XPMLIBDIR) -lXpm $(XLIB) $(ZLIBDIR) -lz \
-      $(JLIBDIR) -ljpeg -lpng -lm
+@@ -66,14 +66,6 @@ LOCAL_LIBRARIES=-lX11 $(XPMLIBDIR) -lXpm $(ZLIBDIR) -l
  DEPLIBS=              # I don't know what I'm doing, and I hate imake!
  
  ComplexProgramTarget(sunclock)
@@ -50,9 +45,10 @@ $OpenBSD: patch-Imakefile,v 1.6 2013/06/
 -all::
 -      cd editkit ; xmkmf ; make emx \
 -          DESTDIR=$(DESTDIR) \
--        BINDIR=$(SHAREDIR)/bin \
--        MANDIR=$(SHAREDIR)/editkit \
--        SHAREDIR=$(DESTDIR)$(SHAREDIR)/editkit
+-        BINDIR=$(EMXBINDIR) \
+-        MANDIR=$(DESTDIR)$(SHAREDIR)/editkit \
+-        SHAREDIR=$(DESTDIR)$(SHAREDIR)/editkit \
+-          DOCDIR=$(DOCDIR)
  
  install.man::
        if [ -r $(DESTDIR)$(MANDIR)/sunclock.1x.gz ] ; \
Index: astro/sunclock//patches/patch-readvmf_c
===================================================================
RCS file: /cvs/ports/astro/sunclock/patches/patch-readvmf_c,v
retrieving revision 1.1
diff -u -p -u -p -r1.1 patch-readvmf_c
--- astro/sunclock//patches/patch-readvmf_c     4 Jul 2021 15:14:07 -0000       
1.1
+++ astro/sunclock//patches/patch-readvmf_c     7 Jul 2021 10:03:52 -0000
@@ -3,10 +3,9 @@ $OpenBSD: patch-readvmf_c,v 1.1 2021/07/
 Fix incorrect type usage, zlib's gzFile is already a pointer type.
 Don't use data read from file as a format string (obvious security issue).
 
-Index: readvmf.c
---- readvmf.c.orig
-+++ readvmf.c
-@@ -339,7 +339,7 @@ pixmap_image()
+--- readvmf.c.orig     Fri Aug 22 22:58:52 2008
++++ readvmf.c  Tue Jul  6 23:10:48 2021
+@@ -340,7 +340,7 @@ pixmap_image()
  char *
  getdata(fd)
  #ifdef ZLIB
@@ -15,16 +14,16 @@ Index: readvmf.c
  #else
  FILE *fd;
  #endif
-@@ -432,7 +432,7 @@ struct Sundata * Context;
+@@ -433,7 +433,7 @@ struct Sundata * Context;
    double theta, phi;
    char *str, *ptr;
  #ifdef ZLIB
 -  gzFile * fd;
 +  gzFile fd;
+   int plen;
+   char *zpath;
  #else
-   FILE *fd;
- #endif
-@@ -480,7 +480,7 @@ struct Sundata * Context;
+@@ -505,7 +505,7 @@ struct Sundata * Context;
       ret_value = 5;
       goto abort;
    }
Index: astro/sunclock//patches/patch-sunclock_c
===================================================================
RCS file: /cvs/ports/astro/sunclock/patches/patch-sunclock_c,v
retrieving revision 1.4
diff -u -p -u -p -r1.4 patch-sunclock_c
--- astro/sunclock//patches/patch-sunclock_c    6 Dec 2013 16:19:58 -0000       
1.4
+++ astro/sunclock//patches/patch-sunclock_c    7 Jul 2021 10:03:52 -0000
@@ -1,6 +1,6 @@
 $OpenBSD: patch-sunclock_c,v 1.4 2013/12/06 16:19:58 naddy Exp $
---- sunclock.c.orig    Thu Jun 22 01:21:40 2006
-+++ sunclock.c Thu Dec  5 19:46:00 2013
+--- sunclock.c.orig    Thu Aug  7 21:40:24 2008
++++ sunclock.c Tue Jul  6 23:13:27 2021
 @@ -113,7 +113,6 @@
  #include <stdlib.h>
  #include <stdio.h>
@@ -17,14 +17,3 @@ $OpenBSD: patch-sunclock_c,v 1.4 2013/12
  #ifdef NEW_CTIME
  extern char *   timezone();
  #endif
-@@ -3142,9 +3140,9 @@ struct Sundata * Context;
- {
-    int ilon, ilat, width, dw = 0;
-    struct TextLabel * label;
--   if(!Context->wintype) return;
-    char *text, *text0, *ptr;
- 
-+   if(!Context->wintype) return;
-    label = Context->label;
-    while (label) if (label->text && *label->text) {
-       ilon = int_longitude(Context, label->lon);
Index: astro/sunclock//pkg/PLIST-main
===================================================================
RCS file: /cvs/ports/astro/sunclock/pkg/PLIST-main,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 PLIST-main
--- astro/sunclock//pkg/PLIST-main      12 May 2018 09:41:31 -0000      1.3
+++ astro/sunclock//pkg/PLIST-main      7 Jul 2021 10:03:52 -0000
@@ -19,7 +19,7 @@ share/sunclock/i18n/Sunclock.it
 share/sunclock/i18n/Sunclock.nl
 share/sunclock/i18n/Sunclock.no
 share/sunclock/i18n/Sunclock.pl
-share/sunclock/i18n/Sunclock.se
+share/sunclock/i18n/Sunclock.sv
 share/sunclock/wm_icons/
 share/sunclock/wm_icons/mini-sunclock-16x14.xpm
 share/sunclock/wm_icons/mini-sunclock-16x16.xpm

Reply via email to