Could not open Portfile

Craig Treleaven ctreleaven at macports.org
Fri Sep 16 05:20:37 PDT 2016


Hi:

Fresh install of MacPorts on a new VM with an svn checkout of trunk, I get this error:

$ sudo port install mariadb-server
Password:
Error: Unable to execute port: Could not open file: /Users/macmyth/mp/trunk/dports/databases/mariadb/Portfile

I had applied a patch to mariadb, ala:

$ svn patch /Volumes/Clooney/Test_installers/patch_port_mariadb-server_startupitem_and_pkg_2016Sep14.diff 
U         Portfile
A         files/org.macports.mariadb-server.plist
A         files/postinstall
A         files/preinstall

The permissions before running the patch were:

$ pwd
/Users/macmyth/mp/trunk/dports/databases/mariadb
$ ls -l
total 24
-rw-r--r--  1 macmyth  staff  10021 16 Sep 07:32 Portfile
drwxr-xr-x  7 macmyth  staff    238 16 Sep 07:32 files

After the patch:

$ ls -l
total 24
-rw-------   1 macmyth  staff  11885 16 Sep 08:02 Portfile
drwxr-xr-x  10 macmyth  staff    340 16 Sep 08:02 files

I did update sources.conf to include:

file:///Users/macmyth/mp/trunk/dports [default]
rsync://rsync.macports.org/release/tarballs/ports.tar

I’ve hit this scenario a couple of times.  Am I doing something wrong with svn patch?

Craig



More information about the macports-dev mailing list