Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 542484 - =mail-mta/nullmailer-1.13-r5: fails to build on musl because it breaks POSIX.
Summary: =mail-mta/nullmailer-1.13-r5: fails to build on musl because it breaks POSIX.
Status: RESOLVED DUPLICATE of bug 538482
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2015-03-07 22:22 UTC by Anthony Basile
Modified: 2015-03-08 01:51 UTC (History)
2 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 Anthony Basile gentoo-dev 2015-03-07 22:22:36 UTC
I reported this problem upstream at:

   https://github.com/bruceg/nullmailer/pull/25

but it looks like upstream is lame.  No new commits since Sep 13, 2013.

In a nutshell, lib/fdbuf/fdobuf.h references uid_t and gid_t which are defined in unistd.h by POSIX.  Because these definitions are indirectly pulled in in glibc, it works there, but on other c standard libs, like musl, it fails.  The fix is trivial, just add `#include <unistd.h>` to fdobuf.h.

This change fixes the musl issue and is harmless on glibc and uclibc.

Can I add this without a revbump?
Comment 1 Anthony Basile gentoo-dev 2015-03-08 01:51:29 UTC
My brain is going soft!

*** This bug has been marked as a duplicate of bug 538482 ***