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
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Gaetan Bisson (vesath)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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]
Comment by Dave Reisner (falconindy) - Wednesday, 11 July 2012, 19:36 GMT
Not sure what you want fixed here. Reinstall iana-etc -- the package is fine.

$ bsdtar xOf /var/cache/pacman/pkg/iana-etc-2.30-2-any.pkg.tar.xz etc/services | wc -l
17271
Comment by Aurélien Chabot (Trishika) - Wednesday, 11 July 2012, 20:01 GMT
Ok, think it got recompile with other stuff I recompile. Reinstallation fix it.

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.
Comment by Dave Reisner (falconindy) - Wednesday, 11 July 2012, 20:15 GMT
iana changed their format, so this package is entirely broken as far as port assignments.
Comment by Gaetan Bisson (vesath) - Sunday, 22 July 2012, 02:59 GMT
I'll come up with a piece of AWK to bring things back to the old format; but... what the hell IANA?
Comment by Dave Reisner (falconindy) - Sunday, 22 July 2012, 03:04 GMT
python might be more suitable now that its structured XML. The change is reasonable, but to discard the old format entirely is a dickish move.
Comment by Gaetan Bisson (vesath) - Sunday, 22 July 2012, 03:45 GMT
A plain text version is also available there:

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...
Comment by Gaetan Bisson (vesath) - Sunday, 22 July 2012, 14:03 GMT
Any comments on this: http://arch.vesath.org/all/iana-etc-2.30-3.src.tar.gz

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).

Loading...