[Bug 238267] sysutils/py-google-compute-engine not correctly defaulting to using python 2.7.

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri May 31 18:35:52 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238267

            Bug ID: 238267
           Summary: sysutils/py-google-compute-engine not correctly
                    defaulting to using python 2.7.
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: gjb at FreeBSD.org
                CC: ler at FreeBSD.org, lucas.kanashiro at collabora.com
             Flags: maintainer-feedback?(lucas.kanashiro at collabora.com)

There seems to be an incompatibility with the sysutils/py-google-compute-engine
port and the default lang/python (python3.6) that causes GCE-specific startup
scripts to fail to run.

Investigating further after applying a fix to the GCE image build files which
added DEFAULT_VERSIONS=python=2.7 to the environment, the port continued to be
built using python3.6 as the default version.

While chroot(8)ed to the resulting image to inspect further, I found this:

 root@:/usr/local/etc/rc.d # grep ^command_interpreter google_*
 google_accounts_daemon:command_interpreter="/usr/local/bin/python2.7"
 google_clock_skew_daemon:command_interpreter="/usr/local/bin/python2.7"
 google_instance_setup:command_interpreter="/usr/local/bin/python2.7"
 google_network_daemon:command_interpreter="/usr/local/bin/python2.7"
 google_startup:command_interpreter="/usr/local/bin/python2.7"

However, the environment suggests python3.6 is being used for compiled
binaries.

 root@:/# file /usr/local/bin/launch_instance
 /usr/local/bin/launch_instance: symbolic link to launch_instance-3.6

 root@:/usr/ports/sysutils/py-google-compute-engine # make \
    __MAKE_CONF=/dev/null -V PYTHON_VER
 3.6

 root@:/usr/ports/sysutils/py-google-compute-engine # make \
    __MAKE_CONF=/dev/null -V SUB_LIST

 PYTHON_CMD="/usr/local/bin/python3.6"  \
 PYTHON_VER="3.6" PREFIX=/usr/local LOCALBASE=/usr/local  \
 DATADIR=/usr/local/share/py36-google-compute-engine \
 DOCSDIR=/usr/local/share/doc/py36-google-compute-engine \
 EXAMPLESDIR=/usr/local/share/examples/py36-google-compute-engine  \
 WWWDIR=/usr/local/www/py36-google-compute-engine \
 ETCDIR=/usr/local/etc/py36-google-compute-engine

 root@:/usr/ports/sysutils/py-google-compute-engine # make \
 __MAKE_CONF=/dev/null -V FLAVOR
 py36

I believe DEFAULT_VERSIONS=python=2.7 needs to be added to the port Makefile to
fix this until these scripts work properly with python3.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list