FS#30644 - [iana-] Empty /etc/services after fresh install
Attached to Project:
Arch Linux
Opened by Aurélien Chabot (Trishika) - Wednesday, 11 July 2012, 18:44 GMT
Last edited by Gaetan Bisson (vesath) - Tuesday, 24 July 2012, 02:30 GMT
Opened by Aurélien Chabot (Trishika) - Wednesday, 11 July 2012, 18:44 GMT
Last edited by Gaetan Bisson (vesath) - Tuesday, 24 July 2012, 02:30 GMT
|
Details
Just do a fresh install for my pc and I've got an empty
/etc/services file. It contains only two lines of
comments.
|
This task depends upon
Closed by Gaetan Bisson (vesath)
Tuesday, 24 July 2012, 02:30 GMT
Reason for closing: Implemented
Additional comments about closing: iana-etc-2.30-3 in [testing]
Tuesday, 24 July 2012, 02:30 GMT
Reason for closing: Implemented
Additional comments about closing: iana-etc-2.30-3 in [testing]
$ bsdtar xOf /var/cache/pacman/pkg/iana-etc-2.30-2-any.pkg.tar.xz etc/services | wc -l
17271
bsdtar xOf /var/cache/pacman/pkg/iana-etc-2.30-2-any.pkg.tar.xz etc/services | wc -l
17271
sudo abs
cp -R /var/abs/core/iana-etc .
cd iana-etc
makepkg
bsdtar xOf iana-etc-2.30-2-any.pkg.tar.xz etc/services | wc -l
2
So the problem is in fact, the compilation of this package is broken.
http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.txt
It shouldn't be too hard to parse but I've got to eat breakfast first...
It puts the IANA XML files under /usr/share/iana-etc/ and generates minimalistic /etc/services and /etc/protocols from it (since it's impossible to fit all the information from the XML into a clear, parseable /etc/services).