Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1054317 - /etc/rpm/macros.texlive is broken
Summary: /etc/rpm/macros.texlive is broken
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: texlive
Version: 22
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-16 15:31 UTC by Jerry James
Modified: 2015-10-03 21:13 UTC (History)
4 users (show)

Fixed In Version: texlive-2014-13.20140525_r34255.fc23 texlive-2014-10.20140525_r34255.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-10-01 16:03:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jerry James 2014-01-16 15:31:12 UTC
Description of problem:
On Fedora 20, the contents of /etc/rpm/macros.texlive are:

# macros to keep trees in texlive consistent
%_texmf_main     /usr/share/texlive/texmf
%_texmf_vendor   /usr/share/texlive/texmf
/var/lib/texmf      /var/lib/texmf
%_texmf_conf     /usr/share/texlive/texmf-config

The last one is okay, but the first three are broken.  There is no /usr/share/texlive/texmf.  Certainly, no texlive package installs anything there.  The third line doesn't define a macro, apparently due to an unescaped macro in the spec file.  Also, the old %{_texmf} macro is entirely missing.  For compatibility reasons, that ought to be kept around.  (See bug 989703 for an example of this breaking a package.)

I think the contents of that file ought to be something like this:

# macros to keep trees in texlive consistent
%_texmf          /usr/share/texlive/texmf-local
%_texmf_main     /usr/share/texlive/texmf-dist
%_texmf_vendor   /usr/share/texlive/texmf-dist
%_texmf_var      /var/lib/texmf
%_texmf_conf     /usr/share/texlive/texmf-config

Although I freely admit that I don't know where 3rd party applications should install their style files.

Version-Release number of selected component (if applicable):
texlive-base-2013-4.20131226_r32488.fc20.noarch

How reproducible:
N/A

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Jerry James 2014-09-18 19:43:42 UTC
I'd like to draw some attention to this bug.  It should be easy to fix, and it is now affecting multiple packages that I maintain.  Also, the rpm macro file is now in the wrong place.  It should be installed to /usr/lib/rpm/macros.d instead.  Thank you!

I'm setting this bug for Rawhide, since the bug also exists there, as well as F-20 and F-21.

Comment 2 Jerry James 2014-10-30 17:14:11 UTC
Pleading once again for some attention to this bug.  It really should be very easy to fix.  I will fix it for you if you lack the time.  Just give me the go-ahead.

Comment 3 Jerry James 2014-12-18 15:29:03 UTC
Trying yet again to draw attention to this bug.  Please, please either fix it or tell me to go ahead with the fix myself.  Please.

Comment 4 Jindrich Novy 2014-12-19 09:20:24 UTC
Hello Jerry,

thanks for reporting, I'm currently looking at it. It is an easyfix. Currently I have rebuild problems of TeX Live against the new Poppler but I will keep you posted.

Thanks,
Jindrich

Comment 5 Jaroslav Reznik 2015-03-03 16:58:14 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 6 Orion Poplawski 2015-07-02 21:53:26 UTC
I'd like to jump on this to add some more macros:

%texlive_post \
mkdir -p /var/run/texlive \
touch /var/run/texlive/run-texhash \
touch /var/run/texlive/run-mtxrun \
:

%texlive_postun \
if [ $1 == 1 ]; then \
  mkdir -p /var/run/texlive \
  touch /var/run/run-texhash \
else \
  %{_bindir}/texhash 2> /dev/null \
fi \
:

%texlive_posttrans \
if [ -e /var/run/texlive/run-texhash ] && [ -e %{_bindir}/texhash ]; then %{_bindir}/texhash 2> /dev/null; rm -f /var/run/texlive/run-texhash; fi \
if [ -e /var/run/texlive/run-mtxrun ]; then export TEXMF=/usr/share/texlive/texmf-dist; export TEXMFCNF=/usr/share/texlive/texmf-dist/web2c; export TEXMFCACHE=/var/lib/texmf; %{_bindir}/mtxrun --generate &> /dev/null; rm -f /var/run/texlive/run-mtxrun; fi \
:

You'll need to muck with the \ escaping especially if you keep this being generated in the .spec rather than a separate macros.texlive file.

This would help with creating addon packages.

Comment 7 Fedora Admin XMLRPC Client 2015-08-11 05:32:35 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 8 Fedora Update System 2015-09-25 16:32:30 UTC
texlive-2014-13.20140525_r34255.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update texlive'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-16620

Comment 9 Fedora Update System 2015-09-27 00:38:20 UTC
texlive-2014-10.20140525_r34255.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update texlive'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-16621

Comment 10 Fedora Update System 2015-10-01 16:02:45 UTC
texlive-2014-13.20140525_r34255.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2015-10-03 21:12:58 UTC
texlive-2014-10.20140525_r34255.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, 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.