[92880] trunk/dports/python

Ryan Schmidt ryandesign at macports.org
Wed May 9 18:04:13 PDT 2012


On May 9, 2012, at 18:08, deric at macports.org wrote:

> Revision: 92880
>          https://trac.macports.org/changeset/92880
> Author:   deric at macports.org
> Date:     2012-05-09 16:08:04 -0700 (Wed, 09 May 2012)
> Log Message:
> -----------
> py-scrapy: Unified, updated to 0.14.3. closes #34293, maintainer timeout
> 
> Added Paths:
> -----------
>    trunk/dports/python/py-scrapy/
>    trunk/dports/python/py-scrapy/Portfile


> +if {$subport != $name} {
> +    depends_build-append    port:py${python.version}-distribute
> +    depends_lib-append      port:py${python.version}-lxml port:py${python.version}-twisted
> +    
> +    pre-activate {
> +        system "find ${destroot} -perm 600 -type f -exec chmod 644 {} \\;"
> +    }
> +}

You can't mess with destroot in pre-activate; the destroot might not exist by then anymore. Observe:


$ sudo port install py27-scrapy
--->  Computing dependencies for py27-scrapy
--->  Fetching distfiles for py27-scrapy
--->  Attempting to fetch Scrapy-0.14.3.tar.gz from http://pypi.python.org/packages/source/S/Scrapy/
--->  Verifying checksum(s) for py27-scrapy
--->  Extracting py27-scrapy
--->  Configuring py27-scrapy
--->  Building py27-scrapy
--->  Staging py27-scrapy into destroot
--->  Installing py27-scrapy @0.14.3_0
--->  Activating py27-scrapy @0.14.3_0
--->  Cleaning py27-scrapy
$ sudo port deactivate py27-scrapy
--->  Deactivating py27-scrapy @0.14.3_0
$ sudo port activate py27-scrapy
--->  Computing dependencies for py27-scrapy
Error: org.macports.activate for port py27-scrapy returned: command execution failed
Please see the log file for port py27-scrapy for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_py27-scrapy_0.14.3_0/py27-scrapy/main.log
Warning: Failed to execute portfile from registry for py27-scrapy @0.14.3_0
--->  Activating py27-scrapy @0.14.3_0






More information about the macports-dev mailing list