Changes between Initial Version and Version 1 of Ticket #39836


Ignore:
Timestamp:
Jul 23, 2013, 3:56:15 AM (11 years ago)
Author:
larryv (Lawrence Velázquez)
Comment:

We should not (and probably cannot) agree to the license for the user, but perhaps we can test for license acceptance before starting a build and fail more gracefully.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #39836

    • Property Component changed from ports to base
  • Ticket #39836 – Description

    initial v1  
    11For example I just installed valgrind and got this error (for some reason xcode didn't have the EULA marked as accepted anymore):
    22
     3{{{
    34$ sudo port install valgrind
    45...
     
    1718    http://guide.macports.org/#project.tickets
    1819Error: Processing of port valgrind failed
     20}}}
    1921
    2022So I
     23{{{
    2124$ cat /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_valgrind/valgrind/main.log
    2225...
    2326:info:build You have not agreed to the Xcode license agreements, please run 'xcodebuild -license' (for user-level acceptance) or 'sudo xcodebuild -license' (for system-wide acceptance) from within a Terminal window to review and agree to the Xcode license agreements.
    2427...
     28}}}
    2529
    2630And the error is clear. However, for less experienced users, it might be very confusing. How about adding a less generic error message for this case, or maybe even run xcodebuild -license for the user if this happens.