Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
manual roll back to an old version of libreoffice?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
jyoung
Guru
Guru


Joined: 20 Mar 2007
Posts: 478

PostPosted: Wed Jan 08, 2025 6:34 am    Post subject: manual roll back to an old version of libreoffice? Reply with quote

I just did a world update, and the new version of libreoffice has some really serious problems with copy/paste (details provided upon request). I'd like to roll back to an earlier version, but it's no longer in portage, and unfortunately I did a thorough cleaning after the update. However, I do have another machine with a very similar install which didn't get the update. Is there any safe way to pull the package info from that system?

A few side notes: This problem hasn't manifested in other applications, and it seems to be a problem with libreoffice, but I technically can't rule out the possibility that some other part of my desktop is broken. I've started a thread on the libreoffice forum about this, but copy/paste is really critical, and if I could I'd roll back now. I've also done some searching to see if anyone else has had this problem, and the answer seems to be yes: The problems discussed on the thread below seem to mostly overlap with mine, although it's not even a linux thread and many of the solutions don't apply here

https://ask.libreoffice.org/t/copy-paste-clipboard-issues-libreoffice-calc/45811/38
Back to top
View user's profile Send private message
bstaletic
Guru
Guru


Joined: 05 Apr 2014
Posts: 469

PostPosted: Wed Jan 08, 2025 7:04 am    Post subject: Reply with quote

You're going to need the old ebuild. Simplest way is to take it from the other machine and put it into your local overlay.
If the two machines have the same architecture and USE flags, then you can also make a binary package on one and install it on the other.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2727

PostPosted: Wed Jan 08, 2025 7:12 am    Post subject: Reply with quote

In the light of recent Gnome updates, I would support this claim in the referenced thread:

Quote:
So to summarize as answer not hidden in the comments, this appears to be a bug in the Mutter compositor’s integrated clipboard manager


Do you have different Gnome versions on the different machines?

Also people mention Wayland vs Xorg and primary vs secondary clipboards, also extensions, what's your status regarding that?

I don't find any problems here with Gnome 46/Wayland/LO 24.2.7.2 from the binhost, neither with primary, nor with secondary clipboards.

Best Regards,
Georgi
Back to top
View user's profile Send private message
jyoung
Guru
Guru


Joined: 20 Mar 2007
Posts: 478

PostPosted: Wed Jan 08, 2025 8:29 am    Post subject: Reply with quote

logrusx, I'm actually running xfce. I do have some gnome applications installed. As far as I can tell, it's just the secondary clipboard that's the problem, and just with libreoffice.

bstaletic, thanks for the tip, the old version of libreoffice is compiling now. With luck, we'll find out if it is libreoffice or another issue like the compositor that's causing the problem.
Back to top
View user's profile Send private message
jyoung
Guru
Guru


Joined: 20 Mar 2007
Posts: 478

PostPosted: Wed Jan 08, 2025 8:31 pm    Post subject: Reply with quote

The older version (24.2.6.2) is suffering from the same problem. That seems to support the idea that it's something else, perhaps with the compositor.

However, I don't actually use libreoffice that much on the other machine, so I suppose it's possible that it's actually broken there too. I'll check and report back. The earliest version that I can roll back to is 24.2.4.2-r1, and I'll try that as well.
Back to top
View user's profile Send private message
jyoung
Guru
Guru


Joined: 20 Mar 2007
Posts: 478

PostPosted: Thu Jan 09, 2025 3:27 am    Post subject: Reply with quote

I just rolled back to 24.2.4.2-r1, and the problem persists.


With 24.2.7.2 and 24.2.6.2 I was also seeing another problem, when I copy or cut an object (like a text box), it turns it into an image. That problem seems to have gone away with 24.2.4.2-r1.
Back to top
View user's profile Send private message
jyoung
Guru
Guru


Joined: 20 Mar 2007
Posts: 478

PostPosted: Thu Feb 13, 2025 2:24 pm    Post subject: Reply with quote

Any further thoughts here? Some updates: I found an old hard drive from a few years ago with ebuilds 7.3.2.2-r1 and 7.2.6.2-r1, and tried to emerge those as overlays. I'm getting the error

Code:
emerge: there are no ebuilds built with USE flags to satisfy "dev-lang/python:3.10[threads(+),xml]".
!!! One of the following packages is required to complete your request:
- dev-lang/python-3.10.16_p1::gentoo (Missing IUSE: xml)
(dependency required by "app-office/libreoffice-7.2.6.2-r1::local[python_single_target_python3_10]" [ebuild])
(dependency required by "=libreoffice-7.2.6.2-r1" [argument])


I haven't seen this kind of error from emerge before, and python3.10 is installed. Any ideas?

I also tried to compile libreoffice from their source code

https://download.documentfoundation.org/libreoffice/src/

Note that the version numbers jump from 7.6.7 to 24.2.0. I tried a few of the 7.* versions, and I actually couldn't get them to compile. 24.2.0 did compile, although I had to hack the source to add some #include directives in the C/C++. But, 24.2.0 seems to suffer from the same problem I've been having, namely that copy/paste doesn't work correctly.

There was also some action on the libreoffice thread I started, where it looks like other folks are having a similar problem:

https://ask.libreoffice.org/t/copy-paste-clipboard-issues-libreoffice-calc/45811/38

The conclusion that's been floated is that this might be a problem with libreoffice, but I actually don't think so after my experiments. 24.2.0 is from last January, and I use libreoffice all the time. I would have noticed this problem. Could there be some other part of my system that is conflicting with the normal operations of libreoffice?
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2727

PostPosted: Thu Feb 13, 2025 2:33 pm    Post subject: Reply with quote

jyoung wrote:
Any further thoughts here? Some updates: I found an old hard drive from a few years ago with ebuilds 7.3.2.2-r1 and 7.2.6.2-r1, and tried to emerge those as overlays. I'm getting the error

Code:
emerge: there are no ebuilds built with USE flags to satisfy "dev-lang/python:3.10[threads(+),xml]".
!!! One of the following packages is required to complete your request:
- dev-lang/python-3.10.16_p1::gentoo (Missing IUSE: xml)
(dependency required by "app-office/libreoffice-7.2.6.2-r1::local[python_single_target_python3_10]" [ebuild])
(dependency required by "=libreoffice-7.2.6.2-r1" [argument])


I haven't seen this kind of error from emerge before, and python3.10 is installed. Any ideas?



Python does not have those use flags anymore. 2.7 has xml, but none of the currently available python versions has threads. I'd say remove that dependency from the ebuild and try again.

Best Regards,
Georgi
Back to top
View user's profile Send private message
jyoung
Guru
Guru


Joined: 20 Mar 2007
Posts: 478

PostPosted: Thu Feb 13, 2025 6:10 pm    Post subject: Reply with quote

logrusx, that worked, I was able to get emerge to start at least. Now, I'm hitting this message

Code:
checking for mdds-2.0 >= 2.0.0... no
configure: error: Package requirements (mdds-2.0 >= 2.0.0) were not met:

Package 'mdds-2.0' not found


That's weird, since mdds is installed:

Code:
equery list -p mdds
 * Searching for mdds ...
[IP-] [  ] dev-util/mdds-2.1.1:1/2.1
[-P-] [ -] dev-util/mdds-9999:1/3.0


Any thoughts?
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2727

PostPosted: Thu Feb 13, 2025 6:17 pm    Post subject: Reply with quote

It wants 2.0. try changing that to 2.1 in the ebuild, let's hope it'll work. If not, mdds is slotted, you might be able to get an older ebuild, but that's already opening a can of worms of old ebuilds...

You might be better of taking old snapshot of the tree and old basefiles image and performing a new installation with it.

Best Regards,
Georgi
Back to top
View user's profile Send private message
jyoung
Guru
Guru


Joined: 20 Mar 2007
Posts: 478

PostPosted: Thu Feb 13, 2025 7:31 pm    Post subject: Reply with quote

Weird, I modified the ebuild file to read

Code:
DEPEND="${COMMON_DEPEND}
        >=dev-libs/libatomic_ops-7.2d
        dev-perl/Archive-Zip
   >=dev-util/cppunit-1.14.0
        >=dev-util/gperf-3.1
        >=dev-util/mdds-2.1.1  <*** this is the line I changed***>
   media-libs/glm
        x11-base/xorg-proto
        x11-libs/libXt
        x11-libs/libXtst
   java? (
                dev-java/ant-core
                >=virtual/jdk-11
        )
        test? (
                app-crypt/gnupg
                dev-util/cppunit
                media-fonts/dejavu
                media-fonts/liberation-fonts
        )



But I still get this message from emerge

Code:
checking for mdds-2.0 >= 2.0.0... no
configure: error: Package requirements (mdds-2.0 >= 2.0.0) were not met:

Package 'mdds-2.0' not found


Is there some other config file to that needs changing? Or, should I "make clean" in one of the build folders and start over?
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2727

PostPosted: Thu Feb 13, 2025 7:46 pm    Post subject: Reply with quote

jyoung wrote:
Weird, I modified the ebuild file to read

Code:
DEPEND="${COMMON_DEPEND}
        >=dev-libs/libatomic_ops-7.2d
        dev-perl/Archive-Zip
   >=dev-util/cppunit-1.14.0
        >=dev-util/gperf-3.1
        >=dev-util/mdds-2.1.1  <*** this is the line I changed***>
   media-libs/glm
        x11-base/xorg-proto
        x11-libs/libXt
        x11-libs/libXtst
   java? (
                dev-java/ant-core
                >=virtual/jdk-11
        )
        test? (
                app-crypt/gnupg
                dev-util/cppunit
                media-fonts/dejavu
                media-fonts/liberation-fonts
        )



But I still get this message from emerge

Code:
checking for mdds-2.0 >= 2.0.0... no
configure: error: Package requirements (mdds-2.0 >= 2.0.0) were not met:

Package 'mdds-2.0' not found


Is there some other config file to that needs changing? Or, should I "make clean" in one of the build folders and start over?


I'm sorry, I was too quick to respond. This is not portage complaining but the build system of the package itself. That means libreoffice explicitly requires 2.0, which means you need to dig it, which means it might require other old stuff, which means it might require other old stuff, which means... the can of worms I meant.

Best Regards,
Georgi
Back to top
View user's profile Send private message
jyoung
Guru
Guru


Joined: 20 Mar 2007
Posts: 478

PostPosted: Thu Feb 13, 2025 9:19 pm    Post subject: Reply with quote

Darn, it looks like an easy fix might not be realistic.

Building from a snapshot of the old tree might be the best plan. The old hard drive actually has the entire OS, so in theory we have the old code.

I still think that this is probably not an issue with libreoffice specifically, but rather some component of my system interacting with it badly. I double that they would have let this kind of bug go unfixed for a year, especially given the number of new releases, so it must be a minority of users that experience it.

I did try one other experiment, installing the binary version of the package, libreoffice-bin. It had the same issue.
Back to top
View user's profile Send private message
jyoung
Guru
Guru


Joined: 20 Mar 2007
Posts: 478

PostPosted: Fri Feb 14, 2025 7:05 pm    Post subject: Reply with quote

There might be another thing to try: the old hard drive has an ebuild for libreoffice-bin-7.2.5.2. That doesn't seem to depend on mdds, and probably has far fewer dependencies in general. Maybe that's worth a try?
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2727

PostPosted: Fri Feb 14, 2025 7:09 pm    Post subject: Reply with quote

It would be easier to setup a completely new installation aided by the binhost and see if it behaves. If it doesn't, then the problem is in your current system.

Best Regards,
Georgi
Back to top
View user's profile Send private message
jyoung
Guru
Guru


Joined: 20 Mar 2007
Posts: 478

PostPosted: Sat Feb 15, 2025 4:45 pm    Post subject: Reply with quote

Would binhost allow me to pull in old versions of software that aren't still in portage? I have tried the libreoffice-bin that's used through portage, and it suffered the same issue as the regular libreoffice.

Also, I think I was incorrect in saying that the old hard drive had the files for an old version of libreoffice-bin. It does have a directory in /usr/portage/, but not /var/db (or anything in /var).

If it were a probably with the system other than libreoffice, are there any likely suspects?
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2727

PostPosted: Sat Feb 15, 2025 4:50 pm    Post subject: Reply with quote

I suggest setting up a clean, current install and see how it behaves. This would be an easier way of verifying if it's a bug in libreoffice or a problem somewhere in your system.

As to how old the packages are on the binhost, I don't know. I guess it only contains packages currently in tree.

Best Regards,
Georgi
Back to top
View user's profile Send private message
jyoung
Guru
Guru


Joined: 20 Mar 2007
Posts: 478

PostPosted: Sat Feb 15, 2025 5:03 pm    Post subject: Reply with quote

You mean an entirely new install of gentoo? I was thinking along similar lines, using a liveusb, that way I wouldn't have to rebuild everything.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54862
Location: 56N 3W

PostPosted: Sat Feb 15, 2025 5:57 pm    Post subject: Reply with quote

jyoung,

As I write, the /23.0/ profile BINHOST/ contains libreoffice-24.2.7.2
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2727

PostPosted: Sat Feb 15, 2025 6:29 pm    Post subject: Reply with quote

jyoung wrote:
You mean an entirely new install of gentoo? I was thinking along similar lines, using a liveusb, that way I wouldn't have to rebuild everything.


Yes.

NeddySeagoon wrote:
jyoung,

As I write, the /23.0/ profile BINHOST/ contains libreoffice-24.2.7.2


And libreoffice-bin 25.2.0 is available in the main tree as well. I don't see why joung should go backward to validate a bug when it can be done forward as well.

@jyoung I read a few posts from the thread you linked in OP as well. You also said you were using xfce. Is it on Wayland or on X? Do you happen to use clipman? Can you tell me how to reproduce the bug? I'm now using Hyprland, but can switch back to Gnome to test it.

Also see this post: https://forum.xfce.org/viewtopic.php?pid=50850#p50850

I'm not an xfce user so this may come random to you but I see a connection which might or might not be relevant.

Best Regards,
Georgi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum