New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #17293 (closed defect: worksforme)

Opened 3 years ago

Last modified 3 years ago

ncursesw-5.7.0 Activation defect

Reported by: spam@… Owned by: imajes@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: ncurses, ncursesw, activate Cc:
Port: ncursesw

Description (last modified by blb@…) (diff)

root@blabli ~ $ port upgrade ncursesw
--->  Activating ncursesw 5.7_0
Error: Activating ncursesw 5.7_0 failed: Image error: /opt/local/share/terminfo/a/aa4080 already exists and does not belong to a registered port.  Unable to activate port ncursesw.

When upgrading all outdated packages, an error occurs with ncursesw activation. ncurses is not compiling through afterwards because of the depencency on ncursesw... and any other package that dependes on ncurses i guess!

Deleting the aa4080 file (or any other file that is shown in the error description) does not help.

Change History

follow-up: ↓ 5   Changed 3 years ago by blb@…

  • owner changed from macports-tickets@… to imajes@…
  • cc imajes@… removed
  • description modified (diff)

/opt/local/share/terminfo/a/aa4080 should be owned by the ncursesw port, so I'm not sure why port said the file didn't belong to a port. To fix this just force the ncursesw activation with sudo port -f activate ncursesw @5.7_0.

follow-ups: ↓ 3 ↓ 4   Changed 3 years ago by jmr@…

Is this on a case-sensitive filesystem by any chance? #14123 may be related.

in reply to: ↑ 2   Changed 3 years ago by spam@…

Replying to jmr@…: You are right! This is on a case-sensitive filesystem. In the rush, i could not find any function that is comparing the case of strings in the ncurses src!

in reply to: ↑ 2   Changed 3 years ago by face@…

Replying to jmr@…:

Is this on a case-sensitive filesystem by any chance? #14123 may be related. Activating ncursesw @5.7_0

Error: Activating ncursesw @5.7_0 failed: Image error: /opt/local/lib/terminfo already exists and does not belong to a registered port. Unable to activate port ncursesw.

This is not on a case-sensitive filesystem. leopard. macports from trunk.

in reply to: ↑ 1   Changed 3 years ago by spam@…

Replying to blb@…:

/opt/local/share/terminfo/a/aa4080 should be owned by the ncursesw port, so I'm not sure why port said the file didn't belong to a port. To fix this just force the ncursesw activation with sudo port -f activate ncursesw @5.7_0.

Forgot co comment this...

Running sudo port -f activate ncursesw @5.7_0 did the trick but threw some errors because some of the files did already exist.

Thank you

  Changed 3 years ago by bitmail@…

Same error here, FS is journaled and case sensitive on OSX 10.5.5 PPC, MacPorts is up to date (1.6.0). Error message during update:

---> Fetching ncursesw
---> Attempting to fetch ncurses-5.7.tar.gz from  http://ftp.gnu.org/gnu/ncurses[[BR]] ---> Verifying checksum(s) for ncursesw
---> Extracting ncursesw
---> Configuring ncursesw
---> Building ncursesw with target all
---> Staging ncursesw into destroot
---> Deactivating ncursesw 5.6_1
---> Installing ncursesw 5.7_0
---> Activating ncursesw 5.7_0
Error: Target org.macports.activate returned: Image error: /opt/local/share/term info/2/2621a already exists and does not belong to a registered port. Unable to activate port ncursesw.

Using the forced activation workaround "sudo port -f activate ncursesw @5.7_0" resulted in a legion of error messages:

---> Activating ncursesw 5.7_0
Warning: File /opt/local/share/terminfo/2/2621a already exists. Moving to: /opt/local/share/terminfo/2/2621a.mp_1228133645.
Warning: File /opt/local/share/terminfo/a/a210 already exists. Moving to: /opt/local/share/terminfo/a/a210.mp_1228133645.
Warning: File /opt/local/share/terminfo/a/a80 already exists. Moving to: /opt/local/share/terminfo/a/a80.mp_1228133645.
...
Warning: File /opt/local/share/terminfo/x/xterms already exists. Moving to: /opt/local/share/terminfo/x/xterms.mp_1228133650.
Warning: File /opt/local/share/terminfo/x/xterms-sun already exists. Moving to: /opt/local/share/terminfo/x/xterms-sun.mp_1228133650.
Warning: File /opt/local/share/terminfo/x/xwsh already exists. Moving to: /opt/local/share/terminfo/x/xwsh.mp_1228133650.

Consecutive upgrades or usage of ports depending on ncursesw seem to work.

Thanks for the hint!

  Changed 3 years ago by anonymous

  • milestone Port Bugs deleted

Milestone Port Bugs deleted

  Changed 3 years ago by toby@…

  • status changed from new to closed
  • resolution set to worksforme

No clear indication of a bug here.

Note: See TracTickets for help on using tickets.