From owner-svn-ports-all@freebsd.org Fri Sep 25 15:24:44 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 BAFF43FA9D1; Fri, 25 Sep 2020 15:24:44 +0000 (UTC) (envelope-from fernape@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 4BybLh4VjLz468K; Fri, 25 Sep 2020 15:24:44 +0000 (UTC) (envelope-from fernape@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 7DE77152C7; Fri, 25 Sep 2020 15:24:44 +0000 (UTC) (envelope-from fernape@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 08PFOiGJ091560; Fri, 25 Sep 2020 15:24:44 GMT (envelope-from fernape@FreeBSD.org) Received: (from fernape@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 08PFOhGl091554; Fri, 25 Sep 2020 15:24:43 GMT (envelope-from fernape@FreeBSD.org) Message-Id: <202009251524.08PFOhGl091554@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: fernape set sender to fernape@FreeBSD.org using -f From: =?UTF-8?Q?Fernando_Apestegu=c3=ada?= Date: Fri, 25 Sep 2020 15:24:43 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r550049 - in branches/2020Q3/astro/wmglobe: . files X-SVN-Group: ports-branches X-SVN-Commit-Author: fernape X-SVN-Commit-Paths: in branches/2020Q3/astro/wmglobe: . files X-SVN-Commit-Revision: 550049 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, 25 Sep 2020 15:24:44 -0000 Author: fernape Date: Fri Sep 25 15:24:42 2020 New Revision: 550049 URL: https://svnweb.freebsd.org/changeset/ports/550049 Log: MFH: r550048 astro/wmglobe: fix 13-CURRENT build Another instance of -fno-common issue. Some minor build warnings fixed. PR: 249389 Submitted by: jd.fbsd@goneja.de (maintainer) Approved by: ports-secteam (blanket, runtime fix, -fno-common) Added: branches/2020Q3/astro/wmglobe/files/patch-src_myconvert.c - copied unchanged from r550048, head/astro/wmglobe/files/patch-src_myconvert.c branches/2020Q3/astro/wmglobe/files/patch-src_rend.c - copied unchanged from r550048, head/astro/wmglobe/files/patch-src_rend.c branches/2020Q3/astro/wmglobe/files/patch-src_wmglobe.c - copied unchanged from r550048, head/astro/wmglobe/files/patch-src_wmglobe.c branches/2020Q3/astro/wmglobe/files/patch-src_wmglobe.h - copied unchanged from r550048, head/astro/wmglobe/files/patch-src_wmglobe.h branches/2020Q3/astro/wmglobe/files/patch-src_wmgutil.c - copied unchanged from r550048, head/astro/wmglobe/files/patch-src_wmgutil.c Modified: branches/2020Q3/astro/wmglobe/Makefile Directory Properties: branches/2020Q3/ (props changed) Modified: branches/2020Q3/astro/wmglobe/Makefile ============================================================================== --- branches/2020Q3/astro/wmglobe/Makefile Fri Sep 25 15:22:06 2020 (r550048) +++ branches/2020Q3/astro/wmglobe/Makefile Fri Sep 25 15:24:42 2020 (r550049) @@ -18,8 +18,9 @@ LIB_DEPENDS= libwraster.so:x11-wm/libwraster USES= xorg USE_XORG= x11 xext xpm +MAKE_ARGS= PREFIX=${STAGEDIR}${PREFIX} + PLIST_FILES= bin/wmglobe \ man/man1/wmglobe.1.gz -MAKE_ARGS= PREFIX=${STAGEDIR}${PREFIX} .include Copied: branches/2020Q3/astro/wmglobe/files/patch-src_myconvert.c (from r550048, head/astro/wmglobe/files/patch-src_myconvert.c) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2020Q3/astro/wmglobe/files/patch-src_myconvert.c Fri Sep 25 15:24:42 2020 (r550049, copy of r550048, head/astro/wmglobe/files/patch-src_myconvert.c) @@ -0,0 +1,20 @@ +--- src/myconvert.c.orig 2020-09-16 20:04:28 UTC ++++ src/myconvert.c +@@ -253,7 +253,7 @@ static RXImage *image2PseudoColor(RContext * ctx, RIma + const unsigned short bmask = rmask; + unsigned short *rtable, *gtable, *btable; + const int cpccpc = cpc * cpc; +- unsigned char *data; ++ char *data; + int ofs; + /*register unsigned char maxrgb = 0xff; */ + +@@ -420,7 +420,7 @@ static RXImage *image2GrayScale(RContext * ctx, RImage + const int cpc = ctx->attribs->colors_per_channel; + unsigned short gmask; + unsigned short *table; +- unsigned char *data; ++ char *data; + int ofs; + /*register unsigned char maxrgb = 0xff; */ + Copied: branches/2020Q3/astro/wmglobe/files/patch-src_rend.c (from r550048, head/astro/wmglobe/files/patch-src_rend.c) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2020Q3/astro/wmglobe/files/patch-src_rend.c Fri Sep 25 15:24:42 2020 (r550049, copy of r550048, head/astro/wmglobe/files/patch-src_rend.c) @@ -0,0 +1,23 @@ +--- src/rend.c.orig 2020-09-15 14:31:47 UTC ++++ src/rend.c +@@ -33,6 +33,20 @@ + + #include "wmglobe.h" + ++/* ++ * variables globales ++ */ ++ ++double solu[DIAMETRE][DIAMETRE][3]; ++int tabsolu[DIAMETRE][DIAMETRE]; ++double moon_lat,moon_long; ++struct timeval tlast, tnext, trend, tdelay, tini, tbase; ++time_t tsunpos; ++double center_dist; ++double light_x, light_y, light_z; /* vector of sunlight with lengt 1 */ ++double c_coef, b_coef; ++int radius_proj, aml; ++ + static RColor mygetMapColorLinear + (double longitude, double latitude, double angle); + Copied: branches/2020Q3/astro/wmglobe/files/patch-src_wmglobe.c (from r550048, head/astro/wmglobe/files/patch-src_wmglobe.c) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2020Q3/astro/wmglobe/files/patch-src_wmglobe.c Fri Sep 25 15:24:42 2020 (r550049, copy of r550048, head/astro/wmglobe/files/patch-src_wmglobe.c) @@ -0,0 +1,29 @@ +--- src/wmglobe.c.orig 2001-08-12 15:41:22 UTC ++++ src/wmglobe.c +@@ -35,7 +35,17 @@ + #include "defnimap.xpm" + #endif + ++/* ++ * variables globales ++ */ + ++Display *dpy; ++Pixmap pix, pixmask; ++XEvent Event; ++RImage *map, *small, *mapnight; ++Window iconwin, win; ++GC NormalGC; ++double marker[MAX_MARKERS][3]; + + + +@@ -414,7 +424,7 @@ int main(int argc, char *argv[]) + if (do_something) { + if (!myRConvertImage(ctx, small, &pix)) { + fprintf(stderr, "crash !?\n"); +- fprintf(stderr, RMessageForError(RErrorCode)); ++ fprintf(stderr, "%s", RMessageForError(RErrorCode)); + exit(1); + } + wmg.pixmap = pix; Copied: branches/2020Q3/astro/wmglobe/files/patch-src_wmglobe.h (from r550048, head/astro/wmglobe/files/patch-src_wmglobe.h) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2020Q3/astro/wmglobe/files/patch-src_wmglobe.h Fri Sep 25 15:24:42 2020 (r550049, copy of r550048, head/astro/wmglobe/files/patch-src_wmglobe.h) @@ -0,0 +1,141 @@ +--- src/wmglobe.h.orig 2001-08-12 15:41:22 UTC ++++ src/wmglobe.h +@@ -34,7 +34,6 @@ + #include /*toupper */ + #include + #include +-#include + #include + #include + #include +@@ -83,17 +82,17 @@ typedef struct { + int right; + } MOUSE_REGION; + +-MOUSE_REGION mouse_region[MAX_MOUSE_REGION]; ++extern MOUSE_REGION mouse_region[MAX_MOUSE_REGION]; + + typedef struct MPO { + int r, g, b; + } MPO; + +-MPO *md[4], *mn[4]; ++extern MPO *md[4], *mn[4]; + +-double solu[DIAMETRE][DIAMETRE][3]; +-int tabsolu[DIAMETRE][DIAMETRE]; +-int solution; ++extern double solu[DIAMETRE][DIAMETRE][3]; ++extern int tabsolu[DIAMETRE][DIAMETRE]; ++extern int solution; + + typedef struct { + Pixmap pixmap; +@@ -102,72 +101,72 @@ typedef struct { + } XpmIcon; + + +-Display *dpy; ++extern Display *dpy; + +-char *dayfile, *nightfile, *dpy_name; ++extern char *dayfile, *nightfile, *dpy_name; + +-Pixmap pix, pixmask; ++extern Pixmap pix, pixmask; + +-XEvent Event; ++extern XEvent Event; + +-RImage *map, *small, *mapnight; ++extern RImage *map, *small, *mapnight; + +-XpmIcon screenpos, scrdate, scrdiv, numpix, txtpix, wmg; ++extern XpmIcon screenpos, scrdate, scrdiv, numpix, txtpix, wmg; + +-Window iconwin, win; +-int onlyshape, option_iw; +-GC NormalGC; ++extern Window iconwin, win; ++extern int onlyshape, option_iw; ++extern GC NormalGC; + + /********* rendering********/ + + #if WITH_MARKERS +-double marker[MAX_MARKERS][3]; +-int nb_marker, sun_marker, moon_marker; +-RColor sun_col, moon_col; +-double moon_lat,moon_long; ++extern double marker[MAX_MARKERS][3]; ++extern int nb_marker, sun_marker, moon_marker; ++extern RColor sun_col, moon_col; ++extern double moon_lat,moon_long; + #endif + +-double delay, time_multi; ++extern double delay, time_multi; + /* + * struct timeval delta_tim, last_tim, next_tim, render_tim, base_tim, + * vec_tim; + * + * time_t beg_time, ini_time,t1901; + */ +-struct timeval tlast, tnext, trend, tdelay, tini, tbase; +-time_t tsunpos; ++extern struct timeval tlast, tnext, trend, tdelay, tini, tbase; ++extern time_t tsunpos; + +-int sens, fun, funx, funy, oknimap, mratiox, mratioy, gotoscr; ++extern int sens, fun, funx, funy, oknimap, mratiox, mratioy, gotoscr; + +-int typecadre, p_type, use_nightmap, use_default_nightmap, use_nmap_ini, +-firstTime, stoprand, do_something, iop; ++extern int typecadre, p_type, use_nightmap, use_default_nightmap, ++ use_nmap_ini, firstTime, stoprand, do_something, iop; + +-double v_lat, v_long, old_dvlat, old_dvlong, dv_lat, dv_long; +-double dlat, dlong, addlat, addlong, ratiox, ratioy, dawn; ++extern double v_lat, v_long, old_dvlat, old_dvlong, dv_lat, dv_long; ++extern double dlat, dlong, addlat, addlong, ratiox, ratioy, dawn; + +-double sun_lat; +-double sun_long; ++extern double sun_lat; ++extern double sun_long; + +-double fov; +-double radius; +-double proj_dist; /* distance to projection plane */ ++extern double fov; ++extern double radius; ++extern double proj_dist; /* distance to projection plane */ + +-double center_dist; /* distance to center of earth */ ++extern double center_dist; /* distance to center of earth */ + +-double ambient_light; /* how dark is the dark side? */ ++extern double ambient_light; /* how dark is the dark side? */ + +-double light_x, light_y, light_z; /* vector of sunlight with lengt 1 */ ++extern double light_x, light_y, light_z; /* vector of sunlight with lengt 1 */ + +-double c_coef, b_coef; +-double zoom; +-int radius_proj, aml; /* radius of sphere on screen */ ++extern double c_coef, b_coef; ++extern double zoom; ++extern int radius_proj, aml; /* radius of sphere on screen */ + +-RColor noir; ++extern RColor noir; + #ifdef DEBUG +-double minhz; ++extern double minhz; + #endif + +-int stable; ++extern int stable; + + /****************************************************************/ + /* Function Prototypes */ Copied: branches/2020Q3/astro/wmglobe/files/patch-src_wmgutil.c (from r550048, head/astro/wmglobe/files/patch-src_wmgutil.c) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2020Q3/astro/wmglobe/files/patch-src_wmgutil.c Fri Sep 25 15:24:42 2020 (r550049, copy of r550048, head/astro/wmglobe/files/patch-src_wmgutil.c) @@ -0,0 +1,40 @@ +--- src/wmgutil.c.orig 2020-09-15 14:29:30 UTC ++++ src/wmgutil.c +@@ -32,6 +32,37 @@ + #include "scrtime.xpm" + #include "scrdiv.xpm" + ++/* ++ * variables globales ++ */ ++ ++MOUSE_REGION mouse_region[MAX_MOUSE_REGION]; ++MPO *md[4], *mn[4]; ++int solution; ++char *dayfile, *nightfile, *dpy_name; ++XpmIcon screenpos, scrdate, scrdiv, numpix, txtpix, wmg; ++int onlyshape, option_iw; ++int nb_marker, sun_marker, moon_marker; ++RColor sun_col, moon_col; ++double delay, time_multi; ++int sens, fun, funx, funy, oknimap, mratiox, mratioy, gotoscr; ++int typecadre, p_type, use_nightmap, use_default_nightmap, use_nmap_ini, ++ firstTime, stoprand, do_something, iop; ++double v_lat, v_long, old_dvlat, old_dvlong, dv_lat, dv_long; ++double dlat, dlong, addlat, addlong, ratiox, ratioy, dawn; ++double sun_lat; ++double sun_long; ++double fov; ++double radius; ++double proj_dist; /* distance to projection plane */ ++double ambient_light; ++double zoom; ++RColor noir; ++double minhz; ++int stable; ++ ++ ++ + static void move_earth(double vla, double vlo); + static int flush_expose(Window w); + static void mqparam();