[PATCH] Force build from source if macports.conf sets delete_la_files

Joshua Root jmr at macports.org
Mon Jul 22 14:27:39 PDT 2013


On 2013-7-23 00:50 , Jeremy Huddleston Sequoia wrote:
> If delete_la_files doesn't match the default value, built packages won't match what we expect.  I think this was what caused https://trac.macports.org/ticket/39767
> 
> I think this is the correct change, but I wanted to get a review before pushing, thanks.
> 
> --Jeremy
> 
> Index: src/macports1.0/macports.tcl
> ===================================================================
> --- src/macports1.0/macports.tcl	(revision 108390)
> +++ src/macports1.0/macports.tcl	(working copy)
> @@ -963,6 +963,10 @@
>          } else {
>              set macports::delete_la_files no
>          }
> +    } else {
> +        # Fource building from source if delete_la_files is not the default value
> +        set macports::global_options(ports_source_only) yes
> +        set temp_options(ports_source_only) yes
>      }
>      if {![info exists macports::global_options(ports_rev-upgrade_id-loadcmd-check)]
>           && [info exists macports::revupgrade_check_id_loadcmds]} {

If we do this, it should go with the other checks for matching prefix
etc. But really, changing the global default for this is an "at your own
risk" kind of thing that very few people have any reason to do anyway.

- Josh


More information about the macports-dev mailing list