Bug 2074197 - Branch request: texlive-extension for EPEL9
Summary: Branch request: texlive-extension for EPEL9
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: texlive-extension
Version: epel9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Than Ngo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2099739 (view as bug list)
Depends On:
Blocks: 2041315
TreeView+ depends on / blocked
 
Reported: 2022-04-11 18:27 UTC by Leon Fauster
Modified: 2022-09-22 00:38 UTC (History)
3 users (show)

Fixed In Version: texlive-extension-20200406-29.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-22 00:38:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Leon Fauster 2022-04-11 18:27:53 UTC
Description of problem:

Please consider adding texlive-extension to EPEL9. Thank you!

It helped greatly in EL8!

Comment 1 Than Ngo 2022-05-09 13:57:15 UTC
(In reply to Leon Fauster from comment #0)
> Description of problem:
> 
> Please consider adding texlive-extension to EPEL9. Thank you!
> 
> It helped greatly in EL8!

sure, it is on my plan. Please let me know what you want to include in texlive-extension!

Thanks

Comment 2 Leon Fauster 2022-05-10 10:42:35 UTC
Thanks for taking care of it. In particular it would be great having a seamless transition
from el8 to el9. So having the equal composition as in el8 would provide such experience.

  https://src.fedoraproject.org/rpms/texlive-extension/blob/epel8/f/texlive-extension.spec#_71

At least the "German language support", ps2eps, lacheck, chktex and ucharcat would help making some docs. Thanks!

I haven't tested the el9 workstation setup right now but I am preparing one. Some "new" missing deps could appear 
because the distro is stripped more and more. So, upcoming tests could reveal more missing dependencies ...

Comment 3 Leon Fauster 2022-05-20 07:43:40 UTC
While testing I noticed that 
  texlive-dehyph-9:svn48599-45.fc35.noarch                                            
  texlive-hyphen-german-9:svn58652-45.fc35.noarch 
were missing. As the package names imply i used fc35 noarch rpms as workaround. 
Therefore, if possible, the integration of these hyphenation packages into texlive-extension would be great! Thanks.

Comment 4 Orion Poplawski 2022-06-04 02:25:27 UTC
For python-matplotlib we need: 'tex(chemformula.sty)' and 'tex(sfmath.sty)'.  Thanks!

Comment 5 Fedora Update System 2022-06-09 15:03:03 UTC
FEDORA-EPEL-2022-ea453cf219 has been submitted as an update to Fedora EPEL 9. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-ea453cf219

Comment 6 Leon Fauster 2022-06-09 17:51:46 UTC
Thanks but I can not find it in the repos. Is it still on the way?

# LANG=C yum --enablerepo=epel-testing  --enablerepo=epel-next-testing install texlive-chktex
Last metadata expiration check: 0:00:11 ago on Thu Jun  9 19:50:17 2022.
No match for argument: texlive-chktex
Error: Unable to find a match: texlive-chktex

Comment 7 Orion Poplawski 2022-06-09 23:39:34 UTC
It is still on it's way.  Next step is "pushed to testing", then you will see it in epel-testing.

Comment 8 Fedora Update System 2022-06-10 01:58:49 UTC
FEDORA-EPEL-2022-ea453cf219 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-ea453cf219

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Leon Fauster 2022-06-12 14:35:04 UTC
I am taking a first view on it and the first issue might be 

https://src.fedoraproject.org/rpms/texlive-extension/blob/epel8/f/texlive-extension.spec#_8

versus

https://src.fedoraproject.org/rpms/texlive-extension/blob/epel9/f/texlive-extension.spec#_6

so everything is landing in 

/usr/share/texlive-extension/texmf-dist/

instead 

/usr/share/texlive/texmf-dist/

??

Comment 10 Leon Fauster 2022-06-12 14:40:20 UTC
Further more

https://src.fedoraproject.org/rpms/texlive-extension/blob/epel9/f/texlive-extension.spec#_1060

is a link now. So, every sed in-place substitution in the post section replaces it to a regular file
again and the language.dat in the /etc namespace is not updated. --follow-symlinks helps like:

sed --follow-symlinks -i '/german.*/d' %{_texdir}/texmf-dist/tex/generic/config/language.dat

Comment 11 Leon Fauster 2022-06-12 15:04:50 UTC
Following packages 

texlive-dehyph
texlive-hyph-utf8
texlive-hyphen-base
texlive-ifplatform
texlive-translator
texlive-ucharcat

They seems to be already in the distribution (repo: appstream). One of them was requested by me. Sorry, for the confusion.

Comment 12 Leon Fauster 2022-06-12 15:54:12 UTC
Just for a general verification i installed the provided packages (without the overlapping ones) as follows:

First added a symlink (as said just to verify):

# LANG=C ls -la /usr/share/texlive-extension
lrwxrwxrwx. 1 root root 18 Jun 12 16:55 /usr/share/texlive-extension -> /usr/share/texlive

and then the package installation via repo=epel-testing.

Some test documents compile successfully now.

So, to sum up the issues: 

1. %{_texdir} wrong
2. language.dat handling as link (provided by the distro package texlive-hyphen-base and seems to be a general issue (post scripts))
3. exclude packages that are already in EL9

Comment 13 Than Ngo 2022-06-21 09:02:39 UTC
(In reply to Leon Fauster from comment #12)
> Just for a general verification i installed the provided packages (without
> the overlapping ones) as follows:
> 
> First added a symlink (as said just to verify):
> 
> # LANG=C ls -la /usr/share/texlive-extension
> lrwxrwxrwx. 1 root root 18 Jun 12 16:55 /usr/share/texlive-extension ->
> /usr/share/texlive
> 
> and then the package installation via repo=epel-testing.
> 
> Some test documents compile successfully now.
> 
> So, to sum up the issues: 
> 
> 1. %{_texdir} wrong
> 2. language.dat handling as link (provided by the distro package
> texlive-hyphen-base and seems to be a general issue (post scripts))
> 3. exclude packages that are already in EL9

Hi Leon,

there is new build texlive-extension-20200406-27.el9 which should fix the above issues.
Thanks so much for your report

Comment 14 Than Ngo 2022-06-21 15:47:04 UTC
*** Bug 2099739 has been marked as a duplicate of this bug. ***

Comment 15 Fedora Update System 2022-06-22 01:26:45 UTC
FEDORA-EPEL-2022-ea453cf219 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-ea453cf219

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 16 Leon Fauster 2022-06-26 22:36:18 UTC
The new build looks good. The local output of processing documents looks great. 

About the language.dat handling I see following problem:

The texlive-hyphen-base package coming from the distro provides 

pushd %{buildroot}%{_texdir}/texmf-dist/tex/generic/config/
ln -s ../../../../../../..%{_sysconfdir}/texlive/tex/generic/config/language.dat language.dat

and 

%config(noreplace) %{_sysconfdir}/texlive/tex/generic/config/language.dat

so every texlive-hyphen-${LANGUAGE} package with and sed script line will destroy the above linkage.


After installation of texlive-hyphen-german (post script with sed):

$ diff   /usr/share/texlive/texmf-dist/tex/generic/config/language.dat /etc/texlive/tex/generic/config/language.dat
59,61d58
< german loadhyph-de-1901.tex
< ngerman loadhyph-de-1996.tex
< swissgerman loadhyph-de-ch-1901.tex


furthermore the config adaption coming from post scripts and landing in the /usr/share/texlive/ namespace (speak all adaption)
will be overwritten if someone for example do a yum reinstall texlive-hyphen-base because only the 
%{_sysconfdir}/texlive/tex/generic/config/language.dat is tagged has %config(noreplace).


A quick look into fedora shows round about 106 of such post scripts lines (so a general problem).

A solution could be the usage of "sed --follow-symlinks" or the usage of the path in the %{_sysconfdir} namespace

esperanto example:

sed --follow-symlinks -i '/esperanto.*/d' %{_texdir}/texmf-dist/tex/generic/config/language.dat
or
sed -i '/esperanto.*/d' %{_sysconfdir}/texlive/tex/generic/config/language.dat





for reproduction - following commands series (output not included):

yum reinstall texlive-hyphen-base-20200406-25.el9.noarch
ls -la  /usr/share/texlive/texmf-dist/tex/generic/config/language.dat /etc/texlive/tex/generic/config/language.dat
diff   /usr/share/texlive/texmf-dist/tex/generic/config/language.dat /etc/texlive/tex/generic/config/language.dat

yum install  texlive-hyphen-german --enablerepo=epel-testing
ls -la  /usr/share/texlive/texmf-dist/tex/generic/config/language.dat /etc/texlive/tex/generic/config/language.dat
diff   /usr/share/texlive/texmf-dist/tex/generic/config/language.dat /etc/texlive/tex/generic/config/language.dat

Comment 17 Fedora Update System 2022-09-08 09:56:20 UTC
FEDORA-EPEL-2022-63e9709ca3 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-63e9709ca3

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 18 Leon Fauster 2022-09-13 18:39:06 UTC
Commet 16: Upstreamed https://bugzilla.redhat.com/show_bug.cgi?id=2126535

Comment 19 Fedora Update System 2022-09-14 00:42:13 UTC
FEDORA-EPEL-2022-63e9709ca3 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-63e9709ca3

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 20 Fedora Update System 2022-09-22 00:38:13 UTC
FEDORA-EPEL-2022-63e9709ca3 has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.


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