[94708] trunk/dports/perl/p5-file-rename/Portfile

Ryan Schmidt ryandesign at macports.org
Wed Jun 27 02:04:35 PDT 2012


On Jun 27, 2012, at 03:03, dports at macports.org wrote:

> Revision: 94708
>          https://trac.macports.org/changeset/94708
> Author:   dports at macports.org
> Date:     2012-06-27 01:03:00 -0700 (Wed, 27 Jun 2012)
> Log Message:
> -----------
> p5-file-rename: clear link_binaries_suffix to install command-line
> utility as file-rename; fix post-destroot block to prevent build error
> 
> Modified Paths:
> --------------
>    trunk/dports/perl/p5-file-rename/Portfile
> 
> Modified: trunk/dports/perl/p5-file-rename/Portfile
> ===================================================================
> --- trunk/dports/perl/p5-file-rename/Portfile	2012-06-27 08:02:03 UTC (rev 94707)
> +++ trunk/dports/perl/p5-file-rename/Portfile	2012-06-27 08:03:00 UTC (rev 94708)
> @@ -20,11 +20,14 @@
> checksums           sha256 fd9be2f7d6e4c88badba440aabfe33984b1aa51921caff0bbcfe3218481e7f10 \
>                     rmd160 f001df1db9ed6f1996984e4123b44b1ef775411c
> 
> +
> +perl5.link_binaries_suffix
> +
> # The module installs the command-line utility as `file-rename` but
> # it's usually installed as `rename`; create a link under that name.
> if {$subport != $name} {
>     post-destroot {
>         ln -s file-rename ${destroot}${prefix}/bin/rename
> -        ln -s [glob -tails -directory ${destroot}${prefix}/share/man/man1 file-rename.*] ${destroot}${prefix}/share/man/man1/rename.1
> +        ln -s [glob -tails -directory ${destroot}${prefix}/share/perl${perl5.major}/man/man1 file-rename.*] ${destroot}${prefix}/share/perl${perl5.major}/man/man1/rename.1
>     }
> }

You would need to increase the port's revision so that it gets rebuilt following this change. However, the problem with this change is that it makes all the subports conflict with one another.

$ sudo port install p5.12-file-rename
--->  Computing dependencies for p5.12-file-rename
--->  Fetching distfiles for p5.12-file-rename
--->  Verifying checksum(s) for p5.12-file-rename
--->  Extracting p5.12-file-rename
--->  Configuring p5.12-file-rename
--->  Building p5.12-file-rename
--->  Staging p5.12-file-rename into destroot
--->  Installing p5.12-file-rename @0.60.0_2
--->  Activating p5.12-file-rename @0.60.0_2
--->  Cleaning p5.12-file-rename
$ sudo port install p5.14-file-rename
--->  Computing dependencies for p5.14-file-rename
--->  Fetching distfiles for p5.14-file-rename
--->  Verifying checksum(s) for p5.14-file-rename
--->  Extracting p5.14-file-rename
--->  Configuring p5.14-file-rename
--->  Building p5.14-file-rename
--->  Staging p5.14-file-rename into destroot
--->  Installing p5.14-file-rename @0.60.0_2
--->  Activating p5.14-file-rename @0.60.0_2
Error: org.macports.activate for port p5.14-file-rename returned: Image error: /opt/local/bin/file-rename is being used by the active p5.12-file-rename port.  Please deactivate this port first, or use 'port -f activate p5.14-file-rename' to force the activation.
Please see the log file for port p5.14-file-rename for details:
    /opt/local/var/macports/logs/_Users_rschmidt_macports_dports_perl_p5-file-rename/p5.14-file-rename/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port p5.14-file-rename failed

Clearing perl5.link_binaries_suffix should only be done in ports that are not named "p5-" something—ports of which only one version exists.




More information about the macports-dev mailing list