Re: [gentoo-dev] New schema language for metadata validation?

2016-01-27 Thread Dirkjan Ochtman
On Tue, Jan 26, 2016 at 9:52 PM, Michael Orlitzky wrote: > I would appreciate examples of some common tasks like validating > projects.xml, but since we don't have those now, it's not critical. > This used to be kinda straightforward with xmllint, > > $ xmllint --valid --noout projects.xml && ec

Re: [gentoo-dev] New schema language for metadata validation?

2016-01-27 Thread Michał Górny
On Tue, 26 Jan 2016 20:52:09 +0100 Dirkjan Ochtman wrote: > All, > > TL;DR: I think we should switch from DTD to RELAX NG (compact syntax, > ideally) for our XML validation needs. It is more expressive and more > readable. > > Most people who know anything about XML stuff know that DTDs are not

Re: [gentoo-dev] New schema language for metadata validation?

2016-01-27 Thread Dirkjan Ochtman
On Wed, Jan 27, 2016 at 1:09 PM, Michał Górny wrote: > Could you post a generated .rng and XML Schema files for comparison? > They don't have to be perfect conversions, just to see how different > they are. Here's the RNG, generated with dev-python/rnc2rng: https://raw.githubusercontent.com/djc/

Re: [gentoo-dev] New schema language for metadata validation?

2016-01-27 Thread Brian Dolbec
On Wed, 27 Jan 2016 14:39:02 +0100 Dirkjan Ochtman wrote: > On Wed, Jan 27, 2016 at 1:09 PM, Michał Górny > wrote: > > Could you post a generated .rng and XML Schema files for comparison? > > They don't have to be perfect conversions, just to see how different > > they are. > > Here's the RNG

Re: [gentoo-dev] Re: News item: Upgrading Apache from 2.2 to 2.4

2016-01-27 Thread Dirkjan Ochtman
On Fri, Jan 22, 2016 at 3:20 PM, Kristian Fiskerstrand wrote: > Advanced notice, please Committed 2016-01-27-upgrading-to-apache-2_4 to news. Time to request stabilization? Cheers, Dirkjan

Re: [gentoo-dev] New schema language for metadata validation?

2016-01-27 Thread Michael Orlitzky
On 01/27/2016 04:22 AM, Dirkjan Ochtman wrote: > On Tue, Jan 26, 2016 at 9:52 PM, Michael Orlitzky wrote: >> I would appreciate examples of some common tasks like validating >> projects.xml, but since we don't have those now, it's not critical. >> This used to be kinda straightforward with xmllint

Re: [gentoo-dev] Re: News item: Upgrading Apache from 2.2 to 2.4

2016-01-27 Thread Kristian Fiskerstrand
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 01/27/2016 03:17 PM, Dirkjan Ochtman wrote: > On Fri, Jan 22, 2016 at 3:20 PM, Kristian Fiskerstrand > wrote: >> Advanced notice, please > > Committed 2016-01-27-upgrading-to-apache-2_4 to news. > > Time to request stabilization? I'm not aware

Re: [gentoo-dev] New schema language for metadata validation?

2016-01-27 Thread Dirkjan Ochtman
On Wed, Jan 27, 2016 at 3:21 PM, Michael Orlitzky wrote: >> But libxml2 does not seem to support it; that is, substituting the >> DOCTYPE for an xml-model processing instruction and then using xmllint >> --valid does not do the right thing (it complains there's no DOCTYPE). > > But does it /compla

Re: [gentoo-dev] New schema language for metadata validation?

2016-01-27 Thread Ulrich Mueller
> On Wed, 27 Jan 2016, Dirkjan Ochtman wrote: > Here's the RNG, generated with dev-python/rnc2rng: > https://raw.githubusercontent.com/djc/gentoo-data-dtd/metadata-rnc/metadata.rng > The best way to convert from RELAX NG to XML Schema seems to be with > trang; I downloaded an older binary an

Re: [gentoo-dev] New schema language for metadata validation?

2016-01-27 Thread Michał Górny
On Wed, 27 Jan 2016 14:39:02 +0100 Dirkjan Ochtman wrote: > On Wed, Jan 27, 2016 at 1:09 PM, Michał Górny wrote: > > Could you post a generated .rng and XML Schema files for comparison? > > They don't have to be perfect conversions, just to see how different > > they are. > > Here's the RNG,

Re: [gentoo-dev] New schema language for metadata validation?

2016-01-27 Thread Ulrich Mueller
> On Wed, 27 Jan 2016, Michał Górny wrote: > First of all, I don't like RELAX-NG Compact at all. It looks like > someone tried hard to combine some variation of BNF, DOCTYPE and > something else in order to get something that is both readable and > compact. And got a result that doesn't meet e

Re: [gentoo-dev] New schema language for metadata validation?

2016-01-27 Thread Dirkjan Ochtman
On Wed, Jan 27, 2016 at 4:20 PM, Michał Górny wrote: > First of all, I don't like RELAX-NG Compact at all. It looks like > someone tried hard to combine some variation of BNF, DOCTYPE > and something else in order to get something that is both readable > and compact. And got a result that doesn't

Re: [gentoo-dev] New schema language for metadata validation?

2016-01-27 Thread Michał Górny
On Wed, 27 Jan 2016 16:28:13 +0100 Dirkjan Ochtman wrote: > On Wed, Jan 27, 2016 at 4:20 PM, Michał Górny wrote: > > First of all, I don't like RELAX-NG Compact at all. It looks like > > someone tried hard to combine some variation of BNF, DOCTYPE > > and something else in order to get something

Re: [gentoo-dev] New schema language for metadata validation?

2016-01-27 Thread Michał Górny
On Tue, 26 Jan 2016 20:52:09 +0100 Dirkjan Ochtman wrote: > TL;DR: I think we should switch from DTD to RELAX NG (compact syntax, > ideally) for our XML validation needs. It is more expressive and more > readable. Oh, one more thing. Do we use the variant anywhere? If not, I suggest we drop it

Re: [gentoo-dev] New schema language for metadata validation?

2016-01-27 Thread Ulrich Mueller
> On Wed, 27 Jan 2016, Michał Górny wrote: > Do we use the variant anywhere? If not, I suggest we > drop it since it's completely unclear to me and only pollutes the > schema. +1 Here is the commit (from 2003) that had introduced the packages element: https://sources.gentoo.org/cgi-bin/view

Re: [gentoo-dev] New schema language for metadata validation?

2016-01-27 Thread Michael Orlitzky
On 01/27/2016 09:49 AM, Dirkjan Ochtman wrote: > > Can I ask what your interest is? > An easy, automated way to make sure that I didn't screw up the file before I commit it. For personal use, it can hit the network, but I was also considering a pre-commit hook that would need to look locally (bu

Re: [gentoo-dev] New schema language for metadata validation?

2016-01-27 Thread Dirkjan Ochtman
On Wed, Jan 27, 2016 at 4:43 PM, Michał Górny wrote: > Yes, that part makes some sense. Except that it immediately follows > braces which makes me think it applies only to the thing in the braces. > Furthermore, the use of {} vs () seems pretty much random, and the & > is completely unclear what i

Re: [gentoo-dev] New schema language for metadata validation?

2016-01-27 Thread Michael Orlitzky
On 01/27/2016 10:28 AM, Dirkjan Ochtman wrote: > >> Therefore, I'd suggest we just ship properly hand-written XML Schema, >> with some nice comments. I don't see a reason to ship any RELAX-NG >> files unless we actually have tools that support only that. > > I'd be curious what Michael, Ulrich, a

[gentoo-dev] Re: Is it safe to do umask +rx in eselect globally?

2016-01-27 Thread Ulrich Mueller
> This came up in bug 572348. Question, especially to maintainers of > eselect modules, is it safe to globally set "umask +rx" in eselect, > or are there any circumstances where files should be created with > more restrictive permissions when root's umask asks for it? No reply, therefore this is i

[gentoo-dev] [PATCH] latex-package.eclass: Support EAPI 6.

2016-01-27 Thread Ulrich Mueller
Please find below a patch which will enable EAPI 6 support in latex-package.eclass. The main change is that it won't inherit base any more. Ulrich From 990fce89a3ec1a462399089541b67bbcc6baff87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulrich=20M=C3=BCller?= Date: Wed, 27 Jan 2016 17:15:23 +0100

[gentoo-dev] [PATCH] latex-package.eclass: Support EAPI 6.

2016-01-27 Thread Ulrich Mueller
[Re-sent, with good GPG signature this time.] Please find below a patch which will enable EAPI 6 support in latex-package.eclass. The main change is that it won't inherit base any more. Ulrich From 990fce89a3ec1a462399089541b67bbcc6baff87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulrich=20M=C3=B

Re: [gentoo-dev] [PATCH] latex-package.eclass: Support EAPI 6.

2016-01-27 Thread Alexis Ballier
On Wed, 27 Jan 2016 20:59:21 +0100 Ulrich Mueller wrote: > Please find below a patch which will enable EAPI 6 support in > latex-package.eclass. The main change is that it won't inherit base > any more. > > Ulrich lgtm, thanks