Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#17295 closed defect (fixed)

Upgrading ncurses hangs if ncursesw not upgraded before

Reported by: Damien.Pollet@… Owned by: imajes@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: ncurses

Description

I don't know if this is normal, but a message before staging would be nice. It doesn't seem normal that a process would take 100% CPU for several hours without any feedback… with -v it hangs after this :

Building terminfo database, please wait... Running tic to install /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncurses/work/destroot/opt/local/share/terminfo ...

You may see messages regarding extended capabilities, e.g., AX. These are extended terminal capabilities which are compiled using

tic -x

If you have ncurses 4.2 applications, you should read the INSTALL document, and install the terminfo without the -x option.

In the end I killed it, noticed that port hadn't upgraded its dependancy ncursesw first, upgraded that explicitely, retried, and it was done in minutes. Missing dependancy ?

Change History (17)

comment:1 Changed 15 years ago by blb@…

Owner: changed from macports-tickets@… to imajes@…

What command did you use initially to upgrade ncurses? ncursesw is a dependency of ncurses...

comment:2 Changed 15 years ago by Damien.Pollet@…

Ohh right, stupid me… I've been using this for ages:

sudo port -fun upgrade outdated

I guess -n is a bad idea actually… I think I used it like that because else it would recompile all deps, outdated or not… was that even true at some point?

comment:3 Changed 15 years ago by jmroot (Joshua Root)

The need for -f is a bug (#11501), and it will be fixed in 1.7. Then you will be able to just use -u and it will work as expected. For now I'd actually recommend doing it in two steps, sudo port upgrade outdated and then sudo port -f uninstall inactive.

comment:4 Changed 15 years ago by Damien.Pollet@…

Cool, thanks!

comment:5 Changed 15 years ago by north@…

I ran into the same problem using -du upgrade outdated. Eliminating the -u seems to have done the job, so I'll proceed with the two-part approach suggested above.

Weirdly, -du has generally worked before. Thanks for the heads-up!

comment:6 Changed 15 years ago by bazzoola@…

I am seeing the same problem I ended up deleting the port and trying port install ncurses but that doesn't work either

It still gets stuck at

** Building terminfo database, please wait...
Running tic to install /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncurses/work/destroot/opt/local/share/terminfo ...

	You may see messages regarding extended capabilities, e.g., AX.
	These are extended terminal capabilities which are compiled
	using
		tic -x
	If you have ncurses 4.2 applications, you should read the INSTALL
	document, and install the terminfo without the -x option.

any ideas how to fix this?

comment:7 Changed 15 years ago by tenomoto (Takeshi Enomoto)

I experienced the same when I set universal_archs to x86_64 or PPC64 in macports.conf and build with +universal on an Intel Mac with Core 2 Duo (MacBook Pro, iMac, and Mac Pro) and on a Power Mac G5. It built without any problems with i386 or ppc. This is an obstacle using 64-bit with MacPorts.

comment:8 Changed 15 years ago by TimothyC.Lee@…

I found that /opt/local/bin/tic did not exist on my install and thats why it was failing. Does ncursesw_5.7.0 not install tic for certain platforms?

comment:9 Changed 15 years ago by cerieljacobs@…

Cc: cerieljacobs@… added

Cc Me!

comment:10 Changed 15 years ago by cerieljacobs@…

In my case there is also no /opt/local/bin/tic ; This is what there is: $ ls -l /opt/local/bin total 1096 -r-xr-xr-x 1 root admin 73492 Dec 14 03:42 daemondo -rwxr-xr-x 2 root admin 105816 Feb 17 01:00 gperf lrwxr-xr-x 1 root admin 22 Feb 17 13:02 i686-apple-darwin9-captoinfo -> i686-apple-darwin9-tic -rwxr-xr-x 2 root admin 8640 Feb 17 13:01 i686-apple-darwin9-clear -rwxr-xr-x 2 root admin 54528 Feb 17 13:01 i686-apple-darwin9-infocmp lrwxr-xr-x 1 root admin 22 Feb 17 13:02 i686-apple-darwin9-infotocap -> i686-apple-darwin9-tic lrwxr-xr-x 1 root admin 23 Feb 17 13:02 i686-apple-darwin9-reset -> i686-apple-darwin9-tset -rwxr-xr-x 2 root admin 54848 Feb 17 13:01 i686-apple-darwin9-tic -rwxr-xr-x 2 root admin 14184 Feb 17 13:01 i686-apple-darwin9-toe -rwxr-xr-x 2 root admin 14032 Feb 17 13:01 i686-apple-darwin9-tput -rwxr-xr-x 2 root admin 19072 Feb 17 13:01 i686-apple-darwin9-tset -rwxr-xr-x 2 root admin 27960 Feb 17 01:01 iconv -rwxr-xr-x 2 root admin 4985 Feb 17 13:01 ncursesw5-config -r-xr-xr-x 1 root admin 106140 Dec 14 03:42 port lrwxr-xr-x 1 root admin 4 Feb 14 01:42 portf -> port -r-xr-xr-x 1 root admin 4497 Dec 14 03:42 portindex -r-xr-xr-x 1 root admin 2557 Dec 14 03:42 portmirror -rwxr-xr-x 2 root admin 24936 Feb 17 00:59 xmlwf

comment:11 Changed 15 years ago by cerieljacobs@…

And now readable:

$ ls -l  /opt/local/bin   
total 1096
-r-xr-xr-x  1 root  admin   73492 Dec 14 03:42 daemondo
-rwxr-xr-x  2 root  admin  105816 Feb 17 01:00 gperf
lrwxr-xr-x  1 root  admin      22 Feb 17 13:02 i686-apple-darwin9-captoinfo -> i686-apple-darwin9-tic
-rwxr-xr-x  2 root  admin    8640 Feb 17 13:01 i686-apple-darwin9-clear
-rwxr-xr-x  2 root  admin   54528 Feb 17 13:01 i686-apple-darwin9-infocmp
lrwxr-xr-x  1 root  admin      22 Feb 17 13:02 i686-apple-darwin9-infotocap -> i686-apple-darwin9-tic
lrwxr-xr-x  1 root  admin      23 Feb 17 13:02 i686-apple-darwin9-reset -> i686-apple-darwin9-tset
-rwxr-xr-x  2 root  admin   54848 Feb 17 13:01 i686-apple-darwin9-tic
-rwxr-xr-x  2 root  admin   14184 Feb 17 13:01 i686-apple-darwin9-toe
-rwxr-xr-x  2 root  admin   14032 Feb 17 13:01 i686-apple-darwin9-tput
-rwxr-xr-x  2 root  admin   19072 Feb 17 13:01 i686-apple-darwin9-tset
-rwxr-xr-x  2 root  admin   27960 Feb 17 01:01 iconv
-rwxr-xr-x  2 root  admin    4985 Feb 17 13:01 ncursesw5-config
-r-xr-xr-x  1 root  admin  106140 Dec 14 03:42 port
lrwxr-xr-x  1 root  admin       4 Feb 14 01:42 portf -> port
-r-xr-xr-x  1 root  admin    4497 Dec 14 03:42 portindex
-r-xr-xr-x  1 root  admin    2557 Dec 14 03:42 portmirror
-rwxr-xr-x  2 root  admin   24936 Feb 17 00:59 xmlwf

comment:12 Changed 15 years ago by cerieljacobs@…

But there is a run_tic.sh @ /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncurses/work/x86_64/misc

comment:13 Changed 15 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Cc: mcalhoun@… added

Cc Me!

comment:14 Changed 15 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

The initial problem seems to have been fixed by a different upgrade path.
The more recent problem should have been fixed by r46928.

Can this ticket therefore be closed?

comment:15 Changed 15 years ago by cerieljacobs@…

Cc: cerieljacobs@… removed

Cc Me!

comment:16 Changed 15 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: newclosed

comment:17 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.