[MacPorts] #58083: port:libtool should use depends_skip_archcheck-append for the xattr dependency

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

[MacPorts] #58083: port:libtool should use depends_skip_archcheck-append for the xattr dependency

MacPorts
#58083: port:libtool should use depends_skip_archcheck-append for the xattr
dependency
--------------------+---------------------
 Reporter:  RJVB    |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:
 Keywords:          |       Port:  libtool
--------------------+---------------------
 Without

 {{{
 depends_skip_archcheck-append xattr
 }}}

 you get this kind of error:

 {{{
 > port -nok destroot libtool
 Error: Cannot install libtool for the arch 'x86_64' because
 Error: its dependency xattr only supports the archs 'i386 ppc'.
 Error: Follow https://guide.macports.org/#project.tickets to report a bug.
 Error: Processing of port libtool failed
 Exit 1
 }}}

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

Re: [MacPorts] #58083: port:libtool should use depends_skip_archcheck-append for the xattr dependency

MacPorts
#58083: port:libtool should use depends_skip_archcheck-append for the xattr
dependency
----------------------+--------------------
  Reporter:  RJVB     |      Owner:  (none)
      Type:  defect   |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:
Resolution:           |   Keywords:
      Port:  libtool  |
----------------------+--------------------

Comment (by ryandesign):

 I'm surprised nobody's run into this before. What's special about your
 situation that's causing you to see this error?

 The xattr dependency should be unused except on Mac OS X 10.4 Tiger. All
 later versions of macOS already include the `xattr` program.

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

Re: [MacPorts] #58083: port:libtool should use depends_skip_archcheck-append for the xattr dependency

MacPorts
In reply to this post by MacPorts
#58083: port:libtool should use depends_skip_archcheck-append for the xattr
dependency
----------------------+--------------------
  Reporter:  RJVB     |      Owner:  (none)
      Type:  defect   |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:
Resolution:           |   Keywords:
      Port:  libtool  |
----------------------+--------------------

Comment (by RJVB):

 I was very surprised too. I haven't checked why this would happen on my
 system.

 Could it be that "base" detects that I have port:xattr still installed
 from long ago, and act on that?

 I'm going to have to see if maybe I reactivated port:xattr at some point
 (I've been tinkering with ports for libacl and libattr), but isn't it a
 good rule of thumb to pull in platform-specific dependencies
 conditionally?

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

Re: [MacPorts] #58083: port:libtool should use depends_skip_archcheck-append for the xattr dependency

MacPorts
In reply to this post by MacPorts
#58083: port:libtool should use depends_skip_archcheck-append for the xattr
dependency
----------------------+--------------------
  Reporter:  RJVB     |      Owner:  (none)
      Type:  defect   |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:
Resolution:           |   Keywords:
      Port:  libtool  |
----------------------+--------------------

Comment (by RJVB):

 My hunch was correct: the issue disappeared when I uninstalled port:xattr.
 It seems I must have installed that port a few months ago for reasons I
 can't remember. Either I didn't realise the command was available through
 the system, or I thought MacPorts has a newer version (as for so many) and
 didn't notice that's not the case here.

 So yeah, I think the proper way to pull in port:xattr is via a standard
 depspec but only on OS version(s) that require it. And maybe port:xattr
 should be marked obsolete on all other platforms?

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

Re: [MacPorts] #58083: port:libtool should use depends_skip_archcheck-append for the xattr dependency

MacPorts
In reply to this post by MacPorts
#58083: port:libtool should use depends_skip_archcheck-append for the xattr
dependency
----------------------+----------------------
  Reporter:  RJVB     |      Owner:  larryv
      Type:  defect   |     Status:  accepted
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:
Resolution:           |   Keywords:
      Port:  libtool  |
----------------------+----------------------
Changes (by larryv):

 * status:  new => accepted
 * owner:  (none) => larryv


Comment:

 Replying to [comment:3 RJVB]:
 > So yeah, I think the proper way to pull in port:xattr is via
 > a standard depspec but only on OS version(s) that require it. And
 > maybe port:xattr should be marked obsolete on all other platforms?

 The OS isn't really relevant; the build should be able to use whatever
 xattr is available. The architecture should be ignored anyway, since we're
 just invoking a tool.

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

Re: [MacPorts] #58083: port:libtool should use depends_skip_archcheck-append for the xattr dependency

MacPorts
In reply to this post by MacPorts
#58083: port:libtool should use depends_skip_archcheck-append for the xattr
dependency
----------------------+--------------------
  Reporter:  RJVB     |      Owner:  larryv
      Type:  defect   |     Status:  closed
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:
Resolution:  fixed    |   Keywords:
      Port:  libtool  |
----------------------+--------------------
Changes (by larryv):

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


Comment:

 In [changeset:"932eb892e88ad9baad5dd4e1a2bc2601c8ee991b/macports-ports"
 932eb892e88ad9baad5dd4e1a2bc2601c8ee991b/macports-ports] (master):
 {{{
 #!ConfigurableCommitTicketReference repository="macports-ports"
 revision="932eb892e88ad9baad5dd4e1a2bc2601c8ee991b"
 libtool: Ignore arch of xattr port, if used

 Closes: https://trac.macports.org/ticket/58083
 }}}

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