Opened 10 years ago

Closed 10 years ago

#45661 closed defect (fixed)

latex2html @2008_4 build error: frames.sty: file already exists

Reported by: macports@… Owned by: kurthindenburg (Kurt Hindenburg)
Priority: Normal Milestone:
Component: ports Version: 2.3.2
Keywords: Cc:
Port: latex2html

Description (last modified by ryandesign (Ryan Carsten Schmidt))

There's a workaround at the bottom of this description.

I'm running on Mac OS 10.6.8 on an Intel Mac. XCode 3.2.6. MacPorts 2.3.2.

Sandy$ gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
...

Sandy$ sudo port upgrade latex2html
Password:
--->  Computing dependencies for latex2html
--->  Fetching archive for latex2html
--->  Attempting to fetch latex2html-2008_4.darwin_10.noarch.tbz2 from http://packages.macports.org/latex2html
--->  Attempting to fetch latex2html-2008_4.darwin_10.noarch.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/latex2html
--->  Attempting to fetch latex2html-2008_4.darwin_10.noarch.tbz2 from http://nue.de.packages.macports.org/macports/packages/latex2html
--->  Fetching distfiles for latex2html
--->  Verifying checksums for latex2html
--->  Extracting latex2html
--->  Applying patches to latex2html
--->  Configuring latex2html
--->  Building latex2html
--->  Staging latex2html into destroot
Error: org.macports.destroot for port latex2html returned: error copying "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_print_latex2html/latex2html/work/latex2html-2008/texinputs/frames.sty" to "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_print_latex2html/latex2html/work/destroot/opt/local/share/texmf/tex/latex/html/frames.sty": file already exists
Please see the log file for port latex2html for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_print_latex2html/latex2html/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Sandy$ 

The *.sty files in the source directory are identical to the ones in the destination directory.

If I delete the file in the destination directory and rerun the update, same error.

If I delete the file in the source directory, error on the next file in the list.

If I delete all files in the source directory, error: no files match the *.sty glob pattern.

In other words, running port once copies these files into the destination directory, then tries to copy them again (at least in my situation).

There is a recent change, r126928, which seems to be responsible for the extra copy. (Obviously the files were not being copied in some circumstances before. ) It adds some lines to the file

/opt/local/var/macports/sources/rsync.macports.org/release/ports/print/latex2html/Portfile

Workaround

Once you've tried to build (or install or upgrade) the port, the Portfile should be in the above location. Edit the file and change this line:

file copy ${file} ${texmfdir}

to this

file copy -force ${file} ${texmfdir}

and then re-run the install / build / upgrade.

(That really is a single dash in front of the word force, Portfiles use embedded TCL commands.)

Attachments (1)

main.log (101.3 KB) - added by macports@… 10 years ago.
detailed log file

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by macports@…

Attachment: main.log added

detailed log file

comment:1 Changed 10 years ago by macports@…

Cc: macports@… added

Cc Me!

comment:2 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: khindenburg macports@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to khindenburg@…

comment:3 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

Resolution: fixed
Status: newclosed

thanks r127552 - let us know if you still have issues.

Note: See TracTickets for help on using tickets.