Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 528768 - =net-libs/libhubbub-0.3.0 - In file included from src/treebuilder/treebuilder.c:8: /usr/include/features.h:148:3: error: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Werror=cpp]
Summary: =net-libs/libhubbub-0.3.0 - In file included from src/treebuilder/treebuilder...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Michael Weber (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: werror glibc-2.20
  Show dependency tree
 
Reported: 2014-11-09 21:09 UTC by w0rm
Modified: 2014-11-15 11:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (file_528768.txt,9.25 KB, text/plain)
2014-11-09 21:20 UTC, w0rm
Details
emerge --info (file_528768.txt,19.87 KB, text/plain)
2014-11-09 21:24 UTC, w0rm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description w0rm 2014-11-09 21:09:34 UTC
x86_64-pc-linux-gnu-gcc -MMD -MP -D_BSD_SOURCE -I/var/tmp/portage/net-libs/libhubbub-0.3.0/work/libhubbub-0.3.0-abi_x86_64.amd64/include/ -I/var/tmp/portage/net-libs/libhubbub-0.3.0/work/libhubbub-0.3.0-abi_x86_64.amd64/src -Wall -W -Wundef -Wpointer-arith -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pedantic -Werror -O2 -march=atom -pipe --param=l1-cache-size=24 --param=l1-cache-line-size=64 --param=l2-cache-size=512 -mtune=generic -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block  -flto=8 -ftree-vectorize -floop-parallelize-all -ftree-parallelize-loops=4 -fopenmp -fno-lto -fno-use-linker-plugin -fno-loop-interchange -fno-tree-loop-distribution -fno-loop-strip-mine -fno-loop-block -fno-openmp -D_ALIGNED="__attribute__((aligned))" -DNDEBUG  -DBUILD_TARGET_Linux -DBUILD_HOST_Linux -std=c99  -fPIC -DPIC -o build-Linux-Linux-release-lib-shared/src_treebuilder_before_html.o -c src/treebuilder/before_html.c
In file included from /usr/include/assert.h:35:0,
                 from src/treebuilder/treebuilder.c:8:
/usr/include/features.h:148:3: error: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Werror=cpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"

Reproducible: Always

Steps to Reproduce:
1. emerge libhubbub
2. fail
3.
Comment 1 Mike Gilbert gentoo-dev 2014-11-09 21:13:55 UTC
Please provide emerge --info and attach a build log.
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2014-11-09 21:14:19 UTC
@xmw: does this qualify as a good-enough workaround?

diff -u -u -r1.1 libhubbub-0.3.0.ebuild
--- libhubbub-0.3.0.ebuild      6 Nov 2014 18:17:34 -0000       1.1
+++ libhubbub-0.3.0.ebuild      9 Nov 2014 21:13:26 -0000
@@ -24,3 +24,12 @@
 DOCS=( README docs/{Architecture,Macros,Todo,Treebuilder,Updated} )
 
 RESTRICT=test
+
+src_prepare() {
+       # glibc-2.20 introduced a warning:
+       #    _BSD_SOURCE and _SVID_SOURCE are deprecated
+       sed -e 's/WARNFLAGS := $(WARNFLAGS) -Werror/# &/' \
+               -i Makefile || die
+
+       netsurf_src_prepare
+}
Comment 3 w0rm 2014-11-09 21:20:24 UTC
Created attachment 388970 [details]
Build log
Comment 4 w0rm 2014-11-09 21:24:22 UTC
Created attachment 388972 [details]
emerge --info
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2014-11-12 23:02:05 UTC
Pushed as:

>  12 Nov 2014; Sergei Trofimovich <slyfox@gentoo.org> libhubbub-0.3.0.ebuild:
>  Drop -Werror (fix for glibc-2.20), bug #528768 by w0rm.
Comment 6 Michael Weber (RETIRED) gentoo-dev 2014-11-15 11:58:00 UTC
(In reply to Sergei Trofimovich from comment #2)
> @xmw: does this qualify as a good-enough workaround?

Yes, I revbump'd for the new build system version, added pkgconfig as dep and wrote a patch for the glibc thingie.

+*libhubbub-0.3.0-r1 (15 Nov 2014)
+
+  15 Nov 2014; Michael Weber <xmw@gentoo.org>
+  +files/libhubbub-0.3.0-glibc2.20.patch, +libhubbub-0.3.0-r1.ebuild:
+  Switch to new buildsystem version, fix glibc2.20 issue (bug 528768).
+