[lfs-dev] Patches for iana-etc-2.30

Bruce Dubbs bruce.dubbs at gmail.com
Fri Jan 31 12:18:42 PST 2014


William Harrington wrote:
>
> On Jan 29, 2014, at 2:28 AM, Michael Uleysky wrote:
>
>> I suggest two patches for the iana-etc, which solves the problem of
>> data updates from the IANA site. The first patch is from LinHES
>> project and can be found here: http://linhes.org/projects/linhes/repository/revisions/master/entry/abs/core/iana-etc/newer.patch
>> I added second patch to place short protocols and services
>> descriptions in output files.
>> Data update must be done by command
>> make get
>> before make and make install.
>
> In CLFS we give the user the option to either download the data (which
> requires /etc/resolv.conf to be setup in chroot and networking
> available and configured from the host or during the boot method) or
> use a patch which fixes the issue.
>
> Since the problem is that the IANA site likes to change things quite
> common, the patch is usually preferred.
>
> http://cross-lfs.org/view/svn/x86/final-system/iana-etc.html

Interesting.  The size of the numbers_update patch (3.7M) is 10 times 
the size of the tarball (201K).  Indeed, the entire expanded tarball is 
only 820K.

Wouldn't it be more obvious to tell the user to just download:

http://www.iana.org/assignments/protocol-numbers/protocol-numbers.txt
http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.txt

Looking at the tarball Makefile, I should be able to do

gawk --re-interval -f protocols.gawk -v strip=no \
        protocol-numbers.txt > /etc/protocols

Which seems to work, but

gawk -f services.gawk -v strip=no service-names-port-numbers.txt

doesn't produce the right file.  In the patches, I don't see any changes 
to services.gawk, so I don't know how your scripts work.

I'll also note that it's somewhat irritating for text files to have line 
lengths of 300 characters in the iana files.


   -- Bruce



More information about the lfs-dev mailing list