Re: message before unpacking
Robert Eden <[email protected]> Mon, 18 Jan 2021 19:21:22 -0600
| Newsgroups | gmane.comp.lang.perl.par |
|---|---|
| Message-ID | <[email protected]> |
--------------37A679E236E881014BB51AA3
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: base64
SSBzZWFyY2hlZCB0aGUgZmlsZXMgZm9yIG1rZGlyIHN0YXRlbWVudHMgYW5kIGNhbWUgdXAg
d2l0aCBhIGhhY2suLiA6KQ0KDQpJbiBib290LmMNCg0KICAgICDCoMKgwqAgcGFyX2luaXRf
ZW52KCk7DQoNCiAgICAgwqDCoMKgIHN0bXBkaXIgPSBwYXJfbWt0bXBkaXIoIGFyZ3YgKTsN
CiAgICAgwqDCoMKgIGlmICggIXN0bXBkaXIgKSBESUU7wqDCoMKgwqDCoMKgwqAgLyogZXJy
b3IgbWVzc2FnZSBoYXMgYWxyZWFkeSBiZWVuDQogICAgcHJpbnRlZCAqLw0KDQogICAgIMKg
wqDCoCByYyA9IG15X21rZGlyKHN0bXBkaXIsIDA3MDApOw0KICAgICovLyAyMDIxLTAxLTE4
IHJtZWRlbiBoYWNrIHRvIHByaW50IGEgbWVzc2FnZSBvbiBmaXJzdCBydW4qKg0KICAgICoq
wqDCoMKgIGlmICggcmMgPT0gMCApIGZwcmludGYoc3RkZXJyLCJOb3RlOiBUaGlzIHdpbGwg
dGFrZSBhIHdoaWxlIG9uDQogICAgZmlyc3QgcnVuXG4iKTsqKg0KICAgICoqLy8gcm1lZGVu
KioNCiAgICAqwqDCoMKgIGlmICggcmMgPT0gLTEgJiYgZXJybm8gIT0gRUVYSVNUKSB7DQog
ICAgIMKgwqDCoCBmcHJpbnRmKHN0ZGVyciwgIiVzOiBjcmVhdGlvbiBvZiBwcml2YXRlIGNh
Y2hlIHN1YmRpcmVjdG9yeSAlcw0KICAgIGZhaWxlZCAoZXJybm89ICVpKVxuIiwNCiAgICAg
wqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoCBhcmd2WzBd
LCBzdG1wZGlyLCBlcnJubyk7DQogICAgIMKgwqDCoMKgIERJRTsNCiAgICAgwqDCoMKgIH0N
Cg0KSXQncyBub3QgYSByZWFsIGZpeMKgIChpdCBwcmludHMgbWVzc2FnZXMgd2hpbGUgYnVp
bGRpbmcgdGhlIHBhY2thZ2UpLCANCmJ1dCBkb2VzIGFwcGVhciB0byBtZWV0IG15IG5lZWRz
LsKgIEkgdHJpZWQgdG8gZmluZCB3aGVyZSBpdCBjaGVja3MgdG8gDQpzZWUgaWYgdGhlIHRl
bXAgZGlyIHdhcyBhbHJlYWR5IGNvcGllZCwgYnV0IGNvdWxkbid0IGZpbmQgaXQuwqAgSGVj
aywgSSANCmRvbid0IHNlZSBob3cgdGhlIGFib3ZlIGNvZGUgZXZlbiB3b3JrcywgYnV0IGl0
IHNlZW1zIHRvLsKgwqAgSSdtIHdpbGxpbmcgDQp0byB3b3JrIG9uIGEgcmVhbCBwYXRjaCBp
ZiBJIGNvdWxkIGJlIHBvaW50ZWQgaW4gdGhlIHJpZ2h0IGRpcmVjdGlvbi4NCg0KUm9iZXJ0
DQoNCg0KDQo=
--------------37A679E236E881014BB51AA3
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
I searched the files for mkdir statements and came up with a hack..
:)<br>
<br>
In boot.c<br>
<blockquote><font face="monospace"> par_init_env();</font><br>
<br>
<font face="monospace"> stmpdir = par_mktmpdir( argv ); </font><br>
<font face="monospace"> if ( !stmpdir ) DIE; /* error
message has already been printed */</font><br>
<br>
<font face="monospace"> rc = my_mkdir(stmpdir, 0700);</font><br>
<b><font face="monospace">// 2021-01-18 rmeden hack to print a
message on first run</font></b><b><br>
</b><b><font face="monospace"> if ( rc == 0 )
fprintf(stderr,"Note: This will take a while on first run\n");</font></b><b><br>
</b><b><font face="monospace">// rmeden</font></b><b><br>
</b><font face="monospace"> if ( rc == -1 && errno !=
EEXIST) {</font><br>
<font face="monospace"> fprintf(stderr, "%s: creation of
private cache subdirectory %s failed (errno= %i)\n", </font><br>
<font face="monospace"> argv[0], stmpdir,
errno);</font><br>
<font face="monospace"> DIE;</font><br>
<font face="monospace"> }</font><br>
</blockquote>
It's not a real fix (it prints messages while building the
package), but does appear to meet my needs. I tried to find where
it checks to see if the temp dir was already copied, but couldn't
find it. Heck, I don't see how the above code even works, but it
seems to. I'm willing to work on a real patch if I could be
pointed in the right direction.<br>
<br>
Robert<br>
<br>
<br>
<br>
</body>
</html>
--------------37A679E236E881014BB51AA3--