Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ez99F-0002ah-QV for pgsql-docs@arkaria.postgresql.org; Thu, 22 Mar 2018 22:57:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ez99E-0000NG-5y for pgsql-docs@arkaria.postgresql.org; Thu, 22 Mar 2018 22:57:28 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ez99D-0000N6-OK for pgsql-docs@lists.postgresql.org; Thu, 22 Mar 2018 22:57:28 +0000 Received: from mail-wr0-x232.google.com ([2a00:1450:400c:c0c::232]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ez99A-000149-8l for pgsql-docs@postgresql.org; Thu, 22 Mar 2018 22:57:26 +0000 Received: by mail-wr0-x232.google.com with SMTP id l8so10317741wrg.5 for ; Thu, 22 Mar 2018 15:57:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=KFIkwukAyN+QYcYkLDakGA+pVUnZO8ex2bhzFweDFKI=; b=QVwrNDyMnbkMg84ShtD82GmQ7yWiTZcpqST5G7rwIMuSB14z7p8zsqR0Y2XpnyHqAA jyRi2bgx7f3VhhVv115K9xPHkZXsxY53DBCAHK9p58rGRSsRSbpzLYloZl8uI/fItz0d 3LmzqLdK2QxQrGDUBHfsd5ClqWRyY0LJkEiLwuCR6g2aJUp/lEhfqD5njnPIjkLL9/C+ RO9jEDc0fRftyV1MFqsz81dVV1vUaEeKlOghTPN2E1IAnep3aMBVkz9wV3bQU6L0+ZmO 20erueFpujb6YjRI2nbaaV45EOKXWWvuYxR99XD3Cq3bF+/56Jr46iUfGEQyhpdfEIBM ibHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=KFIkwukAyN+QYcYkLDakGA+pVUnZO8ex2bhzFweDFKI=; b=SnfLwbGy1gEU0TAGOsUcCjne2NiJG9duicd6gb8tN9JvGXxIuT5CFg5Q40sy5KEkVX rYOD+bRQsvLY2v9HTCSK86kQ/81J/fVz9rksd7J9VRkT0QYv9SK6YTl5gfSBlMF0IKQB Ukg3i9RRwa5PHyX1AS72ljnAni3g84bpgImPPSVlWPRG8Xfi8gVwg1ktVb78NWgq02Dl g57q+v4L9WGpONN4PxHLjOv/7dsI/gbeADzwOdZq4K95HNUsaIMMCAvrwIOM82USH3zP Sqm80L2Vprix+OSFlUCHEdKmKe100nP6jwSxPkjuXGkMYe/KQ+5Z1gxThncPFsKK9PpS WRQg== X-Gm-Message-State: AElRT7FdUY0mcA7ju83KzpjsHBEczNNdEwshqI5yVhPHGcUYbZ9pWveK xSJEOm5XmNKxrKjpEY+WsmOlRqTbpzx3/pt9Okqt5Q== X-Google-Smtp-Source: AG47ELukNK2/K1PUu/wGSmjoYy2eWK9X3R6JyXcpSKN74Xj8koQ2pW/SckuaVtItoZ4jhGdJZBcz3JRpOuon0eW2K+E= X-Received: by 10.223.138.234 with SMTP id z39mr22376298wrz.35.1521759442221; Thu, 22 Mar 2018 15:57:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.129.130 with HTTP; Thu, 22 Mar 2018 15:56:41 -0700 (PDT) In-Reply-To: References: <6c7f286d-8803-3884-0638-10f513498464@gmail.com> <877.1511623314@sss.pgh.pa.us> From: Thomas Munro Date: Fri, 23 Mar 2018 11:56:41 +1300 Message-ID: Subject: Re: MacPorts xsltproc is very slow? To: Robert Haas Cc: Tom Lane , Alexander Lakhin , pgsql-docs Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, Mar 23, 2018 at 3:27 AM, Robert Haas wrote: > On Fri, Mar 2, 2018 at 3:34 PM, Thomas Munro > wrote: >> I think we should complain to the MacPorts packager about the >> namespace vs non-namespace stuff being possibly confused in the >> packages. > > Any ideas about a workaround for the meantime? Having to wait half an > hour for the documentation to build is pretty annoying. This worked for me: 1. Steal a working installation of docbook-xsl from some other system. Or clone the repo from github.com/docbook and figure out how to build it so that there is an xhtml directory (that was beyond my attention span). I just did this on a Debian system: tar czvf docbook-xsl.tgz -C /usr/share/xml/docbook/stylesheet/ docbook-xsl I could give you that file off-list if you want, but it's 2.2MB so I won't post it here. You could also grab the Debian (or other) package file and unpack that. I created a directory ~/docbook-stuff/ and then unpacked that tarball there. 2. Tell xsltproc to rewrite any references to sourceforge.net to use this local stuff instead. Either you can create/edit the system-wide /etc/xml/catalog file (or equivalent under /opt if you're using MacPorts tools), or you can create a new file somewhere and point to it with the environment variable XML_CATALOG_FILES. I went with the env variable approach because I didn't want to mess with system-wide configuration. So I created a file ~/docbook-stuff/catalog.xml with this in it: Obviously that needs to be adjusted to point to wherever you unpacked that tarball. I did wonder about simply changing our documentation's sourceforge.net references to point to docbook.org instead, apparently the new home (?) of this stuff: - + (plus similar changes elsewhere). But it didn't seem to be able to fetch stylesheets that way. Perhaps my tools don't like speaking HTTPS. I didn't try to dig any further because I'd rather go and hack on C code today. -- Thomas Munro http://www.enterprisedb.com