Mate weather applet issue [Solved]

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
Van_Vinkle
Donor
Posts: 196
Joined: 25. Oct 2012, 17:39

Mate weather applet issue [Solved]

Post by Van_Vinkle »

Among the applets conforming Mate desktop, there is one I like a lot: mate-weather-applet which gives the temperature and weather forecast for (nearly) every city in the world.

From one month more or less, this applet is not running; there has been a problem with the web which gives these data. Mate developers have built a patch correcting the bug. I've downloaded the tarball libmateweather-1.16.0.tar.xz found at http://git.mate-desktop.org/libmateweather/.

My question: can I install it manually despite it is 1.16 and we have at Salix the 1.14 version of Mate?

Thanks for your attention.
Last edited by Van_Vinkle on 17. Oct 2016, 22:31, edited 1 time in total.
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Mate weather applet issue

Post by mimosa »

If you install it with spkg to test, you can easily uninstall it if not. If it does work, exclude the Salix package in Gsalpt so it is not reverted.
User avatar
Van_Vinkle
Donor
Posts: 196
Joined: 25. Oct 2012, 17:39

Re: Mate weather applet issue

Post by Van_Vinkle »

Well, I tried it, but has not run. As said, the package is a tarball (tar.xz extension) and not a slackware package:

Code: Select all

root[opt]# spkg --install --verbose --dry-run libmateweather-1.16.0.tar.xz
ERROR: Package name is invalid. (libmateweather-1.16.0.tar.xz)
ERROR: Package installation failed!
root[opt]#
How can I convert to a slackware package?
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Mate weather applet issue

Post by mimosa »

Sorry, I misunderstood. You could try building it by editing the SLKBUILD for the package in the repositories:

http://slackware.uk/salix/x86_64/14.2/s ... r/SLKBUILD

Download that, and place it in a directory somewhere beneath your home directory with the tarball you already have. Edit the SLKBUILD file to match the version number, so where it says

Code: Select all

pkgver=1.14.2
replace it with the more recent version number. Then do

Code: Select all

fakeroot slkbuild -X
if all goes well, you should find a package in that directory which you can test as I suggested by installing with spkg. There's no guarantee it'll work, but it may well. If not, you can revert it immediately by doing:

Code: Select all

sudo spi -i libmateweather
User avatar
Van_Vinkle
Donor
Posts: 196
Joined: 25. Oct 2012, 17:39

Re: Mate weather applet issue

Post by Van_Vinkle »

Thanks for your support, maybe I'm clumsier than the average. I added the extension SLKBUILD (and also SlackBuild and SLACKBUILD) to the file and I've got this:

Code: Select all

root[slackbuild]# fakeroot slkbuild -X
Automatically setting arch to x86_64
ERROR: No SLKBUILD found in directory, see slkbuild --help    
and:

Code: Select all

root[slackbuild]# ls -l
total 3204
-rw-r--r-- 1 lluis users 3274632 oct 11 17:31 libmateweather-1.16.0.tar.xz
-rwxr-xr-x 1 lluis users    1377 oct 12 17:19 libmateweather.SLKBUILD
root[slackbuild]# 
User avatar
gapan
Salix Wizard
Posts: 6361
Joined: 6. Jun 2009, 17:40

Re: Mate weather applet issue

Post by gapan »

The fiile name should be "SLKBUILD", not "whatever.SLKBUILD".

But, it probably won't work, as this is for Mate 1.16 and we're still with 1.14. I'm waiting to solve some issues to upgrade all of Mate to 1.16 in the 14.2 repositories, so maybe be patient if it doesn't work?
Image
Image
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Mate weather applet issue

Post by mimosa »

Also, you shouldn't build the package as root - that's what fakeroot is for.

You should have a directory containing the SLKBUILD file linked to above, edited to correct the version number, and the source file you already downloaded. To build the package, in this directory, not as root, do:

Code: Select all

fakeroot slkbuild -X
though as gapan says, it may well not play nicely with the rest of Mate at the earlier version ... I just thought it was worth a try.
User avatar
Van_Vinkle
Donor
Posts: 196
Joined: 25. Oct 2012, 17:39

Re: Mate weather applet issue

Post by Van_Vinkle »

The test has gone bad:

Code: Select all

$ ls -l
total 3204
-rwxr-xr-x 1 lluis users    1377 Oct 12 17:19 SLKBUILD
-rw-r--r-- 1 lluis users 3274632 Oct 11 17:31 libmateweather-1.16.0.tar.xz

$ fakeroot slkbuild -X
Automatically setting arch to x86_64
libmateweather-1.16.0.tar.xz found in current directory
Setting option noautodotnew
build-libmateweather.sh has been created
tar -xf libmateweather-1.16.0.tar.xz
./build-libmateweather.sh: line 214: ./configure: No such file or directory
make: *** No targets specified and no makefile found.  Stop.
build() failed.
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Mate weather applet issue

Post by mimosa »

Looks like you'd better hold on for gapan's new pacages for mate as a whole. Sometimes there is no substitute for doing it properly!
User avatar
Van_Vinkle
Donor
Posts: 196
Joined: 25. Oct 2012, 17:39

Re: Mate weather applet issue

Post by Van_Vinkle »

I am forced to wait for it :( . I hope he will not delay very much.

Thanks to both.
Post Reply