Michael Uleysky wrote:
> 2014-01-31 Bruce Dubbs <bruce.du...@gmail.com>:
>
>> Michael Uleysky wrote:
>>> 2014-01-31 Bruce Dubbs <bruce.du...@gmail.com>:
>>>
>>>> Michael Uleysky wrote:
>>>>> Hi all.
>>>>>
>>>>> I suggest two patches for the iana-etc, which solves the problem of
>>>>> data updates from the IANA site.
>>>>
>>>> What problem is that?
>>>>
>>>
>>> iana-etc includes some scripts for downloading recent version of
>> protocols
>>> and services from IANA site.
>>
>> Interesting.  That is embedded in some gawk scripts, but don't install
>> those.  I've never noticed them before.  That said, have you tested the
>> scripts?  I tried to follow them manually and I can't find the pages
>> that are specified, either old or in the patch.  Note that we do not
>> install the gawk scripts at all.
>>
>
> Pages to download are specifies in Makefile.
> Of course, I test these scripts in old and patched variants. Old scripts
> are almost unusable, services file generated incorrectly. Patched version
> use xml as input instead of plain text and is very simple.
>
>> These scripts are unusable now because IANA
>>> changes addresses and formats of its data. It is not a problem if you
>> happy
>>> with 5-years old data. Really, there is only one interesting change in
>> new
>>> IANA data - port numbers for dccp and sctp protocols in services file.
>>
>> Wouldn't it just be easier to do a sed to the affected files when
>> needed?  We do that for rpcbind now:
>>
>> sed -i 's/^sunrpc/rpcbind/' /etc/services
>>
> It can be done for protocols, because here changes are small, but not for
> services. Services from IANA are very large. Of course, it is mainly a
> proprietary junk, but I don't know how to separate really useful entries.
>
> For me, I add rpcbind as alias for sunrpc,
> sunrpc            111/tcp<----->rpcbind   # SUN Remote Procedure Call
> sunrpc            111/udp<----->rpcbind   # SUN Remote Procedure Call
> There also can be some other aliases, see, for example, services and
> protocols files from Gentoo baselayout,
> http://de-mirror.org/gentoo/distfiles/baselayout-2.2.tar.bz2 I don't know
> the authorized source of these aliases.
>
> And about CLFS patches. First patch,  iana-etc-2.30-get_fix-1.patch,
> correct only download url. It is not enough, because format of IANA data
> also changed and services file can't be regenerated without changes in
> scripts. Second patch is just a snapshot of IANA data on 2012-06-08. I
> think, we may combine two ways in one: provide patches on scripts for
> people living on the edge, and provide some snapshot of data for regular
> use.

What I'm thinking about is to create our own tarball with current data 
files and also install a couple of custom programs similar to 
update-usbids and update-pciids.

   -- Bruce

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to