diff options
author | Anna Vyalkova <cyber+gentoo@sysrq.in> | 2021-05-22 22:52:52 +0500 |
---|---|---|
committer | Anna Vyalkova <cyber+gentoo@sysrq.in> | 2021-05-23 00:06:52 +0500 |
commit | 21b133c97c94fe32c04b0d9754425e6c0de27b01 (patch) | |
tree | 8da9cd36b8980b1674ce558a60560b97051ee0b2 /sci-misc | |
parent | app-editors/typora-bin: fix MissingLicenseRestricts (diff) | |
download | guru-21b133c97c94fe32c04b0d9754425e6c0de27b01.tar.gz guru-21b133c97c94fe32c04b0d9754425e6c0de27b01.tar.bz2 guru-21b133c97c94fe32c04b0d9754425e6c0de27b01.zip |
sci-misc/boinc-wrapper: fix ldflags
Closes: https://bugs.gentoo.org/791421
Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in>
Diffstat (limited to 'sci-misc')
-rw-r--r-- | sci-misc/boinc-wrapper/boinc-wrapper-7.16.16.ebuild | 4 | ||||
-rw-r--r-- | sci-misc/boinc-wrapper/files/boinc-wrapper-7.16-makefile.patch | 25 | ||||
-rw-r--r-- | sci-misc/boinc-wrapper/files/makefile.patch | 10 |
3 files changed, 27 insertions, 12 deletions
diff --git a/sci-misc/boinc-wrapper/boinc-wrapper-7.16.16.ebuild b/sci-misc/boinc-wrapper/boinc-wrapper-7.16.16.ebuild index e19b25ceb..becebc0ab 100644 --- a/sci-misc/boinc-wrapper/boinc-wrapper-7.16.16.ebuild +++ b/sci-misc/boinc-wrapper/boinc-wrapper-7.16.16.ebuild @@ -23,7 +23,7 @@ RDEPEND=" " DEPEND="${RDEPEND}" -PATCHES=( "${FILESDIR}"/makefile.patch ) +PATCHES=( "${FILESDIR}"/${PN}-$(ver_cut 1-2)-makefile.patch ) DOCS=( ReadMe.txt job.xml ) src_prepare() { @@ -36,7 +36,7 @@ src_prepare() { src_configure() { cd ../.. || die - econf --enable-pkg-devel --disable-static + econf --enable-pkg-devel --disable-static --disable-fcgi --without-x } src_compile() { diff --git a/sci-misc/boinc-wrapper/files/boinc-wrapper-7.16-makefile.patch b/sci-misc/boinc-wrapper/files/boinc-wrapper-7.16-makefile.patch new file mode 100644 index 000000000..f503ba847 --- /dev/null +++ b/sci-misc/boinc-wrapper/files/boinc-wrapper-7.16-makefile.patch @@ -0,0 +1,25 @@ +diff --git a/samples/wrapper/Makefile b/samples/wrapper/Makefile +index c20af9446d..5ecd76c45d 100644 +--- a/Makefile ++++ b/Makefile +@@ -7,8 +7,7 @@ BOINC_LIB_DIR = $(BOINC_DIR)/lib + BOINC_ZIP_DIR = $(BOINC_DIR)/zip + PTHREAD = -pthread + +-CXXFLAGS += -g -O0 \ +- -Wall -W -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -fno-common \ ++CXXFLAGS += \ + -I$(BOINC_DIR) \ + -I$(BOINC_LIB_DIR) \ + -I$(BOINC_API_DIR) \ +@@ -41,5 +40,5 @@ REGEXP_OBJS = \ + regexp_memory.o \ + regexp_report.o + +-wrapper: wrapper.o libstdc++.a $(BOINC_LIB_DIR)/libboinc.a $(BOINC_API_DIR)/libboinc_api.a $(REGEXP_OBJS) +- $(CXX) $(CXXFLAGS) $(CPPFLAGS) -o wrapper wrapper.o $(REGEXP_OBJS) libstdc++.a $(PTHREAD) -lboinc_api -lboinc -lboinc_zip ++wrapper: wrapper.o $(REGEXP_OBJS) ++ $(CXX) $(CXXFLAGS) $(CPPFLAGS) -o wrapper wrapper.o $(REGEXP_OBJS) $(PTHREAD) -lboinc_api -lboinc -lboinc_zip $(LDFLAGS) +-- +2.31.1 + diff --git a/sci-misc/boinc-wrapper/files/makefile.patch b/sci-misc/boinc-wrapper/files/makefile.patch deleted file mode 100644 index 6e0359ec3..000000000 --- a/sci-misc/boinc-wrapper/files/makefile.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- a/Makefile -+++ b/Makefile -@@ -41,5 +41,5 @@ - regexp_memory.o \ - regexp_report.o - --wrapper: wrapper.o libstdc++.a $(BOINC_LIB_DIR)/libboinc.a $(BOINC_API_DIR)/libboinc_api.a $(REGEXP_OBJS) -- $(CXX) $(CXXFLAGS) $(CPPFLAGS) -o wrapper wrapper.o $(REGEXP_OBJS) libstdc++.a $(PTHREAD) -lboinc_api -lboinc -lboinc_zip -+wrapper: wrapper.o $(REGEXP_OBJS) -+ $(CXX) $(CXXFLAGS) $(CPPFLAGS) -o wrapper wrapper.o $(REGEXP_OBJS) $(PTHREAD) -lboinc_api -lboinc -lboinc_zip |