Turbulence using portmaster to update linux_base-c6-6.6 to linux_base-c6-6.6_1

David Wolfskill david at catwhisker.org
Wed Dec 3 15:16:26 UTC 2014


I managed to get the update of linux_base-c6-6.6 to linux_base-c6-6.6_1
done, but it involved a couple of failed attempts along the way,
and it looks to me as if portmaster didn't get the sequence of
operations quite correct the first time through... and that the
success appears to have been at least somewhat accidental (on my part).

So I'm posting this in the hope that it will provide help to some folks.

This morning, after updating my laptop to

FreeBSD g1-253.catwhisker.org 10.1-STABLE FreeBSD 10.1-STABLE #1405  r275456M/275456:1001503: Wed Dec  3 04:49:00 PST 2014     root at g1-253.catwhisker.org:/common/S1/obj/usr/src/sys/CANARY  i386

I issued "portmaster -ad" to perform my daily ritual to keep my
installed ports in sync with my ports working copy (which, in turn, is
in sync with my private mirror of the ports SVN repository).

The ports working copy is:
Path: /usr/ports
Working Copy Root Path: /usr/ports
URL: file:///svn/freebsd/ports/head
Relative URL: ^/head
Repository Root: file:///svn/freebsd/ports
Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5
Revision: 373807
Node Kind: directory
Schedule: normal
Last Changed Author: beat
Last Changed Rev: 373807
Last Changed Date: 2014-12-03 03:20:51 -0800 (Wed, 03 Dec 2014)

So... portmaster looked around abit, then said:
0;portmaster: All >> (9)^G
===>>> The following actions will be taken if you choose to proceed:
        Upgrade linux_base-c6-6.6 to linux_base-c6-6.6_1
        Upgrade mysql55-client-5.5.40 to mysql55-client-5.5.41
        Upgrade perl5-5.18.4_9 to perl5-5.18.4_10
        Upgrade at-spi2-core-2.14.0 to at-spi2-core-2.14.1
        Upgrade glib-2.42.0 to glib-2.42.1
        Upgrade bash-4.3.30 to bash-4.3.30_1
        Upgrade gdk-pixbuf2-2.31.1 to gdk-pixbuf2-2.31.2
        Upgrade gtk3-3.14.3_1 to gtk3-3.14.5
        Upgrade linux-c6-devtools-6.6 to linux-c6-devtools-6.6_1

===>>> Proceed? y/n [y] 

-- normal stuff; I gave the go-ahead.  It started up, ran for a whlie,
then:

...
===>  Configuring for linux_base-c6-6.6_1
===>  Building for linux_base-c6-6.6_1
===>  Staging for linux_base-c6-6.6_1
===>   Generating temporary packing list
346953 blocks
====> Compressing man pages (compress-man)

===>>> Creating a backup package for old version linux_base-c6-6.6
Creating package for linux_base-c6-6.6
Updating database digests format:   0%^MUpdating database digests format:   0%^M^MUpdating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
        linux_base-c6-6.6

The operation will free 168 MB.
You may need to manually remove /compat/linux/etc/krb5.conf if it's no longer needed.

You may need to do by hand:
  o  unmount linprocfs if mounted
  o  delete /compat/linux/proc if present
  o  remove/comment linprocfs from /etc/fstab if present

[1/1] Deleting linux_base-c6-6.6:   0%^M[1/1] Deleting linux_base-c6-6.6:   0%^M^M[1/1] Deleting linux_base-c6-6.6:   1%^M[1/1] Deleting linux_base-c6-6.6:   2%^M[1/1] Deleting linux_base-c6-6.6:   3%^M[1/1] Deleting linux_base-c6-6.6:   4%^M[1/1] Deleting linux_base-c6-6.6:   5%^M[1/1] Deleting linux_base-c6-6.6:   6%^M[1/1] Deleting linux_base-c6-6.6:   7%^M[1/1] Deleting linux_base-c6-6.6:   8%
...
[1/1] Deleting linux_base-c6-6.6:  99%^M[1/1] Deleting linux_base-c6-6.6: 100%

===>>> Starting check for runtime dependencies
===>>> Gathering dependency list for emulators/linux_base-c6 from ports
===>>> No dependencies for emulators/linux_base-c6

===>  Installing for linux_base-c6-6.6_1
===>   Registering installation for linux_base-c6-6.6_1 as automatic
pkg-static: linux_base-c6-6.6_1 conflicts with linux-c6-devtools-6.6 (installs files into the same place).  Problematic file: /compat/linux/usr/lib/sse2/libgmp.so.3
This software is based in part on the work of the FreeType Team.
See <URL:http://www.freetype.org/>.

Installation of the Linux base system is finished. The Linux kernel
mode, which must be enabled for Linux binaries to run, is now
enabled. Linux mode can be enabled permanently with the linux_enable
variable of rc.conf(5).

----------------------
You should enable Linux mode with the linux_enable variable of rc.conf(5) 
and use compat.linux.osrelease=2.6.18 in sysctl.conf(5).
This is highly experimental!
----------------------

If you want to use shared memory in Linux applications, you need to set up
a link from /dev/shm to a suitable place, e.g. by adding the following line
to /etc/devfs.conf (takes effect on each boot):
        link /tmp shm

To make use of NIS you have to adjust yp.conf and nsswitch.conf in
/compat/linux/etc/ accordingly. For example:

Set your yp-server and yp-domainname in yp.conf:
        domainname      my.yp.domainname
        ypserver        my.yp.server

Let your lists for hosts, passwd and group be resolved via nsswitch.conf:
        passwd: files nis
        shadow: files nis
        group:  files nis
        hosts:  files dns nis

WARNING: doing work which needs to chroot into the linux base may not work.
In such cases (e.g. cross-development) you are better suited with a linux_dist
port.

*** Error code 70

Stop.
make: stopped in /common/ports/emulators/linux_base-c6

===>>> A backup package for linux_base-c6-6.6 should
       be located in /usr/ports/packages/portmaster-backup

===>>> Installation of linux_base-c6-6.6_1 (emulators/linux_base-c6) failed
===>>> Aborting update

===>>> Update for emulators/linux_base-c6 failed
===>>> Aborting update

===>>> You can restart from the point of failure with this command line:
       portmaster <flags> emulators/linux_base-c6 databases/mysql55-client lang/perl5.18 accessibility/at-spi2-core devel/glib20 shells/bash graphics/gdk-pixbuf2 x11-toolkits/gtk30 devel/linux-c6-devtools 

Script done on Wed Dec  3 05:00:17 2014


That ("*** Error code 70") seemed .... odd (since I didn't see what the
actual complaint was).  

So, figuring that the failure might be an artifact of the prior
installation of emulators/linux_base-c6, I tried the suggested
command (since by this time, emulators/linux_base-c6 was no longer
installed):

Script started on Wed Dec  3 05:02:20 2014
command: portmaster -d emulators/linux_base-c6 databases/mysql55-client lang/perl5.18 accessibility/at-spi2-core devel/glib20 shells/bash graphics/gdk-pixbuf2 x11-toolkits/gtk30 devel/linux-c6-devtools
...

which failed in the same way.

So then I thought I'd put the old one back, then defer
emulators/linux_base-c6 until later:

Script started on Wed Dec  3 05:04:18 2014
command: pkg add /usr/ports/packages/portmaster-backup/linux_base-c6-6.6.txz
...
Script done on Wed Dec  3 05:04:34 2014
Script started on Wed Dec  3 05:04:48 2014
command: portmaster -d databases/mysql55-client lang/perl5.18 accessibility/at-spi2-core devel/glib20 shells/bash graphics/gdk-pixbuf2 x11-toolkits/gtk30 devel/linux-c6-devtools

===>>> Working on:
        databases/mysql55-client
        lang/perl5.18
        accessibility/at-spi2-core
        devel/glib20
        shells/bash
        graphics/gdk-pixbuf2
        x11-toolkits/gtk30
        devel/linux-c6-devtools

===>>> databases/mysql55-client 1/8
...
===>>> devel/linux-c6-devtools 7/7
0;portmaster: devel/linux-c6-devtools 7/7^G
===>  Installing for linux-c6-devtools-6.6_1
===>   Registering installation for linux-c6-devtools-6.6_1 as automatic

===>>> Upgrade of linux-c6-devtools-6.6 to linux-c6-devtools-6.6_1 succeeded

^M===>>> pkg-message for bash-4.3.30_1
======================================================================
...
===>>> Done displaying pkg-message files

(END)^M===>>> The following actions were performed:
        Upgrade of mysql55-client-5.5.40 to mysql55-client-5.5.41
        Upgrade of perl5-5.18.4_9 to perl5-5.18.4_10
        Upgrade of glib-2.42.0 to glib-2.42.1
        Upgrade of at-spi2-core-2.14.0 to at-spi2-core-2.14.1
        Upgrade of bash-4.3.30 to bash-4.3.30_1
        Upgrade of gdk-pixbuf2-2.31.1 to gdk-pixbuf2-2.31.2
        Upgrade of gtk3-3.14.3_1 to gtk3-3.14.5
        Upgrade of linux_base-c6-6.6 to linux_base-c6-6.6_1
        Upgrade of linux-c6-devtools-6.6 to linux-c6-devtools-6.6_1

Script done on Wed Dec  3 05:26:58 2014


So it got emulators/linux_base-c6 done anyway... but using a different
sequence of operations than originally specified.


Peace,
david
-- 
David H. Wolfskill				david at catwhisker.org
Actions have consequences ... as do inactions.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 949 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20141203/439c1e5d/attachment.sig>


More information about the freebsd-ports mailing list