From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- .../piler/files/piler-1.0-fix-build-system.patch | 34 ++++++++++++++++++++++ sci-biology/piler/files/piler-1.0-glibc-2.10.patch | 12 ++++++++ 2 files changed, 46 insertions(+) create mode 100644 sci-biology/piler/files/piler-1.0-fix-build-system.patch create mode 100644 sci-biology/piler/files/piler-1.0-glibc-2.10.patch (limited to 'sci-biology/piler/files') diff --git a/sci-biology/piler/files/piler-1.0-fix-build-system.patch b/sci-biology/piler/files/piler-1.0-fix-build-system.patch new file mode 100644 index 000000000000..78a72f1b4850 --- /dev/null +++ b/sci-biology/piler/files/piler-1.0-fix-build-system.patch @@ -0,0 +1,34 @@ +Make build system honour user variables + +--- a/Makefile ++++ b/Makefile +@@ -1,6 +1,4 @@ +-CFLAGS = -O3 -march=pentiumpro -mcpu=pentiumpro -funroll-loops -Winline -DNDEBUG=1 +-LDLIBS = -lm -static +-# LDLIBS = -lm ++LDLIBS = -lm + + OBJ = .o + EXE = +@@ -8,18 +6,13 @@ + RM = rm -f + CP = cp + +-GPP = g++ +-LD = $(GPP) $(CFLAGS) +-CPP = $(GPP) -c $(CFLAGS) +-CC = gcc -c $(CFLAGS) +- + all: piler + + CPPSRC = $(sort $(wildcard *.cpp)) + CPPOBJ = $(subst .cpp,.o,$(CPPSRC)) + +-$(CPPOBJ): %.o: %.cpp +- $(CPP) $< -o $@ ++%.o: %.cpp ++ $(CXX) $(CXXFLAGS) -DNDEBUG $(CPPFLAGS) -c $< -o $@ + + piler: $(CPPOBJ) +- $(LD) -o piler $(CPPOBJ) $(LDLIBS) ++ $(CXX) $(LDFLAGS) $(CXXFLAGS) -o piler $(CPPOBJ) $(LDLIBS) diff --git a/sci-biology/piler/files/piler-1.0-glibc-2.10.patch b/sci-biology/piler/files/piler-1.0-glibc-2.10.patch new file mode 100644 index 000000000000..4c7f124c5e3d --- /dev/null +++ b/sci-biology/piler/files/piler-1.0-glibc-2.10.patch @@ -0,0 +1,12 @@ +diff -ur piler.orig/gff.cpp piler/gff.cpp +--- piler.orig/gff.cpp 2004-12-18 01:25:29.000000000 +0200 ++++ piler/gff.cpp 2009-08-09 17:22:33.000000000 +0300 +@@ -70,7 +70,7 @@ + const char *Attrs = Fields[8]; + + // Truncate attrs if comment found +- char *Pound = strchr(Attrs, '#'); ++ char *Pound = const_cast (strchr(Attrs, '#')); + if (0 != Pound) + *Pound = 0; + -- cgit v1.2.3