<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mer 10 lug 2024 alle ore 10:20 Giancarlo Dessì <<a href="mailto:slack@giand.it">slack@giand.it</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>

  
    
  
  <div>
    <p>
    </p>
    <div>Il 10/07/24 10:14, Giancarlo Dessì ha
      scritto:<br>
    </div>
    <blockquote type="cite">
      
      <p>Hi,</p>
      <p>I'm updating the slackbuild for new version of QGIS (3.38.0).
        Usually this package is not affected by issues, but for this
        version this failure of sbopkglint occurred:</p>
      <p><span style="font-family:monospace"><span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">---</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">
            usr/share/mime should not contain files with executable
            permission: </span><br>
          -rwxr-xr-x 1 root root 373 lug 10 09:27
          usr/share/mime/application/geopackage+sqlite3.xml <br>
          -rwxr-xr-x 1 root root 383 lug 10 09:27
          usr/share/mime/application/vnd.google-earth.kml+xml.xml <br>
          -rwxr-xr-x 1 root root 386 lug 10 09:27
          usr/share/mime/application/vnd.google-earth.kmz.xml <br>
          -rwxr-xr-x 1 root root 347 lug 10 09:27
          usr/share/mime/application/x-adobe-mif.xml <br>
          -rwxr-xr-x 1 root root 398 lug 10 09:27
          usr/share/mime/application/x-esri-crs.xml <br>
          -rwxr-xr-x 1 root root 394 lug 10 09:27
          usr/share/mime/application/x-esri-shape.xml <br>
          -rwxr-xr-x 1 root root 376 lug 10 09:27
          usr/share/mime/application/x-mapinfo-mif.xml <br>
          -rwxr-xr-x 1 root root 446 lug 10 09:27
          usr/share/mime/application/x-qgis-composer-template.xml <br>
          -rwxr-xr-x 1 root root 430 lug 10 09:27
          usr/share/mime/application/x-qgis-layer-definition.xml <br>
          -rwxr-xr-x 1 root root 429 lug 10 09:27
          usr/share/mime/application/x-qgis-layer-settings.xml <br>
          -rwxr-xr-x 1 root root 451 lug 10 09:27
          usr/share/mime/application/x-qgis-project-container.xml <br>
          -rwxr-xr-x 1 root root 441 lug 10 09:27
          usr/share/mime/application/x-qgis-project.xml <br>
          -rwxr-xr-x 1 root root 368 lug 10 09:27
          usr/share/mime/application/x-raster-aig.xml <br>
          -rwxr-xr-x 1 root root 368 lug 10 09:27
          usr/share/mime/application/x-raster-ecw.xml <br>
          -rwxr-xr-x 1 root root 374 lug 10 09:27
          usr/share/mime/application/x-raster-mrsid.xml <br>
          -rwxr-xr-x 1 root root 389 lug 10 09:27
          usr/share/mime/image/jp2.xml <br>
          -rwxr-xr-x 1 root root 383 lug 10 09:27
          usr/share/mime/image/jpeg.xml <br>
          -rwxr-xr-x 1 root root 383 lug 10 09:27
          usr/share/mime/image/tiff.xml <br>
          <span style="font-weight:bold;color:rgb(255,84,84);background-color:rgb(255,255,255)">FAILED</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"> </span><br>
        </span></p>
      <p><span style="font-family:monospace">These files don't appear in
          the package tree, so I think they are generated or modified
          during the installation by the following block of doinst.sh:</span></p>
      <p><span style="font-family:monospace">if [ -x
          /usr/bin/update-mime-database ]; then<br>
            /usr/bin/update-mime-database usr/share/mime >/dev/null
          2>&1<br>
          fi</span></p>
      <p><span style="font-family:monospace">Since doint.sh is the same
          of current and previous versions of the slackbuild, something
          should be wrong in some files of source, but I don't know
          where I have to check.</span></p>
      <p><span style="font-family:monospace">Can someone help me? Thanks
          in advance</span></p>
    </blockquote>
    <br>
    <p>I verified just now that the issue occurs building the package in
      -current. In 15.0 stable sbopkglint doesn't report any error!</p>
    <p><span style="white-space:pre-wrap">:\                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       </span></p></div></blockquote><div><br></div><div><div>just add in the doinst.sh, after the block</div><div><br></div><div><span style="font-family:monospace">if [ -x
        /usr/bin/update-mime-database ]; then<br>
          /usr/bin/update-mime-database usr/share/mime >/dev/null
        2>&1<br>
        fi</span></div><div><span style="font-family:monospace"><br></span></div><div>another line with<br></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">chmod 0644 </span><span style="font-family:monospace">        usr/share/mime/{application,image}/*.xml || true<br></span></div><div><span style="font-family:monospace"><br></span></div><div>it should be harmless on 15.0...<br></div><div><br></div><div>Matteo</div> </div></div></div>