From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: docbook-xsl version number in pathname (was Re: [PATCH] gnu: Add moreutils.) Date: Sun, 01 Feb 2015 17:08:27 -0500 Message-ID: <87oapde144.fsf_-_@netris.org> References: <87a90yqvb6.fsf@taylan.uni.cx> <87386ql819.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> <87oapefai0.fsf@netris.org> <871tm9rd3i.fsf@taylan.uni.cx> <87siepk9bl.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> <87h9v5ptwd.fsf@taylan.uni.cx> <87vbjle1gi.fsf@netris.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46738) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YI2gx-0004qY-LD for guix-devel@gnu.org; Sun, 01 Feb 2015 17:08:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YI2gt-0006uH-MI for guix-devel@gnu.org; Sun, 01 Feb 2015 17:08:31 -0500 Received: from world.peace.net ([50.252.239.5]:58322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YI2gt-0006uC-IR for guix-devel@gnu.org; Sun, 01 Feb 2015 17:08:27 -0500 In-Reply-To: <87vbjle1gi.fsf@netris.org> (Mark H. Weaver's message of "Sun, 01 Feb 2015 17:01:01 -0500") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Taylan Ulrich =?utf-8?Q?=22Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer=22?= Cc: guix-devel@gnu.org Mark H Weaver writes: > With these simplifications, it would look like this: > > (lambda* (#:key inputs #:allow-other-keys) > (substitute* "Makefile" > (("/usr/share/xml/.*/docbook.xsl") > (string-append > (assoc-ref inputs "docbook-xsl") > "/xml/xsl/docbook-xsl-1.78.1/manpages/docbook.xsl")))) I just realized, it's not good that the docbook-xsl version number is hardcoded here. This will break the next time docbook-xsl is updated. Does anyone know how to improve this? The relevant bit in the package Makefile that is being modified is this: DOCBOOK2XMAN=xsltproc --param man.authors.section.enabled 0 /usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl Can we modify this command to avoid giving the full pathname? Or should we modify our docbook-xsl package to add a symlink that allows us to omit the version number? Mark