diff options
author | Jakov Smolić <jsmolic@gentoo.org> | 2022-11-24 07:34:44 +0100 |
---|---|---|
committer | Jakov Smolić <jsmolic@gentoo.org> | 2022-11-24 07:36:48 +0100 |
commit | 34dd5f3ae77f5f77cf267cd6c1f874cfd2cc86ce (patch) | |
tree | 41d8eb9d3af8266009aed6bbf154675703a13ae5 /sci-misc | |
parent | games-fps/qudos: treeclean (diff) | |
download | gentoo-34dd5f3ae77f5f77cf267cd6c1f874cfd2cc86ce.tar.gz gentoo-34dd5f3ae77f5f77cf267cd6c1f874cfd2cc86ce.tar.bz2 gentoo-34dd5f3ae77f5f77cf267cd6c1f874cfd2cc86ce.zip |
sci-misc/gt-itm: treeclean
Closes: https://bugs.gentoo.org/831870
Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
Diffstat (limited to 'sci-misc')
-rw-r--r-- | sci-misc/gt-itm/Manifest | 2 | ||||
-rw-r--r-- | sci-misc/gt-itm/files/gt-itm-19961004-Fix-build-with-Clang-16.patch | 326 | ||||
-rw-r--r-- | sci-misc/gt-itm/files/gt-itm-19961004-Fix-musl-build.patch | 69 | ||||
-rw-r--r-- | sci-misc/gt-itm/files/gt-itm-19961004-gentoo.patch | 201 | ||||
-rw-r--r-- | sci-misc/gt-itm/files/gt-itm-implicits.patch | 111 | ||||
-rw-r--r-- | sci-misc/gt-itm/gt-itm-19961004-r3.ebuild | 71 | ||||
-rw-r--r-- | sci-misc/gt-itm/metadata.xml | 8 |
7 files changed, 0 insertions, 788 deletions
diff --git a/sci-misc/gt-itm/Manifest b/sci-misc/gt-itm/Manifest deleted file mode 100644 index 2cf70b9c8419..000000000000 --- a/sci-misc/gt-itm/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST gt-itm-19961004.tar.gz 623345 BLAKE2B e9cf712d6a4411cbb66faf9bbd803bb3753ebbbd05174c02581c9b606e02f1c7132b0b96f483e3f273a28aebd64a8ede046de7397ddb9606efccad59ba137524 SHA512 e775ac475d40fc753a27fb619f262d701818190fa3be90d587f95e215610918b56b9d67783d4e7e2f55d0064e5b2d2ce911042353b29bce1e4dbcf407ff9fabc -DIST sgb2ns-19961004.tar.gz 50635 BLAKE2B b669d9def20c7e149de33072467183190f85b7fb30662cad83c53c1d9317532a1bd95174498eebd13b98eccf2ac693159793a40b667cdc97a6f15fbd027e0975 SHA512 77ec6fdad61f43bf078851852aa03dfea02df235a78853e477dacc8e2b94c0d8bda9772fc00d18fdaeabc419b2780c016b7a64a1a06ac0be2c8c2aa6608c06cf diff --git a/sci-misc/gt-itm/files/gt-itm-19961004-Fix-build-with-Clang-16.patch b/sci-misc/gt-itm/files/gt-itm-19961004-Fix-build-with-Clang-16.patch deleted file mode 100644 index e13a035e1950..000000000000 --- a/sci-misc/gt-itm/files/gt-itm-19961004-Fix-build-with-Clang-16.patch +++ /dev/null @@ -1,326 +0,0 @@ -From 960d73fb2149340e39acc23741ede9dee52b8778 Mon Sep 17 00:00:00 2001 -From: Sam James <sam@gentoo.org> -Date: Mon, 24 Oct 2022 18:47:48 +0100 -Subject: [PATCH 1/2] Fix build with Clang 16 - -Bug: https://bugs.gentoo.org/741582 ---- a/gt-itm/src/dfs.c -+++ b/gt-itm/src/dfs.c -@@ -23,7 +23,7 @@ int dfs(Graph *G,int n,u_char *vis); - - /* check connectivity of graph g */ - /* uses depth-first search. */ --isconnected(Graph *G) -+int isconnected(Graph *G) - { - u_char *vis; - Vertex *vp; ---- a/gt-itm/src/edriver.c -+++ b/gt-itm/src/edriver.c -@@ -51,9 +51,7 @@ - } \ - }\ - --main(argc,argv) -- int argc; -- char *argv[]; -+int main(int argc, char **argv) - { - int i; - int min, max, sum, bins, *ddist; -@@ -63,14 +61,14 @@ main(argc,argv) - char outfile[MAXF]; - char *dstr = "-nd"; - int plen, idx; -- FILE *ddf, *evf, *pdf, *fp, *fopen(); -+ FILE *ddf, *evf, *pdf, *fp; - int prdist = 1; - enum Field f0, f1; - int first = 1; - - if (argc == 1) { - printf("Usage: edriver <filestem> [-nd] [-<f0><f1>]*\n\n"); -- return; -+ return 1; - } - /* determine whether to print distributions */ - /* determine where in argv the field pairs begin */ ---- a/gt-itm/src/eval.c -+++ b/gt-itm/src/eval.c -@@ -201,10 +201,7 @@ int bicomp(Graph *g,int verbose) - } - - --void twofield_sptree(g,u,f0,f1) --Graph*g; --Vertex*u; --enum Field f0,f1; -+void twofield_sptree(Graph *g, Vertex *u, enum Field f0, enum Field f1) - { - Vertex *v, *t; - Arc *r; ---- a/gt-itm/src/geog.c -+++ b/gt-itm/src/geog.c -@@ -33,7 +33,7 @@ - static char geogId[]="$Id: geog.c,v 1.1 1996/10/04 13:36:46 calvert Exp $"; - - long fdiam(Graph *g); --void die(s); -+void die(char* errstr); - - double - distance(Vertex *u, Vertex *v) -@@ -75,7 +75,7 @@ printparms(char *buf,geo_parms *pp) - void - randomize(long* a, long size, long mean, int iters) - { --register i,indx; -+int i,indx; - - for (i=0; i<size; i++) /* initialize */ - a[i] = mean; -@@ -149,11 +149,11 @@ geo(long seed, geo_parms *pp) - { - double p,d,L,radius,r; - u_char *occ; --register int scale; -+int scale; - unsigned nbytes, index, x, y; - u_long units,pertrange; - int mallocd; --register i,j; -+int i,j; - Graph *G; - Vertex *up,*vp; - char namestr[128]; -@@ -319,7 +319,7 @@ int - edge_level(Vertex *u, Vertex *v, int nlev) - { - char ss[MAXNAMELEN], tt[MAXNAMELEN]; --register char *s=ss, *t=tt, *b, *c; -+char *s=ss, *t=tt, *b, *c; - - nlev -= 1; - -@@ -359,7 +359,7 @@ geo_hier(long seed, - Graph *newG, *tG, *GG, *srcG, *dstG; - long *numv; /* array of sizes of lower-level graphs */ - geo_parms *curparms, workparms[MAXLEVEL]; --register i,k,indx; -+int i,k,indx; - long dst; - int temp,total,lowsize,otherend,blen,level; - long maxP[MAXLEVEL], maxDiam[MAXLEVEL], wt[MAXLEVEL]; -@@ -614,7 +614,7 @@ char vnamestr[MAXNAMELEN]; - */ - { - char buf[ID_FIELD_SIZE+1]; -- register char *cp; -+ char *cp; - int len, nextlen, left; - - strcpy(tG->util_types,GEO_UTIL); /* same for all geo graphs, */ ---- a/gt-itm/src/itm.c -+++ b/gt-itm/src/itm.c -@@ -56,7 +56,7 @@ - char *delim = " \t\n", *nonestr = "<none>"; - static char errstr[256]; - --void die(s); -+void die(char* errstr); - - char * - get_geoparms(FILE * f, geo_parms * pp) -@@ -298,7 +298,7 @@ geo_parms parmsbuf[MAXLEVEL]; /* make sure MAXLEVEL >= 3 */ - return NULL; - } - --main(int argc, char **argv) -+int main(int argc, char **argv) - { - FILE *infile; - char *rv; -@@ -306,7 +306,7 @@ main(int argc, char **argv) - - if (argc == 1) { - printf("itm <spec-file0> <spec-file1> ....\n\n"); -- return; -+ return 1; - } - while (--argc) { - ---- a/gt-itm/src/sgb2alt.c -+++ b/gt-itm/src/sgb2alt.c -@@ -24,7 +24,7 @@ - #include "gb_save.h" - #include "geog.h" - --main(argc,argv) -+int main(argc,argv) - int argc; - char *argv[]; - { -@@ -36,14 +36,14 @@ main(argc,argv) - - if (argc != 3) { - printf("sgb2old <sgfile> <altfile>\n\n"); -- return; -+ return 1; - } - fout = fopen(argv[2],"w"); - - g = restore_graph(argv[1]); - if (g == NULL) { - printf("%s does not contain a correct SGB graph\n",argv[1]); -- return; -+ return 1; - } - - fprintf(fout,"GRAPH (#nodes #edges id uu vv ww xx yy zz):\n"); ---- a/gt-itm/src/ts.c -+++ b/gt-itm/src/ts.c -@@ -76,7 +76,7 @@ int stubs_OK(Vertex *snp0,Vertex *snp1); - long - fdiam(Graph *g) - { --register i,j,k; -+int i,j,k; - long **dist, **ldist; - int changed,mallocd; - long diam, ldiam, newdist = 0, otherend; -@@ -174,7 +174,7 @@ Arc *a; - } /* fdiam */ - - void --die(s) -+die(char* s) - { - fprintf(stderr,"Fatal error %s\n",s); - exit(1); -@@ -187,7 +187,7 @@ exit(1); - void - copyedges(Graph *fromG, Graph *toG, long base) - { --register i, indx; -+int i, indx; - Vertex *np, *vp, *basep; - Arc *ap; - -@@ -245,7 +245,7 @@ long i,j,k; - long indx, diam, totalnodes, base, dom; - char dnodename[ID_FIELD_SIZE], snodename[ID_FIELD_SIZE]; - int dnamelen, numtries=0; --register Vertex *v,*dnp, *snp, /* domain node and stub node pointers */ -+Vertex *v,*dnp, *snp, /* domain node and stub node pointers */ - *ddnp, *fp, *tp, *tmp; - - Arc *a; ---- a/gt-itm/src/sgb2alt.c -+++ b/gt-itm/src/sgb2alt.c -@@ -32,7 +32,7 @@ int main(argc,argv) - Vertex *v; - Arc *a; - Graph *g; -- FILE *fopen(), *fout; -+ FILE *fout; - - if (argc != 3) { - printf("sgb2old <sgfile> <altfile>\n\n"); ---- a/sgb2ns/sgb2comns.c -+++ b/sgb2ns/sgb2comns.c -@@ -80,9 +80,7 @@ void print_flat_nodes(FILE *fout, Graph *g); - void print_edges(FILE *fout, Graph *g); - void print_hdr(FILE *fout, Graph *g); - --main(argc,argv) -- int argc; -- char *argv[]; -+int main(int argc, char *argv[]) - { - - int hier_flag=0; -@@ -102,7 +100,7 @@ main(argc,argv) - g = restore_graph(argv[1]); - if (g == NULL) { - printf("%s does not contain a correct SGB graph\n",argv[1]); -- return; -+ return 1; - } - - if (hier_flag) ---- a/sgb2ns/sgb2hierns.c -+++ b/sgb2ns/sgb2hierns.c -@@ -47,9 +47,7 @@ - #define HUGE 655536 - - --main(argc,argv) -- int argc; -- char *argv[]; -+int main(int argc, char *argv[]) - { - - int i, -@@ -89,7 +87,7 @@ main(argc,argv) - /* for the purpose of scenario generator, need to return a list of transits - & stubs and num of nodes in each - hence the optional third arg topofile */ - printf("sgb2hierns <sgfile> <outfile> ?<topofile>?\n\n"); -- return; -+ return 1; - } - - fout = fopen(argv[2],"w"); -@@ -101,7 +99,7 @@ main(argc,argv) - g = restore_graph(argv[1]); - if (g == NULL) { - printf("%s does not contain a correct SGB graph\n",argv[1]); -- return; -+ return 1; - } - - fprintf(fout,"# Generated by sgb2hier-ns,sgb2hier-ns generated from sgb2ns\n"); ---- a/sgb2ns/sgb2ns.c -+++ b/sgb2ns/sgb2ns.c -@@ -41,27 +41,25 @@ - #include "gb_save.h" - #include "geog.h" - --main(argc,argv) -- int argc; -- char *argv[]; -+int main(int argc,char *argv[]) - { - int i, j, nlink; - Vertex *v; - Arc *a; - Graph *g; -- FILE *fopen(), *fout; -+ FILE *fout; - char m[420]; - - if (argc != 3) { - printf("sgb2ns <sgfile> <nsfile>\n\n"); -- return; -+ return 1; - } - fout = fopen(argv[2],"w"); - - g = restore_graph(argv[1]); - if (g == NULL) { - printf("%s does not contain a correct SGB graph\n",argv[1]); -- return; -+ return 1; - } - - fprintf(fout, "# Generated by sgb2ns, created by Polly Huang\n"); ---- a/sgb2ns/ts2ns.c -+++ b/sgb2ns/ts2ns.c -@@ -55,7 +55,7 @@ main(argc,argv) - Vertex *v; - Arc *a; - Graph *g; -- FILE *fopen(), *fout; -+ FILE *fout; - char m[420], name[40]; - int transits[HUGE]; - int p,q, total_transits; diff --git a/sci-misc/gt-itm/files/gt-itm-19961004-Fix-musl-build.patch b/sci-misc/gt-itm/files/gt-itm-19961004-Fix-musl-build.patch deleted file mode 100644 index 3826661bd9f1..000000000000 --- a/sci-misc/gt-itm/files/gt-itm-19961004-Fix-musl-build.patch +++ /dev/null @@ -1,69 +0,0 @@ -From 15670744cc6a182cf0d2a4ed16748255ac1ff5c8 Mon Sep 17 00:00:00 2001 -From: Sam James <sam@gentoo.org> -Date: Mon, 24 Oct 2022 18:48:48 +0100 -Subject: [PATCH 2/2] Fix musl build - -Bug: https://bugs.gentoo.org/832835 ---- a/gt-itm/src/dfs.c -+++ b/gt-itm/src/dfs.c -@@ -19,22 +19,22 @@ static char dfsID[]="$Id: dfs.c,v 1.1 1996/10/04 13:36:32 calvert Exp $"; - - #define NBBY 8 - --int dfs(Graph *G,int n,u_char *vis); -+int dfs(Graph *G,int n,unsigned char *vis); - - /* check connectivity of graph g */ - /* uses depth-first search. */ - int isconnected(Graph *G) - { --u_char *vis; -+unsigned char *vis; - Vertex *vp; - int i,nbytes; - - nbytes = (G->n/NBBY)+ (G->n%NBBY?1:0); - - if (nbytes < STACKMAX) { /* for small amounts we use stack frame */ -- vis = (u_char *) alloca(nbytes); -+ vis = (unsigned char *) alloca(nbytes); - } else { -- vis = (u_char *) malloc(nbytes); -+ vis = (unsigned char *) malloc(nbytes); - } - - for (i=0; i<nbytes; i++) vis[i]=0; -@@ -54,7 +54,7 @@ int i,nbytes; - /* trivial depth-first search. */ - /* Returns number of newly-visited nodes in subtree rooted at node n. */ - int --dfs(Graph *G,int n,u_char *vis) -+dfs(Graph *G,int n,unsigned char *vis) - { - int nvis, i, nextn; - Vertex *vp; ---- a/gt-itm/src/geog.c -+++ b/gt-itm/src/geog.c -@@ -148,7 +148,7 @@ Graph * - geo(long seed, geo_parms *pp) - { - double p,d,L,radius,r; --u_char *occ; -+unsigned char *occ; - int scale; - unsigned nbytes, index, x, y; - u_long units,pertrange; -@@ -189,10 +189,10 @@ char namestr[128]; - nbytes = ((scale*scale)%NBBY ? (scale*scale/NBBY)+1 : (scale*scale)/NBBY); - - if (nbytes < STACKMAX) { /* small amount - just do it in the stack */ -- occ = (u_char *) alloca(nbytes); -+ occ = (unsigned char *) alloca(nbytes); - mallocd = 0; - } else { -- occ = (u_char *) malloc(nbytes); -+ occ = (unsigned char *) malloc(nbytes); - mallocd = 1; - } - - diff --git a/sci-misc/gt-itm/files/gt-itm-19961004-gentoo.patch b/sci-misc/gt-itm/files/gt-itm-19961004-gentoo.patch deleted file mode 100644 index 12b8579ece95..000000000000 --- a/sci-misc/gt-itm/files/gt-itm-19961004-gentoo.patch +++ /dev/null @@ -1,201 +0,0 @@ ---- a/gt-itm/sample-graphs/rand/r10/Runconvert -+++ b/gt-itm/sample-graphs/rand/r10/Runconvert -@@ -1,5 +1,5 @@ - #!/bin/csh - - foreach i (0 1 2) -- ../../../bin/sgb2alt r10-$i.gb r10-$i.alt -+ sgb2alt r10-$i.gb r10-$i.alt - end ---- a/gt-itm/sample-graphs/rand/r10/Runeval -+++ b/gt-itm/sample-graphs/rand/r10/Runeval -@@ -1,5 +1,5 @@ - #!/bin/csh - - foreach i (0 1 2) -- ../../../bin/edriver r10-$i -nd -hh -ll -hl -+ edriver r10-$i -nd -hh -ll -hl - end ---- a/gt-itm/sample-graphs/rand/r100/Runconvert -+++ b/gt-itm/sample-graphs/rand/r100/Runconvert -@@ -1,5 +1,5 @@ - #!/bin/csh - - foreach i (0 1 2 3 4 5 6 7 8 9) -- ../../../bin/sgb2alt r100-$i.gb r100-$i.alt -+ sgb2alt r100-$i.gb r100-$i.alt - end ---- a/gt-itm/sample-graphs/rand/r100/Runeval -+++ b/gt-itm/sample-graphs/rand/r100/Runeval -@@ -1,5 +1,5 @@ - #!/bin/csh - - foreach i (0 1 2 3 4 5 6 7 8 9) -- ../../../bin/edriver r100-$i -nd -hh -ll -hl -+ edriver r100-$i -nd -hh -ll -hl - end ---- a/gt-itm/sample-graphs/ts/ts100/Runconvert -+++ b/gt-itm/sample-graphs/ts/ts100/Runconvert -@@ -1,5 +1,5 @@ - #!/bin/csh - - foreach i (0 1 2 3 4 5 6 7 8 9) -- ../../bin/sgb2alt ts100-$i.gb ts100-$i.alt -+ sgb2alt ts100-$i.gb ts100-$i.alt - end ---- a/gt-itm/sample-graphs/ts/ts100/Runeval -+++ b/gt-itm/sample-graphs/ts/ts100/Runeval -@@ -1,5 +1,5 @@ - #!/bin/csh - - foreach i (0 1 2 3 4 5 6 7 8 9) -- ../../../bin/edriver ts100-$i -nd -hh -ll -hl -+ edriver ts100-$i -nd -hh -ll -hl - end ---- a/gt-itm/sample-graphs/ts/ts600/Runconvert -+++ b/gt-itm/sample-graphs/ts/ts600/Runconvert -@@ -1,5 +1,5 @@ - #!/bin/csh - - foreach i (0 1 2 3 4 5 6 7 8 9) -- ../../bin/sgb2alt ts600-$i.gb ts600-$i.alt -+ sgb2alt ts600-$i.gb ts600-$i.alt - end ---- a/gt-itm/sample-graphs/ts/ts600/Runeval -+++ b/gt-itm/sample-graphs/ts/ts600/Runeval -@@ -1,5 +1,5 @@ - #!/bin/csh - - foreach i (0 1 2 3 4 5 6 7 8 9) -- ../../../bin/edriver ts600-$i -nd -hh -ll -hl -+ edriver ts600-$i -nd -hh -ll -hl - end ---- a/gt-itm/src/Makefile -+++ b/gt-itm/src/Makefile -@@ -9,10 +9,10 @@ - # - # For Solaris: uncomment the next two lines - #SYS = -DSYSV --#LIBS = -lm -lgb5 -+#LIBS = -lm -lgb - - # For SunOS: uncomment the next line --LIBS = -lm -lgb4 -+LIBS = -lm -lgb - - - IDIR = ../include -@@ -35,29 +35,22 @@ EH = $(IDIR)/gb_graph.h $(IDIR)/gb_save.h $(IDIR)/gb_dijk.h \ - all: itm sgb2alt edriver - - itm: $(GO) -- $(CC) $(CFLAGS) -o $(BDIR)/itm $(GO) $(LIBS) -+ $(CC) $(LDFLAGS) $(CFLAGS) -o $(BDIR)/itm $(GO) $(LIBS) - --itm.o: $(GH) - --geog.o: $(GH) - --ts.o: $(GH) - --dfs.o: $(GH) - - - sgb2alt: $(CO) -- $(CC) $(CFLAGS) -o $(BDIR)/sgb2alt $(CO) $(LIBS) -+ $(CC) $(LDFLAGS) $(CFLAGS) -o $(BDIR)/sgb2alt $(CO) $(LIBS) - --sgb2alt.o: $(CH) - - - edriver: $(EO) -- $(CC) $(CFLAGS) -o $(BDIR)/edriver $(EO) $(LIBS) -+ $(CC) $(LDFLAGS) $(CFLAGS) -o $(BDIR)/edriver $(EO) $(LIBS) - --edriver.o: $(EH) - --eval.o: $(IDIR)/gb_graph.h $(IDIR)/gb_dijk.h $(IDIR)/eval.h - - - clean: ---- a/gt-itm/src/eval.c -+++ b/gt-itm/src/eval.c -@@ -159,7 +159,7 @@ int bicomp(Graph *g,int verbose) - if (u == &dummy) { - if (verbose) { - if (artic_pt) -- printf(" and %d (this ends a connected -+ printf(" and %d (this ends a connected \ - component of the graph)\n", idx(g, artic_pt)); - else - printf("Isolated vertex %d\n", idx(g, v)); ---- a/gt-itm/src/geog.c -+++ b/gt-itm/src/geog.c -@@ -6,7 +6,7 @@ - */ - - #include <stdio.h> --#include <sys/types.h> /* for NBBY */ -+#include <sys/param.h> /* for NBBY */ - #include <alloca.h> - #include <assert.h> - #include <string.h> /* for strchr() */ ---- a/sgb2ns/Makefile -+++ b/sgb2ns/Makefile -@@ -8,11 +8,10 @@ - # uncomment the two Solaris lines below, and comment the SunOS line. - # - # For Solaris: uncomment the next two lines --SYS = -DSYSV --LIBS = -lm -lgb5 -+LIBS = -lm -lgb - - # For SunOS: uncomment the next line --#LIBS = -lm -lgb4 -+#LIBS = -lm -lgb - - GT_ITM = ../gt-itm - IDIR = $(GT_ITM)/include -@@ -33,16 +32,16 @@ CH = $(IDIR)/geog.h $(IDIR)/gb_graph.h $(IDIR)/gb_save.h - all: sgb2comns sgb2hierns sgb2ns ts2ns - - sgb2ns: $(CN) -- $(CC) $(CFLAGS) -o $(BDIR)/sgb2ns $(CN) $(LIBS) -+ $(CC) $(LDFLAGS) $(CFLAGS) -o $(BDIR)/sgb2ns $(CN) $(LIBS) - - ts2ns: $(CN) -- $(CC) $(CFLAGS) -o $(BDIR)/ts2ns $(CN) $(LIBS) -+ $(CC) $(LDFLAGS) $(CFLAGS) -o $(BDIR)/ts2ns $(CN) $(LIBS) - - sgb2hierns: $(HN) -- $(CC) $(CFLAGS) -o $(BDIR)/sgb2hierns $(HN) $(LIBS) -+ $(CC) $(LDFLAGS) $(CFLAGS) -o $(BDIR)/sgb2hierns $(HN) $(LIBS) - - sgb2comns: $(COM) -- $(CC) $(CFLAGS) -o $(BDIR)/sgb2comns $(COM) $(LIBS) -+ $(CC) $(LDFLAGS) $(CFLAGS) -o $(BDIR)/sgb2comns $(COM) $(LIBS) - - sgb2ns.o: $(CH) - sgb2hierns.o: $(CH) ---- a/sgb2ns/sgb2comns.c -+++ b/sgb2ns/sgb2comns.c -@@ -49,6 +49,7 @@ - */ - - #include <stdio.h> -+#include <stdlib.h> - #include <strings.h> - #include <string.h> - #include "gb_graph.h" ---- a/sgb2ns/sgb2hierns.c -+++ b/sgb2ns/sgb2hierns.c -@@ -34,7 +34,8 @@ - */ - - #include <stdio.h> --#include <strings.h> -+#include <stdlib.h> -+#include <string.h> - #include "gb_graph.h" - #include "gb_save.h" - #include "geog.h" diff --git a/sci-misc/gt-itm/files/gt-itm-implicits.patch b/sci-misc/gt-itm/files/gt-itm-implicits.patch deleted file mode 100644 index 70da0f568c65..000000000000 --- a/sci-misc/gt-itm/files/gt-itm-implicits.patch +++ /dev/null @@ -1,111 +0,0 @@ ---- a/gt-itm/src/geog.c -+++ b/gt-itm/src/geog.c -@@ -6,6 +6,7 @@ - */ - - #include <stdio.h> -+#include <stdlib.h> - #include <sys/param.h> /* for NBBY */ - #include <alloca.h> - #include <assert.h> -@@ -31,6 +32,9 @@ - - static char geogId[]="$Id$"; - -+long fdiam(Graph *g); -+void die(s); -+ - double - distance(Vertex *u, Vertex *v) - { ---- a/gt-itm/src/ts.c -+++ b/gt-itm/src/ts.c -@@ -8,6 +8,7 @@ - */ - - #include <stdio.h> -+#include <stdlib.h> - #include <sys/types.h> /* for NBBY */ - #include <alloca.h> - #include "gb_graph.h" -@@ -64,6 +65,10 @@ - return (x); } - */ - -+int td_OK(Vertex *snp,Vertex *dnp); -+long random(void); -+int stubs_OK(Vertex *snp0,Vertex *snp1); -+ - /* fast diameter computation using Floyd-Warshall - * Returns the HOP diameter of the graph, i.e. each edge given UNIT wt. - * Leaves the LENGTH diameter of the graph in g->Gldiam. ---- a/gt-itm/include/geog.h -+++ b/gt-itm/include/geog.h -@@ -74,3 +74,8 @@ - geo_parms* toppp, /* params for transit connectivity */ - geo_parms* transpp, /* " " transit domains */ - geo_parms* stubpp); /* " " stub domains */ -+ -+void randomize(long* a, long size, long mean, int iters); -+long idist(Vertex *u, Vertex *v); -+int printparms(char *buf,geo_parms *pp); -+int isconnected(Graph *G); ---- a/gt-itm/src/edriver.c -+++ b/gt-itm/src/edriver.c -@@ -35,6 +35,8 @@ - */ - - #include <stdio.h> -+#include <stdlib.h> -+#include <string.h> - #include "gb_graph.h" - #include "gb_save.h" - #include "gb_dijk.h" ---- a/gt-itm/include/eval.h -+++ b/gt-itm/include/eval.h -@@ -8,4 +8,7 @@ - enum Field {Len, A, B, Hops}; - - void twofield_sptree(Graph*, Vertex*, enum Field, enum Field); -- -+int finddegdist(Graph *g, int** degdist); -+void dopaths(Graph *g, enum Field f0, enum Field f1, int *rmin, int *rmax, float *ravg); -+void dodepthdist(Graph *g, int** ddist); -+int bicomp(Graph *g,int verbose); ---- a/gt-itm/src/dfs.c -+++ b/gt-itm/src/dfs.c -@@ -6,6 +6,7 @@ - */ - - #include <stdio.h> -+#include <stdlib.h> - #include <alloca.h> - #include <sys/types.h> - #include "gb_graph.h" -@@ -18,6 +19,8 @@ - - #define NBBY 8 - -+int dfs(Graph *G,int n,u_char *vis); -+ - /* check connectivity of graph g */ - /* uses depth-first search. */ - isconnected(Graph *G) ---- a/gt-itm/src/itm.c.orig -+++ b/gt-itm/src/itm.c -@@ -42,6 +42,7 @@ - #include <stdlib.h> /* for calloc(),atoi(),etc. */ - #include <string.h> /* for strtok() */ - #include "gb_graph.h" -+#include "gb_save.h" - #include "geog.h" - - #define LINE 512 -@@ -55,6 +56,7 @@ - char *delim = " \t\n", *nonestr = "<none>"; - static char errstr[256]; - -+void die(s); - - char * - get_geoparms(FILE * f, geo_parms * pp) diff --git a/sci-misc/gt-itm/gt-itm-19961004-r3.ebuild b/sci-misc/gt-itm/gt-itm-19961004-r3.ebuild deleted file mode 100644 index 9877f7163f34..000000000000 --- a/sci-misc/gt-itm/gt-itm-19961004-r3.ebuild +++ /dev/null @@ -1,71 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit flag-o-matic toolchain-funcs - -DESCRIPTION="Routines to generate / analyze graphs using models for internetwork topology" -HOMEPAGE="https://www.cc.gatech.edu/fac/Ellen.Zegura/graphs.html - https://www.isi.edu/nsnam/ns/ns-topogen.html#gt-itm" -SRC_URI="https://www.cc.gatech.edu/fac/Ellen.Zegura/gt-itm/gt-itm.tar.gz -> ${P}.tar.gz - https://www.isi.edu/nsnam/dist/sgb2ns.tar.gz -> sgb2ns-${PV}.tar.gz" -S="${WORKDIR}/${PN}" -S2="${WORKDIR}/sgb2ns" - -LICENSE="all-rights-reserved sgb2ns" -SLOT="0" -KEYWORDS="~amd64 ~x86" -RESTRICT="mirror bindist" -IUSE="doc" - -DEPEND="dev-util/sgb" -RDEPEND="${DEPEND}" - -PATCHES=( - "${FILESDIR}"/${PN}-19961004-gentoo.patch - "${FILESDIR}"/${PN}-implicits.patch - "${FILESDIR}"/${PN}-19961004-Fix-build-with-Clang-16.patch - "${FILESDIR}"/${PN}-19961004-Fix-musl-build.patch -) - -DOCS=( README docs/. ) - -src_unpack() { - unpack "sgb2ns-${PV}.tar.gz" - - mkdir "${S}" || die - cd "${S}" || die - unpack "${P}.tar.gz" -} - -src_prepare() { - rm -f lib/* || die - - cd "${WORKDIR}" || die - default - cd "${S}" || die -} - -src_compile() { - append-cflags -std=gnu89 - - emake -C src CFLAGS="${CFLAGS} -I../include" LDFLAGS="${LDFLAGS}" \ - CC="$(tc-getCC)" - - emake -C "${S2}" CFLAGS="${CFLAGS} -I\$(IDIR) -L\$(LDIR)" LDFLAGS="${LDFLAGS}" \ - CC="$(tc-getCC)" -} - -src_install() { - dobin bin/* - - einstalldocs - newdoc "${S2}"/README README.sgb2ns - - if use doc; then - dodoc -r sample-graphs - dodoc "${S2}"/*.{tcl,gb} - docompress -x /usr/share/doc/${PF}/sample-graphs - fi -} diff --git a/sci-misc/gt-itm/metadata.xml b/sci-misc/gt-itm/metadata.xml deleted file mode 100644 index 062170537b8f..000000000000 --- a/sci-misc/gt-itm/metadata.xml +++ /dev/null @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<maintainer type="project"> - <email>sci@gentoo.org</email> - <name>Gentoo Science Project</name> -</maintainer> -</pkgmetadata> |