Quantcast

[MacPorts] #53796: Missing file in lldb-4.0?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[MacPorts] #53796: Missing file in lldb-4.0?

MacPorts
#53796: Missing file in lldb-4.0?
--------------------------+----------------------
 Reporter:  ksze          |      Owner:
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.4.1
 Keywords:  missing-file  |       Port:  lldb-4.0
--------------------------+----------------------
 * macOS Sierra 10.12.3
 * MacPorts 2.4.1

 At the end of installing lldb-4.0, I get this confusing message:


 {{{
 --->  Installing lldb-4.0 @4.0.0_0
 --->  Activating lldb-4.0 @4.0.0_0
 Please follow the instructions in /opt/local/lldb-4.0/code-signing.txt and
 then codesign the debugserver with:
    sudo codesign --force --deep --preserve-
 metadata=identifier,entitlements,resource-rules,requirements,flags,team-
 identifier --sign <identity> /opt/local/libexec/llvm-4.0/bin/debugserver
 }}}

 However, this is no `/opt/local/lldb-4.0/code-signing.txt` file:
 {{{
 $ less /opt/local/lldb-4.0/code-signing.txt
 /opt/local/lldb-4.0/code-signing.txt: No such file or directory
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/53796>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #53796: Missing file in lldb-4.0?

MacPorts
#53796: Missing file in lldb-4.0?
-----------------------+--------------------------
  Reporter:  ksze      |      Owner:
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.4.1
Resolution:            |   Keywords:  missing-file
      Port:  lldb-4.0  |
-----------------------+--------------------------

Comment (by ksze):

 {{{
 $ port contents lldb-4.0
 [...]
   /opt/local/libexec/llvm-4.0/lib/python2.7/site-
 packages/lldb/utils/symbolication.py
   /opt/local/libexec/llvm-4.0/lib/python2.7/site-packages/six.py
   /opt/local/share/doc/lldb-4.0/code-signing.txt
 }}}

 I'm *guessing* the message really means `/opt/local/share/doc/lldb-4.0
 /code-signing.txt`?

--
Ticket URL: <https://trac.macports.org/ticket/53796#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #53796: Missing file in lldb-4.0?

MacPorts
In reply to this post by MacPorts
#53796: Missing file in lldb-4.0?
-----------------------+----------------------
  Reporter:  ksze      |      Owner:  jeremyhu
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.4.1
Resolution:            |   Keywords:
      Port:  lldb-4.0  |
-----------------------+----------------------
Changes (by mf2k):

 * keywords:  missing-file =>
 * status:  new => assigned
 * cc: jeremyhu (removed)
 * owner:   => jeremyhu


--
Ticket URL: <https://trac.macports.org/ticket/53796#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #53796: Missing file in lldb-4.0?

MacPorts
In reply to this post by MacPorts
#53796: Missing file in lldb-4.0?
-----------------------+----------------------
  Reporter:  ksze      |      Owner:  jeremyhu
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.4.1
Resolution:            |   Keywords:
      Port:  lldb-4.0  |
-----------------------+----------------------

Comment (by ksze):

 The last paragraph in the `code-signing.txt` file also seems a bit
 confusing.

 {{{
 When you build your LLDB for the first time, the Xcode GUI will prompt you
 for permission
 to use the "lldb_codesign" keychain. Be sure to click "Always Allow" on
 your first
 build. From here on out, the "lldb_codesign" will be trusted and you can
 build from the
 command line without having to authorize. Also the first time you debug
 using a LLDB that
 was built with this code signing certificate, you will need to
 authenticate once.
 }}}

 What does it mean when it says "When you build your LLDB for the first
 time"?

 Is that when I `port install lldb-4.0`? But that just makes MacPorts
 fetches the prebuilt binary archive
 (`lldb-4.0-4.0.0_0.darwin_16.x86_64.tbz2`). Nothing is built from scratch
 in the process and there is no Xcode GUI that prompts me for permission to
 use lldb_codesign.

 Should I still run this?
 {{{
 sudo codesign --force --deep --preserve-metadata=identifier,entitlements
 ,resource-rules,requirements,flags,team-identifier --sign <identity>
 /opt/local/libexec/llvm-4.0/bin/debugserver
 }}}

 Should I open a separate ticket?

--
Ticket URL: <https://trac.macports.org/ticket/53796#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #53796: Missing file in lldb-4.0?

MacPorts
In reply to this post by MacPorts
#53796: Missing file in lldb-4.0?
-----------------------+----------------------
  Reporter:  ksze      |      Owner:  jeremyhu
      Type:  defect    |     Status:  closed
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.4.1
Resolution:  fixed     |   Keywords:
      Port:  lldb-4.0  |
-----------------------+----------------------
Changes (by jeremyhu):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"9999f00e8af24b2eafd3898c8204838bb3303f6e/macports-ports"
 9999f00e/macports-ports]:
 {{{
 #!ConfigurableCommitTicketReference repository="macports-ports"
 revision="9999f00e8af24b2eafd3898c8204838bb3303f6e"
 lldb-{4.0,devel}: Fix path to code-signing.txt in instructions

 Fixes https://trac.macports.org/ticket/53796

 Signed-off-by: Jeremy Huddleston Sequoia <[hidden email]>
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/53796#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #53796: Missing file in lldb-4.0?

MacPorts
In reply to this post by MacPorts
#53796: Missing file in lldb-4.0?
-----------------------+----------------------
  Reporter:  ksze      |      Owner:  jeremyhu
      Type:  defect    |     Status:  closed
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.4.1
Resolution:  fixed     |   Keywords:
      Port:  lldb-4.0  |
-----------------------+----------------------

Comment (by jeremyhu):

 Ignore the last paragraph as it isn't relevant to you.
 After creating your key, yes, you should sign the binary.

--
Ticket URL: <https://trac.macports.org/ticket/53796#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
Loading...