!25 [sync] PR-24: Resolving ncbi-blast conflicts with bzip2 and proj

From: @openeuler-sync-bot 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2024-12-06 11:55:44 +00:00 committed by Gitee
commit 97457f7b68
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 60 additions and 3 deletions

View File

@ -0,0 +1,53 @@
From b84f84f9bd7b418dff6e47bdf6b3008a5ab74cf0 Mon Sep 17 00:00:00 2001
From: herengui <herengui@kylinsec.com.cn>
Date: Tue, 3 Dec 2024 15:16:53 +0000
Subject: [PATCH] disable a dependency module that is not actually used
Signed-off-by: herengui <herengui@kylinsec.com.cn>
---
c++/src/objects/CMakeLists.txt | 1 -
c++/src/objects/Makefile.in | 2 +-
c++/src/objects/Makefile.sources | 2 +-
3 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/c++/src/objects/CMakeLists.txt b/c++/src/objects/CMakeLists.txt
index 42c240b..b37ec99 100644
--- a/c++/src/objects/CMakeLists.txt
+++ b/c++/src/objects/CMakeLists.txt
@@ -37,7 +37,6 @@ NCBI_add_subdirectory(
pcassay
pcassay2
pcsubstance
- proj
pub
pubmed
remap
diff --git a/c++/src/objects/Makefile.in b/c++/src/objects/Makefile.in
index 6f4ea42..c9c507b 100644
--- a/c++/src/objects/Makefile.in
+++ b/c++/src/objects/Makefile.in
@@ -6,7 +6,7 @@
USR_PROJ = sources
SUB_PROJ = general biblio medline pub seqcode seq seqset submit \
- seqedit seqsplit id1 id2 entrez2 pubmed medlars mla proj \
+ seqedit seqsplit id1 id2 entrez2 pubmed medlars mla \
scoremat blast blastdb blastxml blastxml2 mmdb cn3d cdd ncbimime \
pcsubstance pcassay pcassay2 gbseq insdseq tinyseq biotree entrezgene \
omssa remap seqtest taxon1 taxon3 gbproj trackmgr valerr valid \
diff --git a/c++/src/objects/Makefile.sources b/c++/src/objects/Makefile.sources
index cad3b3b..8c53cfe 100644
--- a/c++/src/objects/Makefile.sources
+++ b/c++/src/objects/Makefile.sources
@@ -13,7 +13,7 @@ include $(builddir)/Makefile.mk
MODULES = omssa access biblio blast blastdb blastxml blastxml2 cdd cn3d docsum biotree \
entrez2 entrezgene featdef gbseq general id1 id2 insdseq \
macro medlars medline mim mla mmdb1 mmdb2 mmdb3 ncbimime objprt \
- proj pub pubmed scoremat seq seqalign seqblock seqcode \
+ pub pubmed scoremat seq seqalign seqblock seqcode \
seqfeat seqloc seqsplit seqres seqset submit taxon1 taxon3 tinyseq \
pcsubstance pcassay remap homologene seqedit seqtable seqtest \
trackmgr gbproj valerr valid genesbyloc
--
2.43.0

View File

@ -1,6 +1,6 @@
Name: ncbi-blast Name: ncbi-blast
Version: 2.14.0 Version: 2.14.0
Release: 2 Release: 3
Summary: NCBI BLAST finds regions of similarity between biological sequences. Summary: NCBI BLAST finds regions of similarity between biological sequences.
License: Public Domain License: Public Domain
URL: https://blast.ncbi.nlm.nih.gov/Blast.cgi URL: https://blast.ncbi.nlm.nih.gov/Blast.cgi
@ -8,7 +8,8 @@ Source0: https://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/LATES
%ifarch riscv64 %ifarch riscv64
Patch0: add-riscv-support.patch Patch0: add-riscv-support.patch
%endif %endif
BuildRequires: gcc-c++ make cpio zlib-devel lmdb-devel Patch1: disable-a-dependency-module-that-is-not-actually-use.patch
BuildRequires: gcc-c++ make cpio zlib-devel lmdb-devel bzip2-devel
%description %description
The NCBI Basic Local Alignment Search Tool (BLAST) finds regions of The NCBI Basic Local Alignment Search Tool (BLAST) finds regions of
local similarity between sequences. The program compares nucleotide or local similarity between sequences. The program compares nucleotide or
@ -29,7 +30,7 @@ cd c++
export CFLAGS="%{build_cflags}" export CFLAGS="%{build_cflags}"
export CXXFLAGS="%{build_cxxflags}" export CXXFLAGS="%{build_cxxflags}"
export LDFLAGS="%{build_ldflags}" export LDFLAGS="%{build_ldflags}"
./configure --prefix=/usr --with-dll --with-mt ./configure --prefix=/usr --with-dll --with-mt --with-bz2
cd ReleaseMT/build cd ReleaseMT/build
sed -i "s/-fPIC/-fPIC -g/g" Makefile.mk sed -i "s/-fPIC/-fPIC -g/g" Makefile.mk
%make_build all_r %make_build all_r
@ -51,6 +52,9 @@ cp -r ReleaseMT/lib/* %{buildroot}%{_libdir}/
%{_libdir}/* %{_libdir}/*
%changelog %changelog
* Tue Dec 03 2024 herengui <herengui@kylinsec.com.cn> - 2.14.0-3
- Resolving ncbi-blast conflicts with bzip2 and proj
* Tue Apr 2 2024 zhangxianting <zhangxianting@uniontech.com> - 2.14.0-2 * Tue Apr 2 2024 zhangxianting <zhangxianting@uniontech.com> - 2.14.0-2
- not need requires package - not need requires package