Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1mvB81-0000a1-PZ for mharc-grub-devel@gnu.org; Wed, 08 Dec 2021 23:33:57 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55836) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvB80-0000Zq-8o for grub-devel@gnu.org; Wed, 08 Dec 2021 23:33:56 -0500 Received: from [2607:f8b0:4864:20::733] (port=42886 helo=mail-qk1-x733.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mvB7u-0003uP-Vn for grub-devel@gnu.org; Wed, 08 Dec 2021 23:33:56 -0500 Received: by mail-qk1-x733.google.com with SMTP id g28so3960450qkk.9 for ; Wed, 08 Dec 2021 20:33:50 -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=sc8gsukAS8VPOAN7gAGUiMhdtaEWpW7x7m5mfgmcrZI=; b=a8hrrwm5YSyVCrscF4ZyCc93T7H2YUb4++iQkn4fVujk6FAlkjCty7q6iAEbDOBPVM L6tT/j8zq11oU2KRHSpSADuymdEopn+LFImvx/2Q4oAEArF3Pnnwzw+l7ZJd8lUSkT6R viLWLNQXUIwZFB627FbhPIg5dbbkxeccipkCUdmjlQI/2rr2xSNKkFTYRR/ny+Z9iMur ZgVvi8zm+Iob++lIoqGRzbiK4Ss38Om/X9dAyrH+vJFJ3SGVSmPXvi0W0Py9Uq44RqeX 7T6iv66eTUT0lT61y7Ral+kQRKd9R1k4i+UXSQBot2QoElp2ppIVwC89zkYTUE3Jwtj8 Tpyg== 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=sc8gsukAS8VPOAN7gAGUiMhdtaEWpW7x7m5mfgmcrZI=; b=zfG+TeMOFrkuBHFrNLIs1lyagfjAQZ5tsmbcapslT7SDIaUodo8Wp982xedvzhlGVY XGJJ7GF7G0HtvnjcIEhuZa5cfIXbL7YVxYBoU03OHDtJwVV5nlWbqcDFtp+Etvqv03lo 3cy8WWoPNqmtQhzHyDjs/TEmkBnNjh3LcNyLfk3Ho5jTCYwPCc/8rtPqXZ/YgFfBTVGS HryHKz4D5T7dg0vc/ZqXxU1GLfItKAPtbyWoSOI/tE3BSorGJ5p+OXIJt07umx+k0jOZ XEBHXTvbjwfn+BLS5XEehBiqHa5RCiviMulCKX7xpSwpoq9x8aEPbRL9GsTr/2Fa3lKu gnew== X-Gm-Message-State: AOAM533iHk+aSHetAfiz+vUz6JvnGHEnJsvUahjtW4YFfItbQ+i59adE qDdpwOSEhkXvTuO5vz2XeT75QbTGdZA= X-Google-Smtp-Source: ABdhPJzmcRTFVKZCAgqBqxmaEi1zSbT2FWVXyT1VIUJ3o1kioTRId+14RoMwp1wyE7y7QSZT1VZ0DA== X-Received: by 2002:a05:620a:24c3:: with SMTP id m3mr11354388qkn.301.1639024429198; Wed, 08 Dec 2021 20:33:49 -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 l15sm3038805qtx.77.2021.12.08.20.33.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Dec 2021 20:33:48 -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> <4a790b05-53b1-bfd9-f5bf-8c54ef009185@gmail.com> From: Nicholas Vinson Message-ID: Date: Wed, 8 Dec 2021 23:33:47 -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::733 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::733; envelope-from=nvinson234@gmail.com; helo=mail-qk1-x733.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: Thu, 09 Dec 2021 04:33:56 -0000 On 12/8/21 18:42, Robbie Harwood wrote: > Nicholas Vinson writes: > >> 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. > > No, that's not it. Don't put words in other people's mouths. > > We're sitting on more than 220 downstream patches that I want > upstreamed. The relative brittleness of this particular change is > *nothing* in comparison, believe me :) > > The sheer number here means I'm starting with the easy stuff. The > one-liners, simple conceptual things, *stuff that should be > non-contentious*. > >> 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. > > But my point is this hurts everyone who's *not* the distro maintainer > but building their own grub. That's the user experience issue I was > talking about. Everyone developing on Fedora now has to remember > another flag or it won't work the same. If someone wants to use a path that is not in the list how would that person do it? > >>>> 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. > > Right, that's what I mean by "install" path. It's a place where you put > stuff, not a place where you find stuff. > >> Effort is often times its own reward. I would not want to deprive you >> of it. > > Wow, okay. > > You know this comes across as rather hostile, right? Is this really the > approach you want to take when someone *shows up with code* and asks you > to clarify your feedback? Tell them to go away and RTFM? You should consider your own responses first before criticizing the responses of others. Responding with the equivalent of 'tldr; you'll have to do better' is not how to properly ask someone to clarify a statement. Such a response, however, is extremely rude as it suggests your time and effort is more valuable than others. Suggesting that you believe you should get some sort of special treatment simply because you "showed up with code" does as well. That said if you have a specific question about something I've said or wish for me to elaborate on something, ask appropriately and I (or someone else on this list) will answer. and just to be clear, I don't speak on behalf of the GRUB maintainers or in any way represent them. Regards, Nicholas Vinson > > Be well, > --Robbie >