librpc does not include /etc/rpc file, breaking FHS specification
Bugzilla ID | 20 |
Reporter | A. Wilcox (awilfox) |
Assignee | A. Wilcox (awilfox) |
Reported | 2016-10-20 05:28:49 -0500 |
Modified | 2016-10-20 05:28:49 -0500 |
Status | CONFIRMED |
Version | 1.0-ALPHA1 |
Hardware | Adélie Linux / All |
Importance | Normal / critical |
Description
FHS 3.0 §3.7.3 (http://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.html#specificOptions5) specifies the following:
The following files, or symbolic links to files, must be in /etc if the corresponding subsystem is installed: [3]
[...]
rpc RPC protocol listing
When the 'librpc' package is installed on an Adélie system, the /etc/rpc file is not included. This file is required by applications that use ONC/Sun RPC or any of the following methods:
- getrpcent
- getrpcbyname
- getrpcbynumber
This set of methods is included on all of Linux/glibc, FreeBSD, NetBSD, OpenBSD, and Solaris. It is a component of the Sun RPC standard, and the librpc we ship for Sun RPC also uses the /etc/rpc file as seen here: http://git.openwrt.org/project?p=project/librpc-uclibc.git;a=blob;f=getrpcent.c;h=9da55627ec2d75830e8217660f077abea96c7db6;hb=HEAD
We need to evaluate where we should obtain a copy of /etc/rpc for use in librpc. I can easily modify the ebuild to fetch a file and insinto /etc. Should we use a BSD copy? What about Solaris' copy, since OpenIndiana appears to be not completely dead? We could also generate it from the IANA raw feed located at http://www.iana.org/assignments/rpc-program-numbers/rpc-program-numbers.xhtml (plain text and XML are both available; we should be able to parse it).