<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>43329</bug_id>
          
          <creation_ts>2022-07-24 20:59:50 +0300</creation_ts>
          <short_desc>grub.filetrigger calls egrep(1)</short_desc>
          <delta_ts>2022-08-23 18:36:32 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>grub</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Arseny Maslennikov">arseny</reporter>
          <assigned_to name="Николай Костригин">nickel</assigned_to>
          <cc>nickel</cc>
    
    <cc>placeholder</cc>
    
    <cc>rider</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>213103</commentid>
    <comment_count>0</comment_count>
    <who name="Arseny Maslennikov">arseny</who>
    <bug_when>2022-07-24 20:59:50 +0300</bug_when>
    <thetext>https://git.altlinux.org/gears/g/grub.git?p=grub.git;a=blob;f=grub.filetrigger;h=2faf9f9057c7ee735e56325dd82efa755f265546;hb=b18b6c524372a422c9fc2a10df2c3bbe06564908

&gt; if egrep &apos;^/boot/(vmlinuz|xen|memtest)|^/usr/lib(64|)/grub&apos;; then
&gt;         grub-mkconfig -o &quot;$GRUB_AUTOUPDATE_CFGNAME&quot; ||:
&gt; fi | if egrep -qs &apos;^/usr/lib(64|)/grub&apos;; then

Скрипт обращается к egrep(1). Замените, пожалуйста, на &apos;grep -E&apos; при следующем обновлении пакета.

Аналогично с grub-efi:
https://git.altlinux.org/gears/g/grub.git?p=grub.git;a=blob;f=grub-efi.filetrigger;h=bfdb401395056e6b7ccf828501d9cd0b39f7f22a;hb=b18b6c524372a422c9fc2a10df2c3bbe06564908

&gt;         if egrep -qs &apos;^/usr/lib/shim/BOOT.*\.CSV|^/usr/lib(64|)/grub&apos;; then

P.S. Сам grub-install дёргает и egrep, и fgrep множество раз. С этим надо тоже что-то делать: или к апстриму идти, или собственную обёртку без диагностики упаковывать и в PATH подкладывать.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>213955</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2022-08-23 18:36:32 +0300</bug_when>
    <thetext>grub-2.06-alt8 -&gt; sisyphus:

 Mon Aug 15 2022 Nikolai Kostrigin &lt;nickel@altlinux&gt; 2.06-alt8
 - fix FTBFS with new gnulib (upstream patchset)
 - grub(-efi): switch from &apos;egrep&apos; to &apos;grep -E&apos; in filetriggers (closes: #43329)
 - update os-alt patch: switch from &apos;fgrep&apos; to &apos;grep -F&apos;
 - add alt-util-grub.d-switch-from-fgrep-to-grep-F patch</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>