Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 579218 - dev-libs/cyrus-sasl contains in src_prepare -D_BSD_SOURCE
Summary: dev-libs/cyrus-sasl contains in src_prepare -D_BSD_SOURCE
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal trivial
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-07 10:33 UTC by Oleg Gawriloff
Modified: 2021-05-09 06:38 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Gawriloff 2016-04-07 10:33:30 UTC
dev-libs/cyrus-sasl contains in src_prepare
        append-cppflags -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -DLDAP_DEPRECATED
which in turns gives us a bunch of warning during compile phase:
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-libs/cyrus-sasl-2.1.26-r9/work/cyrus-sasl-2.1.26/sasldb -I.. -I/var/tmp/portage/dev-libs/cyrus-sasl-2.1.26-r9/work/cyrus-sasl-2.1.26/include -I../include   -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -DLDAP_DEPRECATED -DOBSOLETE_CRAM_ATTR=1 -I/usr/include  -Wall -W -O2 -pipe -march=native -fno-strict-aliasing -c -o allockey.o /var/tmp/portage/dev-libs/cyrus-sasl-2.1.26-r9/work/cyrus-sasl-2.1.26/sasldb/allockey.c
In file included from /usr/include/sys/types.h:25:0,
                 from ../config.h:502,
                 from /var/tmp/portage/dev-libs/cyrus-sasl-2.1.26-r9/work/cyrus-sasl-2.1.26/sasldb/db_gdbm.c:46:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^

after replacing to -D_DEFAULT_SOURCES all of that vanishes.

Reproducible: Always
Comment 1 Gary E. Miller 2021-05-08 20:03:29 UTC
Same failure for me.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-08 20:53:42 UTC
(In reply to Gary E. Miller from comment #1)
> Same failure for me.

Surely it’s not actually a failure? This is a warning.

Please share the logs and build.log.
Comment 3 Gary E. Miller 2021-05-08 23:59:22 UTC
Yes, it is a hard failure.  I'll post logs in a bit.
Comment 4 Gary E. Miller 2021-05-09 00:14:44 UTC Comment hidden (obsolete)
Comment 5 Gary E. Miller 2021-05-09 00:17:03 UTC
I get "Internal Server Error" when trying to upload the build.log
Comment 6 Gary E. Miller 2021-05-09 00:20:30 UTC Comment hidden (obsolete)
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-09 00:27:37 UTC
(In reply to Gary E. Miller from comment #5)
> I get "Internal Server Error" when trying to upload the build.log

If it’s not too big, make sure it’s owned by your user.
Comment 8 Gary E. Miller 2021-05-09 00:30:51 UTC
Yes, owned by me, but for a different bug, so never mind...
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-09 06:35:29 UTC
Is there actually a hard failure happening then? It's really unlikely to be this exact bug.
Comment 10 Larry the Git Cow gentoo-dev 2021-05-09 06:38:55 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83c0a339bcfb4a95e53e81e8c5d4944a770b41a5

commit 83c0a339bcfb4a95e53e81e8c5d4944a770b41a5
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-05-09 06:38:37 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-05-09 06:38:37 +0000

    dev-libs/cyrus-sasl: fix deprecated _BSD_SOURCE warning
    
    Closes: https://bugs.gentoo.org/579218
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/cyrus-sasl/cyrus-sasl-2.1.27-r4.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)