Date: Tue, 7 Feb 2012 09:40:09 GMT From: Rusty Nejdl <rnejdl@ringofsaturn.com> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/163948: Python incompatibility on ports: deskutils/calibre Message-ID: <201202070940.q179e9Lr097534@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/163948; it has been noted by GNATS. From: Rusty Nejdl <rnejdl@ringofsaturn.com> To: <bug-followup@freebsd.org>, <kevin.mcaleavey@knosproject.com> Cc: Subject: Re: ports/163948: Python incompatibility on ports: deskutils/calibre Date: Tue, 07 Feb 2012 03:39:20 -0600 --=_78dda784d221cdc06ad170d4fe3645dd Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=UTF-8; format=flowed (I couldn't sleep.) Here's the fix and I'll submit a PR to have this updated. Rusty Nejdl --=_78dda784d221cdc06ad170d4fe3645dd Content-Transfer-Encoding: base64 Content-Type: application/octet-stream; name=patch-calibre-0.8.38 Content-Disposition: attachment; filename=patch-calibre-0.8.38 ZGlmZiAtcnVOIGNhbGlicmUvTWFrZWZpbGUgY2FsaWJyZS5uZXcvTWFrZWZpbGUKLS0tIGNhbGli cmUvTWFrZWZpbGUJMjAxMi0wMi0wNCAxOTowOTo0OS4wMDAwMDAwMDAgLTA2MDAKKysrIGNhbGli cmUubmV3L01ha2VmaWxlCTIwMTItMDItMDcgMDM6MzE6MzQuMDAwMDAwMDAwIC0wNjAwCkBAIC02 LDcgKzYsNyBAQAogIwogCiBQT1JUTkFNRT0JY2FsaWJyZQotUE9SVFZFUlNJT049CTAuOC4zNwor UE9SVFZFUlNJT049CTAuOC4zOAogQ0FURUdPUklFUz0JZGVza3V0aWxzIHB5dGhvbgogTUFTVEVS X1NJVEVTPQlTRi8ke1BPUlROQU1FfS8ke1BPUlRWRVJTSU9OfS8KIApkaWZmIC1ydU4gY2FsaWJy ZS9kaXN0aW5mbyBjYWxpYnJlLm5ldy9kaXN0aW5mbwotLS0gY2FsaWJyZS9kaXN0aW5mbwky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ICAgICAgICAgYW5z LmFkZCh0dXBsZShkZXYpKQotICAgICAgICAgcmV0dXJuIGFucwotIAotK2NsYXNzIEZyZWVCU0RT Y2FubmVyKG9iamVjdCk6Ci0rCi0rICAgIGRlZiBfX2NhbGxfXyhzZWxmKToKLSsgICAgICAgIGFu cyA9IHNldChbXSkKLSsgICAgICAgIGltcG9ydCBkYnVzCi0rICAgICAgICBkZXZzID0gW10KLSsK LSsgICAgICAgIHRyeToKLSsgICAgICAgICAgIGJ1cyA9IGRidXMuU3lzdGVtQnVzKCkKLSsgICAg ICAgICAgIG1hbmFnZXIgPSBkYnVzLkludGVyZmFjZShidXMuZ2V0X29iamVjdCgnb3JnLmZyZWVk ZXNrdG9wLkhhbCcsCi0rICAgICAgICAgICAgICAgICAgICAgICAgICcvb3JnL2ZyZWVkZXNrdG9w L0hhbC9NYW5hZ2VyJyksICdvcmcuZnJlZWRlc2t0b3AuSGFsLk1hbmFnZXInKQotKyAgICAgICAg ICAgcGF0aHMgPSBtYW5hZ2VyLkZpbmREZXZpY2VTdHJpbmdNYXRjaCgnZnJlZWJzZC5kcml2ZXIn LCdkYScpCi0rICAgICAgICAgICBmb3IgcGF0aCBpbiBwYXRoczoKLSsgICAgICAgICAgICAgIG9i aiA9IGJ1cy5nZXRfb2JqZWN0KCdvcmcuZnJlZWRlc2t0b3AuSGFsJywgcGF0aCkKLSsgICAgICAg ICAgICAgIG9iamlmID0gZGJ1cy5JbnRlcmZhY2Uob2JqLCAnb3JnLmZyZWVkZXNrdG9wLkhhbC5E ZXZpY2UnKQotKyAgICAgICAgICAgICAgZGV2aWYgPSBvYmppZgotKyAgICAgICAgICAgICAgcGFy ZW50ZHJpdmVyID0gTm9uZQotKyAgICAgICAgICAgICAgd2hpbGUgcGFyZW50ZHJpdmVyICE9ICd1 bWFzcyc6Ci0rICAgICAgICAgICAgICAgICB0cnk6Ci0rICAgICAgICAgICAgICAgICAgICBvYmog PSBidXMuZ2V0X29iamVjdCgnb3JnLmZyZWVkZXNrdG9wLkhhbCcsCi0rICAgICAgICAgICAgICAg ICAgICAgICAgICBvYmppZi5HZXRQcm9wZXJ0eSgnaW5mby5wYXJlbnQnKSkKLSsgICAgICAgICAg ICAgICAgICAgIG9iamlmID0gZGJ1cy5JbnRlcmZhY2Uob2JqLCAnb3JnLmZyZWVkZXNrdG9wLkhh bC5EZXZpY2UnKQotKyAgICAgICAgICAgICAgICAgICAgdHJ5OgotKyAgICAgICAgICAgICAgICAg ICAgICAgcGFyZW50ZHJpdmVyID0gb2JqaWYuR2V0UHJvcGVydHkoJ2ZyZWVic2QuZHJpdmVyJykK LSsgICAgICAgICAgICAgICAgICAgIGV4Y2VwdCBkYnVzLmV4Y2VwdGlvbnMuREJ1c0V4Y2VwdGlv biwgZToKLSsgICAgICAgICAgICAgICAgICAgICAgIGNvbnRpbnVlCi0rICAgICAgICAgICAgICAg ICBleGNlcHQgZGJ1cy5leGNlcHRpb25zLkRCdXNFeGNlcHRpb24sIGU6Ci0rICAgICAgICAgICAg ICAgICAgICBicmVhawotKyAgICAgICAgICAgICAgaWYgcGFyZW50ZHJpdmVyICE9ICd1bWFzcyc6 Ci0rICAgICAgICAgICAgICAgICAgY29udGludWUKLSsgICAgICAgICAgICAgIGRldiA9IFtdCi0r ICAgICAgICAgICAgICB0cnk6Ci0rICAgICAgICAgICAgICAgICBkZXYuYXBwZW5kKG9iamlmLkdl dFByb3BlcnR5KCd1c2IudmVuZG9yX2lkJykpCi0rICAgICAgICAgICAgICAgICBkZXYuYXBwZW5k KG9iamlmLkdldFByb3BlcnR5KCd1c2IucHJvZHVjdF9pZCcpKQotKyAgICAgICAgICAgICAgICAg ZGV2LmFwcGVuZChvYmppZi5HZXRQcm9wZXJ0eSgndXNiLmRldmljZV9yZXZpc2lvbl9iY2QnKSkK LSsgICAgICAgICAgICAgIGV4Y2VwdCBkYnVzLmV4Y2VwdGlvbnMuREJ1c0V4Y2VwdGlvbiwgZToK LSsgICAgICAgICAgICAgICAgIGNvbnRpbnVlCi0rICAgICAgICAgICAgICB0cnk6Ci0rICAgICAg ICAgICAgICAgICBkZXYuYXBwZW5kKG9iamlmLkdldFByb3BlcnR5KCdpbmZvLnZlbmRvcicpKQot KyAgICAgICAgICAgICAgZXhjZXB0OgotKyAgICAgICAgICAgICAgICAgZGV2LmFwcGVuZCgnJykK LSsgICAgICAgICAgICAgIHRyeToKLSsgICAgICAgICAgICAgICAgIGRldi5hcHBlbmQob2JqaWYu R2V0UHJvcGVydHkoJ2luZm8ucHJvZHVjdCcpKQotKyAgICAgICAgICAgICAgZXhjZXB0OgotKyAg ICAgICAgICAgICAgICAgZGV2LmFwcGVuZCgnJykKLSsgICAgICAgICAgICAgIHRyeToKLSsgICAg ICAgICAgICAgICAgIGRldi5hcHBlbmQob2JqaWYuR2V0UHJvcGVydHkoJ3VzYi5zZXJpYWwnKSkK LSsgICAgICAgICAgICAgIGV4Y2VwdDoKLSsgICAgICAgICAgICAgICAgIGRldi5hcHBlbmQoJycp Ci0rICAgICAgICAgICAgICBkZXYuYXBwZW5kKHBhdGgpCi0rICAgICAgICAgICAgICBhbnMuYWRk KHR1cGxlKGRldikpCi0rICAgICAgICBleGNlcHQgZGJ1cy5leGNlcHRpb25zLkRCdXNFeGNlcHRp b24sIGU6Ci0rICAgICAgICAgICBwcmludCA+PnN5cy5zdGRlcnIsICJFeGVjdXRpb24gZmFpbGVk OiIsIGUKLSsgICAgICAgIHJldHVybiBhbnMKLSsKLSsKLSsKLSBsaW51eF9zY2FubmVyID0gTm9u ZQotIAotIGlmIGlzbGludXg6Ci0gICAgIGxpbnV4X3NjYW5uZXIgPSBMaW51eFNjYW5uZXIoKQot IAotK2ZyZWVic2Rfc2Nhbm5lciA9IE5vbmUKLSsKLStpZiBpc2ZyZWVic2Q6Ci0rICAgIGZyZWVi c2Rfc2Nhbm5lciA9IEZyZWVCU0RTY2FubmVyKCkKLSsKLSsKLSBjbGFzcyBEZXZpY2VTY2FubmVy KG9iamVjdCk6Ci0gCi0gICAgIGRl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3Rkb3V0 PXN1YnByb2Nlc3MuUElQRSkuY29tbXVuaWNhdGUoKVswXQotLSAgICAgICAgICAgIHAuc3Rkb3V0 LmNsb3NlKCkKLS0gICAgICAgICAgICBpZiBkZXZtYXRjaDoKLS0gICAgICAgICAgICAgICAgI3By aW50ICJDaGVja2luZyAiLCBkZXZtYXRjaAotLSAgICAgICAgICAgICAgICAjIC4uLiBzZWUgaWYg d2UgY2FuIGdldCBhIFMvTiBmcm9tIHRoZSBhY3R1YWwgZGV2aWNlIG5vZGUKLS0gICAgICAgICAg ICAgICAgc249c3VicHJvY2Vzcy5Qb3BlbihbImNhbWNvbnRyb2wiLCAiaW5xdWlyeSIsIGR2Yywg Ii1TIl0sIHN0ZG91dD1zdWJwcm9jZXNzLlBJUEUpLmNvbW11bmljYXRlKClbMF0KLS0gICAgICAg ICAgICAgICAgc249c25bMDotMV0gICAgICAgICAgICAgIyBkcm9wIHRoZSB0cmFpbGluZyBuZXds aW5lCi0tICAgICAgICAgICAgICAgICNwcmludCAiUy9OID0gIiwgc24KLS0gICAgICAgICAgICAg ICAgaWYgc24gYW5kIGQubWF0Y2hfc2VyaWFsKHNuKToKLS0gICAgICAgICAgICAgICAgICAgICMg d2UgaGF2ZSBhIG1hdGNoaW5nIHMvbiwgcmVjb3JkIHRoaXMgZGV2aWNlIG5vZGUKLS0gICAgICAg ICAgICAgICAgICAgICNwcmludCAibWF0Y2ggZm91bmQ6ICIsIGR2YwotLSAgICAgICAgICAgICAg ICAgICAgZGV2c1tkaV09ZHZjCi0tICAgICAgICAgICAgICAgICAgICBkaSArPSAxCi0tCi0tICAg ICAgICAjIHNvcnQgdGhlIGxpc3Qgb2YgZGV2aWNlcwotLSAgICAgICAgZm9yIGkgaW4gcmFuZ2Uo MSxuZGV2cysxKToKLS0gICAgICAgICAgICBmb3IgaiBpbiByZXZlcnNlZChyYW5nZSgxLGkpKToK LS0gICAgICAgICAgICAgICAgaWYgZGV2c1tqLTFdID4gZGV2c1tqXToKLS0gICAgICAgICAgICAg ICAgICAgIHg9ZGV2c1tqLTFdCi0tICAgICAgICAgICAgICAgICAgICBkZXZzW2otMV09ZGV2c1tq XQotLSAgICAgICAgICAgICAgICAgICAgZGV2c1tqXT14Ci0tICAgICAgICAjcHJpbnQgZGV2cwot LQotLSAgICAgICAgIyBub3cgd2UgbmVlZCB0byBzZWUgaWYgYW55IG9mIHRoZXNlIGhhdmUgc2xp Y2VzL3BhcnRpdGlvbnMKLSsgICAgICAgIAotKyAgICAgICAgdm9scz1bXQotKyAgICAgICAgCi0r ICAgICAgICBidXMgPSBkYnVzLlN5c3RlbUJ1cygpCi0rICAgICAgICBtYW5hZ2VyID0gZGJ1cy5J bnRlcmZhY2UoYnVzLmdldF9vYmplY3QoJ29yZy5mcmVlZGVza3RvcC5IYWwnLAotKyAgICAgICAg ICAgICAgICAgICAgICAnL29yZy9mcmVlZGVza3RvcC9IYWwvTWFuYWdlcicpLCAnb3JnLmZyZWVk ZXNrdG9wLkhhbC5NYW5hZ2VyJykKLSsgICAgICAgIHBhdGhzID0gbWFuYWdlci5GaW5kRGV2aWNl U3RyaW5nTWF0Y2goJ3VzYi5zZXJpYWwnLGQuc2VyaWFsKQotKyAgICAgICAgZm9yIHBhdGggaW4g cGF0aHM6Ci0rICAgICAgICAgICAgb2JqaWYgPSBkYnVzLkludGVyZmFjZShidXMuZ2V0X29iamVj dCgnb3JnLmZyZWVkZXNrdG9wLkhhbCcsIHBhdGgpLCAnb3JnLmZyZWVkZXNrdG9wLkhhbC5EZXZp Y2UnKQotKyAgICAgICAgICAgICMgRXh0cmEgcGFyYW5vaWEuLi4KLSsgICAgICAgICAgICB0cnk6 Ci0rICAgICAgICAgICAgICAgIGlmIGQuaWRWZW5kb3IgPT0gb2JqaWYuR2V0UHJvcGVydHkoJ3Vz Yi52ZW5kb3JfaWQnKSBhbmQgXAotKyAgICAgICAgICAgICAgICAgICAgICAgIGQuaWRQcm9kdWN0 ID09IG9iamlmLkdldFByb3BlcnR5KCd1c2IucHJvZHVjdF9pZCcpIGFuZCBcCi0rICAgICAgICAg ICAgICAgICAgICAgICAgZC5tYW51ZmFjdHVyZXIgPT0gb2JqaWYuR2V0UHJvcGVydHkoJ3VzYi52 ZW5kb3InKSBhbmQgXAotKyAgICAgICAgICAgICAgICAgICAgICAgIGQucHJvZHVjdCA9PSBvYmpp Zi5HZXRQcm9wZXJ0eSgndXNiLnByb2R1Y3QnKSBhbmQgXAotKyAgICAgICAgICAgICAgICAgICAg ICAgIGQuc2VyaWFsID09IG9iamlmLkdldFByb3BlcnR5KCd1c2Iuc2VyaWFsJyk6Ci0rICAgICAg ICAgICAgICAgICAgICBkcGF0aHMgPSBtYW5hZ2VyLkZpbmREZXZpY2VTdHJpbmdNYXRjaCgnc3Rv cmFnZS5vcmlnaW5hdGluZ19kZXZpY2UnLCBwYXRoKQotKyAgICAgICAgICAgICAgICAgICAgZm9y IGRwYXRoIGluIGRwYXRoczoKLSsgICAgICAgICAgICAgICAgICAgICAgICBkZXZpZiA9IGRidXMu SW50ZXJmYWNlKGJ1cy5nZXRfb2JqZWN0KCdvcmcuZnJlZWRlc2t0b3AuSGFsJywgZHBhdGgpLCAn b3JnLmZyZWVkZXNrdG9wLkhhbC5EZXZpY2UnKQotKyAgICAgICAgICAgICAgICAgICAgICAgIHRy eToKLSsgICAgICAgICAgICAgICAgICAgICAgICAgICAgdnBhdGhzID0gbWFuYWdlci5GaW5kRGV2 aWNlU3RyaW5nTWF0Y2goJ2Jsb2NrLnN0b3JhZ2VfZGV2aWNlJywgZHBhdGgpCi0rICAgICAgICAg ICAgICAgICAgICAgICAgICAgIGZvciB2cGF0aCBpbiB2cGF0aHM6Ci0rICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICB0cnk6Ci0rICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgdmRldmlmID0gZGJ1cy5JbnRlcmZhY2UoYnVzLmdldF9vYmplY3QoJ29yZy5mcmVlZGVza3Rv cC5IYWwnLCB2cGF0aCksICdvcmcuZnJlZWRlc2t0b3AuSGFsLkRldmljZScpCi0rICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgbm90IHZkZXZpZi5HZXRQcm9wZXJ0eSgnYmxv Y2suaXNfdm9sdW1lJyk6Ci0rICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg IGNvbnRpbnVlCi0rICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgdmRldmlm LkdldFByb3BlcnR5KCd2b2x1bWUuZnN1c2FnZScpICE9ICdmaWxlc3lzdGVtJzoKLSsgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29udGludWUKLSsgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICB2b2xpZiA9IGRidXMuSW50ZXJmYWNlKGJ1cy5nZXRfb2Jq ZWN0KCdvcmcuZnJlZWRlc2t0b3AuSGFsJywgdnBhdGgpLCAnb3JnLmZyZWVkZXNrdG9wLkhhbC5E ZXZpY2UuVm9sdW1lJykKLSsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwZGV2 aWYgPSBkYnVzLkludGVyZmFjZShidXMuZ2V0X29iamVjdCgnb3JnLmZyZWVkZXNrdG9wLkhhbCcs IHZkZXZpZi5HZXRQcm9wZXJ0eSgnaW5mby5wYXJlbnQnKSksICdvcmcuZnJlZWRlc2t0b3AuSGFs LkRldmljZScpCi0rICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdm9sID0geydu b2RlJzogcGRldmlmLkdldFByb3BlcnR5KCdibG9jay5kZXZpY2UnKSwKLSsgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICdkZXYnOiB2ZGV2aWYsCi0rICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAndm9sJzogdm9saWYsCi0rICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnbGFiZWwnOiB2ZGV2aWYuR2V0 UHJvcGVydHkoJ3ZvbHVtZS5sYWJlbCcpfQotKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIHZvbHMuYXBwZW5kKHZvbCkKLSsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg IGV4Y2VwdCBkYnVzLmV4Y2VwdGlvbnMuREJ1c0V4Y2VwdGlvbiwgZToKLSsgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICBwcmludCBlCi0rICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgY29udGludWUKLSsgICAgICAgICAgICAgICAgICAgICAgICBleGNlcHQgZGJ1 cy5leGNlcHRpb25zLkRCdXNFeGNlcHRpb24sIGU6Ci0rICAgICAgICAgICAgICAgICAgICAgICAg ICAgIHByaW50IGUKLSsgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29udGludWUKLSsgICAg ICAgICAgICBleGNlcHQgZGJ1cy5leGNlcHRpb25zLkRCdXNFeGNlcHRpb24sIGU6Ci0rICAgICAg ICAgICAgICAgIGNvbnRpbnVlCi0rCi0rICAgICAgICBkZWYgb2NtcCh4LHkpOgotKyAgICAgICAg ICAgIGlmIHhbJ25vZGUnXSA8IHlbJ25vZGUnXToKLSsgICAgICAgICAgICAgICAgcmV0dXJuIC0x Ci0rICAgICAgICAgICAgaWYgeFsnbm9kZSddID4geVsnbm9kZSddOgotKyAgICAgICAgICAgICAg ICByZXR1cm4gMQotKyAgICAgICAgICAgIHJldHVybiAwCi0rCi0rICAgICAgICB2b2xzLnNvcnQo Y21wPW9jbXApCi0rCi0rICAgICAgICBpZiB2ZXJib3NlOgotKyAgICAgICAgICAgIHByaW50ICJG QlNEOgkiLCB2b2xzCi0rICAgICAgICAKLSAgICAgICAgIG10ZD0wCi0tICAgICAgICBsYWJlbD0i UkVBREVSIiAgICAgICMgY291bGQgdXNlIHNvbWV0aGluZyBtb3JlIHVuaXF1ZSwgbGlrZSBTL04g b3IgcHJvZHVjdElELi4uCi0tICAgICAgICBjbWQgPSAnL3Vzci9sb2NhbC9iaW4vY2FsaWJyZS1t b3VudC1oZWxwZXInCi0tICAgICAgICBjbWQgPSBbY21kLCAnbW91bnQnXQotLSAgICAgICAgZm9y IGkgaW4gcmFuZ2UoMCxuZGV2cyk6Ci0tICAgICAgICAgICAgY21kMj0ibHMgL2Rldi8iK2RldnNb aV0rIioiCi0tICAgICAgICAgICAgcD1zdWJwcm9jZXNzLlBvcGVuKGNtZDIsIHNoZWxsPVRydWUs IHN0ZG91dD1zdWJwcm9jZXNzLlBJUEUpCi0tICAgICAgICAgICAgZGV2c1tpXT1zdWJwcm9jZXNz LlBvcGVuKFsiY3V0IiwgIi1kIiwgIi8iLCAiLWYiICIzIl0sIHN0ZGluPXAuc3Rkb3V0LCBzdGRv dXQ9c3VicHJvY2Vzcy5QSVBFKS5jb21tdW5pY2F0ZSgpWzBdCi0tICAgICAgICAgICAgcC5zdGRv dXQuY2xvc2UoKQotLQotLSAgICAgICAgICAgICMgdHJ5IGFsbCB0aGUgbm9kZXMgdG8gc2VlIHdo YXQgd2UgY2FuIG1vdW50Ci0tICAgICAgICAgICAgZm9yIGRldiBpbiBkZXZzW2ldLnNwbGl0KCk6 Ci0tICAgICAgICAgICAgICAgIG1wPScvbWVkaWEvJytsYWJlbCsnLScrZGV2Ci0tICAgICAgICAg ICAgICAgIG1tcCA9IG1wCi0tICAgICAgICAgICAgICAgIGlmIG1tcC5lbmRzd2l0aCgnLycpOgot LSAgICAgICAgICAgICAgICAgICAgbW1wID0gbW1wWzotMV0KLS0gICAgICAgICAgICAgICAgI3By aW50ICJ0cnlpbmcgIiwgZGV2LCAib24iLCBtcAotLSAgICAgICAgICAgICAgICB0cnk6Ci0tICAg ICAgICAgICAgICAgICAgICBwID0gc3VicHJvY2Vzcy5Qb3BlbihjbWQgKyBbIi9kZXYvIitkZXYs IG1tcF0pCi0tICAgICAgICAgICAgICAgIGV4Y2VwdCBPU0Vycm9yOgotLSAgICAgICAgICAgICAg ICAgICAgcmFpc2UgRGV2aWNlRXJyb3IoXygnQ291bGQgbm90IGZpbmQgbW91bnQgaGVscGVyOiAl cy4nKSVjbWRbMF0pCi0tICAgICAgICAgICAgICAgIHdoaWxlIHAucG9sbCgpIGlzIE5vbmU6Ci0t ICAgICAgICAgICAgICAgICAgICB0aW1lLnNsZWVwKDAuMSkKLS0KLS0gICAgICAgICAgICAgICAg aWYgcC5yZXR1cm5jb2RlID09IDA6Ci0tICAgICAgICAgICAgICAgICAgICAjcHJpbnQgIiAgbW91 bnRlZCIsIGRldgotLSAgICAgICAgICAgICAgICAgICAgaWYgaSA9PSAwOgotLSAgICAgICAgICAg ICAgICAgICAgICAgIHNlbGYuX21haW5fcHJlZml4ID0gbXAKLS0gICAgICAgICAgICAgICAgICAg ICAgICBzZWxmLl9tYWluX2RldiA9ICIvZGV2LyIrZGV2Ci0tICAgICAgICAgICAgICAgICAgICAg ICAgI3ByaW50ICJtYWluID0gIiwgc2VsZi5fbWFpbl9kZXYsIHNlbGYuX21haW5fcHJlZml4Ci0t ICAgICAgICAgICAgICAgICAgICBpZiBpID09IDE6Ci0tICAgICAgICAgICAgICAgICAgICAgICAg c2VsZi5fY2FyZF9hX3ByZWZpeCA9IG1wCi0tICAgICAgICAgICAgICAgICAgICAgICAgc2VsZi5f Y2FyZF9hX2RldiA9ICIvZGV2LyIrZGV2Ci0tICAgICAgICAgICAgICAgICAgICAgICAgI3ByaW50 ICJjYXJkIGEgPSAiLCBzZWxmLl9jYXJkX2FfZGV2LCBzZWxmLl9jYXJkX2FfcHJlZml4Ci0tICAg ICAgICAgICAgICAgICAgICBpZiBpID09IDI6Ci0tICAgICAgICAgICAgICAgICAgICAgICAgc2Vs Zi5fY2FyZF9iX3ByZWZpeCA9IG1wCi0tICAgICAgICAgICAgICAgICAgICAgICAgc2VsZi5fY2Fy ZF9iX2RldiA9ICIvZGV2LyIrZGV2Ci0tICAgICAgICAgICAgICAgICAgICAgICAgI3ByaW50ICJj YXJkIGIgPSAiLCBzZWxmLl9jYXJkX2JfZGV2LCBzZWxmLl9jYXJkX2JfcHJlZml4Ci0gCi0tICAg ICAgICAgICAgICAgICAgICBtdGQgKz0gMQotLSAgICAgICAgICAgICAgICAgICAgYnJlYWsKLSsg ICAgICAgIGZvciB2b2wgaW4gdm9sczoKLSsgICAgICAgICAgICBtcCA9ICcnCi0rICAgICAgICAg ICAgaWYgdm9sWydkZXYnXS5HZXRQcm9wZXJ0eSgndm9sdW1lLmlzX21vdW50ZWQnKToKLSsgICAg ICAgICAgICAgICAgbXAgPSB2b2xbJ2RldiddLkdldFByb3BlcnR5KCd2b2x1bWUubW91bnRfcG9p bnQnKQotKyAgICAgICAgICAgIGVsc2U6Ci0rICAgICAgICAgICAgICAgIGlmIHZlcmJvc2U6Ci0r ICAgICAgICAgICAgICAgICAgICBwcmludCAiRkJTRDoJdHJ5aW5nICIsIHZvbFsnbGFiZWwnXSwg Im9uIiwgJ0NhbGlicmUtJytsYWJlbHNbaV0KLSsgICAgICAgICAgICAgICAgdHJ5OgotKyAgICAg ICAgICAgICAgICAgICAgdm9sWyd2b2wnXS5Nb3VudCgnQ2FsaWJyZS0nK3ZvbFsnbGFiZWwnXSwK LSsgICAgICAgICAgICAgICAgICAgICAgICAgICAgdm9sWydkZXYnXS5HZXRQcm9wZXJ0eSgndm9s dW1lLmZzdHlwZScpLCBbXSkKLSsgICAgICAgICAgICAgICAgICAgIGxvb3BzID0gMAotKyAgICAg ICAgICAgICAgICAgICAgd2hpbGUgbm90IHZvbFsnZGV2J10uR2V0UHJvcGVydHkoJ3ZvbHVtZS5p c19tb3VudGVkJyk6Ci0rICAgICAgICAgICAgICAgICAgICAgICAgdGltZS5zbGVlcCgxKQotKyAg ICAgICAgICAgICAgICAgICAgICAgIGxvb3BzICs9IDEKLSsgICAgICAgICAgICAgICAgICAgICAg ICBpZiBsb29wcyA+IDEwMDoKLSsgICAgICAgICAgICAgICAgICAgICAgICAgICAgcHJpbnQgIkVS Uk9SOiBUaW1lb3V0IHdhaXRpbmcgZm9yIG1vdW50IHRvIGNvbXBsZXRlIgotKyAgICAgICAgICAg ICAgICAgICAgICAgICAgICBjb250aW51ZQotKyAgICAgICAgICAgICAgICAgICAgbXAgPSB2b2xb J2RldiddLkdldFByb3BlcnR5KCd2b2x1bWUubW91bnRfcG9pbnQnKQotKyAgICAgICAgICAgICAg ICBleGNlcHQgZGJ1cy5leGNlcHRpb25zLkRCdXNFeGNlcHRpb24sIGU6Ci0rICAgICAgICAgICAg ICAgICAgICBwcmludCAiRmFpbGVkIHRvIG1vdW50ICIsIGUKLSsgICAgICAgICAgICAgICAgICAg IGNvbnRpbnVlCi0rCi0rICAgICAgICAgICAgIyBNb3VudCBQb2ludCBiZWNvbWVzIE1vdW50IFBh dGgKLSsgICAgICAgICAgICBtcCArPSAnLycKLSsKLSsgICAgICAgICAgICBpZiB2ZXJib3NlOgot KyAgICAgICAgICAgICAgICBwcmludCAiRkJTRDoJICBtb3VudGVkIiwgdm9sWydsYWJlbCddLCAi b24iLCBtcAotKyAgICAgICAgICAgIGlmIG10ZCA9PSAwOgotKyAgICAgICAgICAgICAgICBzZWxm Ll9tYWluX3ByZWZpeCA9IG1wCi0rICAgICAgICAgICAgICAgIHNlbGYuX21haW5fdm9sID0gdm9s Wyd2b2wnXQotKyAgICAgICAgICAgICAgICBpZiB2ZXJib3NlOgotKyAgICAgICAgICAgICAgICAg ICAgcHJpbnQgIkZCU0Q6CW1haW4gPSAiLCBzZWxmLl9tYWluX3ByZWZpeAotKyAgICAgICAgICAg IGlmIG10ZCA9PSAxOgotKyAgICAgICAgICAgICAgICBzZWxmLl9jYXJkX2FfcHJlZml4ID0gbXAK LSsgICAgICAgICAgICAgICAgc2VsZi5fY2FyZF9hX3ZvbCA9IHZvbFsndm9sJ10KLSsgICAgICAg ICAgICAgICAgaWYgdmVyYm9zZToKLSsgICAgICAgICAgICAgICAgICAgIHByaW50ICJGQlNEOglj YXJkIGEgPSAiLCBzZWxmLl9jYXJkX2FfcHJlZml4Ci0rICAgICAgICAgICAgaWYgbXRkID09IDI6 Ci0rICAgICAgICAgICAgICAgIHNlbGYuX2NhcmRfYl9wcmVmaXggPSBtcAotKyAgICAgICAgICAg ICAgICBzZWxmLl9jYXJkX2Jfdm9sID0gdm9sWyd2b2wnXQotKyAgICAgICAgICAgICAgICBpZiB2 ZXJib3NlOgotKyAgICAgICAgICAgICAgICAgICAgcHJpbnQgIkZCU0Q6CWNhcmQgYiA9ICIsIHNl bGYuX2NhcmRfYl9wcmVmaXgKLSsgICAgICAgICAgICAgICAgIyBOb3RlIHRoYXQgbXRkIGlzIHVz ZWQgYXMgYSBib29sLi4uIG5vdCBpbmNyZW1lbnRpbmcgaXMgZmluZS4KLSsgICAgICAgICAgICAg ICAgYnJlYWsKLSsgICAgICAgICAgICBtdGQgKz0gMQotIAotICAgICAgICAgaWYgbXRkID4gMDoK LSAgICAgICAgICAgICByZXR1cm4gVHJ1ZQotLSAgICAgICAgZWxzZSA6Ci0tICAgICAgICAgICAg cmV0dXJuIEZhbHNlCi0rICAgICAgICByYWlzZSBEZXZpY2VFcnJvcihfKCdVbmFibGUgdG8gbW91 bnQgdGhlIGRldmljZScpKQotKwotICMKLSAjIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQotICMKLS0jICAgdGhpcyBvbmUgaXMgcHJldHR5IHNp bXBsZToKLS0jICAgICAgIGp1c3QgdW1vdW50IGVhY2ggb2YgdGhlIHByZXZpb3VzbHkKLS0jICAg ICAgIG1vdW50ZWQgZmlsZXN5c3RlbXMsIHVzaW5nIHRoZSBtb3VudCBoZWxwZXIKLSsjICAgIHRo aXMgb25lIGlzIHByZXR0eSBzaW1wbGU6Ci0rIyAgICAgICAganVzdCB1bW91bnQgZWFjaCBvZiB0 aGUgcHJldmlvdXNseQotKyMgICAgICAgIG1vdW50ZWQgZmlsZXN5c3RlbXMsIHVzaW5nIHRoZSBz dG9yZWQgdm9sdW1lIG9iamVjdAotICMKLSAgICAgZGVmIGVqZWN0X2ZyZWVic2Qoc2VsZik6Ci0t ICAgICAgICBjbWQgPSAnL3Vzci9sb2NhbC9iaW4vY2FsaWJyZS1tb3VudC1oZWxwZXInCi0tICAg ICAgICBjbWQgPSBbY21kLCAnZWplY3QnXQotKyAgICAgICAgaW1wb3J0IGRidXMKLSsgICAgICAg ICMgVGhlcmUgc2hvdWxkIGJlIHNvbWUgd2F5IHRvIGFjY2VzcyB0aGUgLXYgYXJnLi4uCi0rICAg ICAgICB2ZXJib3NlID0gRmFsc2UKLSAKLSAgICAgICAgIGlmIHNlbGYuX21haW5fcHJlZml4Ogot LSAgICAgICAgICAgICNwcmludCAidW1vdW50IG1haW46IiwgY21kLCBzZWxmLl9tYWluX2Rldiwg c2VsZi5fbWFpbl9wcmVmaXgKLSsgICAgICAgICAgICBpZiB2ZXJib3NlOgotKyAgICAgICAgICAg ICAgICBwcmludCAiRkJTRDoJdW1vdW50IG1haW46Iiwgc2VsZi5fbWFpbl9wcmVmaXgKLSAgICAg ICAgICAgICB0cnk6Ci0tICAgICAgICAgICAgICAgIHAgPSBzdWJwcm9jZXNzLlBvcGVuKGNtZCAr IFtzZWxmLl9tYWluX2Rldiwgc2VsZi5fbWFpbl9wcmVmaXhdKQotLSAgICAgICAgICAgIGV4Y2Vw dCBPU0Vycm9yOgotLSAgICAgICAgICAgICAgICByYWlzZSBEZXZpY2VFcnJvcigKLS0gICAgICAg ICAgICAgICAgXygnQ291bGQgbm90IGZpbmQgbW91bnQgaGVscGVyOiAlcy4nKSVjbWRbMF0pCi0t ICAgICAgICAgICAgd2hpbGUgcC5wb2xsKCkgaXMgTm9uZToKLS0gICAgICAgICAgICAgICAgdGlt ZS5zbGVlcCgwLjEpCi0rICAgICAgICAgICAgICAgIHNlbGYuX21haW5fdm9sLlVubW91bnQoW10p Ci0rICAgICAgICAgICAgZXhjZXB0IGRidXMuZXhjZXB0aW9ucy5EQn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HNlbGYuX2NhcmRfYl9wcmVmaXgKLSsgICAgICAgICAgICBpZiB2ZXJi b3NlOgotKyAgICAgICAgICAgICAgICBwcmludCAiRkJTRDoJdW1vdW50IGNhcmQgYjoiLCBzZWxm Ll9jYXJkX2JfcHJlZml4Ci0gICAgICAgICAgICAgdHJ5OgotLSAgICAgICAgICAgICAgICBwID0g c3VicHJvY2Vzcy5Qb3BlbihjbWQgKyBbc2VsZi5fY2FyZF9iX2Rldiwgc2VsZi5fY2FyZF9iX3By ZWZpeF0pCi0tICAgICAgICAgICAgZXhjZXB0IE9TRXJyb3I6Ci0tICAgICAgICAgICAgICAgIHJh aXNlIERldmljZUVycm9yKAotLSAgICAgICAgICAgICAgICBfKCdDb3VsZCBub3QgZmluZCBtb3Vu dCBoZWxwZXI6ICVzLicpJWNtZFswXSkKLS0gICAgICAgICAgICB3aGlsZSBwLnBvbGwoKSBpcyBO b25lOgotLSAgICAgICAgICAgICAgICB0aW1lLnNsZWVwKDAuMSkKLSsgICAgICAgICAgICAgICAg c2VsZi5fY2FyZF9iX3ZvbC5Vbm1vdW50KFtdKQotKyAgICAgICAgICAgIGV4Y2VwdCBkYnVzLmV4 Y2VwdGlvbnMuREJ1c0V4Y2VwdGlvbiwgZToKLSsgICAgICAgICAgICAgICAgcHJpbnQgJ1VuYWJs ZSB0byBlamVjdCAnLCBlCi0gCi0gICAgICAgICBzZWxmLl9tYWluX3ByZWZpeCA9IE5vbmUKLSAg ICAgICAgIHNlbGYuX2NhcmRfYV9wcmVmaXggPSBOb25lCi1AQCAtODU5LDExICs4ODEsMTAgQEAK LSAgICAgICAgICAgICAgICAgICAgIHRpbWUuc2xlZXAoNykKLSAgICAgICAgICAgICAgICAgICAg IHNlbGYub3Blbl9saW51eCgpCi0gICAgICAgICAgICAgaWYgaXNmcmVlYnNkOgotLSAgICAgICAg ICAgICAgICBzZWxmLl9tYWluX2RldiA9IHNlbGYuX2NhcmRfYV9kZXYgPSBzZWxmLl9jYXJkX2Jf ZGV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IGxpYi9jYWxpYnJlL2NhbGlicmUvZ3VpMi9jYXRhbG9n L19faW5pdF9fLnB5Cg== --=_78dda784d221cdc06ad170d4fe3645dd--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202070940.q179e9Lr097534>