Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75471 - libdvb-0.5.5 fails to emerge because of missing header files in DVB.cc (errno)
Summary: libdvb-0.5.5 fails to emerge because of missing header files in DVB.cc (errno)
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-23 12:27 UTC by Konstantin Münning
Modified: 2005-04-25 12:48 UTC (History)
2 users (show)

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


Attachments
Patch for DVB.cc to be placed in the files directory (libdvb-0.5.5-header.patch,258 bytes, patch)
2004-12-23 12:37 UTC, Konstantin Münning
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Münning 2004-12-23 12:27:34 UTC
When try to emerge libdvb-0.5.5, g++ (GCC) 3.4.3 20041125 complains about undeclared function errno.

Reproducible: Always
Steps to Reproduce:
1. emerge "=libdvb-0.5.5"
2.
3.

Actual Results:  
g++ -c -O2 -Wall -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -I. -I../include -I../../include  cpptools.cc
DVB.cc: In function `int chck_frontend(int, frontend_stat*)':
DVB.cc:3571: error: `errno' undeclared (first use this function)
DVB.cc:3571: error: (Each undeclared identifier is reported only once for each
function it appears in.)
make[1]: *** [DVB.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/libdvb-0.5.5/work/libdvb-0.5.5/libdvb'
Comment 1 Konstantin Münning 2004-12-23 12:37:00 UTC
Created attachment 46728 [details, diff]
Patch for DVB.cc to be placed in the files directory

The ebuild of course must do an 'epatch "${FILESDIR}/${P}-header.patch"' in
addition to the gentoo.patch. Should I send a diff for this as well? ;-)
Comment 2 Konstantin Münning 2004-12-23 12:38:54 UTC
The patch works for me.
Comment 3 Charlie Gehlin 2004-12-28 15:03:30 UTC
Verifying bug, and that patch works :)

Thanks!

/
Comment 4 Charlie Gehlin 2004-12-28 15:03:30 UTC
Verifying bug, and that patch works :)

Thanks!

/©harlie
Comment 5 Holly 2005-01-09 06:56:04 UTC
works for me too.
Comment 6 marco 2005-01-18 12:10:12 UTC
Working for me to but. But why isn't the patch in portage?
Comment 7 Konstantin Münning 2005-01-18 13:36:01 UTC
That's an interesting question. I have no idea on the decision process. I have submitted a new ebuild half a year ago but it still is not included in portage so this might also take a while. Maybe some of the responsoble people can tell something about it. Maybe the libdvb-0.5.5 maintainer?!
Comment 8 Daniel Black (RETIRED) gentoo-dev 2005-01-29 14:07:53 UTC
Thomas - I added this - hope you don't mind.

Konstantin - reopen bugs if they are ignored. Once you changed it to RESOLVED it was not going to get looked at. Especially assigned to bugs-wranglers.

Having said that - thanks for the patch
Comment 9 Martin Gramatke 2005-04-24 09:23:04 UTC
libdvb-0.5.5-r1 ignores this patch again :(
But it still works.
Comment 10 Konstantin Münning 2005-04-24 10:00:02 UTC
As it's still not in portage and the bug still seems to exist I'm reopening this.
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2005-04-25 03:42:52 UTC
Comment #8: No such ebuild version in portage tree

Comment #9:

*libdvb-0.5.5 (30 Jan 2005)

  30 Jan 2005; Daniel Black <dragonheart@gentoo.org> +files/errno.patch,
  -libdvb-0.2.1.ebuild, -libdvb-0.2.3.ebuild, libdvb-0.5.0-r1.ebuild,
  libdvb-0.5.5.ebuild:
  old version clean out and errno.patch added as per bug #75471. Thanks to
  Konstantin M
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2005-04-25 03:42:52 UTC
Comment #8: No such ebuild version in portage tree

Comment #9:

*libdvb-0.5.5 (30 Jan 2005)

  30 Jan 2005; Daniel Black <dragonheart@gentoo.org> +files/errno.patch,
  -libdvb-0.2.1.ebuild, -libdvb-0.2.3.ebuild, libdvb-0.5.0-r1.ebuild,
  libdvb-0.5.5.ebuild:
  old version clean out and errno.patch added as per bug #75471. Thanks to
  Konstantin Münning <konstantin@muenning.com>

$ grep epatch libdvb-0.5.0-r1.ebuild
        epatch "${FILESDIR}/${P}-gentoo.patch" || die "patch failed"
        epatch ${FILESDIR}/errno.patch || die "patch failed"

$ grep epatch libdvb-0.5.5.ebuild
        epatch "${FILESDIR}/${P}-gentoo.patch" || die "patch failed"
        epatch ${FILESDIR}/errno.patch || die "patch failed"

Both ebuilds in portage _do_ apply the patch - where is the problem? 
Comment 13 Martin Gramatke 2005-04-25 12:00:15 UTC
Strange, the errno path is not applied in my version of the ebuild:

lab2 ~ # grep epatch /usr/portage/media-libs/libdvb/libdvb-0.5.5-r1.ebuild
        epatch "${FILESDIR}/${P}-gentoo.patch"
        epatch ${FILESDIR}/${P}-analogtv.patch

I use a special sync server (SYNC="rsync://rsync16.de.gentoo.org/gentoo-merged"), because
the vdr related ebuilds in portage are incomplete and old.
I wasn't aware that libdvd is also affected, sorry, should have
mentioned that.

Comment 14 Jakub Moc (RETIRED) gentoo-dev 2005-04-25 12:47:17 UTC
Comment #1: Sorry, but this is not supported. This problem is fixed in _official_ portage tree, if you are using some portage overlays, then you are doing so at your own risk and you have to fix it yourself... ;-)
Comment 15 Jakub Moc (RETIRED) gentoo-dev 2005-04-25 12:48:27 UTC
Err, the above was obviously reply to Comment #11...