Sejda-desktop fails to update

install fails due to wanting to update “.icon-theme.cache” with Permission denied BECAUSE it does not exist, assume typo somewhere as there’s no “.” hidden file prefix for the installed file.
I looked at build file but no mention of either “icon-theme.cache” or “.icon-theme.cache”.

Bottom end of build/installer output …

==> Validating source files with md5sums...
    sejda-desktop_7.7.5_amd64.deb ... Passed
==> Validating source files with sha512sums...
    sejda-desktop_7.7.5_amd64.deb ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting sejda-desktop_7.7.5_amd64.deb with bsdtar
==> Starting prepare()...
==> Entering fakeroot environment...
==> Starting package()...
gtk-update-icon-cache: Failed to open file /usr/share/icons/hicolor/.icon-theme.cache : Permission denied

(process:180296): dconf-WARNING **: 17:07:29.590: failed to commit changes to dconf: Error sending credentials: Error sending message: Operation not permitted
==> ERROR: A failure occurred in package().
    Aborting...

I have commented on the AURweb page

https://aur.archlinux.org/packages/sejda-desktop#comment-995569

1 Like

NOPE !

Same error

tried
source_x86_64=(“https://downloads.sejda-cdn.com/sejda-desktop_${pkgver}_amd64.deb”)

Desktop is XFCE

==> Validating source files with md5sums...
    sejda-desktop_7.7.5_amd64.deb ... Passed
==> Validating source files with sha512sums...
    sejda-desktop_7.7.5_amd64.deb ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting sejda-desktop_7.7.5_amd64.deb with bsdtar
==> Starting prepare()...
==> Entering fakeroot environment...
==> Starting package()...
gtk-update-icon-cache: Failed to open file /usr/share/icons/hicolor/.icon-theme.cache : Permission denied

(process:247774): dconf-WARNING **: 20:29:52.279: failed to commit changes to dconf: Error sending credentials: Error sending message: Operation not permitted
==> ERROR: A failure occurred in package().
    Aborting...

The problem is the postinst file, not the source variable name.

It is the line bash "${srcdir}/postinst.Arch"

Desktop is irrelevant

There isn’t a postinst file, install file are run by pacman as root not by makepkg as user, so there icon cache run fine even if not necessary

So what is the fix to install it ?

Blacklist line 35 in the pkgbuild bash "${srcdir}/postinst.Arch"

Commented the line out and … no effect still same error as
somewhere it’s still trying to update the icon cache with the wrong name.
It’s looking for:

.icon-theme.cache

instead of

icon-theme.cache

I did a manual update ie. " gtk-update-icon-cache" to no effect.
I could cp “icon” to “.icon” but seems crazy to do this for one program.

Then you did something wrong

Edit the pkgbuild and build with makepkg

The issue is with bash "${srcdir}/postinst.Arch", for the fourth time

You don’t have to do that

please do not assume I am a Linux Expert. Apart from the occasional build from source I have never attempted to build/rebuild a package.

Editing directly the PKGBUILD in /var/tmp/pamac-build-me/sejda-desktop/ a new error occurs:

makepkg -si
==> Making package: sejda-desktop 7.7.5-1 (Wed 23 Oct 2024 17:03:30 BST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found sejda-desktop_7.7.5_amd64.deb
==> ERROR: Integrity checks (md5) differ in size from the source array.

This is happening because a file have been added in source=(), restore as it was before or run updpkgsums in the same folder as the pkgbuild

what was your procedure for this?

THANKS GUYS :smiley:

updpkgsums
makepkg -si

did the trick.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.