[MacPorts] #37321: new port: dfu-util
#37321: new port: dfu-util ------------------------------+-------------------------------- Reporter: benoit.triquet@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: dfu-util ------------------------------+-------------------------------- Please find attached Portfile for dfu-util 0.7, no patches needed. port lint is clean, I do not know how to further check if I am missing dependencies. Upstream has a git repo but according to the Guide, my portfile uses the source tarball from upstream: please advise if the git repo should be preferred after all. -- Ticket URL: <https://trac.macports.org/ticket/37321> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37321: new port: dfu-util -------------------------------+-------------------------- Reporter: benoit.triquet@… | Owner: ryandesign@… Type: submission | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: dfu-util | -------------------------------+-------------------------- Changes (by ryandesign@…): * status: new => assigned * owner: macports-tickets@… => ryandesign@… Comment: Thanks. Using a tarball is preferable to fetching from a repository. The headers in the source files say: {{{ * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. }}} So the license should be "GPL-2+" not "GPL-2". You can check what a port links with using `port contents` and `otool -L`; I do it like this: {{{ $ port -q contents | xargs otool -L | grep -v "not an object file" /opt/local/bin/dfu-suffix: /opt/local/lib/libusb-1.0.0.dylib (compatibility version 2.0.0, current version 2.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0) /opt/local/bin/dfu-util: /opt/local/lib/libusb-1.0.0.dylib (compatibility version 2.0.0, current version 2.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0) }}} It seems to only link with libusb so the dependencies are fine. -- Ticket URL: <https://trac.macports.org/ticket/37321#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37321: new port: dfu-util -------------------------------+-------------------------- Reporter: benoit.triquet@… | Owner: ryandesign@… Type: submission | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: dfu-util | -------------------------------+-------------------------- Changes (by ryandesign@…): * status: assigned => closed * resolution: => fixed Comment: r100565 -- Ticket URL: <https://trac.macports.org/ticket/37321#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37321: new port: dfu-util -------------------------------+-------------------------- Reporter: benoit.triquet@… | Owner: ryandesign@… Type: submission | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: dfu-util | -------------------------------+-------------------------- Comment (by ryandesign@…): The buildbots failed to build this (e.g. the Mountain Lion buildbot [https://build.macports.org/builders/buildports-mtln-x86_64/builds/354 here], saying: {{{ checking for pkg-config... no checking for USB... no configure: error: *** Required libusb-1.0 >= 1.0.0 not installed *** }}} This suggests a pkgconfig build dependency is needed to find libusb. Added in r100566; now it builds. -- Ticket URL: <https://trac.macports.org/ticket/37321#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37321: new port: dfu-util -------------------------------+-------------------------- Reporter: benoit.triquet@… | Owner: ryandesign@… Type: submission | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: dfu-util | -------------------------------+-------------------------- Comment (by benoit.triquet@…): Replying to [comment:1 ryandesign@…]: Thanks for the rapid inclusion, tips and fixes (I should learn more about libtool and pkgconfig).
The headers in the source files say: {{{ * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. }}} So the license should be "GPL-2+" not "GPL-2".
Good catch, I hadn't even looked. I based my portfile on the explicit statement "GPL v2" on the webpage. I will side with you, I assume this is just a mistake from upstream and not a willful decision to make the entire package GPL v2 except some files GPL v2+. There are 4 header files that do not have their own license but they are headers of source files that are indeed GPL v2+ so this cannot be meaningful. I am asking upstream for clarification, will keep you posted. -- Ticket URL: <https://trac.macports.org/ticket/37321#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37321: new port: dfu-util -------------------------------+-------------------------- Reporter: benoit.triquet@… | Owner: ryandesign@… Type: submission | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: dfu-util | -------------------------------+-------------------------- Comment (by ryandesign@…): Replying to [comment:4 benoit.triquet@…]:
Thanks for the rapid inclusion, tips and fixes (I should learn more about libtool and pkgconfig).
No worries; pkgconfig is easy to forget, since everybody already has it installed. One of the reasons why we have the buildbots is to catch problems like these so that we can quickly fix them before users notice.
Good catch, I hadn't even looked. I based my portfile on the explicit statement "GPL v2" on the webpage.
I will side with you, I assume this is just a mistake from upstream and not a willful decision to make the entire package GPL v2 except some files GPL v2+. There are 4 header files that do not have their own license but they are headers of source files that are indeed GPL v2+ so this cannot be meaningful.
I am asking upstream for clarification, will keep you posted.
There's also the manpage which says: {{{ LICENCE dfu-util is covered by the GNU General Public License (GPL), version 2 or later. }}} -- Ticket URL: <https://trac.macports.org/ticket/37321#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37321: new port: dfu-util -------------------------------+-------------------------- Reporter: benoit.triquet@… | Owner: ryandesign@… Type: submission | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: dfu-util | -------------------------------+-------------------------- Comment (by benoit.triquet@…): Replying to [comment:5 ryandesign@…]:
There's also the manpage which says:
{{{ LICENCE dfu-util is covered by the GNU General Public License (GPL), version 2 or later. }}}
I checked on my debian install: they are still at 0.5 but also considered it to be GPL v2+ at the time, and since it had multiple authors, I don't think the sole current maintainer can take it back. -- Ticket URL: <https://trac.macports.org/ticket/37321#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts