[Slackbuilds-users] bad permissions in /usr/share/mime

Matteo Bernardini matteo.bernardini at gmail.com
Wed Jul 10 08:31:44 UTC 2024


Il giorno mer 10 lug 2024 alle ore 10:20 Giancarlo Dessì <slack at giand.it>
ha scritto:

> Il 10/07/24 10:14, Giancarlo Dessì ha scritto:
>
> Hi,
>
> 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:
>
> --- usr/share/mime should not contain files with executable permission:
> -rwxr-xr-x 1 root root 373 lug 10 09:27
> usr/share/mime/application/geopackage+sqlite3.xml
> -rwxr-xr-x 1 root root 383 lug 10 09:27
> usr/share/mime/application/vnd.google-earth.kml+xml.xml
> -rwxr-xr-x 1 root root 386 lug 10 09:27
> usr/share/mime/application/vnd.google-earth.kmz.xml
> -rwxr-xr-x 1 root root 347 lug 10 09:27
> usr/share/mime/application/x-adobe-mif.xml
> -rwxr-xr-x 1 root root 398 lug 10 09:27
> usr/share/mime/application/x-esri-crs.xml
> -rwxr-xr-x 1 root root 394 lug 10 09:27
> usr/share/mime/application/x-esri-shape.xml
> -rwxr-xr-x 1 root root 376 lug 10 09:27
> usr/share/mime/application/x-mapinfo-mif.xml
> -rwxr-xr-x 1 root root 446 lug 10 09:27
> usr/share/mime/application/x-qgis-composer-template.xml
> -rwxr-xr-x 1 root root 430 lug 10 09:27
> usr/share/mime/application/x-qgis-layer-definition.xml
> -rwxr-xr-x 1 root root 429 lug 10 09:27
> usr/share/mime/application/x-qgis-layer-settings.xml
> -rwxr-xr-x 1 root root 451 lug 10 09:27
> usr/share/mime/application/x-qgis-project-container.xml
> -rwxr-xr-x 1 root root 441 lug 10 09:27
> usr/share/mime/application/x-qgis-project.xml
> -rwxr-xr-x 1 root root 368 lug 10 09:27
> usr/share/mime/application/x-raster-aig.xml
> -rwxr-xr-x 1 root root 368 lug 10 09:27
> usr/share/mime/application/x-raster-ecw.xml
> -rwxr-xr-x 1 root root 374 lug 10 09:27
> usr/share/mime/application/x-raster-mrsid.xml
> -rwxr-xr-x 1 root root 389 lug 10 09:27 usr/share/mime/image/jp2.xml
> -rwxr-xr-x 1 root root 383 lug 10 09:27 usr/share/mime/image/jpeg.xml
> -rwxr-xr-x 1 root root 383 lug 10 09:27 usr/share/mime/image/tiff.xml
> FAILED
>
> 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:
>
> if [ -x /usr/bin/update-mime-database ]; then
>   /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
> fi
>
> 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.
>
> Can someone help me? Thanks in advance
>
>
> I verified just now that the issue occurs building the package in
> -current. In 15.0 stable sbopkglint doesn't report any error!
>
> :\
>

just add in the doinst.sh, after the block

if [ -x /usr/bin/update-mime-database ]; then
  /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
fi

another line with

chmod 0644 usr/share/mime/{application,image}/*.xml || true

it should be harmless on 15.0...

Matteo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20240710/6b6280c6/attachment.htm>


More information about the SlackBuilds-users mailing list