From owner-freebsd-ports-bugs@freebsd.org Thu Sep 5 18:14:54 2019 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BC6E5EF760 for ; Thu, 5 Sep 2019 18:14:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46PTPB4fJYz4CBB for ; Thu, 5 Sep 2019 18:14:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 9F811EF75F; Thu, 5 Sep 2019 18:14:54 +0000 (UTC) Delivered-To: ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9F462EF75E for ; Thu, 5 Sep 2019 18:14:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46PTPB3m6pz4CB9 for ; Thu, 5 Sep 2019 18:14:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 65D058303 for ; Thu, 5 Sep 2019 18:14:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x85IEs54095790 for ; Thu, 5 Sep 2019 18:14:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x85IEsx1095779 for ports-bugs@FreeBSD.org; Thu, 5 Sep 2019 18:14:54 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 221349] When COMPRESS_EXT is anything other than .gz, plist may break Date: Thu, 05 Sep 2019 18:14:54 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: mi@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: portmgr@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Sep 2019 18:14:54 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221349 Mikhail Teterin changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Closed |Open Resolution|Works As Intended |--- CC| |mi@FreeBSD.org --- Comment #2 from Mikhail Teterin --- If it is possible to specify a different extension for the compressed man-p= ages -- if the COMPRESS_EXT knob is exposed -- then it should be respected. The truth of this statement seems self-evident. And it is respected in the src/ part of FreeBSD -- and has been for many ye= ars. The ports/ part, however, ignores the knob. The ".gz" is hardcoded in multi= ple parts of bsd.port.mk. This is wrong regardless of whether or not mandoc -- = who calls it directly anyway? -- can or cannot read files compressed by anything other than libz itself. > While man itself can still work with other compression formats due to the > fact we do still use the shell wrapper on top of mandoc, other tools > cannot, so supporting anything else than .gz in ports as no sense. I'm not sure, what "other tools" you have in mind here, but chances are, by= the time we replace the man-script with anything else (what? why?), that someth= ing else will be able to read the other formats the way zcat already can. Since filing this ticket two years ago, I switched all my machines to compr= ess man-pages with "xz -9" (COMPRESS_CMD), while still using the ".gz" extension (COMPRESS_EXT). This creates strangely-named (perhaps MISnamed) files: % file /opt/man/man1/pkg_glob.1.gz /usr/share/man/man1/ls.1.gz=20 /opt/man/man1/pkg_glob.1.gz: XZ compressed data /usr/share/man/man1/ls.1.gz: XZ compressed data but otherwise works fine -- the texts are compressed most efficiently, while working around the bug in bsd.port.mk. I understand, that fixing it is not trivial, because some of the ported software compresses man-pages (with gzip) on its own. Ideally, these would = be uncompressed and then redone with the specified COMPRESS_CMD. Alternatively, you could declare, that COMPRESS_CMD (and COMPRESS_EXT) are = not applicable to and ignored by the ports/ world. But then you'll need to change/patch the few ports, that currently respect the two knobs (or try to= ) -- ports-mgmt/pkg itself included. (I do not like this option, but it would, at least, be consistent.) At any rate, the resolution "Works As Intended" is wrong -- because it does not. If portmgr@ does not want to fix this -- but still wishes the ticket closed for some reason -- something like "Not Accepted" should be the resolution. --=20 You are receiving this mail because: You are on the CC list for the bug.=