Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#59477 closed defect (fixed)

libedit @20190324-3.1: xattr fails: OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/pip-18.1.dist-info'

Reported by: mabartibin Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc: jmroot (Joshua Root)
Port: libedit

Description (last modified by mabartibin)

macOS 10.15 Xcode 11.1 Build version 11A1027

Trying to install libedit gives me

Error: Failed to patch libedit: command execution failed

Looking at the log file, I first found that the doc/Makefile.in patch was the culprit. Seems the patch was already applied in the dowloaded version

Removed that from the Portfile, but then it turned out many of the other patches couldn’t be applied either.

Pretty bad, since Python depends on libedit, and everything, it seems, depends on Python.

Attachments (1)

main.log (20.3 KB) - added by mabartibin 5 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 Changed 5 years ago by mabartibin

Description: modified (diff)

comment:2 Changed 5 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Owner: set to MarcusCalhoun-Lopez
Status: newaccepted

comment:3 Changed 5 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

I am afraid I cannot reproduce this problem.
Please run:

  • sudo port clean --all libedit
  • sudo port install libedit

If the error persists, please attach the main.log file as requested in the resulting error message.

Changed 5 years ago by mabartibin

Attachment: main.log added

comment:4 Changed 5 years ago by mabartibin

Thanks for looking into this.

Forget what I wrote about the patches already being applied, that must have been due to re-applying them on a half patched directory or something.

main.log is attached.

Permission denied: '/Library/Python/2.7/site-packages/pip-18.1.dist-info'

comment:5 Changed 5 years ago by mabartibin

This page discusses trouble with permissions and macOS’ Python installation:

https://github.com/loadimpact/loadimpact-cli/issues/13#issuecomment-276375963

The recommendation is to install python using MacPorts. Catch 22.

comment:6 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: jmroot added; mcalhoun@… removed
Summary: libedit @20190324-3.1: can't build because patches faillibedit @20190324-3.1: xattr fails: OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/pip-18.1.dist-info'

Josh, the code that's failing here is the code you added in [a30928089b100fcb638a423f72afc5adee209924/macports-ports]. Any ideas?

comment:7 Changed 5 years ago by jmroot (Joshua Root)

Looks like a broken /usr/bin/xattr due to this: https://github.com/pypa/setuptools/issues/617

You need to make sure all dist-info files in your python site-packages are readable.

comment:8 Changed 5 years ago by jmroot (Joshua Root)

A new upstream version of libedit was released very recently, and it looks like the files no longer have the stray xattrs.

comment:9 Changed 5 years ago by mabartibin

So the workaround was to make the pip-18.1.dist-info directory world readable.

That solved the problem, at least for now.

Thanks for your help!

comment:10 Changed 5 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: acceptedclosed

In 360205c7847d3ca34bdf79640c5030918c708a50/macports-ports (master):

libedit: update version 20190324-3.1->20191025-3.1

Fixes #59477

comment:11 Changed 5 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

The underlying problem with Python is not addressed, but xattr is no longer needed.

Note: See TracTickets for help on using tickets.