Artifacts Associated With Ticket 1969717fffffffffffffffffffffffffffffffff
Ticket change [379735ddc8] (rid 112054) by decosterjos on 2008-05-22 16:09:56:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Platform: Windows Version: head Observation: [package require] fails for a package located on a drive mounted via samba This problem is caused by [file readable] failing to get the correct access rights for the pkgIndex.tcl files on this samba drive. I look into the 'NativeAccess' code in tclWinFile.c and could not find what is wrong. Pat Thoyts also looked at the code and couldn't see what's caused [file readable] to fail. I suggest a work around for [package require] by replacing the [file readable $file] by a [catch {open $file r}]. This solves the [package require] problem. [file readable] still remains 'fragile' but the user can work around that problem in his own code when needed. It's not clear where the problem originates. Could be a samba problem, could be a problem with the code in tclWinFile.c. I attached a patch for package.tcl (head). Regards, Jos. - foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "decosterjos"
- subsystem initialized to: "39. Package Manager"
- title initialized to:
package require fails due to [file readable] problem
- type initialized to: "Patch"
Add attachment "catch_open.patch" [636fa3eaa4] (rid 92575) by decosterjos on 2008-05-22 23:09:56.
Ticket change [f2b495f8fa] (rid 109601) by decosterjos on 2008-05-22 23:09:57:
- icomment:
File Added - 278689: catch_open.patch
- login: "decosterjos"
- mimetype: "text/plain"
- username: "decosterjos"
- icomment:
Ticket change [a2659f5582] (rid 109884) by dgp on 2008-06-03 21:18:10:
- priority changed to: "9 Immediate"
Add attachment "1969717.patch" [fc09dad919] (rid 108163) by dgp on 2008-06-27 23:41:44.
Ticket change [4b1f3e75cc] (rid 126643) by dgp on 2008-06-27 23:41:44:
- icomment:
File Added - 282946: 1969717.patch Logged In: YES user_id=80530 Originator: NO File Added: 1969717.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [ff2ea9c226] (rid 108709) by dgp on 2008-06-27 23:44:13:
- icomment:
Logged In: YES user_id=80530 Originator: NO Please review and test the alternative patch. Advantage over the first is that it gets by with opening each file once instead of twice. Disadvantage is that in the rare case that a pkgIndex.tcl script contains an error trying to read a non-readable file, the usual logging of that error would get suppressed. I can't really imagine why a sensible index script would attempt such an operation, so I think the alternative patch is better.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Add attachment "1969717-85.patch" [6e943c621b] (rid 100173) by dgp on 2008-06-28 00:37:16.
Ticket change [3d2afe9d73] (rid 121040) by dgp on 2008-06-28 00:37:16:
- icomment:
File Added - 282953: 1969717-85.patch Logged In: YES user_id=80530 Originator: NO corresponding patch for 8.5 and HEAD File Added: 1969717-85.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [9ad3a6e4a5] (rid 111019) by dgp on 2008-06-30 02:57:38:
- assignee changed to: "andreas_kupries"
Ticket change [23162754ae] (rid 130857) by decosterjos on 2008-06-30 13:30:54:
- icomment:
Logged In: YES user_id=370749 Originator: YES Alternative patch works fine for me. Thanks & regards, Jos.
- login: "decosterjos"
- mimetype: "text/plain"
- username: "decosterjos"
- icomment:
Ticket change [102ce51f17] (rid 94923) by andreas_kupries on 2008-07-01 04:41:49:
- assignee changed to: "dgp"
- icomment:
Logged In: YES user_id=75003 Originator: NO Go ahead. Looked over the patch and the basic principle (try to source, and check exact of a failure cause after the fact) seems good to me. I don't see any syntax errors either.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
Ticket change [a4d41c39b9] (rid 110268) by dgp on 2008-07-04 00:27:41:
- closedate changed to: "2008-07-03T17:27:41"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 Originator: NO committed to all branches
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Accepted"
- status changed to: "Closed"
- username: "dgp"