Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 442588 - net-fs/libnfs-1.3.0: crash when using libtirpc
Summary: net-fs/libnfs-1.3.0: crash when using libtirpc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Network Filesystems
URL: https://github.com/sahlberg/libnfs/is...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-10 11:32 UTC by Torsten Kurbad
Modified: 2013-02-22 13:21 UTC (History)
0 users

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


Attachments
Patch for libnfs-1.3.0.ebuild (libnfs-1.3.0.ebuild.diff,512 bytes, patch)
2012-11-10 11:33 UTC, Torsten Kurbad
Details | Diff
Patch for libnfs-1.3.0.ebuild (libnfs-1.3.0.ebuild.diff,512 bytes, patch)
2012-11-10 11:43 UTC, Torsten Kurbad
Details | Diff
Patch for libnfs-1.3.0.ebuild (libnfs-1.3.0.ebuild.diff,512 bytes, patch)
2012-11-10 11:45 UTC, Torsten Kurbad
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Torsten Kurbad 2012-11-10 11:32:29 UTC
net-fs/libnfs-1.3.0 crashes newer XBMC due to the unconditional
  --enable-tirpc

I'll attach a patch to the ebuild that lets you choose to enable / disable libtirpc at compile time via use flag. The use flag 'tirpc' is an "invented" one, please feel free to change it to something more appropriate.

Reproducible: Always
Comment 1 Torsten Kurbad 2012-11-10 11:33:45 UTC
Created attachment 329092 [details, diff]
Patch for libnfs-1.3.0.ebuild
Comment 2 Torsten Kurbad 2012-11-10 11:43:17 UTC
Created attachment 329094 [details, diff]
Patch for libnfs-1.3.0.ebuild

I just saw that in several other ebuilds, e.g. xinetd, libtirpc is enabled via the 'rpc' use flag. Thus, I changed my patch accordingly.
Comment 3 Torsten Kurbad 2012-11-10 11:45:11 UTC
Created attachment 329096 [details, diff]
Patch for libnfs-1.3.0.ebuild

Just updated reordered the use flags alphabetically. :-)
Comment 4 SpanKY gentoo-dev 2012-11-11 05:15:32 UTC
Comment on attachment 329096 [details, diff]
Patch for libnfs-1.3.0.ebuild

that isn't what USE=rpc is for.  that flag is for controlling the support of RPC services, not whether to use the C library or libtirpc.

the C library is getting rid of RPC support and libtirpc is the only supported route.  if there's a bug somewhere, it needs to be fixed.
Comment 5 Torsten Kurbad 2012-11-11 17:39:44 UTC
(In reply to comment #4)
> the C library is getting rid of RPC support and libtirpc is the only
> supported route.  if there's a bug somewhere, it needs to be fixed.

Okay, but what is your suggestion? File an upstream bug? If yes, on what upstream?
I'm not a C-programmer, so I don't know who to blame, libnfs, libtirpc, or even XBMC... :-(
Comment 6 Torsten Kurbad 2012-11-11 17:41:52 UTC
Oh, there's already an open issue for the matter:

https://github.com/sahlberg/libnfs/issues/24

So, I think this one can be closed.
Comment 7 Torsten Kurbad 2012-11-23 20:14:48 UTC
I'm sorry, but I have to re-open this one.

--enable-tirpc is now obsoleted for Linux platforms, so please remove that configure option completely from the ebuild.

See the referenced upstream issue for details.
Comment 8 SpanKY gentoo-dev 2012-11-25 04:00:16 UTC
(In reply to comment #7)

yeah, no.  read comment #4 where i pointed out that rpc is being removed from the C library which means you have no choice but to use libtirpc.
Comment 9 Torsten Kurbad 2012-11-25 17:39:45 UTC
(In reply to comment #8)
> yeah, no.  read comment #4 where i pointed out that rpc is being removed
> from the C library which means you have no choice but to use libtirpc.

Please, read at least the last few posts in the GitHub issue. The maintainer of libnfs already ships with his own rpc-implementation, independent from libc AND libtirpc. Thus, he removed the --enable-tirpc option completely, except for some "special" platforms like iOS and Android.

According to the upstream bug report, using --enable-tirpc on Linux does more harm than just leaving it out.
Comment 10 SpanKY gentoo-dev 2012-11-26 06:15:07 UTC
(In reply to comment #9)

ok, but we still need a new version.  1.3.0 uses external rpc symbols.
Comment 11 Torsten Kurbad 2012-11-26 07:54:39 UTC
(In reply to comment #10)
> ok, but we still need a new version.  1.3.0 uses external rpc symbols.

Agreed. I'll contact the developer about it.
Comment 12 Torsten Kurbad 2012-12-03 17:47:44 UTC
(In reply to comment #9)
> ok, but we still need a new version.  1.3.0 uses external rpc symbols.

Ronnie Sahlberg released 1.5.0 today, which comes with its own RPC implementation, completely independent of existing libs and headers:

https://github.com/sahlberg/libnfs/commit/8afcdc959f1fe3d4b62566cab0f97135453e3d2c

Please, bump.

Thank you
Torsten
Comment 13 SpanKY gentoo-dev 2012-12-04 03:55:07 UTC
should be all set now in the tree; thanks for the report!

Commit message: Version bump.  Disable libtirpc as upstream has deprecated it
http://sources.gentoo.org/net-fs/libnfs/files/libnfs-1.5.0-headers.patch?rev=1.1
http://sources.gentoo.org/net-fs/libnfs/libnfs-1.5.0.ebuild?rev=1.1
http://sources.gentoo.org/net-fs/libnfs/libnfs-9999.ebuild?r1=1.2&r2=1.3