We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2014-04-14 00:30:55 +0200

Can't update my apps after system update 1.0.05.16 - need help.

Hi to all After system update (1.0.5.16), I decided to update my apps (hebrew vkb). I changed only one file (layouts-he.conf) and number of version in SPEC. New package created without any problem, BUT I saw this line in output, that I don't remember on previous system version (1.0.4.20):

warning: Could not canonicalize hostname: Jolla

Full output you can see here: http://pastie.org/9076079

Now the problems: 1. Installation of new version failed and show me this output:

[root@Jolla rpmbuild]# pkcon install-local -y /home/nemo/Downloads/hebrewvkbnew-2ar-3lang-0.8-1.armv7hl.rpm
Installing files
Waiting in queue
Waiting for authentication
Waiting in queue
Starting
Resolving dependencies
Installing packages
Downloading packages
Installing packages
Fatal error: Installation aborted by user
[root@Jolla rpmbuild]#

but if I check which package installed it show me both packages although it the same files and folders

[root@Jolla rpmbuild]# rpm -qi hebrewvkbnew-2ar-3lang
Name        : hebrewvkbnew-2ar-3lang
Version     : 0.7
Release     : 1
Architecture: armv7hl
Install Date: Sun Apr 13 01:05:53 2014
Group       : System/Tools
Size        : 1708637
License     : GPL
Signature   : (none)
Source RPM  : hebrewvkbnew-2ar-3lang-0.7-1.src.rpm
Build Date  : Sat Mar 22 23:21:49 2014
Build Host  : localhost.localdomain
Relocations : (not relocatable)
Packager    : Schturman <schturman@hotmail.com>
Vendor      : Schturman
URL         : www.dhrider.co.cc
Summary     : Hebrew vkb
Description :
Installer of Hebrew vkb with 2 arrows and toggle to switch between He & En & Ru.
Name        : hebrewvkbnew-2ar-3lang
Version     : 0.8
Release     : 1
Architecture: armv7hl
Install Date: Sun Apr 13 01:09:13 2014
Group       : System/Tools
Size        : 1711338
License     : GPL
Signature   : (none)
Source RPM  : hebrewvkbnew-2ar-3lang-0.8-1.src.rpm
Build Date  : Sun Apr 13 01:08:04 2014
Build Host  : Jolla
Relocations : (not relocatable)
Packager    : Schturman <schturman@hotmail.com>
Vendor      : Schturman
URL         : www.dhrider.co.cc
Summary     : Hebrew vkb
Description :
Installer of Hebrew vkb with 2 arrows and toggle to switch between He & En & Ru.
[root@Jolla rpmbuild]#
  1. Trying to uninstall them and I get errors again: pkcon remove -y hebrewvkbnew-2ar-3lang

More than one package matches: 1. hebrewvkbnew-2ar-3lang-0.8-1.armv7hl [installed] 2. hebrewvkbnew-2ar-3lang-0.7-1.armv7hl [installed]

Please choose the correct package: 1
Removing
Waiting in queue
Waiting for authentication
Waiting in queue
Starting
Removing packages
Resolving dependencies
Removing packages
Downloading packages
Fatal error: Specified path '/var/tmp/TmpDir.s52JJz' is not a directory: dir:///var/tmp/TmpDir.s52JJz

Only after reboot it gave me possibility to uninstall

  1. When both of them uninstalled, my new package installed without any problem and errors. Also I can reinstall the same version without any problem.

  2. Tried create another new version and install over the already installed (new) version and also get the same errors

Some advice ? Maybe I should add something new to the SPEC file because of this error ?:

warning: Could not canonicalize hostname: Jolla

This is my SPEC file:

Name:          hebrewvkbnew-2ar-3lang
Version:       0.8
Release:       1
Summary:       Hebrew vkb
Group:         System/Tools
Vendor:        Schturman
Distribution:  SailfisfOS
Packager: Schturman <schturman@hotmail.com>
URL:           www.dhrider.co.cc
Conflicts: hebrewvkb-4ar, hebrewvkb-2ar-2lang, hebrewvkb-2ar-3lang, hebrewvkbnew-4ar, hebrewvkbnew-2ar-2lang

License:       GPL

%description
Installer of Hebrew vkb with 2 arrows and toggle to switch between He & En & Ru.

%files
/usr/share/fonts/FreeSans.ttf

%defattr(644,root,root,-)
/usr/share/maliit/plugins/com/jolla/custom-he/*
/usr/share/maliit/plugins/com/jolla/layouts/*

%post
fc-cache -f
killall maliit-server
killall jolla-messages
killall jolla-email
killall jolla-notes
killall jolla-clock

%preun
if [ $1 = 1 ]; then
    // Do stuff specific to upgrades
echo "It's just upgrade"
killall maliit-server
fi

%postun
if [ $1 = 0 ]; then
    // Do stuff specific to uninstalls
rm -rf /usr/share/maliit/plugins/com/jolla/custom-he
killall maliit-server
else
if [ $1 = 1 ]; then
    // Do stuff specific to upgrades
echo "It's just upgrade"
killall maliit-server
fi
fi

%changelog
* Wed Jan 25 2014 Builder <builder@...> 0.1
- First build.

[SOLVED] Can't update my apps after system update 1.0.05.16 - need help.

Hi to all After system update (1.0.5.16), I decided to update my apps (hebrew vkb). I changed only one file (layouts-he.conf) and number of version in SPEC. New package created without any problem, BUT I saw this line in output, that I don't remember on previous system version (1.0.4.20):

warning: Could not canonicalize hostname: Jolla

Full output you can see here: http://pastie.org/9076079

Now the problems: 1. Installation of new version failed and show me this output:

[root@Jolla rpmbuild]# pkcon install-local -y /home/nemo/Downloads/hebrewvkbnew-2ar-3lang-0.8-1.armv7hl.rpm
Installing files
Waiting in queue
Waiting for authentication
Waiting in queue
Starting
Resolving dependencies
Installing packages
Downloading packages
Installing packages
Fatal error: Installation aborted by user
[root@Jolla rpmbuild]#

but if I check which package installed it show me both packages although it the same files and folders

[root@Jolla rpmbuild]# rpm -qi hebrewvkbnew-2ar-3lang
Name        : hebrewvkbnew-2ar-3lang
Version     : 0.7
Release     : 1
Architecture: armv7hl
Install Date: Sun Apr 13 01:05:53 2014
Group       : System/Tools
Size        : 1708637
License     : GPL
Signature   : (none)
Source RPM  : hebrewvkbnew-2ar-3lang-0.7-1.src.rpm
Build Date  : Sat Mar 22 23:21:49 2014
Build Host  : localhost.localdomain
Relocations : (not relocatable)
Packager    : Schturman <schturman@hotmail.com>
Vendor      : Schturman
URL         : www.dhrider.co.cc
Summary     : Hebrew vkb
Description :
Installer of Hebrew vkb with 2 arrows and toggle to switch between He & En & Ru.
Name        : hebrewvkbnew-2ar-3lang
Version     : 0.8
Release     : 1
Architecture: armv7hl
Install Date: Sun Apr 13 01:09:13 2014
Group       : System/Tools
Size        : 1711338
License     : GPL
Signature   : (none)
Source RPM  : hebrewvkbnew-2ar-3lang-0.8-1.src.rpm
Build Date  : Sun Apr 13 01:08:04 2014
Build Host  : Jolla
Relocations : (not relocatable)
Packager    : Schturman <schturman@hotmail.com>
Vendor      : Schturman
URL         : www.dhrider.co.cc
Summary     : Hebrew vkb
Description :
Installer of Hebrew vkb with 2 arrows and toggle to switch between He & En & Ru.
[root@Jolla rpmbuild]#
  1. Trying to uninstall them and I get errors again: pkcon remove -y hebrewvkbnew-2ar-3lang

More than one package matches: 1. hebrewvkbnew-2ar-3lang-0.8-1.armv7hl [installed] 2. hebrewvkbnew-2ar-3lang-0.7-1.armv7hl [installed]

Please choose the correct package: 1
Removing
Waiting in queue
Waiting for authentication
Waiting in queue
Starting
Removing packages
Resolving dependencies
Removing packages
Downloading packages
Fatal error: Specified path '/var/tmp/TmpDir.s52JJz' is not a directory: dir:///var/tmp/TmpDir.s52JJz

Only after reboot it gave me possibility to uninstall

  1. When both of them uninstalled, my new package installed without any problem and errors. Also I can reinstall the same version without any problem.

  2. Tried create another new version and install over the already installed (new) version and also get the same errors

Some advice ? Maybe I should add something new to the SPEC file because of this error ?:

warning: Could not canonicalize hostname: Jolla

This is my SPEC file:

Name:          hebrewvkbnew-2ar-3lang
Version:       0.8
Release:       1
Summary:       Hebrew vkb
Group:         System/Tools
Vendor:        Schturman
Distribution:  SailfisfOS
Packager: Schturman <schturman@hotmail.com>
URL:           www.dhrider.co.cc
Conflicts: hebrewvkb-4ar, hebrewvkb-2ar-2lang, hebrewvkb-2ar-3lang, hebrewvkbnew-4ar, hebrewvkbnew-2ar-2lang

License:       GPL

%description
Installer of Hebrew vkb with 2 arrows and toggle to switch between He & En & Ru.

%files
/usr/share/fonts/FreeSans.ttf

%defattr(644,root,root,-)
/usr/share/maliit/plugins/com/jolla/custom-he/*
/usr/share/maliit/plugins/com/jolla/layouts/*

%post
fc-cache -f
killall maliit-server
killall jolla-messages
killall jolla-email
killall jolla-notes
killall jolla-clock

%preun
if [ $1 = 1 ]; then
    // Do stuff specific to upgrades
echo "It's just upgrade"
killall maliit-server
fi

%postun
if [ $1 = 0 ]; then
    // Do stuff specific to uninstalls
rm -rf /usr/share/maliit/plugins/com/jolla/custom-he
killall maliit-server
else
if [ $1 = 1 ]; then
    // Do stuff specific to upgrades
echo "It's just upgrade"
killall maliit-server
fi
fi

%changelog
* Wed Jan 25 2014 Builder <builder@...> 0.1
- First build.