| Summary: | app-admin/cronolog: implicit definition of strptime because of missing define | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Carlo Marcelo Arenas Belon <carenas> |
| Component: | Current packages | Assignee: | Lance Albertson (RETIRED) <ramereth> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| URL: | http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=323425 | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | defined _GNU_SOURCE for cronoutils to satisfy glibc feature list to define strptime in cronoutils.c | ||
|
Description
Carlo Marcelo Arenas Belon
2008-01-06 01:28:04 UTC
Created attachment 140250 [details, diff]
defined _GNU_SOURCE for cronoutils to satisfy glibc feature list to define strptime in cronoutils.c
_GNU_SOURCE or _XOPEN_SOURCE could had been used as described in the documentation but _GNU_SOURCE was preferred as it was already being defined for the large file support patch (cronolog-large-file-patch.txt) for cronolog.c
(In reply to comment #1) > Created an attachment (id=140250) [edit] > defined _GNU_SOURCE for cronoutils to satisfy glibc feature list to define > strptime in cronoutils.c > > _GNU_SOURCE or _XOPEN_SOURCE could had been used as described in the > documentation but _GNU_SOURCE was preferred as it was already being defined for > the large file support patch (cronolog-large-file-patch.txt) for cronolog.c > Will this patch work for non-GNU systems? (i.e. BSD). I'm mainly concerned about portability with the gentoo-fbsd folks. (In reply to comment #2) > (In reply to comment #1) > > _GNU_SOURCE or _XOPEN_SOURCE could had been used as described in the > > documentation but _GNU_SOURCE was preferred as it was already being defined for > > the large file support patch (cronolog-large-file-patch.txt) for cronolog.c > > Will this patch work for non-GNU systems? (i.e. BSD). I'm mainly concerned > about portability with the gentoo-fbsd folks. I have no gentoo-fbsd system to test, but a 7.0 FreeBSD x86 system was validated to work with the patch. the definition for strptime in /usr/include/time.h for FreeBSD requires __XSI_VISIBLE bug GNU_SOURCE implies that (together with POSIX, BSD and SYSV) (In reply to comment #3) > (In reply to comment #2) > > Will this patch work for non-GNU systems? (i.e. BSD). I'm mainly concerned > > about portability with the gentoo-fbsd folks. > > I have no gentoo-fbsd system to test, but a 7.0 FreeBSD x86 system was > validated to work with the patch. > > the definition for strptime in /usr/include/time.h for FreeBSD requires > __XSI_VISIBLE bug GNU_SOURCE implies that (together with POSIX, BSD and SYSV) Thanks for checking that. Patch is committed. Thanks! |