Re: [Libosinfo] [PATCH] NetBSD: add NetBSD 6.x / 7.x data

2018-02-16 Thread Christophe Fergeau
Hey,

On Thu, Feb 15, 2018 at 06:37:17PM -0200, Vicente Chaves de Melo wrote:
> ---
>  data/os/netbsd.org/netbsd-6.0.xml.in | 64 
> 
>  data/os/netbsd.org/netbsd-6.1.xml.in | 64 
> 
>  data/os/netbsd.org/netbsd-7.0.xml.in | 64 
> 
>  data/os/netbsd.org/netbsd-7.1.xml.in | 64 
> 
>  4 files changed, 256 insertions(+)
>  create mode 100644 data/os/netbsd.org/netbsd-6.0.xml.in
>  create mode 100644 data/os/netbsd.org/netbsd-6.1.xml.in
>  create mode 100644 data/os/netbsd.org/netbsd-7.0.xml.in
>  create mode 100644 data/os/netbsd.org/netbsd-7.1.xml.in
> 
> diff --git a/data/os/netbsd.org/netbsd-6.0.xml.in 
> b/data/os/netbsd.org/netbsd-6.0.xml.in
> new file mode 100644
> index 000..551d530
> --- /dev/null
> +++ b/data/os/netbsd.org/netbsd-6.0.xml.in
> @@ -0,0 +1,64 @@
> +
> +
> +  http://netbsd.org/netbsd/6.0;>
> +netbsd6.0
> +<_name>NetBSD 6.0
> +6.0
> +<_vendor>NetBSD Project
> +netbsd
> +netbsd
> +http://netbsd.org/netbsd/5.0"/>
> +http://netbsd.org/netbsd/5.0"/>
> +
> +2012-10-13
> +
> +
> +  
> https://cdn.netbsd.org/pub/NetBSD/NetBSD-6.0/images/NetBSD-6.0-amd64.iso
> +  
> +NetBSD
> +NETBSD_60
> +346052608

There is some trick with respect to 'volume-size', here it's set to
the size of the NetBSD-6.0-amd64.iso file in bytes once it's downloaded.
However, libosinfo infers that size from the ISO header, not by checking
the file size. In this case, 'isoinfo -d -i /tmp/NetBSD-6.0-amd64.iso'
gives:

CD-ROM is in ISO 9660 format
...
Logical block size is: 2048
Volume size is: 168821
...

so what should be in 'volume-size' is 2048 * 168821, which is 345745408.
I've fixed this, and all the other volume-size entries, so no action
needed from your side. I'm just waiting for confirmation whether NetBSD
7.1 upgrades 7.0 or 6.0 and I'll push this.

Christophe


signature.asc
Description: PGP signature
___
Libosinfo mailing list
Libosinfo@redhat.com
https://www.redhat.com/mailman/listinfo/libosinfo


Re: [Libosinfo] [PATCH] NetBSD: add NetBSD 6.x / 7.x data

2018-02-15 Thread Vicente Chaves de Melo

Hi Christophe,

1) About the boot.iso and boot-com.iso: 
https://mail-index.netbsd.org/port-i386/2007/09/02/0001.html

"boot.iso is a bootable ISO image, with only the kernel and sysinst
(no binary sets, so you have to install from other source - e.g. network).
boot-com.iso is the same but with console on serial port com0"

2) About NetBSD Releases: https://www.netbsd.org/releases/release-map.html
Essentially the 7.0 version is derived from the 6.0 version, and not the 
version 6.1


3) Yes, I can add the information about the version 7.1.1

Best regards
Vicente

___
Libosinfo mailing list
Libosinfo@redhat.com
https://www.redhat.com/mailman/listinfo/libosinfo


Re: [Libosinfo] [PATCH] NetBSD: add NetBSD 6.x / 7.x data

2018-02-14 Thread Christophe Fergeau
On Wed, Feb 14, 2018 at 11:44:48AM +0100, Christophe Fergeau wrote:
> Hey Vicente, thanks for the patches!
> 
> Could you also provide a patch for libosinfo to add test data for these
> ISOs? You can generate them with
> "iso_name=./NetBSD-6.0-amd64.iso isoinfo -d -i $iso_name >$iso_name.txt"
> 
> On Tue, Feb 06, 2018 at 03:13:59PM -0200, Vicente Chaves de Melo wrote:
> > ---
> >  data/os/netbsd.org/netbsd-6.0.xml.in | 75 
> > 
> >  data/os/netbsd.org/netbsd-6.1.xml.in | 75 
> > 
> >  data/os/netbsd.org/netbsd-7.0.xml.in | 75 
> > 
> >  data/os/netbsd.org/netbsd-7.1.xml.in | 75 
> > 
> >  4 files changed, 300 insertions(+)
> >  create mode 100644 data/os/netbsd.org/netbsd-6.0.xml.in
> >  create mode 100644 data/os/netbsd.org/netbsd-6.1.xml.in
> >  create mode 100644 data/os/netbsd.org/netbsd-7.0.xml.in
> >  create mode 100644 data/os/netbsd.org/netbsd-7.1.xml.in
> > 
> > diff --git a/data/os/netbsd.org/netbsd-6.0.xml.in 
> > b/data/os/netbsd.org/netbsd-6.0.xml.in
> > new file mode 100644
> > index 000..9897d59
> > --- /dev/null
> > +++ b/data/os/netbsd.org/netbsd-6.0.xml.in
> > @@ -0,0 +1,75 @@
> > +
> > +
> > +
> > +  http://netbsd.org/netbsd/6.0;>
> > +netbsd6.0
> > +NetBSD 6.0
> > +NetBSD 6.0
> > +NetBSD 6.0
> > +NetBSD 6.0
> > +NetBSD 6.0
> > +NetBSD 6.0
> > +NetBSD 6.0
> > +NetBSD 6.0
> > +NetBSD 6.0
> 
> The translations do not belong in the .xml.in files, but in the .po
> files. They are then merged in the XML data as part of the .xml.in ->
> .xml transformation.

Forgot to mention that you need to annotate the xml tag with a _:
<_name>NetBSD 6.0 to mark it for translation.

Christophe


signature.asc
Description: PGP signature
___
Libosinfo mailing list
Libosinfo@redhat.com
https://www.redhat.com/mailman/listinfo/libosinfo