Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#44188 closed defect (fixed)

clang-*: fix python usage.

Reported by: Ionic (Mihai Moldovan) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc: jeremyhu (Jeremy Huddleston Sequoia), cooljeanius (Eric Gallager)
Port: clang-2.9 clang-3.0 clang-3.1 clang-3.2 clang-3.3 clang-3.4 clang-3.5

Description

Updating my system in trace mode, I found that clang-3.3 wouldn't build.

The default variant is python27. This is also adding --with-python=${prefix}/bin/python$PYTHON_VERSION to configure.args.

However, port:python${python_ver} was only added as a runtime dependency and thus shadowed at build time due to trace mode. As arguments given to configure via --with-* are fatal errors when not found, configure failed.

While the other ports (anything but 3.3) don't specify --with-python, let us fix them still.

  • clang-2.9: add build time dependency on the via variant selected python version.
  • clang-3.0: see above
  • clang-3.1: see above
  • clang-3.2: see above
  • clang-3.3: add build time dependency on the via variant selected python version. Here, a failure to do so is actually fatal.
  • clang-3.4: move dependency on port:python27 to lib dependencies. Also add --with-python as in clang-3.3. Revbump.
  • clang-3.5: see above

(Note that --with-python has been introduced with clang 3.4.)

I will upload individual patches and a big, merged one. Take whatever you like.

Attachments (10)

llvm-all-python.patch (6.5 KB) - added by Ionic (Mihai Moldovan) 10 years ago.
Merged patch against clang 2.9, 3.0, 3.1, 3.2, 3.3, 3.4 and 3.5.
llvm-2.9-python.patch (790 bytes) - added by Ionic (Mihai Moldovan) 10 years ago.
Patch against clang 2.9 Portfile.
llvm-3.0-python.patch (790 bytes) - added by Ionic (Mihai Moldovan) 10 years ago.
Patch against clang 3.0 Portfile.
llvm-3.1-python.patch (790 bytes) - added by Ionic (Mihai Moldovan) 10 years ago.
Patch against clang 3.1 Portfile.
llvm-3.2-python.patch (790 bytes) - added by Ionic (Mihai Moldovan) 10 years ago.
Patch against clang 3.2 Portfile.
llvm-3.3-python.patch (929 bytes) - added by Ionic (Mihai Moldovan) 10 years ago.
Patch against clang 3.3 Portfile.
llvm-3.4-python.patch (1.2 KB) - added by Ionic (Mihai Moldovan) 10 years ago.
Patch against clang 3.4 Portfile.
llvm-3.5-python.patch (1.3 KB) - added by Ionic (Mihai Moldovan) 10 years ago.
Patch against clang 3.5 Portfile.
config.log.bz2 (10.7 KB) - added by Ionic (Mihai Moldovan) 10 years ago.
main.log.bz2 (8.1 KB) - added by Ionic (Mihai Moldovan) 10 years ago.

Download all attachments as: .zip

Change History (17)

Changed 10 years ago by Ionic (Mihai Moldovan)

Attachment: llvm-all-python.patch added

Merged patch against clang 2.9, 3.0, 3.1, 3.2, 3.3, 3.4 and 3.5.

Changed 10 years ago by Ionic (Mihai Moldovan)

Attachment: llvm-2.9-python.patch added

Patch against clang 2.9 Portfile.

Changed 10 years ago by Ionic (Mihai Moldovan)

Attachment: llvm-3.0-python.patch added

Patch against clang 3.0 Portfile.

Changed 10 years ago by Ionic (Mihai Moldovan)

Attachment: llvm-3.1-python.patch added

Patch against clang 3.1 Portfile.

Changed 10 years ago by Ionic (Mihai Moldovan)

Attachment: llvm-3.2-python.patch added

Patch against clang 3.2 Portfile.

Changed 10 years ago by Ionic (Mihai Moldovan)

Attachment: llvm-3.3-python.patch added

Patch against clang 3.3 Portfile.

Changed 10 years ago by Ionic (Mihai Moldovan)

Attachment: llvm-3.4-python.patch added

Patch against clang 3.4 Portfile.

Changed 10 years ago by Ionic (Mihai Moldovan)

Attachment: llvm-3.5-python.patch added

Patch against clang 3.5 Portfile.

comment:1 Changed 10 years ago by Ionic (Mihai Moldovan)

And just in case you won't believe me, I'm also attaching the main.log and config.log of the unpatched clang 3.3 (built with +analyzer+arm_runtime+python27.)

Changed 10 years ago by Ionic (Mihai Moldovan)

Attachment: config.log.bz2 added

Changed 10 years ago by Ionic (Mihai Moldovan)

Attachment: main.log.bz2 added

comment:2 Changed 10 years ago by Ionic (Mihai Moldovan)

N.B. I didn't revbump llvm/clang < 3.4. It didn't feel necessary, as configure is not even checking for python. Feel free to do so, however, if you see the need to.

comment:3 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed

comment:4 Changed 10 years ago by cooljeanius (Eric Gallager)

The configure.args-append line added to the llvm-3.4 port and the llvm-3.5 port is different between the two of them; the llvm-3.5 one is missing a decimal point in the name of the python binary

comment:5 Changed 10 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:6 Changed 10 years ago by Ionic (Mihai Moldovan)

You're correct, I typo'd that. Sorry.

comment:7 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Note: See TracTickets for help on using tickets.