Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Apr 2016 07:15:41 -0700
From:      Manfred Antar <null@pozo.com>
To:        FreeBSD Ports <freebsd-ports@freebsd.org>
Cc:        knu@idaemons.org
Subject:   Weird portupgrade error on current amd64
Message-ID:  <5530D6B5-0380-47DA-8A01-65979D87D4CF@pozo.com>

next in thread | raw e-mail | index | archive | help
When using portupgrade on current it fails when upgrading libraries.
I can reproduce this on 3 different amd64 machines.

Example:

portupgrade -vf libnice ends like this:

--->  Build of net-im/libnice ended at: Tue, 26 Apr 2016 07:01:15 -0700 (co=
nsumed 00:00:10)
--->  Uninstallation of libnice-0.1.13 started at: Tue, 26 Apr 2016 07:01:1=
5 -0700
--->  Fixing up dependencies before creating a package
/usr/local/lib/ruby/site_ruby/2.2/pkgtools/pkgtools.rb:1180: warning: Insec=
ure world writable dir /tmp/. in PATH, mode 041777
--->  Backing up the old version
--->  Uninstalling the old version
/usr/local/lib/ruby/site_ruby/2.2/pkgtools/pkgtools.rb:1180: warning: Insec=
ure world writable dir /tmp/. in PATH, mode 041777
[Reading data from pkg(8) ... - 1593 packages found - done]
--->  Deinstalling 'libnice-0.1.13'
[Reading data from pkg(8) ... - 1593 packages found - done]
** Listing the failed packages (-:ignored / *:skipped / !:failed)
	! libnice-0.1.13	(Broken pipe)
--->  Uninstallation of libnice-0.1.13 ended at: Tue, 26 Apr 2016 07:01:16 =
-0700 (consumed 00:00:01)
--->  Reinstallation of net-im/libnice ended at: Tue, 26 Apr 2016 07:01:16 =
-0700 (consumed 00:00:11)
--->  ** Upgrade tasks 1: 0 done, 0 ignored, 0 skipped and 1 failed
--->  Listing the results (+:done / -:ignored / *:skipped / !:failed)
	! net-im/libnice (libnice-0.1.13)	(uninstall error)
--->  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
--->  Session ended at: Tue, 26 Apr 2016 07:01:16 -0700 (consumed 00:00:12)

The error is (Broken pipe)

portmaster works fine and portupgrade on non library ports work fine, examp=
le portupgrade -vf bash-static:

-->  Installing the new version via the port
=3D=3D=3D>  Installing for bash-static-4.3.42_1
=3D=3D=3D>   bash-static-4.3.42_1 depends on executable: indexinfo - found
=3D=3D=3D>   bash-static-4.3.42_1 depends on shared library: libintl.so - f=
ound (/usr/local/lib/libintl.so)
=3D=3D=3D>   Registering installation for bash-static-4.3.42_1
Installing bash-static-4.3.42_1...
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

bash requires fdescfs(5) mounted on /dev/fd

If you have not done it yet, please do the following:

	mount -t fdescfs fdesc /dev/fd

To make it permanent, you need the following lines in /etc/fstab:

	fdesc	/dev/fd		fdescfs		rw	0	0

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

=3D=3D=3D>  Cleaning for bash-static-4.3.42_1
--->  Removing temporary files and directories
--->  Removing old package'
--->  Installation of shells/bash-static ended at: Tue, 26 Apr 2016 07:08:0=
0 -0700 (consumed 00:00:01)
--->  Cleaning out obsolete shared libraries
/usr/local/lib/ruby/site_ruby/2.2/pkgtools/pkgtools.rb:1180: warning: Insec=
ure world writable dir /tmp/. in PATH, mode 041777
--->  Reinstallation of shells/bash-static ended at: Tue, 26 Apr 2016 07:08=
:05 -0700 (consumed 00:00:38)
--->  ** Upgrade tasks 1: 1 done, 0 ignored, 0 skipped and 0 failed
/usr/local/lib/ruby/site_ruby/2.2/pkgtools/pkgtools.rb:1180: warning: Insec=
ure world writable dir /tmp/. in PATH, mode 041777
--->  Listing the results (+:done / -:ignored / *:skipped / !:failed)
	+ shells/bash-static (bash-static-4.3.42_1 -> bash-static-4.3.42_1)
--->  Packages processed: 1 done, 0 ignored, 0 skipped and 0 failed
--->  Session ended at: Tue, 26 Apr 2016 07:08:06 -0700 (consumed 00:00:39)

This started happening sometime in the last 2 weeks, not sure when.
It=E2=80=99s happening on all 3 machines Dell 2950 server, HP-SFF, and a Vi=
rtualBox running on OSX all amd64
I noticed it when I did a portupgrade -av because 10 or so ports were outda=
ted and all the library ones failed.

Not sure how to debug it as gdb doesn=E2=80=99t work with /usr/local/sbin/p=
ortupgrade.

Thanks
Manfred







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5530D6B5-0380-47DA-8A01-65979D87D4CF>