[MacPorts] #29847: Can't install dnsmasq because of checksum mismatch for nawk
#29847: Can't install dnsmasq because of checksum mismatch for nawk -----------------------------+---------------------------------------------- Reporter: rens@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: checksum failed | Port: nawk -----------------------------+---------------------------------------------- I try to install dnsmasq which failes with: Error: Failed to install nawk Log for nawk is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_sea.us.rsync.macports.org_release_ports_lang_nawk/main.log Error: The following dependencies were not installed: nawk Error: Status 1 encountered during processing. The logfile tells me: :info:checksum The correct checksum line may be: :info:checksum checksums md5 4d2b1002db5979a2f3a578e11b7d2fb3 \ sha1 567eb99d30337cb323bee39284527cecd3d45b02 \ rmd160 b9286a65f6f1887ede837e2b6328c13bfc327fa3 :error:checksum Target org.macports.checksum returned: Unable to verify file checksums :debug:checksum Backtrace: Unable to verify file checksums while executing Just installing the nawk package of course also ends up in a checksum mismatch error. I tried to do a 'sudo port selfupdate' and a 'sudo port sync' multiple times (I've had the problem about 3 weeks ago, and tried a few times since then). But still the error. -- Ticket URL: <https://trac.macports.org/ticket/29847> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29847: nawk: checksum mismatch -----------------------------+---------------------------------------------- Reporter: rens@… | Owner: toby@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: haspatch | Port: nawk -----------------------------+---------------------------------------------- Changes (by ryandesign@…): * keywords: checksum failed => haspatch * cc: ryandesign@… (added) * owner: macports-tickets@… => toby@… Old description:
I try to install dnsmasq which failes with:
Error: Failed to install nawk Log for nawk is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_sea.us.rsync.macports.org_release_ports_lang_nawk/main.log Error: The following dependencies were not installed: nawk Error: Status 1 encountered during processing.
The logfile tells me: :info:checksum The correct checksum line may be: :info:checksum checksums md5 4d2b1002db5979a2f3a578e11b7d2fb3 \ sha1 567eb99d30337cb323bee39284527cecd3d45b02 \ rmd160 b9286a65f6f1887ede837e2b6328c13bfc327fa3 :error:checksum Target org.macports.checksum returned: Unable to verify file checksums :debug:checksum Backtrace: Unable to verify file checksums while executing
Just installing the nawk package of course also ends up in a checksum mismatch error.
I tried to do a 'sudo port selfupdate' and a 'sudo port sync' multiple times (I've had the problem about 3 weeks ago, and tried a few times since then). But still the error.
New description: I try to install dnsmasq which failes with: {{{ Error: Failed to install nawk Log for nawk is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_sea.us.rsync.macports.org_release_ports_lang_nawk/main.log Error: The following dependencies were not installed: nawk Error: Status 1 encountered during processing. }}} The logfile tells me: {{{ :info:checksum The correct checksum line may be: :info:checksum checksums md5 4d2b1002db5979a2f3a578e11b7d2fb3 \ sha1 567eb99d30337cb323bee39284527cecd3d45b02 \ rmd160 b9286a65f6f1887ede837e2b6328c13bfc327fa3 :error:checksum Target org.macports.checksum returned: Unable to verify file checksums :debug:checksum Backtrace: Unable to verify file checksums while executing }}} Just installing the nawk package of course also ends up in a checksum mismatch error. I tried to do a 'sudo port selfupdate' and a 'sudo port sync' multiple times (I've had the problem about 3 weeks ago, and tried a few times since then). But still the error. -- Comment: Confirmed, the port version is 20100523 but the distfile on the main server was last updated 20110506. The attached patch updates the port to this version, and also makes it respect build_arch, and adds a universal variant. -- Ticket URL: <https://trac.macports.org/ticket/29847#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29847: nawk: checksum mismatch -----------------------------+---------------------------------------------- Reporter: rens@… | Owner: toby@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: haspatch | Port: nawk -----------------------------+---------------------------------------------- Comment(by toby@…): I'll take a look at this a bit later today. -- Ticket URL: <https://trac.macports.org/ticket/29847#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29847: nawk: checksum mismatch -----------------------------+---------------------------------------------- Reporter: rens@… | Owner: toby@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: haspatch | Port: nawk -----------------------------+---------------------------------------------- Comment(by ryandesign@…): Did you get a chance to look at the diff? It worked for me. -- Ticket URL: <https://trac.macports.org/ticket/29847#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29847: nawk: checksum mismatch -----------------------------+---------------------------------------------- Reporter: rens@… | Owner: toby@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: haspatch | Port: nawk -----------------------------+---------------------------------------------- Comment(by toby@…): All that variant universal stuff wasn't necessary before, something changed in base? -- Ticket URL: <https://trac.macports.org/ticket/29847#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29847: nawk: checksum mismatch -----------------------------+---------------------------------------------- Reporter: rens@… | Owner: toby@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: haspatch | Port: nawk -----------------------------+---------------------------------------------- Comment(by ryandesign@…): Nothing changed in base; the port was always broken. The standard universal variant only works with ports using normal configure scripts, and the nawk port overrides the configure phase entirely, so it must manually handle universal and build_arch, as in the patch. -- Ticket URL: <https://trac.macports.org/ticket/29847#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29847: nawk: checksum mismatch -----------------------------+---------------------------------------------- Reporter: rens@… | Owner: toby@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: haspatch | Port: nawk -----------------------------+---------------------------------------------- Comment(by toby@…): configure.cflags used to contain the -arch flags directly, so no conditional logic was required in the Portfile itself. -- Ticket URL: <https://trac.macports.org/ticket/29847#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29847: nawk: checksum mismatch -----------------------------+---------------------------------------------- Reporter: rens@… | Owner: toby@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: haspatch | Port: nawk -----------------------------+---------------------------------------------- Comment(by ryandesign@…): MacPorts does put the `-arch` flags into CFLAGS, CXXFLAGS, LDFLAGS, etc, but AFAIK they were never part of the variables configure.cflags, configure.cxxflags, configure.ldflags, etc. At least, they are not now. -- Ticket URL: <https://trac.macports.org/ticket/29847#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29847: nawk: checksum mismatch -----------------------------+---------------------------------------------- Reporter: rens@… | Owner: toby@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: haspatch | Port: nawk -----------------------------+---------------------------------------------- Comment(by toby@…): Indeed, breaking a number of my ports. Fun. I'll try to find some time to go through and make the necessary adjustments. Hopefully without adding conditional logic to everything. -- Ticket URL: <https://trac.macports.org/ticket/29847#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29847: nawk: checksum mismatch -----------------------------+---------------------------------------------- Reporter: rens@… | Owner: toby@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: haspatch | Port: nawk -----------------------------+---------------------------------------------- Comment(by ryandesign@…): I'm not sure if there's a good reason why the `-arch` flags aren't included in those variables, so I'll ask on the mailing list. It is inconvenient to have that conditional logic in every port that doesn't use a standard configure phase, yet that is the status quo. -- Ticket URL: <https://trac.macports.org/ticket/29847#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29847: nawk: checksum mismatch -----------------------------+---------------------------------------------- Reporter: rens@… | Owner: toby@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: haspatch | Port: nawk -----------------------------+---------------------------------------------- Comment(by dluke@…): Could something like this work instead? {{{ set archflags ${configure.cc_archflags} variant universal { uplevel {set archflags ${configure.universal_cflags}} } }}} -- Ticket URL: <https://trac.macports.org/ticket/29847#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29847: nawk: checksum mismatch -----------------------------+---------------------------------------------- Reporter: rens@… | Owner: toby@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: haspatch | Port: nawk -----------------------------+---------------------------------------------- Comment(by ryandesign@…): I'm sure there are many Tcl constructs that would accomplish the same thing. But the construct submitted in my patch is the one already being used in dozens of ports in MacPorts and thus has the advantage of already being familiar to some portfile readers. -- Ticket URL: <https://trac.macports.org/ticket/29847#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29847: nawk: checksum mismatch -----------------------------+---------------------------------------------- Reporter: rens@… | Owner: toby@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: haspatch | Port: nawk -----------------------------+---------------------------------------------- Comment(by dluke@…): Replying to [comment:11 ryandesign@…]:
I'm sure there are many Tcl constructs that would accomplish the same thing. But the construct submitted in my patch is the one already being used in dozens of ports in MacPorts and thus has the advantage of already being familiar to some portfile readers.
and has the disadvantage of using variant_isset, which is generally a sign of working against the MacPorts infrastructure instead of working with it... -- Ticket URL: <https://trac.macports.org/ticket/29847#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29847: nawk: checksum mismatch -----------------------------+---------------------------------------------- Reporter: rens@… | Owner: toby@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: haspatch | Port: nawk -----------------------------+---------------------------------------------- Comment(by ryandesign@…): `variant_isset` is a perfectly fine and documented function portfiles are free to use. I count about 650 ports currently doing so. `uplevel` on the other hand is not mentioned anywhere in the guide and is not used by any ports. Actually maybe the use of `uplevel` isn't necessary in your code sample. If minimizing use of `variant_isset` or introducing the use of `uplevel` in portfiles are discussions you want to have, let's have them on the macports-dev mailing list. This ticket is merely for updating nawk to the latest version, and incidentally to fix it so it builds for the correct architectures, using a proven method already employed by dozens of ports. -- Ticket URL: <https://trac.macports.org/ticket/29847#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29847: nawk: checksum mismatch -----------------------------+---------------------------------------------- Reporter: rens@… | Owner: toby@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: haspatch | Port: nawk -----------------------------+---------------------------------------------- Comment(by dluke@…): We've had the discussion on list before. I only commented here because of the expressed preference to avoid having to use a similar conditional in many ports. Being able to keep everything necessary for +universal inside of the universal variant definition is a win, I think. -- Ticket URL: <https://trac.macports.org/ticket/29847#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29847: nawk: checksum mismatch ------------------------------+--------------------------------------------- Reporter: rens@… | Owner: toby@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: fixed | Keywords: haspatch Port: nawk | ------------------------------+--------------------------------------------- Changes (by toby@…): * status: new => closed * resolution: => fixed Comment: Being able to keep everything necessary for +universal inside base was even better. Anyway, that regression is a discussion for another bug. Updated in r80297, no real benefit to having universal nawk anyway. -- Ticket URL: <https://trac.macports.org/ticket/29847#comment:16> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29847: nawk: checksum mismatch ------------------------------+--------------------------------------------- Reporter: rens@… | Owner: toby@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: | Keywords: haspatch Port: nawk | ------------------------------+--------------------------------------------- Changes (by jameschurchman@…): * status: closed => reopened * resolution: fixed => Comment: I also get : Port command started with PID 3720 Fetching archive for nawk Attempting to fetch nawk-20110506_0.darwin_10.x86_64.tbz2 from http://packages.macports.org/nawk Fetching nawk Attempting to fetch awk.tar.gz from http://www.cs.princeton.edu/~bwk/btl.mirror/ Verifying checksum(s) for nawk Error: Checksum (md5) mismatch for awk.tar.gz Error: Checksum (sha1) mismatch for awk.tar.gz Error: Checksum (rmd160) mismatch for awk.tar.gz Error: Target org.macports.checksum returned: Unable to verify file checksums Error: Unable to execute port: could not set effective gid to 0 To report a bug, see <http://guide.macports.org/#project.tickets> Executing: /opt/local/bin/port install nawk also done the usual "sudo port selfupdate" & "sudo port clean nawk" and it still fails James -- Ticket URL: <https://trac.macports.org/ticket/29847#comment:17> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29847: nawk: checksum mismatch ------------------------------+--------------------------------------------- Reporter: rens@… | Owner: toby@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: | Keywords: haspatch Port: nawk | ------------------------------+--------------------------------------------- Comment(by ryandesign@…): Yes, the developer of nawk has updated it again, so we need to update the portfile again. Attached is a patch to do this and address the other remaining concern of this ticket. In the future when a new update is needed, file a new ticket please rather than re-opening an old resolved one. -- Ticket URL: <https://trac.macports.org/ticket/29847#comment:18> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29847: nawk: checksum mismatch ------------------------------+--------------------------------------------- Reporter: rens@… | Owner: toby@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: fixed | Keywords: haspatch Port: nawk | ------------------------------+--------------------------------------------- Changes (by ryandesign@…): * status: reopened => closed * resolution: => fixed Comment: Toby committed the update to 20110810 in r82426 and the fix to the livecheck in r82427, and I fixed the universal variant in r82456. -- Ticket URL: <https://trac.macports.org/ticket/29847#comment:19> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29847: nawk: checksum mismatch ------------------------------+--------------------------------------------- Reporter: rens@… | Owner: toby@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: fixed | Keywords: haspatch Port: nawk | ------------------------------+--------------------------------------------- Comment(by jmr@…): And I put back the cflags in r82483. -- Ticket URL: <https://trac.macports.org/ticket/29847#comment:20> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29847: nawk: checksum mismatch ------------------------------+--------------------------------------------- Reporter: rens@… | Owner: toby@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: fixed | Keywords: haspatch Port: nawk | ------------------------------+--------------------------------------------- Comment(by ryandesign@…): Whoops! Those weren't supposed to get deleted. Sorry about that. -- Ticket URL: <https://trac.macports.org/ticket/29847#comment:21> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts