[MacPorts] #63657: libtool: TabError: inconsistent use of tabs and spaces in indentation (was: libtool: libexec/gnubin/libtool: File exists)
MacPorts
noreply at macports.org
Tue Oct 26 10:54:28 UTC 2021
#63657: libtool: TabError: inconsistent use of tabs and spaces in indentation
----------------------+-----------------------
Reporter: rehack | Owner: michaelld
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords:
Port: libtool |
----------------------+-----------------------
Changes (by ryandesign):
* status: new => assigned
* owner: (none) => michaelld
* cc: larryv (added)
Comment:
Replying to [comment:3 rehack]:
> After port clean, the installation scrcpy is still failed
> {{{
> checking for a BSD-compatible install... /usr/local/bin/ginstall -c
> }}}
You haven't removed what you had installed in /usr/local yet. You should
do that.
> {{{
> /usr/bin/xattr:26: DeprecationWarning: invalid escape sequence \d
> vpat = re.compile("\d\.\d+")
> File "/usr/bin/xattr", line 31
> continue
> TabError: inconsistent use of tabs and spaces in indentation
> /usr/bin/xattr:26: DeprecationWarning: invalid escape sequence \d
> vpat = re.compile("\d\.\d+")
> File "/usr/bin/xattr", line 31
> continue
> TabError: inconsistent use of tabs and spaces in indentation
> Command failed: xattr -d com.dropbox.attributes $(find . -type f -print0
| xargs -0 xattr | grep com.dropbox.attributes | awk '{ print $1 }' | sed
-e 's@:$@@g')
> }}}
This is a different error than the one you originally reported, though it
is possible that the one you originally reported is what happens if you
encounter this error and then try again without cleaning first. This is
why the first step in our bug reporting guidelines asks you to clean and
try again before filing a bug report. It ensures we're diagnosing the
correct error.
/usr/bin/xattr is a python script that runs with /usr/bin/python. On macOS
High Sierra, /usr/bin/python should be Python 2.7.16, and on all macOS
versions, /usr/bin/python should be some version of Python 2. Is it
possible that you replaced /usr/bin/python with some version of Python 3?
If so, undo that and instead consider installing a MacPorts python 3 port
(for example `sudo port install python39`) and then using the port select
mechanism to create a python symlink for you (such as `sudo port select
python python39`).
There was [https://github.com/macports/macports-ports/pull/11771 a recent
change in how the libtool port invokes xattr] but I think that's less
likely to be relevant.
I do not see this problem on High Sierra, however I do not have ginstall
installed in /usr/local/bin and I do not have MacPorts in a custom prefix,
and my /usr/bin/python is the standard one.
--
Ticket URL: <https://trac.macports.org/ticket/63657#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list