gnucash-docs fails on 10.3.9 during destroot
gnucash-docs failed during destroot with the following error: for file in gnucash-guide-C.omf; do \ /usr/bin/install -c -m 644 "$file.out" "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_gnome_gnucash-docs/work/destroot/opt/local/share/omf/gnucash-docs/$file"; \ done make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. Error: Target com.apple.destroot returned: error copying "/opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/gnome/gnucash-docs/files/index.html" to "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_gnome_gnucash-docs/work/destroot//opt/local/share/doc/gnucash/index.html": file already exists Warning: the following items did not execute (for gnucash-docs): com.apple.activate com.apple.destroot com.apple.install Error: The following dependencies failed to build: gnucash-docs Error: Status 1 encountered during processing. -- Brett Warden
On 24.01.2007, at 17:37, Brett Warden wrote:
gnucash-docs failed during destroot with the following error: [...] Error: Target com.apple.destroot returned: error copying "/opt/local/var/db/dports/sources/ rsync.rsync.darwinports.org_dpupdate_dports/gnome/gnucash-docs/ files/index.html" to "/opt/local/var/db/dports/build/ _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_ dports_gnome_gnucash-docs/work/destroot//opt/local/share/doc/ gnucash/index.html": file already exists
Did you by any chance interrupt the installation process, then start it again? IOW, does this still happen if you do sudo port clean --all gnucash-docs sudo port install gnucash-docs (and let it run its course)? Regards, Marc
I tried clean --all several times, and it still fails. Sometimes I have trouble with the figures directory instead: Error: Target com.apple.destroot returned: error deleting "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_gnome_gnucash-docs/work/destroot//opt/local/share/doc/gnucash/C/gnucash-guide/figures": file already exists -- Brett Warden
The problem appears to be a manifestation of a TCL bug -- "file delete -force" has trouble recursively deleting directories under certain conditions (see http://aspn.activestate.com/ASPN/Mail/Message/Tcl-bugs/2838168 ). The following patch to the Portfile allows me at least to bypass that bug and get gnucash-docs built and installed: --- Portfile.orig Wed Nov 1 13:03:10 2006 +++ Portfile Fri Jan 26 10:57:03 2007 @@ -43,14 +43,17 @@ file copy ${portpath}/${filesdir}/index.html ${destpath}/${prefix}/share/doc/gnucash file copy ${worksrcpath}/guide/C/gnucash-guide ${destpath}/${prefix}/share/doc/gnucash/C - file delete -force ${destpath}/${prefix}/share/doc/gnucash/C/gnucash-guide/figures + # file delete -force ${destpath}/${prefix}/share/doc/gnucash/C/gnucash-guide/figures + system "rm -rf ${destpath}/${prefix}/share/doc/gnucash/C/gnucash-guide/figures" system "ln -sf ${prefix}/share/gnome/help/gnucash/C/figures ${destpath}/${prefix}/share/doc/gnucash/C/gnucash-guide/figures" file copy ${worksrcpath}/help/C/gnucash-help ${destpath}/${prefix}/share/doc/gnucash/C - file delete -force ${destpath}/${prefix}/share/doc/gnucash/C/gnucash-help/figures + #file delete -force ${destpath}/${prefix}/share/doc/gnucash/C/gnucash-help/figures + system "rm -rf ${destpath}/${prefix}/share/doc/gnucash/C/gnucash-help/figures" system "ln -sf ${prefix}/share/gnome/help/gnucash/C/figures ${destpath}/${prefix}/share/doc/gnucash/C/gnucash-help/figures" file copy ${worksrcpath}/help/de_DE/gnucash-help ${destpath}/${prefix}/share/doc/gnucash/de_DE - file delete -force ${destpath}/${prefix}/share/doc/gnucash/de_DE/gnucash-help/figures + #file delete -force ${destpath}/${prefix}/share/doc/gnucash/de_DE/gnucash-help/figures + system "rm -rf ${destpath}/${prefix}/share/doc/gnucash/de_DE/gnucash-help/figures" system "ln -sf ${prefix}/share/gnome/help/gnucash/de_DE/figures ${destpath}/${prefix}/share/doc/gnucash/de_DE/gnucash-help/figures" } Side question: Does anyone know why the German version of the documentation is also built by default? -- Brett Warden
On 26.01.2007, at 20:04, Brett Warden wrote:
The following patch to the Portfile allows me at least to bypass that bug and get gnucash-docs built and installed:
Thank you! I'm testing that right now and will commit it afterwards.
Side question: Does anyone know why the German version of the documentation is also built by default?
Because that's what you'd get by installing the original software: it comes with documentation in German and English. I did not see any reason to deviate from that. Regards, Marc
participants (2)
-
Brett Warden
-
Marc André Selig