public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH] add apache to metadata.dtd
@ 2022-11-24 12:29 Volkmar W. Pogatzki
  2022-11-24 14:03 ` Michał Górny
  0 siblings, 1 reply; 9+ messages in thread
From: Volkmar W. Pogatzki @ 2022-11-24 12:29 UTC (permalink / raw
  To: gentoo-dev

There are many packages hosted on <package>.apache.org like e.g.

dev-java/log4j-core -> https://logging.apache.org/log4j/2.x/
dev-java/pdfbox -> https://pdfbox.apache.org/
net-libs/serf -> https://serf.apache.org/

A new Upstream <remote-id type="apache"> would allow setting remote-id to the
correct value for those packages.

Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
---
 metadata.dtd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/metadata.dtd b/metadata.dtd
index c36242a..6546dc6 100644
--- a/metadata.dtd
+++ b/metadata.dtd
@@ -56,7 +56,7 @@
     <!ELEMENT bugs-to (#PCDATA)>
     <!-- specify a type of package identification tracker -->
     <!ELEMENT remote-id (#PCDATA)>
-      <!ATTLIST remote-id type (bitbucket|cpan|cpan-module|cpe|cran|ctan|freedesktop-gitlab|gentoo|github|gitlab|gnome-gitlab|google-code|hackage|heptapod|launchpad|osdn|pear|pecl|pypi|rubygems|savannah|savannah-nongnu|sourceforge|sourcehut|vim) #REQUIRED>
+      <!ATTLIST remote-id type (apache|bitbucket|cpan|cpan-module|cpe|cran|ctan|freedesktop-gitlab|gentoo|github|gitlab|gnome-gitlab|google-code|hackage|heptapod|launchpad|osdn|pear|pecl|pypi|rubygems|savannah|savannah-nongnu|sourceforge|sourcehut|vim) #REQUIRED>
 
   <!-- category/package information for cross-linking in descriptions
     and useflag descriptions -->
-- 
2.37.4



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] [PATCH] add apache to metadata.dtd
  2022-11-24 12:29 [gentoo-dev] [PATCH] add apache to metadata.dtd Volkmar W. Pogatzki
@ 2022-11-24 14:03 ` Michał Górny
  2022-11-24 16:46   ` vaukai
  2022-11-25  9:04   ` Volkmar W. Pogatzki
  0 siblings, 2 replies; 9+ messages in thread
From: Michał Górny @ 2022-11-24 14:03 UTC (permalink / raw
  To: gentoo-dev

On Thu, 2022-11-24 at 13:29 +0100, Volkmar W. Pogatzki wrote:
> There are many packages hosted on <package>.apache.org like e.g.
> 
> dev-java/log4j-core -> https://logging.apache.org/log4j/2.x/
> dev-java/pdfbox -> https://pdfbox.apache.org/
> net-libs/serf -> https://serf.apache.org/
> 

This doesn't seem consistent.  How is it supposed to work?

Please don't forget to include a patch for the XML Schema and pkgcheck.

-- 
Best regards,
Michał Górny



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] [PATCH] add apache to metadata.dtd
  2022-11-24 14:03 ` Michał Górny
@ 2022-11-24 16:46   ` vaukai
  2022-11-25  0:11     ` John Helmert III
  2022-11-25  9:04   ` Volkmar W. Pogatzki
  1 sibling, 1 reply; 9+ messages in thread
From: vaukai @ 2022-11-24 16:46 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/html, Size: 2159 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] [PATCH] add apache to metadata.dtd
  2022-11-24 16:46   ` vaukai
@ 2022-11-25  0:11     ` John Helmert III
  0 siblings, 0 replies; 9+ messages in thread
From: John Helmert III @ 2022-11-25  0:11 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 2413 bytes --]

Could you resend this in plaintext?

On Thu, Nov 24, 2022 at 05:46:45PM +0100, vaukai wrote:
> <!doctype html>
> <html>
>  <head> 
>   <meta charset="UTF-8"> 
>  </head>
>  <body>
>   <blockquote type="cite"> 
>    <div>
>     Michał Górny &lt;<a href="mailto:mgorny@gentoo.org">mgorny@gentoo.org</a>&gt; hat am 24.11.2022 15:03 CET geschrieben:
>    </div> 
>    <div>
>     &nbsp;
>    </div> 
>    <div>
>     &nbsp;
>    </div> 
>    <div>
>     On Thu, 2022-11-24 at 13:29 +0100, Volkmar W. Pogatzki wrote:
>    </div> 
>    <blockquote type="cite"> 
>     <div>
>      There are many packages hosted on &lt;package&gt;.apache.org like e.g.
>     </div> 
>     <div>
>      &nbsp;
>     </div> 
>     <div>
>      dev-java/log4j-core -&gt; <a href="https://logging.apache.org/log4j/2.x/" target="_blank" rel="noopener">https://logging.apache.org/log4j/2.x/</a>
>     </div> 
>     <div>
>      dev-java/pdfbox -&gt; <a href="https://pdfbox.apache.org/" target="_blank" rel="noopener">https://pdfbox.apache.org/</a>
>     </div> 
>     <div>
>      net-libs/serf -&gt; <a href="https://serf.apache.org/" target="_blank" rel="noopener">https://serf.apache.org/</a>
>     </div> 
>     <div>
>      &nbsp;
>     </div> 
>    </blockquote> 
>    <div>
>     This doesn't seem consistent. How is it supposed to work?
>    </div> 
>    <div>
>     &nbsp;
>    </div> 
>    <div>
>     Please don't forget to include a patch for the XML Schema and pkgcheck.
>    </div> 
>   </blockquote> 
>   <div class="default-style">
>    &nbsp;
>   </div> 
>   <div class="default-style">
>    <a href="https://882351.bugs.gentoo.org/attachment.cgi?id=835371">https://882351.bugs.gentoo.org/attachment.cgi?id=835371</a>
>   </div> 
>   <div class="default-style">
>    <a href="https://882351.bugs.gentoo.org/attachment.cgi?id=835437">https://882351.bugs.gentoo.org/attachment.cgi?id=835437</a>
>   </div> 
>   <div class="default-style">
>    &nbsp;
>   </div> 
>   <div class="default-style">
>    Wiki says "DTD (needs gentoo-dev ML review, do this before any other step)"
>   </div> 
>   <div class="default-style">
>    --
>   </div> 
>   <div class="default-style">
>    Best
>   </div> 
>   <div class="default-style">
>    Volkmar W. Pogatzki
>   </div> 
>   <div class="default-style">
>    &nbsp;
>   </div>
>  </body>
> </html>
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] [PATCH] add apache to metadata.dtd
  2022-11-24 14:03 ` Michał Górny
  2022-11-24 16:46   ` vaukai
@ 2022-11-25  9:04   ` Volkmar W. Pogatzki
  2022-11-25 13:16     ` Michał Górny
  1 sibling, 1 reply; 9+ messages in thread
From: Volkmar W. Pogatzki @ 2022-11-25  9:04 UTC (permalink / raw
  To: gentoo-dev

> Michał Górny <mgorny@gentoo.org> hat am 24.11.2022 15:03 CET geschrieben:
> 
>  
> On Thu, 2022-11-24 at 13:29 +0100, Volkmar W. Pogatzki wrote:
> > There are many packages hosted on <package>.apache.org like e.g.
> > 
> > dev-java/log4j-core -> https://logging.apache.org/log4j/2.x/
> > dev-java/pdfbox -> https://pdfbox.apache.org/
> > net-libs/serf -> https://serf.apache.org/
> > 
> 
> This doesn't seem consistent.  How is it supposed to work?
> 
> Please don't forget to include a patch for the XML Schema and pkgcheck.
> 
> -- 
> Best regards,
> Michał Górny


https://882351.bugs.gentoo.org/attachment.cgi?id=835371
https://882351.bugs.gentoo.org/attachment.cgi?id=835437
 
Wiki says "DTD (needs gentoo-dev ML review, do this before any other step)"
-- 
Best regards
Volkmar W. Pogatzki


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] [PATCH] add apache to metadata.dtd
  2022-11-25  9:04   ` Volkmar W. Pogatzki
@ 2022-11-25 13:16     ` Michał Górny
  2022-11-25 13:28       ` Volkmar W. Pogatzki
  0 siblings, 1 reply; 9+ messages in thread
From: Michał Górny @ 2022-11-25 13:16 UTC (permalink / raw
  To: gentoo-dev

On Fri, 2022-11-25 at 10:04 +0100, Volkmar W. Pogatzki wrote:
> > This doesn't seem consistent.  How is it supposed to work?

You didn't answer this question.

-- 
Best regards,
Michał Górny



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] [PATCH] add apache to metadata.dtd
  2022-11-25 13:16     ` Michał Górny
@ 2022-11-25 13:28       ` Volkmar W. Pogatzki
  2022-11-25 13:31         ` Michał Górny
  2022-11-25 13:48         ` Ionen Wolkens
  0 siblings, 2 replies; 9+ messages in thread
From: Volkmar W. Pogatzki @ 2022-11-25 13:28 UTC (permalink / raw
  To: gentoo-dev

> Michał Górny <mgorny@gentoo.org> hat am 25.11.2022 14:16 CET geschrieben:
> 
>  
> On Fri, 2022-11-25 at 10:04 +0100, Volkmar W. Pogatzki wrote:
> > > This doesn't seem consistent.  How is it supposed to work?
> 
> You didn't answer this question.
> 
> -- 
> Best regards,
> Michał Górny

Sorry. I have to admit I have no idea how remote-id works and what's
needed to make a new remote-id work.

I was asked on https://bugs.gentoo.org/882351 to post here, so I did.

What did you mean with »doesn't seem consistent«,
why should an "apache" remote-id not be possible?
-- 
Kind regards
Volkmar W. Pogatzki


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] [PATCH] add apache to metadata.dtd
  2022-11-25 13:28       ` Volkmar W. Pogatzki
@ 2022-11-25 13:31         ` Michał Górny
  2022-11-25 13:48         ` Ionen Wolkens
  1 sibling, 0 replies; 9+ messages in thread
From: Michał Górny @ 2022-11-25 13:31 UTC (permalink / raw
  To: gentoo-dev

On Fri, 2022-11-25 at 14:28 +0100, Volkmar W. Pogatzki wrote:
> > Michał Górny <mgorny@gentoo.org> hat am 25.11.2022 14:16 CET
> > geschrieben:
> > 
> >  
> > On Fri, 2022-11-25 at 10:04 +0100, Volkmar W. Pogatzki wrote:
> > > > This doesn't seem consistent.  How is it supposed to work?
> > 
> > You didn't answer this question.
> > 
> > -- 
> > Best regards,
> > Michał Górny
> 
> Sorry. I have to admit I have no idea how remote-id works and what's
> needed to make a new remote-id work.
> 
> I was asked on https://bugs.gentoo.org/882351 to post here, so I did.
> 
> What did you mean with »doesn't seem consistent«,
> why should an "apache" remote-id not be possible?

Let me rephrase the question: what will be the remote-id values for
these packages?  How can you handle the case when some of the packages
are at top level of the domain, while others are in subpage?

-- 
Best regards,
Michał Górny



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] [PATCH] add apache to metadata.dtd
  2022-11-25 13:28       ` Volkmar W. Pogatzki
  2022-11-25 13:31         ` Michał Górny
@ 2022-11-25 13:48         ` Ionen Wolkens
  1 sibling, 0 replies; 9+ messages in thread
From: Ionen Wolkens @ 2022-11-25 13:48 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1069 bytes --]

On Fri, Nov 25, 2022 at 02:28:23PM +0100, Volkmar W. Pogatzki wrote:
> > Michał Górny <mgorny@gentoo.org> hat am 25.11.2022 14:16 CET geschrieben:
> > 
> >  
> > On Fri, 2022-11-25 at 10:04 +0100, Volkmar W. Pogatzki wrote:
> > > > This doesn't seem consistent.  How is it supposed to work?
> > 
> > You didn't answer this question.
> 
> Sorry. I have to admit I have no idea how remote-id works and what's
> needed to make a new remote-id work.

The problem from the examples you gave is log4j-core:

dev-java/log4j-core -> https://logging.apache.org/log4j/2.x/                                       
dev-java/pdfbox -> https://pdfbox.apache.org/                                                      
net-libs/serf -> https://serf.apache.org/    

you can have e.g.
 url-template: https://<remote-id>.apache.org/
 metadata: <remote-id type="apache">logging</remote-id>
 -> https://logging.apache.org/

But that won't add a log4j/2.x at the end of the url, current
implementation just does a dumb replacement for a single part

-- 
ionen

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-11-25 13:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-24 12:29 [gentoo-dev] [PATCH] add apache to metadata.dtd Volkmar W. Pogatzki
2022-11-24 14:03 ` Michał Górny
2022-11-24 16:46   ` vaukai
2022-11-25  0:11     ` John Helmert III
2022-11-25  9:04   ` Volkmar W. Pogatzki
2022-11-25 13:16     ` Michał Górny
2022-11-25 13:28       ` Volkmar W. Pogatzki
2022-11-25 13:31         ` Michał Górny
2022-11-25 13:48         ` Ionen Wolkens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox