From patchwork Mon Jul 13 18:47:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaron Sierra X-Patchwork-Id: 1328419 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=xes-inc.com Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4B5CMV0QZjz9s1x for ; Tue, 14 Jul 2020 04:48:06 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 6D0A1273BA; Mon, 13 Jul 2020 18:48:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fSLGez8V0Czj; Mon, 13 Jul 2020 18:48:00 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 3EAA6214F6; Mon, 13 Jul 2020 18:48:00 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 6CA051BF31B for ; Mon, 13 Jul 2020 18:47:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id E3222873AA for ; Mon, 13 Jul 2020 18:47:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id R0Cdo4Cu4_qV for ; Mon, 13 Jul 2020 18:47:52 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.xes-mad.com (xes-mad.com [162.248.234.2]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 6040687390 for ; Mon, 13 Jul 2020 18:47:52 +0000 (UTC) Received: from asierra1.xes-mad.com (asierra1.xes-mad.com [10.52.16.65]) by mail.xes-mad.com (Postfix) with ESMTP id BD945202AB; Mon, 13 Jul 2020 13:47:51 -0500 (CDT) From: Aaron Sierra To: buildroot@buildroot.org Date: Mon, 13 Jul 2020 13:47:49 -0500 Message-Id: <20200713184751.23534-1-asierra@xes-inc.com> X-Mailer: git-send-email 2.17.1 Subject: [Buildroot] [PATCH RESEND 0/2] Use bzip2 for X11 PFC font compression X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bernd Kuhls , Jordan Speicher MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Gzip has been used as the default compressor for PCF fonts, but this series changes the default compressor to bzip2 for a few reasons: 1. Even with the latest gzip, these seemingly synonymous pipelines produce different output, but this issue does not exist with bzip2: $ cat /path/to/file | gzip > /path/to/file.gz $ gzip < /path/to/file > /path/to/file.gz 2. Prior to gzip 1.10, the compression pipeline used with PCF fonts was not reproducible due to the implicit -N/--name injecting a timestamp: * cat /path/to/file | gzip > /path/to/file.gz 3. The BR2_USE_WCHAR dependency of the gzip package tarnishes the appeal of using host-gzip to provide reproducible output. After building all PCF fonts under package/x11r7, the bzipped output is slightly smaller: gzip - 42392 KB bzip2 - 40500 KB This change does not affect encodings, which will continue to be gzipped. The upstream sources don't support bzip2 compression and their compression pipeline happens to be reproducible before gzip 1.10: * gzip < /path/to/file > /path/to/file.gz -Aaron Aaron Sierra (2): package/x11r7/xapp_mkfontscale: support bzip2 package/x11r7/xfont_font-*: make outputs reproducible package/x11r7/xapp_mkfontscale/Config.in | 1 + package/x11r7/xapp_mkfontscale/xapp_mkfontscale.mk | 6 ++++-- .../xfont_font-adobe-100dpi/xfont_font-adobe-100dpi.mk | 1 + .../x11r7/xfont_font-adobe-75dpi/xfont_font-adobe-75dpi.mk | 1 + .../xfont_font-adobe-utopia-100dpi.mk | 1 + .../xfont_font-adobe-utopia-75dpi.mk | 1 + .../x11r7/xfont_font-arabic-misc/xfont_font-arabic-misc.mk | 1 + package/x11r7/xfont_font-bh-100dpi/xfont_font-bh-100dpi.mk | 1 + package/x11r7/xfont_font-bh-75dpi/xfont_font-bh-75dpi.mk | 1 + .../xfont_font-bh-lucidatypewriter-100dpi.mk | 1 + .../xfont_font-bh-lucidatypewriter-75dpi.mk | 1 + .../xfont_font-bitstream-100dpi.mk | 1 + .../xfont_font-bitstream-75dpi.mk | 1 + .../xfont_font-cronyx-cyrillic.mk | 1 + .../x11r7/xfont_font-cursor-misc/xfont_font-cursor-misc.mk | 1 + .../x11r7/xfont_font-daewoo-misc/xfont_font-daewoo-misc.mk | 1 + package/x11r7/xfont_font-dec-misc/xfont_font-dec-misc.mk | 1 + package/x11r7/xfont_font-isas-misc/xfont_font-isas-misc.mk | 1 + package/x11r7/xfont_font-jis-misc/xfont_font-jis-misc.mk | 1 + .../x11r7/xfont_font-micro-misc/xfont_font-micro-misc.mk | 1 + .../xfont_font-misc-cyrillic/xfont_font-misc-cyrillic.mk | 1 + package/x11r7/xfont_font-misc-misc/xfont_font-misc-misc.mk | 1 + package/x11r7/xfont_font-mutt-misc/xfont_font-mutt-misc.mk | 1 + .../xfont_font-schumacher-misc.mk | 1 + .../xfont_font-screen-cyrillic.mk | 1 + package/x11r7/xfont_font-sony-misc/xfont_font-sony-misc.mk | 1 + package/x11r7/xfont_font-sun-misc/xfont_font-sun-misc.mk | 1 + .../xfont_font-winitzki-cyrillic.mk | 1 + 28 files changed, 31 insertions(+), 2 deletions(-)