Re: [gentoo-dev] GLEP 67 is in, please update your metadata.dtd!

2016-01-25 Thread Luis Ressel
On Mon, 25 Jan 2016 10:37:15 +0100
Michał Górny  wrote:

> Hello, everyone.
> 
> I've finished the GLEP 67 transition last night, and it officially
> applies to all metadata.xml files now.
> 

Great!

> In order to have repoman apply it correct (and not throw errors on new
> metadata.xml files), it needs to refetch metadata.dtd. Sadly, this
> currently happens once a week, so it's better to remove the file
> manually to force refetch:
> 
>   rm "$(portageq envvar DISTDIR)"/metadata.dtd
> 

I might be asking this for a second time, but why does repoman download
the metadata.dtd at all? If one fetches from
git://../gentoo-mirror/gentoo (or via rsync, afaik) it is included
in /usr/portage/metadata/dtd/.

For me, it's in fact very annoying when repoman wants to download
metatdata.dtd, as my "normal" unix user isn't a member of the portage
group.

By the way, the herds.xml file is still available at
https://api.gentoo.org/packages/herds.xml and can probably be removed
from there as well.


-- 
Regards,
Luis Ressel



Re: [gentoo-dev] GLEP 67 is in, please update your metadata.dtd!

2016-01-25 Thread Mike Gilbert
On Mon, Jan 25, 2016 at 11:31 AM, Luis Ressel  wrote:
> On Mon, 25 Jan 2016 10:37:15 +0100
> Michał Górny  wrote:
>
>> Hello, everyone.
>>
>> I've finished the GLEP 67 transition last night, and it officially
>> applies to all metadata.xml files now.
>>
>
> Great!
>
>> In order to have repoman apply it correct (and not throw errors on new
>> metadata.xml files), it needs to refetch metadata.dtd. Sadly, this
>> currently happens once a week, so it's better to remove the file
>> manually to force refetch:
>>
>>   rm "$(portageq envvar DISTDIR)"/metadata.dtd
>>
>
> I might be asking this for a second time, but why does repoman download
> the metadata.dtd at all? If one fetches from
> git://../gentoo-mirror/gentoo (or via rsync, afaik) it is included
> in /usr/portage/metadata/dtd/.

repoman is a developer tool. The git repo used by developers does not
include metadata.dtd.



Re: [gentoo-dev] GLEP 67 is in, please update your metadata.dtd!

2016-01-25 Thread Andrew Savchenko
On Mon, 25 Jan 2016 10:37:15 +0100 Michał Górny wrote:
> Hello, everyone.
> 
> I've finished the GLEP 67 transition last night, and it officially
> applies to all metadata.xml files now.
> 
> In order to have repoman apply it correct (and not throw errors on new
> metadata.xml files), it needs to refetch metadata.dtd. Sadly, this
> currently happens once a week, so it's better to remove the file
> manually to force refetch:

skel.metadata.xml should be updated as well, otherwise developers
will have broken example.

That said, skel.ChangeLog should be removed :)

Best regards,
Andrew Savchenko


pgpyf_pR5isia.pgp
Description: PGP signature


[gentoo-dev] GLEP 67 is in, please update your metadata.dtd!

2016-01-25 Thread Michał Górny
Hello, everyone.

I've finished the GLEP 67 transition last night, and it officially
applies to all metadata.xml files now.

In order to have repoman apply it correct (and not throw errors on new
metadata.xml files), it needs to refetch metadata.dtd. Sadly, this
currently happens once a week, so it's better to remove the file
manually to force refetch:

  rm "$(portageq envvar DISTDIR)"/metadata.dtd

Please note that the metadata.dtd is unable to correctly enforce
obligatory type="" attribute on maintainers. Please make sure to add
it. I will be adding pkgcheck/repoman checks for that soon.

If you'd like to convert your own repository, you can reuse the herdfix
tool [1]. It's pretty dumb, and can work with any repository:

  git clone https://bitbucket.org/mgorny/herdfix/
  cd herdfix
  # note: this will fetch all data, including ssh-ing to d.g.o
  # to get developer list from /etc/passwd
  make
  ./01-pre-clean.py /repo/path
  ./03-clean-maint-needed.py /repo/path
  ./02-herdfix.py /repo/path herd-mapping.json
  ./04-set-type.py /repo/path projects.xml dev.names

01-pre-clean.py is optional and useful only if you want to separately
commit quoting changes to avoid mixing them in with other changes.

03-clean-maint-needed.py is probably unnecessary since it just updates
maintainer-needed@g.o packages. I doubt you find them often in custom
repositories.

02-herdfix.py is the meat grinder replacing herds with projects. Useful
only if you used  in your repository (which you shouldn't have
been).

04-set-type.py sets type="" on all s. It uses
type="project" for anything found in projects.xml, type="person"
otherwise.

[1]:https://bitbucket.org/mgorny/herdfix/

-- 
Best regards,
Michał Górny



pgpBSa7a2Sbd_.pgp
Description: OpenPGP digital signature