jlec 15/03/02 13:14:37
Added: njplot-2.3-buildsystem.patch
njplot-2.3-format-security.patch
Log:
Fix dependencies, #425710; make buildsystem sane; fix format-security
(Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key
B9D4F231BD1558AB!)
Revision Changes Path
1.1 sci-biology/njplot/files/njplot-2.3-buildsystem.patch
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/njplot/files/njplot-2.3-buildsystem.patch?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/njplot/files/njplot-2.3-buildsystem.patch?rev=1.1&content-type=text/plain
Index: njplot-2.3-buildsystem.patch
===================================================================
makefile | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/makefile b/makefile
index ccb7dc2..9488c2a 100644
--- a/makefile
+++ b/makefile
@@ -7,10 +7,10 @@ NO_PDF = -DNO_PDF
#PDFLIB = -L$(PDF) -lpdf
# c compiler and linker
-CC = gcc
+CC ?= gcc
# Vibrant top directory
-VIBRANT = /banques0/ncbiJun04
+VIBRANT = /usr/include/ncbi
# X11 include directory
@@ -24,15 +24,15 @@ OBJECTS = njplot-vib.o
OBJUNROOTED = unrooted-vib.o preptree.o
-CFLAGS = -c -DWIN_MOTIF -Dunix -I$(VIBRANT)/include -I$(VIBRANT)/vibrant
-I$(VIBRANT)/corelib \
+CFLAGS += -c -DWIN_MOTIF -Dunix -I$(VIBRANT)/include -I$(VIBRANT)/vibrant
-I$(VIBRANT)/corelib \
-I$(VIBRANT) -I$(PDF) -I$(X11INCL) -I$(MOTIFINCL) $(HELPFILENAME)
$(NO_PDF) \
- -Wimplicit-function-declaration -g
+ -Wimplicit-function-declaration
all: njplot unrooted newicktops newicktotxt
njplot : $(OBJECTS)
- $(CC) -g -o njplot $(OBJECTS) \
+ $(CC) $(LDFLAGS) -o njplot $(OBJECTS) \
-L$(VIBRANT)/lib \
-lvibrant -lncbi \
$(PDFLIB) \
@@ -40,16 +40,16 @@ njplot : $(OBJECTS)
-L/usr/X11R6/lib -lXmu -lXt -lX11 -lm
unrooted : $(OBJUNROOTED)
- $(CC) -g -o unrooted $(OBJUNROOTED) \
+ $(CC) $(LDFLAGS) -o unrooted $(OBJUNROOTED) \
-L$(VIBRANT)/lib -lvibrant -lncbi \
-L$(MOTIFLIB) -lXm \
-L/usr/X11R6/lib -lXmu -lXt -lX11 -lm
newicktops: njplot-vib.c
- $(CC) -DNO_GUI -DNO_PDF -o $@ njplot-vib.c -lm
+ $(CC) $(LDFLAGS) $(CFLAGS) -DNO_GUI -DNO_PDF -o $@ njplot-vib.c -lm
newicktotxt: njplot-vib.c
- $(CC) -DTTY -o $@ njplot-vib.c -lm
+ $(CC) -DTTY $(LDFLAGS) $(CFLAGS) -o $@ njplot-vib.c -lm
.c.o :
1.1 sci-biology/njplot/files/njplot-2.3-format-security.patch
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/njplot/files/njplot-2.3-format-security.patch?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/njplot/files/njplot-2.3-format-security.patch?rev=1.1&content-type=text/plain
Index: njplot-2.3-format-security.patch
===================================================================
njplot-vib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/njplot-vib.c b/njplot-vib.c
index fe55609..63fd3b6 100644
--- a/njplot-vib.c
+++ b/njplot-vib.c
@@ -1976,7 +1976,7 @@ PDFONLY" no window interface, just write the
PDF/PostScript tree plot\n"
#else
fprintf(stderr,
#endif
- message);
+ "%s", message);
exit(0);
}
}