Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 112712 - Replace script that creates /dyn/use-index.xml
Summary: Replace script that creates /dyn/use-index.xml
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Web Node Issues (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Infrastructure
URL: http://www.gentoo.org/proj/en/gdp/tes...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-16 09:00 UTC by Xavier Neys (RETIRED)
Modified: 2006-08-10 13:15 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
New script (udesc.sh,1.78 KB, text/plain)
2005-11-16 09:06 UTC, Xavier Neys (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier Neys (RETIRED) gentoo-dev 2005-11-16 09:00:58 UTC
The current script creates GuideXML directly. It would be much better imo to
have it create a simple xml file that contains the USE flags and use an xsl
transform to create some guideXML.
Comment 1 Xavier Neys (RETIRED) gentoo-dev 2005-11-16 09:06:04 UTC
Created attachment 73010 [details]
New script

Suggested script.
You only need to change to target file name & location (and dir where the
use.desc & use.local.desc files can be found if they are not kept up-to-date on
the web nodes) at the beginning.
The script uses awk.

The xsl is already in place.
The xml file looks like
http://wren.gentoo.org/proj/en/gdp/tests/use-index.xml?passthru=1
which is rendered as http://www.gentoo.org/proj/en/gdp/tests/use-index.xml
Comment 2 Lance Albertson (RETIRED) gentoo-dev 2005-11-16 09:39:25 UTC
Cool, I'll put that on the list of things to add when I move over to the new
webnode structure. Now that I got backups out of the way, I'm going to push on
getting this task completed. Waited too long. 

I'll let you know when I'm getting closer to using this script.
Comment 3 Lance Albertson (RETIRED) gentoo-dev 2005-11-25 16:23:31 UTC
I got the new script up and running on the new master web node [1]. Please check
it over and make sure its working properly.

[1] http://loon.gentoo.org/dyn/use-index.xml
Comment 4 Xavier Neys (RETIRED) gentoo-dev 2005-11-26 02:37:38 UTC
That's the file from the old script
Comment 5 Lance Albertson (RETIRED) gentoo-dev 2005-11-26 06:45:04 UTC
Odd, the script is supposed to be running that new script. I'll see whats going on.
Comment 6 Lance Albertson (RETIRED) gentoo-dev 2005-11-26 07:05:10 UTC
Ok, I figured it out. Script was updating the file in the wrong place. I needed
to have it update in the stage directory. It should be getting fixed in the next
30min or so.
Comment 7 Xavier Neys (RETIRED) gentoo-dev 2005-11-27 07:48:09 UTC
Looks good. Now that we have an xml source, we can tweak the xsl and adapt the
page to please the whiners :)
Thanks.

OT: compression does not seem to be enabled. I've just noticed neither wren nor
kiwi compress their output, only bluejay does.
$ curl -s --compress -D - -o /dev/null http://loon.gentoo.org/dyn/use-index.xml
HTTP/1.1 200 OK
Date: Sun, 27 Nov 2005 15:33:07 GMT
Server: Apache
ETag: "ccda-438924d0"
Content-Length: 293080
Last-Modified: Sun, 27 Nov 2005 03:15:28 GMT
Content-Type: text/html; charset=utf-8

$ curl -s --compress -D - -o /dev/null http://bluejay.gentoo.org/dyn/use-index.xml
HTTP/1.1 200 OK
Date: Sun, 27 Nov 2005 15:40:14 GMT
Server: Apache/1.3.33 (Unix)  (Gentoo/Linux)
Vary: Accept-Encoding,User-Agent
Content-Encoding: gzip
Last-Modified: Sun, 27 Nov 2005 15:40:14 GMT
ETag: W/"22b9f6-26e8-4389d35e"
Accept-Ranges: bytes
Content-Length: 9960
Content-Type: text/html; charset=UTF-8
Comment 8 Marius Mauch (RETIRED) gentoo-dev 2006-08-03 20:29:01 UTC
Hmm, is this deployed yet? If yes it's lacking the local use flags.
Comment 9 Xavier Neys (RETIRED) gentoo-dev 2006-08-07 05:26:30 UTC
(In reply to comment #8)
> Hmm, is this deployed yet? If yes it's lacking the local use flags.

No.
Only loon.g.o and my http://gentoo.neysx.org/dyn/use-index.xml have it.
Comment 10 Xavier Neys (RETIRED) gentoo-dev 2006-08-07 10:05:24 UTC
Donnie, you left #gentoo-infra too soon :)

[07 17:15:40] <dberkholz> neysx: it would be pretty useful if you could set that up so the top of the local list had links to each category

Something like http://gentoo.neysx.org/dyn/use-index.xml#local ?
Comment 11 Donnie Berkholz (RETIRED) gentoo-dev 2006-08-07 14:13:57 UTC
Yes indeed, exactly like that
Comment 12 Kurt Lieber (RETIRED) gentoo-dev 2006-08-08 13:37:12 UTC
deployed in production.
Comment 13 Xavier Neys (RETIRED) gentoo-dev 2006-08-10 13:15:12 UTC
(In reply to comment #11)
> Yes indeed, exactly like that
XSL has been edited on www.g.o:
http://www.gentoo.org/dyn/use-index.xml#local

(In reply to comment #12)
> deployed in production.
Thanks.