Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 30898 - mserver ebuild fails because of errno problem
Summary: mserver ebuild fails because of errno problem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Heinrich Wendel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-11 04:09 UTC by Jonathan Rogers
Modified: 2003-10-12 02:31 UTC (History)
0 users

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


Attachments
my slightly modified ebuild (mserver-0.5.5-r2.ebuild,1.11 KB, text/plain)
2003-10-11 04:11 UTC, Jonathan Rogers
Details
patch to fix errno link problem (mserver_errno.patch,344 bytes, patch)
2003-10-11 04:12 UTC, Jonathan Rogers
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Rogers 2003-10-11 04:09:47 UTC
I merged the ebuild "net-dialup/mserver-0.5.5-r1" and attempted to start the
mserver daemon, only to discover that the executable didn't exist. I merged it
again and noticed that the build phase had failed, but the ebuild hadn't
noticed, but had merged anyway.

I dug a little deeper and discovered that the build failed because one of the C
files had "extern int errno;" instead of "#include <errno.h>". Apparently,
recent versions of Glibc or GCC don't like that.

I'll attach my slightly modified ebuild, which checks for failed builds and
patches the source to use errno correctly. I'd submit the patch to the author,
but it seems to be currently unmaintained.

Reproducible: Always
Steps to Reproduce:
1. "emerge net-dialup/mserver-0.5.5-r1" on an up to date Gentoo system
2. attempt to start the mserver daemon
3. discover that it doesn't exist
Comment 1 Jonathan Rogers 2003-10-11 04:11:36 UTC
Created attachment 19090 [details]
my slightly modified ebuild
Comment 2 Jonathan Rogers 2003-10-11 04:12:45 UTC
Created attachment 19091 [details, diff]
patch to fix errno link problem
Comment 3 Heinrich Wendel (RETIRED) gentoo-dev 2003-10-11 11:56:18 UTC
thx, commited :)
Comment 4 Jonathan Rogers 2003-10-11 16:11:59 UTC
Thanks for the quick resolution. Is it normal to modify an ebuild without
changing its version? I would have thought it better to bump the version
to "mserver-0.5.5-r2", especially since the ebuild has been around for a
while and probably worked fine initially. It's not a big deal for such a
small change; I am just curious about normal portage policy.
Comment 5 Heinrich Wendel (RETIRED) gentoo-dev 2003-10-12 02:31:54 UTC
as this is a compile fix and people who have it installed, needn't recompile
it, i didn't bump the version.