Gentoo Archives: gentoo-commits

From: Martin Mokrejs <mmokrejs@×××××××××××××××.cz>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/stringtie/, sci-biology/stringtie/files/
Date: Wed, 27 Jun 2018 12:37:09
Message-Id: 1530103008.25c5b41b494d8cd66bf5c552b35b78acc484f07e.mmokrejs@gentoo
1 commit: 25c5b41b494d8cd66bf5c552b35b78acc484f07e
2 Author: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
3 AuthorDate: Wed Jun 27 12:36:48 2018 +0000
4 Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
5 CommitDate: Wed Jun 27 12:36:48 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=25c5b41b
7
8 sci-biology/stringtie: version bump, accepted new upstream patch, works
9
10 CXX/CXXFLAGS are still not respected for bundled samtools subdirectory.
11
12 https://github.com/gpertea/stringtie/issues/185#issuecomment-400637035
13
14 Package-Manager: Portage-2.3.40, Repoman-2.3.9
15
16 sci-biology/stringtie/files/Makefile.patch | 140 ++++++++++-----------
17 ...ingtie-1.2.2.ebuild => stringtie-1.3.4d.ebuild} | 3 +-
18 2 files changed, 69 insertions(+), 74 deletions(-)
19
20 diff --git a/sci-biology/stringtie/files/Makefile.patch b/sci-biology/stringtie/files/Makefile.patch
21 index a7ca43c39..b7efa605c 100644
22 --- a/sci-biology/stringtie/files/Makefile.patch
23 +++ b/sci-biology/stringtie/files/Makefile.patch
24 @@ -1,26 +1,41 @@
25 ---- stringtie-1.2.2/Makefile 2018-06-26 00:36:17.119583211 +0200
26 -+++ stringtie-1.2.2/Makefile 2018-06-26 00:46:43.406712302 +0200
27 -@@ -1,13 +1,15 @@
28 +--- stringtie-1.3.4d/Makefile 2018-06-26 00:36:17.119583211 +0200
29 ++++ stringtie-1.3.4d/Makefile 2018-06-26 00:46:43.406712302 +0200
30 +@@ -1,28 +1,32 @@
31 -BAM := ./samtools-0.1.18
32 -+BAM_INC = -I./samtools-0.1.18
33 -+BAM_LIB = -L./samtools-0.1.18
34 -+BAM_LIBS = -lbam
35 - #path to the directory where the samtools package was built (in place)
36 - #so libbam.a and *.h files MUST be in here
37 +-#path to the directory where the samtools package was built (in place)
38 +-#so libbam.a and *.h files MUST be in here
39 ++#-- for now these MUST point to the included samtools-0.x.x and gclib subdirectories
40 ++BAM := ./samtools-0.1.18
41 ++GDIR := ./gclib
42 ++#--
43
44 - GDIR :=./gclib
45 +-GDIR :=./gclib
46 ++INCDIRS := -I. -I${GDIR} -I${BAM}
47
48 --INCDIRS := -I. -I${GDIR} -I${BAM}
49 -+INCDIRS := -I. -I${GDIR} ${BAM_INC}
50 +-INCDIRS := -I. -I${GDIR} -I${BAM}
51 +-
52 +-CC := g++
53 ++#CXX ?= g++
54 ++CXX := $(if $(CXX),$(CXX),g++)
55
56 --#CC := clang++
57 --CC := g++
58 -+#CXX := clang++
59 -+CXX ?= g++
60 + BASEFLAGS := -Wall -Wextra ${INCDIRS} -fsigned-char -D_FILE_OFFSET_BITS=64 \
61 + -D_LARGEFILE_SOURCE -fno-strict-aliasing -fno-exceptions -fno-rtti
62 ++#for gcc 8+ add: -Wno-class-memaccess
63 ++
64 ++
65 ++LINKER := $(if $(LINKER),$(LINKER),g++)
66
67 +-LINKER := g++
68 ++LDFLAGS := $(if $(LDFLAGS),$(LDFLAGS),-g)
69 +
70 +-LDFLAGS := -g -L${BAM} $(LDFLAGS)
71 ++LDFLAGS += -L${BAM}
72 +
73 +-LIBS := -lbam -lz
74 ++LIBS := -lbam -lz
75
76 ifneq (,$(findstring nothreads,$(MAKECMDGOALS)))
77 -@@ -15,7 +17,7 @@
78 + NOTHREADS=1
79 endif
80
81 #detect MinGW (Windows environment)
82 @@ -29,36 +44,22 @@
83 WINDOWS=1
84 endif
85
86 -@@ -48,9 +50,9 @@
87 - # C/C++ linker
88 -
89 - #LINKER := clang++
90 --LINKER := g++
91 -+LINKER ?= g++
92 -
93 --LIBS := -lbam -lz
94 -+LIBS := ${BAM_LIBS} -lz
95 -
96 - # Non-windows systems need pthread
97 - ifndef WINDOWS
98 -@@ -68,8 +70,10 @@
99 - #ifneq (,$(findstring release,$(MAKECMDGOALS)))
100 +@@ -63,7 +67,8 @@ endif
101 ifneq (,$(filter %release %static, $(MAKECMDGOALS)))
102 # -- release build
103 -- CFLAGS := -O3 -DNDEBUG -g $(BASEFLAGS)
104 -- LDFLAGS := -g -L${BAM} ${LFLAGS}
105 -+ CXXFLAGS ?= -O3 -g
106 + RELEASE_BUILD=1
107 +- CFLAGS := -DNDEBUG -g $(BASEFLAGS) $(CFLAGS) -O3
108 ++ CXXFLAGS := $(if $(CXXFLAGS),$(CXXFLAGS),-g -O3)
109 + CXXFLAGS += -DNDEBUG $(BASEFLAGS)
110 -+ LDFLAGS ?= -g
111 -+ LDFLAGS += ${BAM_LIB} ${LFLAGS}
112 - ifneq (,$(findstring static,$(MAKECMDGOALS)))
113 - LDFLAGS += -static-libstdc++ -static-libgcc
114 - endif
115 -@@ -80,15 +84,16 @@
116 + else
117 + ifneq (,$(filter %memcheck %memdebug, $(MAKECMDGOALS)))
118 + #use sanitizer in gcc 4.9+
119 +@@ -72,21 +77,21 @@ else
120 ifeq "$(GCCVER49)" "0"
121 $(error gcc version 4.9 or greater is required for this build target)
122 endif
123 - CFLAGS := -fno-omit-frame-pointer -fsanitize=undefined -fsanitize=address $(BASEFLAGS)
124 ++ CXXFLAGS := $(if $(CXXFLAGS),$(CXXFLAGS),-g -O0)
125 + CXXFLAGS += -fno-omit-frame-pointer -fsanitize=undefined -fsanitize=address $(BASEFLAGS)
126 GCCVER5 := $(shell expr `g++ -dumpversion | cut -f1 -d.` \>= 5)
127 ifeq "$(GCCVER5)" "1"
128 @@ -70,47 +71,42 @@
129 + #CXXFLAGS += -fcheck-pointer-bounds -mmpx
130 endif
131 - CFLAGS := -g -DDEBUG -D_DEBUG -DGDEBUG -fno-common -fstack-protector $(CFLAGS)
132 -- LDFLAGS := -g -L${BAM}
133 -+ CXXFLAGS ?= -g
134 + CXXFLAGS += -DDEBUG -D_DEBUG -DGDEBUG -fno-common -fstack-protector
135 -+ LDFLAGS += -g ${BAM_LIB}
136 - #LIBS := -Wl,-Bstatic -lasan -lubsan -Wl,-Bdynamic -ldl $(LIBS)
137 LIBS := -lasan -lubsan -ldl $(LIBS)
138 else
139 -@@ -97,13 +102,14 @@
140 - GMEMTRACE=1
141 - endif
142 - #just plain debug build
143 -- CFLAGS := -g -DDEBUG -D_DEBUG -DGDEBUG $(BASEFLAGS)
144 -- LDFLAGS := -g -L${BAM}
145 -+ CXXFLAGS ?= -g
146 -+ CXXFLAGS += -DDEBUG -D_DEBUG -DGDEBUG $(BASEFLAGS)
147 -+ LDFLAGS += ${BAM_LIB}
148 +- ifeq (,$(findstring clean,$(MAKECMDGOALS)))
149 + #just plain debug build
150 + DEBUG_BUILD=1
151 +- CFLAGS := -g -DDEBUG -D_DEBUG -DGDEBUG $(BASEFLAGS)
152 +- endif
153 ++ CXXFLAGS := $(if $(CXXFLAGS),$(CXXFLAGS),-g -O0)
154 ++ CXXFLAGS += -DDEBUG -D_DEBUG -DGDEBUG $(BASEFLAGS)
155 endif
156 endif
157
158 +@@ -106,23 +111,20 @@ ifdef DEBUG_BUILD
159 + DBG_WARN+='WARNING: built DEBUG version [much slower], use "make clean release" for a faster, optimized version of the program.'
160 + endif
161 +
162 +-
163 + OBJS := ${GDIR}/GBase.o ${GDIR}/GArgs.o ${GDIR}/GStr.o ${GDIR}/GBam.o \
164 + ${GDIR}/gdna.o ${GDIR}/codons.o ${GDIR}/GFaSeqGet.o ${GDIR}/gff.o
165 +
166 +-
167 + ifneq (,$(filter %memtrace %memusage %memuse, $(MAKECMDGOALS)))
168 +- CFLAGS += -DGMEMTRACE
169 ++ CXXFLAGS += -DGMEMTRACE
170 + OBJS += ${GDIR}/proc_mem.o
171 + endif
172 +
173 + ifndef NOTHREADS
174 + OBJS += ${GDIR}/GThreads.o
175 + endif
176 +
177 +-
178 %.o : %.cpp
179 - ${CC} ${CFLAGS} -c $< -o $@
180 + ${CXX} ${CXXFLAGS} -c $< -o $@
181
182 - OBJS := ${GDIR}/GBase.o ${GDIR}/GArgs.o ${GDIR}/GStr.o ${GDIR}/GBam.o \
183 - ${GDIR}/gdna.o ${GDIR}/codons.o ${GDIR}/GFaSeqGet.o ${GDIR}/gff.o
184 -@@ -130,9 +136,7 @@
185 - rlink.o : rlink.h tablemaker.h $(GDIR)/GBam.h $(GDIR)/GBitVec.h
186 - tmerge.o : rlink.h tmerge.h
187 - tablemaker.o : tablemaker.h rlink.h
188 --${BAM}/libbam.a:
189 -- cd ${BAM} && make lib
190 --stringtie: ${BAM}/libbam.a $(OBJS) stringtie.o
191 -+stringtie: $(OBJS) stringtie.o
192 - ${LINKER} ${LDFLAGS} -o $@ ${filter-out %.a %.so, $^} ${LIBS}
193 -
194 - .PHONY : clean cleanall cleanAll allclean
195 -@@ -143,7 +147,6 @@
196 - @${RM} stringtie stringtie.o* stringtie.exe $(OBJS)
197 - @${RM} core.*
198 - allclean cleanAll cleanall:
199 -- cd ${BAM} && make clean
200 - @${RM} stringtie stringtie.o* stringtie.exe $(OBJS)
201 - @${RM} core.*
202 + OBJS += rlink.o tablemaker.o tmerge.o
203
204
205 diff --git a/sci-biology/stringtie/stringtie-1.2.2.ebuild b/sci-biology/stringtie/stringtie-1.3.4d.ebuild
206 similarity index 84%
207 rename from sci-biology/stringtie/stringtie-1.2.2.ebuild
208 rename to sci-biology/stringtie/stringtie-1.3.4d.ebuild
209 index cb26b6961..953999e87 100644
210 --- a/sci-biology/stringtie/stringtie-1.2.2.ebuild
211 +++ b/sci-biology/stringtie/stringtie-1.3.4d.ebuild
212 @@ -10,8 +10,7 @@ SRC_URI="http://ccb.jhu.edu/software/stringtie/dl/${P}.tar.gz"
213
214 LICENSE="Artistic-2 MIT" # MIT from bundled samtools-0.1.18
215 SLOT="0"
216 -KEYWORDS="" # gclib/GThreads.h:804:19: error: conflicting declaration
217 -# 'typedef long long int __intmax_t'
218 +KEYWORDS="~amd64 ~x86"
219 IUSE=""
220
221 # contains bundled and modified samtools-0.1.18