X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id EF763DC06D5 for ; Mon, 17 Aug 2015 04:14:54 +0000 (UTC) Received: from mail-pd0-f178.google.com (mail-pd0-f178.google.com [209.85.192.178]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id B5EA9DC00E1 for ; Mon, 17 Aug 2015 04:14:54 +0000 (UTC) Received: by pdrh1 with SMTP id h1so51669410pdr.0 for ; Sun, 16 Aug 2015 21:14:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=6ofx5Fb+Q9KYnd1nhEBOOZt2cKa8ewaZKgaq1W8dvto=; b=t1YGl+MupyDJFh/bwQguZ6TfS/siwmfUBdojppzHbLEdVn7glF/grvvuAr/31VovEU faYT2oI6c2SIoKcK0EAtnmkmmupAi5w85GjGi61ddkgqxPFgIByEDkg61LWw2BjkoyWv UtBzYRr+ReEMX486pBzHbtirdSdjyXsobd7gxIbnG39ku7j5Dx8invUz/dyRLZBzKP+n 30y/QDdS7lFLz0s1eLzwDGakr/VLgT1QVNsCFK8mg53MzDFFGj4q0RgnmH7k+/JHr/3e 28M0hH/DpzHFOJyan8bjkfcfTcdBlXHPZ69Bn66VMcJMwmojFWfUDxSXkH7y0qiD1IC2 fZdA== X-Received: by 10.70.126.100 with SMTP id mx4mr112326190pdb.153.1439784893310; Sun, 16 Aug 2015 21:14:53 -0700 (PDT) Received: from newbook ([50.0.227.100]) by smtp.gmail.com with ESMTPSA id y2sm12904558pdp.0.2015.08.16.21.14.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 16 Aug 2015 21:14:52 -0700 (PDT) Date: Sun, 16 Aug 2015 21:14:51 -0700 From: Isaac Dunham To: alpine-aports@lists.alpinelinux.org Subject: [alpine-aports] Bugs in man and manpages Message-ID: <20150817041450.GD2568@newbook> X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-Virus-Scanned: ClamAV using ClamSMTP Hello all, I've run into some issues related to manpages. 1- dangling links to manpages I encountered some dangling links in dosfstools-doc, which pointed to the original, uncompressed, manpages. Apparently there's a bug in the abuild manpage compression code (lines 1410-1413). While abuild does find and compress the actual manpages, all the symlinks to the manpages never get updated. 2- translated manpages never get compressed. A bug in the same code. Roughly, a fix for these issues could look like this: find "$subpkgdir"/usr/share/man/man[1-9]* \ "$subpkgdir"/usr/share/man/*/man[1-9]* \ -type f \! -name \*.gz \! -name \*.bz2 2>/dev/null | xargs -r gzip -9 find "$subpkgdir"/usr/share/man/man[1-9]* \ "$subpkgdir"/usr/share/man/*/man[1-9]* \ -type l \! -name \*.gz \! -name \*.bz2 2>/dev/null | { while read MAN; do case "$MAN" in (*.gz|*.bz2);; (*.[0-9]*) ln -s `readlink "$MAN"`.gz "$MAN".gz rm "$MAN" ;; esac done } Finally, there's an annoyance I have with mdocml. It's impossible to specify the POSIX manpage if another manpage for the same command/function is installed in the same numeric section. On Debian, you can have the manpages: /usr/share/man/man1/ls.1 /usr/share/man/man1/ls.1posix installed at the same time, and get the POSIX manpage via: man 1p ls On Alpine, this fails; the root cause seems to be that if you specify a section, mdocml insists on looking in "/usr/share/man/man$SECTION/$COMMAND.$SECTION" If you have both the Linux and POSIX manpages installed (which I always do), "man 3 fprintf" gives you the Linux manpage, as would be expected. But "man 3p fprintf" says "man: No entry for fprintf in the manual." When I run ln -s man3 /usr/share/man/man3p man 3p fprintf I end up getting the Linux manpage, which suggests that there *is* fuzzy matching code, but the logic is backwards. Thanks, Isaac Dunham --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---