Opened 14 years ago

Closed 14 years ago

#25761 closed defect (fixed)

texinfo port does not install texinfo.tex

Reported by: bechir.zalila@… Owned by: vinc17@…
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: drkp (Dan Ports), MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), dershow
Port: texinfo

Description

When installing the texinfo port (@4.13), the tex files which are necessary for any further compilation of texi sources are not installed.

Technically, the make install-tex target is not run.

I attempted to add the following lines to the texinfo Portfile:

destroot.env-append TEXMF=${prefix}/share/texmf-texlive destroot.target-append install-tex

However, at the install and activate phases, the addrd texfiles don't seem to be copied.

A temporary workaround to this bug is to do the following:

1 - Install texinfo without cleaning:

port -k install texinfo

2 - Execute the install-tex target manually:

cd /opt/local/var/macports/build/*_texinfo/work/texinfo-*/ sudo make TEXMF=/opt/local/share/texmf-texlive install-tex

3 - Refresh the texmf ls-R database:

sudo mktexlsr

Attachments (2)

Portfile.diff (915 bytes) - added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) 14 years ago.
main.log (33.8 KB) - added by dershow 14 years ago.
Failed upgrade log

Download all attachments as: .zip

Change History (12)

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Cc: bechir.zalila@… removed
Keywords: texinfo.tex removed
Owner: changed from macports-tickets@… to vinc17@…
Priority: HighNormal

Please remember to cc the maintainer, and note that you do not need to be in cc when you are the reporter. As per the ticket guidelines, the High priority is reserved for the use of MacPorts team members.

comment:2 Changed 14 years ago by drkp (Dan Ports)

Cc: dports@… added

Cc Me!

comment:3 Changed 14 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Cc: mcalhoun@… added

Cc Me!

Changed 14 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Attachment: Portfile.diff added

comment:4 Changed 14 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Attached is a possible fix for the problem.

comment:5 in reply to:  4 Changed 14 years ago by drkp (Dan Ports)

Replying to mcalhoun@…:

Attached is a possible fix for the problem.

Just chiming in to point out that you're correct in using texmf instead of texmf-texlive; texmf-texlive and texmf-texlive-dist should be reserved for the texlive installation.

texmf is currently the place to put these things although it might change to something like texmf-ports in the future.

comment:6 Changed 14 years ago by vinc17@…

Resolution: fixed
Status: newclosed

Patch applied in r70046. Thanks.

comment:7 Changed 14 years ago by dershow

Resolution: fixed
Status: closedreopened

Upgrading from 4.13_0 to 4.13_1 now gives an error, although it does seem to install. It looks related to the above fix, so I am including it in this ticket.

--->  Computing dependencies for texinfo
--->  Fetching texinfo
--->  Attempting to fetch texinfo-4.13.tar.lzma from http://distfiles.macports.org/texinfo
--->  Verifying checksum(s) for texinfo
--->  Extracting texinfo
--->  Configuring texinfo
--->  Building texinfo
--->  Staging texinfo into destroot
--->  Computing dependencies for texinfo
--->  Installing texinfo @4.13_1
--->  Deactivating texinfo @4.13_0
--->  Activating texinfo @4.13_1
Error: Target org.macports.activate returned: shell command failed
Log for texinfo is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_texinfo/main.log
dersh$ edit /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_texinfo/main.log

But here is what it shows after:

 port outdated
No installed ports are outdated.
dersh$ port installed texinfo
The following ports are currently installed:
  texinfo @4.13_0
  texinfo @4.13_1 (active)

I have attached the log file as well.

Changed 14 years ago by dershow

Attachment: main.log added

Failed upgrade log

comment:8 Changed 14 years ago by dershow

Cc: dersh@… added

Cc Me!

comment:9 Changed 14 years ago by vinc17@…

I was thinking about adding a variant that depends on texlive-bin, but IMHO, this is not necessary and not a good solution (people who need the variant may forget to specify it, and using it by default would imply huge dependencies by default): the failure occurs only at the post-activate stage, which is useless if texlive-bin isn't installed anyway. If texlive-bin is installed later, mktexlsr is run at this time, so that everything is fine. So, I think the solution would be to execute mktexlsr only if it exists (the purpose of the test would just be to avoid a spurious error message).

comment:10 Changed 14 years ago by vinc17@…

Resolution: fixed
Status: reopenedclosed

The problem is fixed in r70065.

Note: I've increased the revision to force those who have revision 1 to upgrade to a clean version. The only problem for those who have revision 1 is that they may get the same error when deactivating it (e.g. in the upgrade to revision 2). This error can safely be ignored and the upgrade should succeed.

Note: See TracTickets for help on using tickets.