Do we have support for cario lua in conky OM 6

Hello,

Requirements:

I have Searched the forum for my issue and found nothing related or helpful
I have checked the Resources category (Resources Index)
I have reviewed the Wiki for relevant information
I have read the the Release Notes and Errata

OpenMandriva Lx version: 6

Desktop environment (KDE, LXQT…):

Description of the issue (screenshots if relevant):

Relevant informations (hardware involved, software version, logs or output…):

Does openMandrive support cairo lua in conky?
I mean, are there packages for this somewhere in other repositories, maybe some dev branch or something?
Because I didn’t find anything in the default ones.

Is there a possibility to port packages from test, dev branch if they exist.

Thank you in advance

funny you should ask, I’m just looking into this myself.

I can’t find anything in the repo either (I’m running Rock 6, btw)

We’ve got:

  • conky : A lightweight system monitor
  • conky-manager : A simple GUI for managing Conky config files
  • conky-manager2 : A simple GUI for managing Conky config files

According to the github, conky-manager should have been obsoleted 2 years ago and replaced with conky-manager2.

As for conky itself, the spec file on github says:

%bcond_without: lua_cairo
%bcond_without: lua_imlib
%bcond_without: lua_rsvg

so it would have had to be disabled explicitly at compile time.

But when I sift through the repos and github I can’t find anything that would tie them all together.

:man_shrugging:

According to RH, that means it’s enabled. :person_shrugging:

@SomeDudeInAZ Thank you very much for the answer.

I was asking for a friend who creates email notifier for Thunderbird on lua conky phyton and bash. So I asked in his name.

His install script as well as gui installer works on few distros he just made attempt to make it work on open mandriva.
And fails, so here Im with a question

This was also moved to Coffee break because Support is for things that are broken.

1 Like

Hi. I’m not an expert on conky. @mandian and @vuatech have been working on this package recently. However, from what I can see, Cairo and Lua are active in conky.

The macro %bcond_without lua_cairo indicates that something is active. %bcond_with does the opposite. from this it follows that lua cairo is on.

Also build log show also this:

-DBUILD_LUA_CAIRO:BOOL=ON -DBUILD_LUA_IMLIB2:BOOL=ON -DBUILD_LUA_RSVG:BOOL=ON -DBUILD_PULSEAUDIO:BOOL=ON -

It would be easier to have him ask the questions here so there isn’t any miscommunications. I can say that Lua is version specific. So, if the script was written in a version lower than what we ship, it may not work.

I would recommend the Development topic.

1 Like

@zeroability Ups sorry for the mess I’ve created in support. It was unintended

1 Like

@zeroability @AngryPenguin

Thanks

That’s what I thought. %bcond_without meant you had to explicitly set a compiler flag to disable it and that if you did so it would still build (albeit without that particular feature)

Where does one find the build logs? Over in the abf?

I know that the sheer number of issues I’ve resolved just by looking at the rpm spec has me wondering why I never did something like it before my switch to OpenMandriva.

Actually I know why…hanging out in the chat is why I started looking there for info. So thanks again. You’ve made me a better engineer just by my following the discussions.

I almost feel like a real linux user :penguin: :winking_face_with_tongue:

1 Like

It’s no problem. I’m just trying to make things easier to find.

Unless you are building them locally, then yes. Each ID has a set of logs for the build, script, and tests. Any one of those can lead to packages not being published.

In this particular build, it failed to contact the file store. Probably because the tubes were clogged doing other build and store related tasks:

This had a test fail, because certain arch’s packages failed to build:

This one shows a failure in a check in CMake for a dependency (BuildRequires):

thank you

Probably not, rolling repos are copies of what was in Cooker at some point in time, rock repos are copies of what was in ROME(rolling) at some point. That reflects workflow.

Cooker>ROME(rolling)>Rock.

Testing repos are not used much at this time.

It is very easy to see what is in OLMx repos:

OMLx repositories

Users can search OMLx packages using dnf search and dnf info and there is the --help option. Not sure about man pages for those.

Hello grafi

Yes we do support cairo in conky as you can see from the conky -v output which tells you everything it has enabled:

$ conky -v
conky 1.22.1 compiled for Linux x86_64

Compiled in features:

System config file: /etc/conky/conky.conf
Package library path: lib64/conky


 General:
  * math
  * hddtemp
  * IPv6
  * Curl
  * RSS
  * support for IBM/Lenovo notebooks
  * old configuration syntax
  * OSS mixer support
  * apcupsd
  * iostats
  * ncurses
  * Internationalization support
  * PulseAudio

 Lua bindings:
  * Cairo
  * RSVG
 X11:
  * Xdamage extension
  * Xinerama extension (virtual display)
  * Xshape extension (click through)
  * XDBE (double buffer extension)
  * Xft
  * ARGB visual
  * Own window
  * Mouse events
 Wayland:
  * ARGB visual
  * Mouse events

 Music detection:
  * CMUS
  * MPD

 Default values:
  * Netdevice: eno1
  * Local configfile: $HOME/.conkyrc
  * Localedir: /usr/share/locale
  * Maximum netdevices: 256
  * Maximum text size: 16384
  * Size text buffer: 256

I also took a look at it and while I could get lua code to work and display properly I could not get images loading, so I delved a little deeper on that.

I updated the imlib2 library that conky uses and added a bunch more image formats to it thinking maybe we had missed something that was stopping images from loading but no success other than updating the library with more image formats, which isn’t a bad thing.

Next step was updating conky itself which went smoothy but still no Lua image tags were working and conky -v was not showing it as being enabled either, so I went back to its spec file and after some head scratching spotted a single digit typo in a macro that was preventing conky from pulling in imlib2 at all and that was the fix to get images working in conky .

You can see the output from the updated conky -v showing that it now has imlib2 enabled below:

$ conky -v
conky 1.22.2 compiled for Linux x86_64

Compiled in features:

System config file: /etc/conky/conky.conf
Package library path: lib64/conky


 General:
  * math
  * hddtemp
  * IPv6
  * Curl
  * RSS
  * support for IBM/Lenovo notebooks
  * old configuration syntax
  * Imlib2
  * OSS mixer support
  * apcupsd
  * iostats
  * ncurses
  * Internationalization support
  * PulseAudio

 Lua bindings:
  * Cairo
  * Imlib2
  * RSVG
 X11:
  * Xdamage extension
  * Xinerama extension (virtual display)
  * Xshape extension (click through)
  * XDBE (double buffer extension)
  * Xft
  * ARGB visual
  * Own window
  * Mouse events
 Wayland:
  * ARGB visual
  * Mouse events

 Music detection:
  * CMUS
  * MPD

 Default values:
  * Netdevice: eno1
  * Local configfile: $HOME/.conkyrc
  * Localedir: /usr/share/locale
  * Maximum netdevices: 256
  * Maximum text size: 16384
  * Size text buffer: 256

Both updated imlib2 and corky v1.22.2 packages are available in cooker and should make it down to rolling/ROME soon :tm:

Here is a screenshot of it working in a cooker VM with the OpenMandriva Lx logo loading successfully and it is all written in lua:

:melting_face:

2 Likes

I will send the whole thread to my friend. I have no way to be a valuable source of information for you guys about his problems with conky and lua in his project. Hopefully he will contact you, and describe his issues far more better then I ever would

2 Likes