Opened 14 years ago

Closed 14 years ago

#23246 closed defect (fixed)

dcraw fails to activate

Reported by: normen.mueller@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: dcraw

Description

He,

I am trying to upgrade all my outdated but ufraw fails:

brain:~ root# port upgrade -u outdated
--->  Computing dependencies for ufraw
--->  Activating dcraw @8.99-20091225135800_1
Error: The following dependencies failed to build: dcraw
Error: Unable to upgrade port: 1
Before reporting a bug, first run the command again with the -d flag to get complete output.

The (very) long version is attached.

Attachments (1)

out.txt (306.4 KB) - added by normen.mueller@… 14 years ago.
output

Download all attachments as: .zip

Change History (10)

Changed 14 years ago by normen.mueller@…

Attachment: out.txt added

output

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

Keywords: ufraw dcraw removed
Owner: changed from macports-tickets@… to ryandesign@…
Port: dcraw added
Summary: ufraw fails on dependency with dcrawdcraw fails to activate

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

It was my intention to have already fixed that. Please selfupdate, clean and try again, and let me know if you still see the problem.

sudo port clean ufraw dcraw
sudo port selfupdate
sudo port -u upgrade outdated

comment:3 Changed 14 years ago by normen.mueller@…

Here is what I did:

$ sudo -i
Password:
brain:~ root# port clean ufraw dcraw
--->  Cleaning ufraw
--->  Cleaning dcraw
brain:~ root# port selfupdate
--->  Updating the ports tree
--->  Updating MacPorts base sources using rsync
MacPorts base version 1.8.2 installed,
MacPorts base version 1.8.2 downloaded.
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
brain:~ root# sudo port -u upgrade outdated
--->  Computing dependencies for p5-locale-gettext
--->  Fetching p5-locale-gettext
--->  Verifying checksum(s) for p5-locale-gettext
--->  Extracting p5-locale-gettext
--->  Applying patches to p5-locale-gettext
--->  Configuring p5-locale-gettext
--->  Building p5-locale-gettext
--->  Staging p5-locale-gettext into destroot
--->  Deactivating p5-locale-gettext @1.05_0
--->  Computing dependencies for p5-locale-gettext
--->  Installing p5-locale-gettext @1.05_2
--->  Activating p5-locale-gettext @1.05_2
--->  Cleaning p5-locale-gettext
--->  Uninstalling p5-locale-gettext @1.05_0
--->  Computing dependencies for glib2
--->  Fetching glib2
--->  Attempting to fetch glib-2.22.4.tar.bz2 from http://ftp.belnet.be/mirror/ftp.gnome.org/sources/glib/2.22/
--->  Verifying checksum(s) for glib2
--->  Extracting glib2
--->  Applying patches to glib2
--->  Configuring glib2
--->  Building glib2
--->  Staging glib2 into destroot
--->  Deactivating glib2 @2.22.3_0+darwin
--->  Computing dependencies for glib2
--->  Installing glib2 @2.22.4_0+darwin
--->  Activating glib2 @2.22.4_0+darwin
--->  Cleaning glib2
--->  Uninstalling glib2 @2.22.3_0+darwin
--->  Computing dependencies for zlib
--->  Fetching zlib
--->  Verifying checksum(s) for zlib
--->  Extracting zlib
--->  Applying patches to zlib
--->  Configuring zlib
--->  Building zlib
--->  Staging zlib into destroot
--->  Deactivating zlib @1.2.3_3
--->  Computing dependencies for zlib
--->  Installing zlib @1.2.3_4
--->  Activating zlib @1.2.3_4
--->  Cleaning zlib
--->  Uninstalling zlib @1.2.3_3
--->  Computing dependencies for ufraw
--->  Activating dcraw @8.99-20091225135800_1
Error: The following dependencies failed to build: dcraw
Error: Unable to upgrade port: 1
Before reporting a bug, first run the command again with the -d flag to get complete output.
brain:~ root# 

Unfortunately it still doesn't work :(

comment:4 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Sorry about that. Basically you need to deactivate ufraw, then activate dcraw, then upgrade ufraw. The dcraw port should have explained this, but since you built dcraw before I added those instructions, they're not being displayed to you now.

comment:5 in reply to:  4 Changed 14 years ago by normen.mueller@…

Replying to ryandesign@…:

Sorry about that. Basically you need to deactivate ufraw, then activate dcraw, then upgrade ufraw. The dcraw port should have explained this, but since you built dcraw before I added those instructions, they're not being displayed to you now.

Thanks for your help!!! But as I am not a pro in macports can you please give me the commands to execute? In particular for deactivating/ activating.

Cheers,

/nm

comment:6 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

sudo port deactivate ufraw
sudo port -d activate dcraw @8.99-20091225135800_1   
sudo port upgrade ufraw

The -d flag on the activate command should let us see what the problem is if it fails again.

comment:7 in reply to:  6 Changed 14 years ago by normen.mueller@…

Replying to ryandesign@…:

sudo port deactivate ufraw
sudo port -d activate dcraw @8.99-20091225135800_1   
sudo port upgrade ufraw

The -d flag on the activate command should let us see what the problem is if it fails again.

Thank it works now:

$ sudo -i
Password:
brain:~ root# port deactivate ufraw
--->  Deactivating ufraw
brain:~ root# port -d activate dcraw @8.99-20091225135800_1
--->  Activating dcraw @8.99-20091225135800_1
DEBUG: activating directory: /
DEBUG: activating directory: /opt
DEBUG: activating directory: /opt/local
DEBUG: activating directory: /opt/local/bin
DEBUG: activating file: /opt/local/bin/dcraw
DEBUG: activating directory: /opt/local/share
DEBUG: activating directory: /opt/local/share/locale
DEBUG: activating directory: /opt/local/share/locale/ca
DEBUG: activating directory: /opt/local/share/locale/ca/LC_MESSAGES
DEBUG: activating file: /opt/local/share/locale/ca/LC_MESSAGES/dcraw.mo
DEBUG: activating directory: /opt/local/share/locale/cs
DEBUG: activating directory: /opt/local/share/locale/cs/LC_MESSAGES
DEBUG: activating file: /opt/local/share/locale/cs/LC_MESSAGES/dcraw.mo
DEBUG: activating directory: /opt/local/share/locale/de
DEBUG: activating directory: /opt/local/share/locale/de/LC_MESSAGES
DEBUG: activating file: /opt/local/share/locale/de/LC_MESSAGES/dcraw.mo
DEBUG: activating directory: /opt/local/share/locale/eo
DEBUG: activating directory: /opt/local/share/locale/eo/LC_MESSAGES
DEBUG: activating file: /opt/local/share/locale/eo/LC_MESSAGES/dcraw.mo
DEBUG: activating directory: /opt/local/share/locale/es
DEBUG: activating directory: /opt/local/share/locale/es/LC_MESSAGES
DEBUG: activating file: /opt/local/share/locale/es/LC_MESSAGES/dcraw.mo
DEBUG: activating directory: /opt/local/share/locale/fr
DEBUG: activating directory: /opt/local/share/locale/fr/LC_MESSAGES
DEBUG: activating file: /opt/local/share/locale/fr/LC_MESSAGES/dcraw.mo
DEBUG: activating directory: /opt/local/share/locale/hu
DEBUG: activating directory: /opt/local/share/locale/hu/LC_MESSAGES
DEBUG: activating file: /opt/local/share/locale/hu/LC_MESSAGES/dcraw.mo
DEBUG: activating directory: /opt/local/share/locale/it
DEBUG: activating directory: /opt/local/share/locale/it/LC_MESSAGES
DEBUG: activating file: /opt/local/share/locale/it/LC_MESSAGES/dcraw.mo
DEBUG: activating directory: /opt/local/share/locale/nl
DEBUG: activating directory: /opt/local/share/locale/nl/LC_MESSAGES
DEBUG: activating file: /opt/local/share/locale/nl/LC_MESSAGES/dcraw.mo
DEBUG: activating directory: /opt/local/share/locale/pl
DEBUG: activating directory: /opt/local/share/locale/pl/LC_MESSAGES
DEBUG: activating file: /opt/local/share/locale/pl/LC_MESSAGES/dcraw.mo
DEBUG: activating directory: /opt/local/share/locale/pt
DEBUG: activating directory: /opt/local/share/locale/pt/LC_MESSAGES
DEBUG: activating file: /opt/local/share/locale/pt/LC_MESSAGES/dcraw.mo
DEBUG: activating directory: /opt/local/share/locale/ru
DEBUG: activating directory: /opt/local/share/locale/ru/LC_MESSAGES
DEBUG: activating file: /opt/local/share/locale/ru/LC_MESSAGES/dcraw.mo
DEBUG: activating directory: /opt/local/share/locale/sv
DEBUG: activating directory: /opt/local/share/locale/sv/LC_MESSAGES
DEBUG: activating file: /opt/local/share/locale/sv/LC_MESSAGES/dcraw.mo
DEBUG: activating directory: /opt/local/share/locale/zh_CN
DEBUG: activating directory: /opt/local/share/locale/zh_CN/LC_MESSAGES
DEBUG: activating file: /opt/local/share/locale/zh_CN/LC_MESSAGES/dcraw.mo
DEBUG: activating directory: /opt/local/share/locale/zh_TW
DEBUG: activating directory: /opt/local/share/locale/zh_TW/LC_MESSAGES
DEBUG: activating file: /opt/local/share/locale/zh_TW/LC_MESSAGES/dcraw.mo
DEBUG: activating directory: /opt/local/share/man
DEBUG: activating directory: /opt/local/share/man/ca
DEBUG: activating directory: /opt/local/share/man/ca/man1
DEBUG: activating file: /opt/local/share/man/ca/man1/dcraw.1
DEBUG: activating directory: /opt/local/share/man/cs
DEBUG: activating directory: /opt/local/share/man/cs/man1
DEBUG: activating file: /opt/local/share/man/cs/man1/dcraw.1
DEBUG: activating directory: /opt/local/share/man/de
DEBUG: activating directory: /opt/local/share/man/de/man1
DEBUG: activating file: /opt/local/share/man/de/man1/dcraw.1
DEBUG: activating directory: /opt/local/share/man/eo
DEBUG: activating directory: /opt/local/share/man/eo/man1
DEBUG: activating file: /opt/local/share/man/eo/man1/dcraw.1
DEBUG: activating directory: /opt/local/share/man/es
DEBUG: activating directory: /opt/local/share/man/es/man1
DEBUG: activating file: /opt/local/share/man/es/man1/dcraw.1
DEBUG: activating directory: /opt/local/share/man/fr
DEBUG: activating directory: /opt/local/share/man/fr/man1
DEBUG: activating file: /opt/local/share/man/fr/man1/dcraw.1
DEBUG: activating directory: /opt/local/share/man/hu
DEBUG: activating directory: /opt/local/share/man/hu/man1
DEBUG: activating file: /opt/local/share/man/hu/man1/dcraw.1
DEBUG: activating directory: /opt/local/share/man/it
DEBUG: activating directory: /opt/local/share/man/it/man1
DEBUG: activating file: /opt/local/share/man/it/man1/dcraw.1
DEBUG: activating directory: /opt/local/share/man/man1
DEBUG: activating file: /opt/local/share/man/man1/dcraw.1.gz
DEBUG: activating directory: /opt/local/share/man/pl
DEBUG: activating directory: /opt/local/share/man/pl/man1
DEBUG: activating file: /opt/local/share/man/pl/man1/dcraw.1
DEBUG: activating directory: /opt/local/share/man/pt
DEBUG: activating directory: /opt/local/share/man/pt/man1
DEBUG: activating file: /opt/local/share/man/pt/man1/dcraw.1
DEBUG: activating directory: /opt/local/share/man/ru
DEBUG: activating directory: /opt/local/share/man/ru/man1
DEBUG: activating file: /opt/local/share/man/ru/man1/dcraw.1
DEBUG: activating directory: /opt/local/share/man/sv
DEBUG: activating directory: /opt/local/share/man/sv/man1
DEBUG: activating file: /opt/local/share/man/sv/man1/dcraw.1
DEBUG: activating directory: /opt/local/share/man/zh_CN
DEBUG: activating directory: /opt/local/share/man/zh_CN/man1
DEBUG: activating file: /opt/local/share/man/zh_CN/man1/dcraw.1
DEBUG: activating directory: /opt/local/share/man/zh_TW
DEBUG: activating directory: /opt/local/share/man/zh_TW/man1
DEBUG: activating file: /opt/local/share/man/zh_TW/man1/dcraw.1
DEBUG: Adding file to file_map: /opt/local/bin/dcraw for: dcraw
DEBUG: Adding file to file_map: /opt/local/share/locale/ca/LC_MESSAGES/dcraw.mo for: dcraw
DEBUG: Adding file to file_map: /opt/local/share/locale/cs/LC_MESSAGES/dcraw.mo for: dcraw
DEBUG: Adding file to file_map: /opt/local/share/locale/de/LC_MESSAGES/dcraw.mo for: dcraw
DEBUG: Adding file to file_map: /opt/local/share/locale/eo/LC_MESSAGES/dcraw.mo for: dcraw
DEBUG: Adding file to file_map: /opt/local/share/locale/es/LC_MESSAGES/dcraw.mo for: dcraw
DEBUG: Adding file to file_map: /opt/local/share/locale/fr/LC_MESSAGES/dcraw.mo for: dcraw
DEBUG: Adding file to file_map: /opt/local/share/locale/hu/LC_MESSAGES/dcraw.mo for: dcraw
DEBUG: Adding file to file_map: /opt/local/share/locale/it/LC_MESSAGES/dcraw.mo for: dcraw
DEBUG: Adding file to file_map: /opt/local/share/locale/nl/LC_MESSAGES/dcraw.mo for: dcraw
DEBUG: Adding file to file_map: /opt/local/share/locale/pl/LC_MESSAGES/dcraw.mo for: dcraw
DEBUG: Adding file to file_map: /opt/local/share/locale/pt/LC_MESSAGES/dcraw.mo for: dcraw
DEBUG: Adding file to file_map: /opt/local/share/locale/ru/LC_MESSAGES/dcraw.mo for: dcraw
DEBUG: Adding file to file_map: /opt/local/share/locale/sv/LC_MESSAGES/dcraw.mo for: dcraw
DEBUG: Adding file to file_map: /opt/local/share/locale/zh_CN/LC_MESSAGES/dcraw.mo for: dcraw
DEBUG: Adding file to file_map: /opt/local/share/locale/zh_TW/LC_MESSAGES/dcraw.mo for: dcraw
DEBUG: Adding file to file_map: /opt/local/share/man/ca/man1/dcraw.1 for: dcraw
DEBUG: Adding file to file_map: /opt/local/share/man/cs/man1/dcraw.1 for: dcraw
DEBUG: Adding file to file_map: /opt/local/share/man/de/man1/dcraw.1 for: dcraw
DEBUG: Adding file to file_map: /opt/local/share/man/eo/man1/dcraw.1 for: dcraw
DEBUG: Adding file to file_map: /opt/local/share/man/es/man1/dcraw.1 for: dcraw
DEBUG: Adding file to file_map: /opt/local/share/man/fr/man1/dcraw.1 for: dcraw
DEBUG: Adding file to file_map: /opt/local/share/man/hu/man1/dcraw.1 for: dcraw
DEBUG: Adding file to file_map: /opt/local/share/man/it/man1/dcraw.1 for: dcraw
DEBUG: Adding file to file_map: /opt/local/share/man/man1/dcraw.1.gz for: dcraw
DEBUG: Adding file to file_map: /opt/local/share/man/pl/man1/dcraw.1 for: dcraw
DEBUG: Adding file to file_map: /opt/local/share/man/pt/man1/dcraw.1 for: dcraw
DEBUG: Adding file to file_map: /opt/local/share/man/ru/man1/dcraw.1 for: dcraw
DEBUG: Adding file to file_map: /opt/local/share/man/sv/man1/dcraw.1 for: dcraw
DEBUG: Adding file to file_map: /opt/local/share/man/zh_CN/man1/dcraw.1 for: dcraw
DEBUG: Adding file to file_map: /opt/local/share/man/zh_TW/man1/dcraw.1 for: dcraw
brain:~ root# port upgrade ufraw
--->  Computing dependencies for ufraw
--->  Fetching ufraw
--->  Attempting to fetch ufraw-0.16.tar.gz from http://mesh.dl.sourceforge.net/ufraw
--->  Verifying checksum(s) for ufraw
--->  Extracting ufraw
--->  Configuring ufraw
--->  Building ufraw
--->  Staging ufraw into destroot
--->  Computing dependencies for ufraw
--->  Installing ufraw @0.16_0
--->  Activating ufraw @0.16_0
--->  Cleaning ufraw
brain:~ root# 

comment:8 Changed 14 years ago by Russell-Jones-OxPhys (Russell Jones)

Why does this need to be done? It seems very strange.

comment:9 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

ufraw used to provide a copy of dcraw. Now it doesn't, and instead depends on the dcraw port. Thus MacPorts will try to build and install dcraw before trying to upgrade ufraw. But this will fail, because the dcraw program installed by the ufraw port is in the way of the dcraw program the dcraw port is trying to install. I fixed it so that the dcraw port will now alert you if you have a dcraw program installed by an older version of the ufraw port, and advise you to deactivate the old ufraw port first. Since you had built dcraw and run into this problem before I added those instructions to the dcraw port, you did not see the instructions.

Note: See TracTickets for help on using tickets.