Bug 28938 - Lyx:The first ten options from top in Help menu don't work
Summary: Lyx:The first ten options from top in Help menu don't work
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA9-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2021-05-18 17:33 CEST by I027614 I027614
Modified: 2023-12-06 00:33 CET (History)
9 users (show)

See Also:
Source RPM: lyx-2.3.6.1-2.mga9
CVE:
Status comment:


Attachments
lyx install log (45.25 KB, text/plain)
2021-05-18 20:12 CEST, katnatek
Details
run lyx from console (1.55 KB, text/plain)
2021-05-18 20:16 CEST, katnatek
Details
suggestion of spc for lyx 2.3.7 (5.12 KB, text/plain)
2023-09-09 06:44 CEST, katnatek
Details
first patch (2.32 KB, patch)
2023-09-09 06:45 CEST, katnatek
Details | Diff
Second patch (9.39 KB, patch)
2023-09-09 06:46 CEST, katnatek
Details | Diff
Third patch (563 bytes, patch)
2023-09-09 06:47 CEST, katnatek
Details | Diff
4th patch (1011 bytes, message/rfc822)
2023-09-09 06:49 CEST, katnatek
Details
Extra source for configurations of lyx (400 bytes, application/vnd.apple.installer+xml)
2023-09-09 06:50 CEST, katnatek
Details
Revised spec (5.20 KB, text/x-rpm-spec)
2023-09-09 21:19 CEST, katnatek
Details
Second revision to spec for lyx 2.3.7 (4.78 KB, text/x-rpm-spec)
2023-11-07 04:23 CET, katnatek
Details
Diff with changes done from current spec in Cauldron (3.52 KB, patch)
2023-11-07 04:26 CET, katnatek
Details | Diff
Proposed change to current Mageia 9 spec (670 bytes, patch)
2023-12-03 23:54 CET, katnatek
Details | Diff

Description I027614 I027614 2021-05-18 17:33:13 CEST
Description of problem:

The first ten options from top in Help menu don't work: no sample file opens when you click on them

Version-Release number of selected component (if applicable):

Lyx 2.3.6.1

Qt 5.15.2

How reproducible:

Every time I click on those Help menu options

Steps to Reproduce:

1. Open Lyx

2. Click on Help menu

3. Click on any of the first ten options from top
katnatek 2021-05-18 20:09:19 CEST

Summary: The first ten options from top in Help menu don't work => Lyx:The first ten options from top in Help menu don't work

Comment 1 katnatek 2021-05-18 20:12:23 CEST
Created attachment 12715 [details]
lyx install log

I confirm on i586.

In the installation from console i see lot of

updmap [ERROR]
Comment 2 katnatek 2021-05-18 20:16:45 CEST
Created attachment 12716 [details]
run lyx from console

Also maybe to report upstream in the spanish mode complain about repeated shortcuts

As it can see the message "LyX: unable to find documentation file" its repeated for each try (i only try the first 3)
Comment 3 katnatek 2021-05-18 20:18:39 CEST
And for last the same but forcing english

LC_ALL=C lyx
LyX: unable to find documentation file `Intro'. Bad installation?
LyX: unable to find documentation file `Tutorial'. Bad installation?
LyX: unable to find documentation file `UserGuide'. Bad installation?
Comment 4 Aurelien Oudelet 2021-05-19 15:25:06 CEST
Hi, thanks for reporting this.
Assigned to the package maintainer.

(Please set the status to 'assigned' if you are working on it)

Cauldron is at same version. Assigning to this also.

Assignee: bugsquad => rverschelde
Whiteboard: (none) => MGA8TOO
Target Milestone: --- => Mageia 9
Version: 8 => Cauldron
CC: (none) => ouaurelien

Comment 5 katnatek 2023-09-01 01:12:53 CEST
Still not work on mga8

Source RPM: lyx-2.3.6.1-1.mga8.src.rpm => lyx-2.3.6.1-1.mga8.src.rpm , lyx-2.3.6.1-2.mga9.src.rpm
Whiteboard: MGA8TOO => MGA8TOO,MGA9TOO

Comment 6 katnatek 2023-09-01 01:16:34 CEST
BTW is outdated version 2.3.7 is available
Comment 7 katnatek 2023-09-01 18:58:06 CEST
I build 2.3.7 version taking patchs from mageia, debian, fedora and the lyx mail lists, the behaviour with the help utems its the same.

Trying to fix this is see the opensuse spec (https://build.opensuse.org/package/view_file/openSUSE:Leap:15.5:Update/lyx/lyx.spec?expand=1)  and see two interesting zones

# Goal is to require/recommends (roughly) everything that is supported in the GUI of LyX
# LyX can supoort everything of LaTeX in the preamble, but not everything is supported in the GUI
# I have ingored extra fonts and document classes
# Use "Recommends" so that expert users can have some control
Recommends:     texlive-algorithms
Recommends:     texlive-arabi
Recommends:     texlive-bezos
Recommends:     texlive-biber
Recommends:     texlive-bibtex8
...lot more in spec...

And

# Some stuff needed for LyX's documentation:
Recommends:     texlive-braket
Recommends:     texlive-cprotect
Recommends:     texlive-diagbox
Recommends:     texlive-doublestroke
Recommends:     texlive-picinpar
Recommends:     texlive-shapepar
Recommends:     texlive-sidecap


That and the very short  list of texlive-<complement> produced by 
urpmq --list -f|grep texlive , make me thing that the missing texlive-<complement> 
packages in mageia is the root cause of the issue, are really lot and the 
questions is, if must open a report for each texlive-<complement> or
a report including all the lists?

CC: (none) => j.alberto.vc

katnatek 2023-09-05 20:31:19 CEST

Depends on: (none) => 32249

Lewis Smith 2023-09-05 21:25:57 CEST

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=32249

Comment 8 Marc Krämer 2023-09-07 21:37:15 CEST
I guess the lyx package does not follow the restructuring we were having in texlive.

We have a new bunch of packages, in order to get texlive a bit more handy:
urpmq -ay texli
texlive
texlive-collection-basic
texlive-context
texlive-dist
texlive-doc
texlive-fonts-asian
texlive-fonts-sources
texlive-fontsextra
texlive-pythontex
texlive-texmf


As you can see Suse and also fedora have a different packaging system.

I guess you can solve the problem by setting:
texlive
texlive-collection-basic
texlive-dist
texlive-texmf

this should include the most common packages required.

CC: (none) => mageia

Comment 9 katnatek 2023-09-08 01:08:34 CEST
(In reply to Marc Krämer from comment #8)
> I guess you can solve the problem by setting:
> texlive
> texlive-collection-basic
> texlive-dist
> texlive-texmf
> 
> this should include the most common packages required.

I guess no, 2 of them are installed by urpmi and the other i already have in my system

LC_ALL=C urpmi lyx
To satisfy dependencies, the following packages are going to be installed:
  Package                        Version      Release       Arch    
(medium "Core Release")
  cmsuper                        0.3.3        19.mga9       noarch  
  fonts-ttf-latex                0.1          17.mga9       noarch  
  lyx                            2.3.6.1      2.mga9        x86_64  
  perl-Algorithm-Diff            1.201.0      2.mga9        noarch  
  texlive-dist                   20220321     12.mga9       noarch  
  texlive-texmf                  20220321     12.mga9       noarch  
1.8GB of additional disk space will be used.
771MB of packages will be retrieved.
Proceed with the installation of the 6 packages? (Y/n) y

LC_ALL=C urpmi texlive texlive-collection-basic 
Packages texlive-collection-basic-20220321-12.mga9.noarch, texlive-20220321-7.mga9.x86_64 are already installed
Marking texlive-collection-basic as manually installed, it won't be auto-orphaned
Marking texlive as manually installed, it won't be auto-orphaned
writing /var/lib/rpm/installed-through-deps.list

I have serching the files provided by the packages recommended in the section "For Lyx Documentation" and found in mageia need to include also

texlive-fontsextra

But still the ten first menu items not works, produce the same output as in comment#2 and comment#3, i test later if some of the other packages helps
Comment 10 katnatek 2023-09-08 01:43:12 CEST
keep searching i install texlive-doc but nothing
i not found equivalent or package provide the same as texlive-biber , the file CountriesOfEurope.map that is complain in the install.

I will return tomorrow if i found other think
Comment 11 Marc Krämer 2023-09-08 14:57:26 CEST
@katnatek: For you to understand, packaging texlive is not as easy as it seems. There is some sort of graphical installer that manages the installation and changes config files. Many distribs added texlive as a bump - which required 5G of space. And you have everything never needed. Others split up every single tex-package in an rpm - which is a lot of work and the user must exactly know what he wants. I splitted the package up, to e.g. remove asian fonts, if they are not needed.

Installing cmsuper (needed by lyx) brings me some errors. Maybe we need to change some things here, to the way texlive does now.


The files lyx is missing are inside lyx download:
./lib/doc/[LANUAGE]/*.lyx

And these files are not part of the rpm file.
Comment 12 Marc Krämer 2023-09-08 15:00:08 CEST
find  BUILD/lyx-2.3.6.1/lib/doc/ -name Intro.lyx
BUILD/lyx-2.3.6.1/lib/doc/es/Intro.lyx
BUILD/lyx-2.3.6.1/lib/doc/sk/Intro.lyx
BUILD/lyx-2.3.6.1/lib/doc/it/Intro.lyx
BUILD/lyx-2.3.6.1/lib/doc/el/Intro.lyx
BUILD/lyx-2.3.6.1/lib/doc/sl/Intro.lyx
BUILD/lyx-2.3.6.1/lib/doc/fr/Intro.lyx
BUILD/lyx-2.3.6.1/lib/doc/eu/Intro.lyx
BUILD/lyx-2.3.6.1/lib/doc/pt/Intro.lyx
BUILD/lyx-2.3.6.1/lib/doc/sv/Intro.lyx
BUILD/lyx-2.3.6.1/lib/doc/nb/Intro.lyx
BUILD/lyx-2.3.6.1/lib/doc/ar/Intro.lyx
BUILD/lyx-2.3.6.1/lib/doc/Intro.lyx
BUILD/lyx-2.3.6.1/lib/doc/id/Intro.lyx
BUILD/lyx-2.3.6.1/lib/doc/he/Intro.lyx
BUILD/lyx-2.3.6.1/lib/doc/pl/Intro.lyx
BUILD/lyx-2.3.6.1/lib/doc/gl/Intro.lyx
BUILD/lyx-2.3.6.1/lib/doc/ca/Intro.lyx
BUILD/lyx-2.3.6.1/lib/doc/ro/Intro.lyx
BUILD/lyx-2.3.6.1/lib/doc/uk/Intro.lyx
BUILD/lyx-2.3.6.1/lib/doc/zh_CN/Intro.lyx
BUILD/lyx-2.3.6.1/lib/doc/ja/Intro.lyx
BUILD/lyx-2.3.6.1/lib/doc/ru/Intro.lyx
BUILD/lyx-2.3.6.1/lib/doc/da/Intro.lyx
BUILD/lyx-2.3.6.1/lib/doc/nl/Intro.lyx
BUILD/lyx-2.3.6.1/lib/doc/hu/Intro.lyx
BUILD/lyx-2.3.6.1/lib/doc/de/Intro.lyx


looks like this is the fallback:
BUILD/lyx-2.3.6.1/lib/doc/Intro.lyx
Comment 13 katnatek 2023-09-08 19:23:12 CEST
(In reply to Marc Krämer from comment #12)
> find  BUILD/lyx-2.3.6.1/lib/doc/ -name Intro.lyx
> BUILD/lyx-2.3.6.1/lib/doc/es/Intro.lyx
> BUILD/lyx-2.3.6.1/lib/doc/sk/Intro.lyx
> BUILD/lyx-2.3.6.1/lib/doc/it/Intro.lyx
> BUILD/lyx-2.3.6.1/lib/doc/el/Intro.lyx
> BUILD/lyx-2.3.6.1/lib/doc/sl/Intro.lyx
> BUILD/lyx-2.3.6.1/lib/doc/fr/Intro.lyx
> BUILD/lyx-2.3.6.1/lib/doc/eu/Intro.lyx
> BUILD/lyx-2.3.6.1/lib/doc/pt/Intro.lyx
> BUILD/lyx-2.3.6.1/lib/doc/sv/Intro.lyx
> BUILD/lyx-2.3.6.1/lib/doc/nb/Intro.lyx
> BUILD/lyx-2.3.6.1/lib/doc/ar/Intro.lyx
> BUILD/lyx-2.3.6.1/lib/doc/Intro.lyx
> BUILD/lyx-2.3.6.1/lib/doc/id/Intro.lyx
> BUILD/lyx-2.3.6.1/lib/doc/he/Intro.lyx
> BUILD/lyx-2.3.6.1/lib/doc/pl/Intro.lyx
> BUILD/lyx-2.3.6.1/lib/doc/gl/Intro.lyx
> BUILD/lyx-2.3.6.1/lib/doc/ca/Intro.lyx
> BUILD/lyx-2.3.6.1/lib/doc/ro/Intro.lyx
> BUILD/lyx-2.3.6.1/lib/doc/uk/Intro.lyx
> BUILD/lyx-2.3.6.1/lib/doc/zh_CN/Intro.lyx
> BUILD/lyx-2.3.6.1/lib/doc/ja/Intro.lyx
> BUILD/lyx-2.3.6.1/lib/doc/ru/Intro.lyx
> BUILD/lyx-2.3.6.1/lib/doc/da/Intro.lyx
> BUILD/lyx-2.3.6.1/lib/doc/nl/Intro.lyx
> BUILD/lyx-2.3.6.1/lib/doc/hu/Intro.lyx
> BUILD/lyx-2.3.6.1/lib/doc/de/Intro.lyx
> 
> 
> looks like this is the fallback:
> BUILD/lyx-2.3.6.1/lib/doc/Intro.lyx

That is the peak of the iceberg, remember that ten items not work, the complete list is:

Intro
Tutorial
UserGuide
Additional
EmbeddedObjects
Math
Customization
Shortcuts
LFUNs
LaTeXConfig
Comment 14 Marc Krämer 2023-09-09 01:51:08 CEST
they are all inside this dir - this was just an example
Comment 15 Marc Krämer 2023-09-09 01:51:42 CEST
they just need to be added to the spec file.
Comment 16 katnatek 2023-09-09 06:44:26 CEST Comment hidden (obsolete)
Comment 17 katnatek 2023-09-09 06:45:49 CEST
Created attachment 13977 [details]
first patch
Comment 18 katnatek 2023-09-09 06:46:30 CEST
Created attachment 13978 [details]
Second patch
Comment 19 katnatek 2023-09-09 06:47:19 CEST
Created attachment 13979 [details]
Third patch
Comment 20 katnatek 2023-09-09 06:49:05 CEST
Created attachment 13980 [details]
4th patch
Comment 21 katnatek 2023-09-09 06:50:12 CEST Comment hidden (obsolete)
Comment 22 katnatek 2023-09-09 06:54:25 CEST
(In reply to Marc Krämer from comment #15)
> they just need to be added to the spec file.

Thanks for you help, now the ball is in mageia side, i still need investigate the suse recommends for see what is really missing in mageia but i let that to bug#32249
Comment 23 katnatek 2023-09-09 21:19:05 CEST Comment hidden (obsolete)
katnatek 2023-09-11 00:43:07 CEST

Depends on: 32249 => (none)

Comment 24 katnatek 2023-11-07 04:23:36 CET Comment hidden (obsolete)

Attachment 13982 is obsolete: 0 => 1
Attachment 13976 is obsolete: 0 => 1
Attachment 13981 is obsolete: 0 => 1

katnatek 2023-11-07 04:25:28 CET

CC: (none) => ngompa13

Comment 25 katnatek 2023-11-07 04:26:42 CET Comment hidden (obsolete)
Comment 26 katnatek 2023-12-03 23:54:11 CET
Created attachment 14193 [details]
Proposed change to current Mageia 9 spec

I see in cauldron a spec based on attachment#13976 [details] , I understand my last spec no follow some policies, but I can't remove obsolete mark in the attachment 

@Therry, @David or @Remy:
did some of you think to release a package for Mageia 9?
or at less add the lines

#Missing Stuff
pushd lib/doc
for doc in $(find *  -type f); do
	install -Dm0644 $doc %{buildroot}%{_datadir}/lyx/doc/$doc
done
popd

To current mageia 9 spec to finally fix this?

Attachment 14139 is obsolete: 0 => 1
Attachment 14140 is obsolete: 0 => 1

katnatek 2023-12-04 00:02:37 CET

CC: (none) => geiger.david68210, thierry.vignaud

Comment 27 katnatek 2023-12-04 00:03:52 CET
@Therry, @David, please read comment#26, I fail adding you to cc list
Comment 28 David GEIGER 2023-12-04 19:10:39 CET
Fixed on Caudron!


Assigning to QA,

Packages in 9/Core/Updates_testing:
======================
lyx-2.3.7-1.mga9

From SRPMS:
lyx-2.3.7-1.mga9.src.rpm

Whiteboard: MGA8TOO,MGA9TOO => MGA8TOO
Target Milestone: Mageia 9 => ---
Assignee: rverschelde => qa-bugs
Version: Cauldron => 9
Hardware: x86_64 => All

Comment 29 katnatek 2023-12-04 20:12:40 CET
Tested on Real Hardware Mageia 9 x86_64

Install current lyx package 
Open a terminal as user
Run lyx
Go to help menu and click on the ten items from top
LyX: unable to find documentation file `Intro'. Bad installation?
frontends/qt4/Menus.cpp (749): Menu warning: menu entries "Comentarios PDF|F" and "Diagrama Feynman|F" share the same shortcut.
LyX: unable to find documentation file `Tutorial'. Bad installation?
frontends/qt4/Menus.cpp (749): Menu warning: menu entries "Comentarios PDF|F" and "Diagrama Feynman|F" share the same shortcut.
LyX: unable to find documentation file `UserGuide'. Bad installation?
frontends/qt4/Menus.cpp (749): Menu warning: menu entries "Comentarios PDF|F" and "Diagrama Feynman|F" share the same shortcut.
LyX: unable to find documentation file `Additional'. Bad installation?
frontends/qt4/Menus.cpp (749): Menu warning: menu entries "Comentarios PDF|F" and "Diagrama Feynman|F" share the same shortcut.
LyX: unable to find documentation file `EmbeddedObjects'. Bad installation?
frontends/qt4/Menus.cpp (749): Menu warning: menu entries "Comentarios PDF|F" and "Diagrama Feynman|F" share the same shortcut.
LyX: unable to find documentation file `Math'. Bad installation?
frontends/qt4/Menus.cpp (749): Menu warning: menu entries "Comentarios PDF|F" and "Diagrama Feynman|F" share the same shortcut.
frontends/qt4/Menus.cpp (749): Menu warning: menu entries "Comentarios PDF|F" and "Diagrama Feynman|F" share the same shortcut.
LyX: unable to find documentation file `Customization'. Bad installation?
frontends/qt4/Menus.cpp (749): Menu warning: menu entries "Comentarios PDF|F" and "Diagrama Feynman|F" share the same shortcut.
LyX: unable to find documentation file `Shortcuts'. Bad installation?
frontends/qt4/Menus.cpp (749): Menu warning: menu entries "Comentarios PDF|F" and "Diagrama Feynman|F" share the same shortcut.
frontends/qt4/Menus.cpp (749): Menu warning: menu entries "Comentarios PDF|F" and "Diagrama Feynman|F" share the same shortcut.
LyX: unable to find documentation file `LFUNs'. Bad installation?
frontends/qt4/Menus.cpp (749): Menu warning: menu entries "Comentarios PDF|F" and "Diagrama Feynman|F" share the same shortcut.
LyX: unable to find documentation file `LaTeXConfig'. Bad installation?
frontends/qt4/Menus.cpp (749): Menu warning: menu entries "Comentarios PDF|F" and "Diagrama Feynman|F" share the same shortcut

And not load the expected manual

Update to testing packages without issues, I get some additional packages (it is expected)
Run again lyx in terminal as user
Go to help menu and click the ten items from the top
All the expected manual are load in the application

Note: I still got the complaints about items sharing the same shortcut and some manuals are not translated, but that is not the scope of this bug

Whiteboard: MGA8TOO => MGA8TOO,MGA9-64-OK

Comment 30 Thomas Andrews 2023-12-04 22:17:32 CET
Are there some MGA8 packages to test, or are we not going to fix it for that because MGA8 is technically EOL?

CC: (none) => andrewsfarm

Comment 31 katnatek 2023-12-04 22:41:55 CET
(In reply to Thomas Andrews from comment #30)
> Are there some MGA8 packages to test, or are we not going to fix it for that
> because MGA8 is technically EOL?

I not found any, waiting for @David GEIGER answer
Comment 32 Marja Van Waes 2023-12-05 00:10:57 CET
(In reply to katnatek from comment #31)
> (In reply to Thomas Andrews from comment #30)
> > Are there some MGA8 packages to test, or are we not going to fix it for that
> > because MGA8 is technically EOL?
> 
> I not found any, waiting for @David GEIGER answer

It wasn't pushed to Mageia 8, so I didn't add Mga 8 to the advisory. This is the uploaded advisory:

type: bugfix
subject: Updated lyx package fixes failing Help entries
src:
  9:
   core:
     - lyx-2.3.7-1.mga9
description: |
  The top ten options in the Lyx Help menu did not work. This update
  fixes that issue.
references:
 - https://bugs.mageia.org/show_bug.cgi?id=28938

Please remove the "advisory" keyword if it needs to be changed.

CC: (none) => marja11
Keywords: (none) => advisory

Comment 33 David GEIGER 2023-12-05 07:57:49 CET
(In reply to katnatek from comment #31)
> (In reply to Thomas Andrews from comment #30)
> > Are there some MGA8 packages to test, or are we not going to fix it for that
> > because MGA8 is technically EOL?
> 
> I not found any, waiting for @David GEIGER answer

Is this really needed? When mga8 become EOL?
Comment 34 Marja Van Waes 2023-12-05 09:48:43 CET
(In reply to David GEIGER from comment #33)
> (In reply to katnatek from comment #31)
> > (In reply to Thomas Andrews from comment #30)
> > > Are there some MGA8 packages to test, or are we not going to fix it for that
> > > because MGA8 is technically EOL?
> > 
> > I not found any, waiting for @David GEIGER answer
> 
> Is this really needed? When mga8 become EOL?

I think the question arose from "MGA8TOO" being on the whiteboard. I'm removing it now.

Source RPM: lyx-2.3.6.1-1.mga8.src.rpm , lyx-2.3.6.1-2.mga9.src.rpm => lyx-2.3.6.1-2.mga9
Whiteboard: MGA8TOO,MGA9-64-OK => MGA9-64-OK

Comment 35 Thomas Andrews 2023-12-05 14:58:14 CET
(In reply to Marja Van Waes from comment #34)
> (In reply to David GEIGER from comment #33)
> > (In reply to katnatek from comment #31)
> > > (In reply to Thomas Andrews from comment #30)
> > > > Are there some MGA8 packages to test, or are we not going to fix it for that
> > > > because MGA8 is technically EOL?
> > > 
> > > I not found any, waiting for @David GEIGER answer
> > 
> > Is this really needed? When mga8 become EOL?
> 
> I think the question arose from "MGA8TOO" being on the whiteboard. I'm
> removing it now.

Correct, Marja. This is one of those times when it's better to ask than to assume and mess things up. Thanks.

Validating.

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 36 Mageia Robot 2023-12-06 00:33:01 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2023-0134.html

Resolution: (none) => FIXED
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.