Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1mv5LR-0008Ix-6P for mharc-grub-devel@gnu.org; Wed, 08 Dec 2021 17:23:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52566) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mv5LP-0008IV-9k for grub-devel@gnu.org; Wed, 08 Dec 2021 17:23:23 -0500 Received: from [2607:f8b0:4864:20::f32] (port=34471 helo=mail-qv1-xf32.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mv5LN-0003ky-0M for grub-devel@gnu.org; Wed, 08 Dec 2021 17:23:23 -0500 Received: by mail-qv1-xf32.google.com with SMTP id i13so3557212qvm.1 for ; Wed, 08 Dec 2021 14:23:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=0LnJU0VTBYrXNNCk0OwGQGY3r6T7ygPPl8p4YOVlGe4=; b=GKBtba82Ne+KpVdpYc+cbZiJew8aIbRUDY8RdooelbHHqz24tsXwf6VN7oBIN1R5k5 f9oj/u+NK3jlMTCyb+83hNa3Y4dzDrKsRgc6svrpd0fY/UjG+svBiyWRyBZ1WAGMNDrS 4kS8VA1ZiZd91vAOIraQv0HHYhDwGB0qaYgmjlmzNTNPqFzEtcxU5/FvlWymWVVJsVY4 9IBpFzbyp6ibHWpOwKpNrCDX+CHkrfbcPtaJMeqqRKXvT0KApFCMOL8DV09+hoj0h4TO C5Sm/UtAzV+P70oNjBnK7gCIod2dqC7sroBpsM4xQDvOGXg6hKr1UojDCHDmrJnowFZ/ cOog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=0LnJU0VTBYrXNNCk0OwGQGY3r6T7ygPPl8p4YOVlGe4=; b=gIl1zfSxr0a4qydnRdp7fqPDt4ap1sID2gs/96QYGhIjQcdSMK8f2n1KylT+5syz/w HWP8kMVQy72fYaixpOHdgdUKiA2y12AiO6Ph2clhJNu3PvxTlKQjq8E4qRlVNOtO14od BWga9aLH7M/HZachToipvJklpxgsRZa7inV2oj3j0gx43fHaL8cdDWl3SaQG6kxVONVv D8vlI3EyUfgQNA9Q2u7pU/XVnaCZ3WrF0tTLmoQH5OOXYAPla4JAZ/hxyGcyIhuNdYIp greczOr0bVLgGgv1Y2zU9Fqj7e7w8Y3VXYCYnPbJzBC/GVo+twJYscQoxpJJAS/v5KmH KdZA== X-Gm-Message-State: AOAM531LRTb3j98ymi6af17EwizA7jF5U8tamypPD5zRJQhKLyiAXZpD FaXZ6XHikBADmkLbC6qDl8GDXKLdHkg= X-Google-Smtp-Source: ABdhPJwGHCKIAMO5BUXosbLcu96z58FdrFHzgsA25QXN2Tc3xtxeyeBd7jzXrRvSPpFtULs6ovybUg== X-Received: by 2002:ad4:5f88:: with SMTP id jp8mr10724230qvb.57.1639002196633; Wed, 08 Dec 2021 14:23:16 -0800 (PST) Received: from ?IPv6:2602:ae:136d:6d00:2108:6191:c8a3:102? ([2602:ae:136d:6d00:2108:6191:c8a3:102]) by smtp.gmail.com with ESMTPSA id r8sm2549358qtw.35.2021.12.08.14.23.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Dec 2021 14:23:16 -0800 (PST) Subject: Re: [PATCH] Add Fedora location of DejaVu SANS font To: Robbie Harwood , grub-devel@gnu.org References: <20211206222542.20068-1-rharwood@redhat.com> <4dff5c81-6efc-41b9-3ef6-52f63025ec9e@gmail.com> From: Nicholas Vinson Message-ID: <4a790b05-53b1-bfd9-f5bf-8c54ef009185@gmail.com> Date: Wed, 8 Dec 2021 17:23:15 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::f32 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::f32; envelope-from=nvinson234@gmail.com; helo=mail-qv1-xf32.google.com X-Spam_score_int: -34 X-Spam_score: -3.5 X-Spam_bar: --- X-Spam_report: (-3.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, NICE_REPLY_A=-2.44, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Dec 2021 22:23:23 -0000 On 12/8/21 12:58, Robbie Harwood wrote: > Nicholas Vinson writes: > >> On 12/7/21 15:04, Robbie Harwood wrote: >>> Nicholas Vinson writes: >>> >>>> Wouldn't it be better to modify configure.ac so the location could >>>> be passed in instead of having one-off patches for alternate >>>> locations? Something like >>>> --with-dejavu-font=/usr/share/fonts/dejavu-sans-fonts? >>> >>> That would mean that anyone using grub2 that wants the dejavu fonts >>> will have to figure out that the option exists and pass it to the >>> buildscripts. That's a pretty bad user experience for anyone >>> building their own grub. >> >> On the contrary, it doesn't have to mean that at all. It could mean >> that when a path is given, configure would use the provided path; >> otherwise, it falls back to its default list to find the font. > > But then we still have to keep the default list... and I'd still be here > as a distro maintainer wanting my distro's path in the default list. I > don't see how this is any better. And you want it in the default path because? Most likely because you're patching configure or using tools like sed or awk to change configure or Makefile to use your path? You know that approach is brittle and you want something better. Adding your distro's choice location to a pre-defined list works until the distro changes where it stores the font. At that point you are back where you started. Manually patching GRUB until a version of GRUB is released with your new path in the list. The same is true with any other distro that uses a location not in the list. The approach you're suggesting is that submit a patch, get GRUB updated. What I am asking for puts an end to that. Once the flag is in place, the builder can pick whatever path is desirable, pass it into the configure script, and have GRUB builds. No need to craft a patch, send it to the mailing list, and wait for the update to make it into a GRUB release. > >> Such an approach would mimic configure's current behavior for values >> such as bootdir and grubdir. > > But those are *install* paths, not *detection* paths. We're not > installing the font - we're figuring out where it is on the system. In the context of building GRUB, bootdir and grubdir are *not* installation directories. They are simply default paths that get written into the built code. Furthermore, autotools makes no distinction between such paths. The approach used to handle both types in configure.ac is the same. > >>> I get that maintaining a list of where everyone has put their fonts is >>> somewhat obnoxious, but in the absence of a standard way of doing it, >>> I'm not sure there's anything better. The only other alternative I >> >> See above and configure.ac's solutions to similar issues for better >> approaches. > > configure.ac is 2189 lines of code. You're going to have to be more > specific :) Effort is often times its own reward. I would not want to deprive you of it. Regards, Nicholas Vinson > > Be well, > --Robbie >