Opened 11 months ago
Closed 11 months ago
#68925 closed defect (invalid)
while trying to upgrade openlap, got errors on ghostscript
Reported by: | rernenwein | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | ghostscript |
Description
imac-de-rene:~ root# port selfupdate
---> Updating MacPorts base sources using rsync MacPorts base version 2.8.1 installed, MacPorts base version 2.8.1 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version The ports tree has been updated. To upgrade your installed ports, you should run port upgrade outdated
imac-de-rene:~ root# port outdated
The following installed ports are outdated: nss 3.95_0 < 3.96_0 openldap 2.6.6_0 < 2.6.6_1
imac-de-rene:~ root# port upgrade outdated
---> Computing dependencies for nss ---> Fetching archive for nss ---> Attempting to fetch nss-3.96_0.darwin_22.x86_64.tbz2 from https://packages.macports.org/nss ---> Attempting to fetch nss-3.96_0.darwin_22.x86_64.tbz2 from https://mse.uk.packages.macports.org/nss ---> Attempting to fetch nss-3.96_0.darwin_22.x86_64.tbz2 from https://fra.de.packages.macports.org/nss ---> Fetching distfiles for nss ---> Attempting to fetch nss-3.96.tar.gz from https://distfiles.macports.org/nss ---> Verifying checksums for nss ---> Extracting nss ---> Configuring nss ---> Building nss ---> Staging nss into destroot ---> Installing nss @3.96_0 ---> Cleaning nss ---> Computing dependencies for nss ---> Deactivating nss @3.95_0 ---> Cleaning nss ---> Activating nss @3.96_0 ---> Cleaning nss ---> Computing dependencies for groff The following dependencies will be installed: ghostscript Continue? [Y/n]: ---> Activating ghostscript @10.02.1_1+x11 Error: Failed to activate ghostscript: Image error: /opt/local/share/fonts/Type1/gsfonts/fonts.dir already exists and does not belong to a registered port. Unable to activate port ghostscript. Use 'port -f activate ghostscript' to force the activation. while executing "throw registry::image-error $msg" ("foreach" body line 50) invoked from within "foreach file $imagefiles { set srcfile "${extracted_dir}${file}" # To be able to install links, we test if we can lst..." invoked from within "registry::write { foreach file $imagefiles { set srcfile "${extracted_dir}${file}" # To be able to instal..." Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_print_ghostscript/ghostscript/main.log for details. Error: Problem while installing groff Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Change History (6)
comment:1 Changed 11 months ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 11 months ago by rernenwein
i have no idea which tool did install /opt/local/share/fonts/Type1/gsfonts/fonts.dir
it is an old directory
imac-de-rene:bdd rene$ ll /opt/local/share/fonts/Type1/gsfonts/fonts.dir
-rw-r--r-- 1 root wheel 2 31 jul 2022 /opt/local/share/fonts/Type1/gsfonts/fonts.dir
and /opt/local/bin/gs does not exist
imac-de-rene:bdd rene$ port provides /opt/local/share/fonts/Type1/gsfonts/fonts.dir
/opt/local/share/fonts/Type1/gsfonts/fonts.dir is not provided by a MacPorts port.
imac-de-rene:bdd rene$ ll /opt/local/bin/gs
ls: /opt/local/bin/gs: No such file or directory
comment:3 Changed 11 months ago by rernenwein
since no tool owns /opt/local/share/fonts/Type1/gsfonts/fonts.dir
it is safe to remove the file and then try to launch port upgrade again ?
comment:4 Changed 11 months ago by ryandesign (Ryan Carsten Schmidt)
Sure, just be prepared that you might have other items in the MacPorts prefix that conflict with the ghostscript port or other ports that you would also have to remove.
comment:5 Changed 11 months ago by rernenwein
ok thanks finally i had to remove /opt/local/share/fonts/Type1/gsfonts/fonts.dir /opt/local/share/fonts/Type1/gsfonts/fonts.scale belonging to no ports and then port upgrade outdated did work
comment:6 Changed 11 months ago by ryandesign (Ryan Carsten Schmidt)
Port: | ghostscript added |
---|---|
Resolution: | → invalid |
Status: | new → closed |
Any idea where /opt/local/share/fonts/Type1/gsfonts/fonts.dir came from if not from a port?
Are any of the other files that the ghostscript port wants to install, such as /opt/local/bin/gs, also already present on your system?