Date: Tue, 7 Feb 2012 10:00:39 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: <201202071000.q17A0d4P015050@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:51:13 -0600 --=_839a74137ce3451b24301eabc0bf56af Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=UTF-8; format=flowed Sorry for the second post. Here's the corrected DIFF which has been submitted to be updated. --=_839a74137ce3451b24301eabc0bf56af 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 cmUubmV3L01ha2VmaWxlCTIwMTItMDItMDcgMDM6NDQ6MzMuMDAwMDAwMDAwIC0wNjAwCkBAIC02 LDcgKzYsNyBAQAogIwogCiBQT1JUTkFNRT0JY2FsaWJyZQotUE9SVFZFUlNJT049CTAuOC4zNwor UE9SVFZFUlNJT049CTAuOC4zOAogQ0FURUdPUklFUz0JZGVza3V0aWxzIHB5dGhvbgogTUFTVEVS X1NJVEVTPQlTRi8ke1BPUlROQU1FfS8ke1BPUlRWRVJTSU9OfS8KIApAQCAtNDcsNyArNDcsNyBA QAogT1BUSU9OUz0JUE9ET0ZPCSJQREYgc3VwcG9ydCB2aWEgUG9Eb0ZvIGxpYnJhcnkiIG9uCiAK IFVTRV9YW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AgICBkZXZpZiA9 IG9iamlmCi0rICAgICAgICAgICAgICBwYXJlbnRkcml2ZXIgPSBOb25lCi0rICAgICAgICAgICAg ICB3aGlsZSBwYXJlbnRkcml2ZXIgIT0gJ3VtYXNzJzoKLSsgICAgICAgICAgICAgICAgIHRyeToK LSsgICAgICAgICAgICAgICAgICAgIG9iaiA9IGJ1cy5nZXRfb2JqZWN0KCdvcmcuZnJlZWRlc2t0 b3AuSGFsJywKLSsgICAgICAgICAgICAgICAgICAgICAgICAgIG9iamlmLkdldFByb3BlcnR5KCdp bmZvLnBhcmVudCcpKQotKyAgICAgICAgICAgICAgICAgICAgb2JqaWYgPSBkYnVzLkludGVyZmFj ZShvYmosICdvcmcuZnJlZWRlc2t0b3AuSGFsLkRldmljZScpCi0rICAgICAgICAgICAgICAgICAg ICB0cnk6Ci0rICAgICAgICAgICAgICAgICAgICAgICBwYXJlbnRkcml2ZXIgPSBvYmppZi5HZXRQ cm9wZXJ0eSgnZnJlZWJzZC5kcml2ZXInKQotKyAgICAgICAgICAgICAgICAgICAgZXhjZXB0IGRi dXMuZXhjZXB0aW9ucy5EQnVzRXhjZXB0aW9uLCBlOgotKyAgICAgICAgICAgICAgICAgICAgICAg Y29udGludWUKLSsgICAgICAgICAgICAgICAgIGV4Y2VwdCBkYnVzLmV4Y2VwdGlvbnMuREJ1c0V4 Y2VwdGlvbiwgZToKLSsgICAgICAgICAgICAgICAgICAgIGJyZWFrCi0rICAgICAgICAgICAgICBp ZiBwYXJlbnRkcml2ZXIgIT0gJ3VtYXNzJzoKLSsgICAgICAgICAgICAgICAgICBjb250aW51ZQot KyAgICAgICAgICAgICAgZGV2ID0gW10KLSsgICAgICAgICAgICAgIHRyeToKLSsgICAgICAgICAg ICAgICAgIGRldi5hcHBlbmQob2JqaWYuR2V0UHJvcGVydHkoJ3VzYi52ZW5kb3JfaWQnKSkKLSsg ICAgICAgICAgICAgICAgIGRldi5hcHBlbmQob2JqaWYuR2V0UHJvcGVydHkoJ3VzYi5wcm9kdWN0 X2lkJykpCi0rICAgICAgICAgICAgICAgICBkZXYuYXBwZW5kKG9iamlmLkdldFByb3BlcnR5KCd1 c2IuZGV2aWNlX3JldmlzaW9uX2JjZCcpKQotKyAgICAgICAgICAgICAgZXhjZXB0IGRidXMuZXhj ZXB0aW9ucy5EQnVzRXhjZXB0aW9uLCBlOgotKyAgICAgICAgICAgICAgICAgY29udGludWUKLSsg ICAgICAgICAgICAgIHRyeToKLSsgICAgICAgICAgICAgICAgIGRldi5hcHBlbmQob2JqaWYuR2V0 UHJvcGVydHkoJ2luZm8udmVuZG9yJykpCi0rICAgICAgICAgICAgICBleGNlcHQ6Ci0rICAgICAg ICAgICAgICAgICBkZXYuYXBwZW5kKCcnKQotKyAgICAgICAgICAgICAgdHJ5OgotKyAgICAgICAg ICAgICAgICAgZGV2LmFwcGVuZChvYmppZi5HZXRQcm9wZXJ0eSgnaW5mby5wcm9kdWN0JykpCi0r ICAgICAgICAgICAgICBleGNlcHQ6Ci0rICAgICAgICAgICAgICAgICBkZXYuYXBwZW5kKCcnKQot KyAgICAgICAgICAgICAgdHJ5OgotKyAgICAgICAgICAgICAgICAgZGV2LmFwcGVuZChvYmppZi5H ZXRQcm9wZXJ0eSgndXNiLnNlcmlhbCcpKQotKyAgICAgICAgICAgICAgZXhjZXB0OgotKyAgICAg ICAgICAgICAgICAgZGV2LmFwcGVuZCgnJykKLSsgICAgICAgICAgICAgIGRldi5hcHBlbmQocGF0 aCkKLSsgICAgICAgICAgICAgIGFucy5hZGQodHVwbGUoZGV2KSkKLSsgICAgICAgIGV4Y2VwdCBk YnVzLmV4Y2VwdGlvbnMuREJ1c0V4Y2VwdGlvbiwgZToKLSsgICAgICAgICAgIHByaW50ID4+c3lz LnN0ZGVyciwgIkV4ZWN1dGlvbiBmYWlsZWQ6IiwgZQotKyAgICAgICAgcmV0dXJuIGFucwotKwot KwotKwotIGxpbnV4X3NjYW5uZXIgPSBOb25lCi0gCi0gaWYgaXNsaW51eDoKLSA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S0KLS0gICAgICAgICMgc29ydCB0aGUgbGlzdCBvZiBkZXZpY2Vz Ci0tICAgICAgICBmb3IgaSBpbiByYW5nZSgxLG5kZXZzKzEpOgotLSAgICAgICAgICAgIGZvciBq IGluIHJldmVyc2VkKHJhbmdlKDEsaSkpOgotLSAgICAgICAgICAgICAgICBpZiBkZXZzW2otMV0g PiBkZXZzW2pdOgotLSAgICAgICAgICAgICAgICAgICAgeD1kZXZzW2otMV0KLS0gICAgICAgICAg ICAgICAgICAgIGRldnNbai0xXT1kZXZzW2pdCi0tICAgICAgICAgICAgICAgICAgICBkZXZzW2pd PXgKLS0gICAgICAgICNwcmludCBkZXZzCi0tCi0tICAgICAgICAjIG5vdyB3ZSBuZWVkIHRvIHNl ZSBpZiBhbnkgb2YgdGhlc2UgaGF2ZSBzbGljZXMvcGFydGl0aW9ucwotKyAgICAgICAgCi0rICAg ICAgICB2b2xzPVtdCi0rICAgICAgICAKLSsgICAgICAgIGJ1cyA9IGRidXMuU3lzdGVtQnVzKCkK LSsgICAgICAgIG1hbmFnZXIgPSBkYnVzLkludGVyZmFjZShidXMuZ2V0X29iamVjdCgnb3JnLmZy ZWVkZXNrdG9wLkhhbCcsCi0rICAgICAgICAgICAgICAgICAgICAgICcvb3JnL2ZyZWVkZXNrdG9w L0hhbC9NYW5hZ2VyJyksICdvcmcuZnJlZWRlc2t0b3AuSGFsLk1hbmFnZXInKQotKyAgICAgICAg cGF0aHMgPSBtYW5hZ2VyLkZpbmREZXZpY2VTdHJpbmdNYXRjaCgndXNiLnNlcmlhbCcsZC5zZXJp YWwpCi0rICAgICAgICBmb3IgcGF0aCBpbiBwYXRoczoKLSsgICAgICAgICAgICBvYmppZiA9IGRi dXMuSW50ZXJmYWNlKGJ1cy5nZXRfb2JqZWN0KCdvcmcuZnJlZWRlc2t0b3AuSGFsJywgcGF0aCks ICdvcmcuZnJlZWRlc2t0b3AuSGFsLkRldmljZScpCi0rICAgICAgICAgICAgIyBFeHRyYSBwYXJh bm9pYS4uLgotKyAgICAgICAgICAgIHRyeToKLSsgICAgICAgICAgICAgICAgaWYgZC5pZFZlbmRv ciA9PSBvYmppZi5HZXRQcm9wZXJ0eSgndXNiLnZlbmRvcl9pZCcpIGFuZCBcCi0rICAgICAgICAg ICAgICAgICAgICAgICAgZC5pZFByb2R1Y3QgPT0gb2JqaWYuR2V0UHJvcGVydHkoJ3VzYi5wcm9k dWN0X2lkJykgYW5kIFwKLSsgICAgICAgICAgICAgICAgICAgICAgICBkLm1hbnVmYWN0dXJlciA9 PSBvYmppZi5HZXRQcm9wZXJ0eSgndXNiLnZlbmRvcicpIGFuZCBcCi0rICAgICAgICAgICAgICAg ICAgICAgICAgZC5wcm9kdWN0ID09IG9iamlmLkdldFByb3BlcnR5KCd1c2IucHJvZHVjdCcpIGFu ZCBcCi0rICAgICAgICAgICAgICAgICAgICAgICAgZC5zZXJpYWwgPT0gb2JqaWYuR2V0UHJvcGVy dHkoJ3VzYi5zZXJpYWwnKToKLSsgICAgICAgICAgICAgICAgICAgIGRwYXRocyA9IG1hbmFnZXIu RmluZERldmljZVN0cmluZ01hdGNoKCdzdG9yYWdlLm9yaWdpbmF0aW5nX2RldmljZScsIHBhdGgp Ci0rICAgICAgICAgICAgICAgICAgICBmb3IgZHBhdGggaW4gZHBhdGhzOgotKyAgICAgICAgICAg ICAgICAgICAgICAgIGRldmlmID0gZGJ1cy5JbnRlcmZhY2UoYnVzLmdldF9vYmplY3QoJ29yZy5m cmVlZGVza3RvcC5IYWwnLCBkcGF0aCksICdvcmcuZnJlZWRlc2t0b3AuSGFsLkRldmljZScpCi0r ICAgICAgICAgICAgICAgICAgICAgICAgdHJ5OgotKyAgICAgICAgICAgICAgICAgICAgICAgICAg ICB2cGF0aHMgPSBtYW5hZ2VyLkZpbmREZXZpY2VTdHJpbmdNYXRjaCgnYmxvY2suc3RvcmFnZV9k ZXZpY2UnLCBkcGF0aCkKLSsgICAgICAgICAgICAgICAgICAgICAgICAgICAgZm9yIHZwYXRoIGlu IHZwYXRoczoKLSsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRyeToKLSsgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2ZGV2aWYgPSBkYnVzLkludGVyZmFjZShidXMu Z2V0X29iamVjdCgnb3JnLmZyZWVkZXNrdG9wLkhhbCcsIHZwYXRoKSwgJ29yZy5mcmVlZGVza3Rv cC5IYWwuRGV2aWNlJykKLSsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiBu b3QgdmRldmlmLkdldFByb3BlcnR5KCdibG9jay5pc192b2x1bWUnKToKLSsgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgY29udGludWUKLSsgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICBpZiB2ZGV2aWYuR2V0UHJvcGVydHkoJ3ZvbHVtZS5mc3VzYWdlJykg IT0gJ2ZpbGVzeXN0ZW0nOgotKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICBjb250aW51ZQotKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZvbGlmID0g ZGJ1cy5JbnRlcmZhY2UoYnVzLmdldF9vYmplY3QoJ29yZy5mcmVlZGVza3RvcC5IYWwnLCB2cGF0 aCksICdvcmcuZnJlZWRlc2t0b3AuSGFsLkRldmljZS5Wb2x1bWUnKQotKyAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgIHBkZXZpZiA9IGRidXMuSW50ZXJmYWNlKGJ1cy5nZXRfb2Jq ZWN0KCdvcmcuZnJlZWRlc2t0b3AuSGFsJywgdmRldmlmLkdldFByb3BlcnR5KCdpbmZvLnBhcmVu dCcpKSwgJ29yZy5mcmVlZGVza3RvcC5IYWwuRGV2aWNlJykKLSsgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICB2b2wgPSB7J25vZGUnOiBwZGV2aWYuR2V0UHJvcGVydHkoJ2Jsb2Nr LmRldmljZScpLAotKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg J2Rldic6IHZkZXZpZiwKLSsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICd2b2wnOiB2b2xpZiwKLSsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICdsYWJlbCc6IHZkZXZpZi5HZXRQcm9wZXJ0eSgndm9sdW1lLmxhYmVsJyl9Ci0rICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdm9scy5hcHBlbmQodm9sKQotKyAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgZXhjZXB0IGRidXMuZXhjZXB0aW9ucy5EQnVzRXhj ZXB0aW9uLCBlOgotKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByaW50IGUK LSsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb250aW51ZQotKyAgICAgICAg ICAgICAgICAgICAgICAgIGV4Y2VwdCBkYnVzLmV4Y2VwdGlvbnMuREJ1c0V4Y2VwdGlvbiwgZToK LSsgICAgICAgICAgICAgICAgICAgICAgICAgICAgcHJpbnQgZQotKyAgICAgICAgICAgICAgICAg ICAgICAgICAgICBjb250aW51ZQotKyAgICAgICAgICAgIGV4Y2VwdCBkYnVzLmV4Y2VwdGlvbnMu REJ1c0V4Y2VwdGlvbiwgZToKLSsgICAgICAgICAgICAgICAgY29udGludWUKLSsKLSsgICAgICAg IGRlZiBvY21wKHgseSk6Ci0rICAgICAgICAgICAgaWYgeFsnbm9kZSddIDwgeVsnbm9kZSddOgot KyAgICAgICAgICAgICAgICByZXR1cm4gLTEKLSsgICAgICAgICAgICBpZiB4Wydub2RlJ10gPiB5 Wydub2RlJ106Ci0rICAgICAgICAgICAgICAgIHJldHVybiAxCi0rICAgICAgICAgICAgcmV0dXJu IDAKLSsKLSsgICAgICAgIHZvbHMuc29ydChjbXA9b2NtcCkKLSsKLSsgICAgICAg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cHJpbnQgInRyeWluZyAiLCBkZXYsICJvbiIsIG1wCi0t ICAgICAgICAgICAgICAgIHRyeToKLS0gICAgICAgICAgICAgICAgICAgIHAgPSBzdWJwcm9jZXNz LlBvcGVuKGNtZCArIFsiL2Rldi8iK2RldiwgbW1wXSkKLS0gICAgICAgICAgICAgICAgZXhjZXB0 IE9TRXJyb3I6Ci0tICAgICAgICAgICAgICAgICAgICByYWlzZSBEZXZpY2VFcnJvcihfKCdDb3Vs ZCBub3QgZmluZCBtb3VudCBoZWxwZXI6ICVzLicpJWNtZFswXSkKLS0gICAgICAgICAgICAgICAg d2hpbGUgcC5wb2xsKCkgaXMgTm9uZToKLS0gICAgICAgICAgICAgICAgICAgIHRpbWUuc2xlZXAo MC4xKQotLQotLSAgICAgICAgICAgICAgICBpZiBwLnJldHVybmNvZGUgPT0gMDoKLS0gICAgICAg ICAgICAgICAgICAgICNwcmludCAiICBtb3VudGVkIiwgZGV2Ci0tICAgICAgICAgICAgICAgICAg ICBpZiBpID09IDA6Ci0tICAgICAgICAgICAgICAgICAgICAgICAgc2VsZi5fbWFpbl9wcmVmaXgg PSBtcAotLSAgICAgICAgICAgICAgICAgICAgICAgIHNlbGYuX21haW5fZGV2ID0gIi9kZXYvIitk ZXYKLS0gICAgICAgICAgICAgICAgICAgICAgICAjcHJpbnQgIm1haW4gPSAiLCBzZWxmLl9tYWlu X2Rldiwgc2VsZi5fbWFpbl9wcmVmaXgKLS0gICAgICAgICAgICAgICAgICAgIGlmIGkgPT0gMToK LS0gICAgICAgICAgICAgICAgICAgICAgICBzZWxmLl9jYXJkX2FfcHJlZml4ID0gbXAKLS0gICAg ICAgICAgICAgICAgICAgICAgICBzZWxmLl9jYXJkX2FfZGV2ID0gIi9kZXYvIitkZXYKLS0gICAg ICAgICAgICAgICAgICAgICAgICAjcHJpbnQgImNhcmQgYSA9ICIsIHNlbGYuX2NhcmRfYV9kZXYs IHNlbGYuX2NhcmRfYV9wcmVmaXgKLS0gICAgICAgICAgICAgICAgICAgIGlmIGkgPT0gMjoKLS0g ICAgICAgICAgICAgICAgICAgICAgICBzZWxmLl9jYXJkX2JfcHJlZml4ID0gbXAKLS0gICAgICAg ICAgICAgICAgICAgICAgICBzZWxmLl9jYXJkX2JfZGV2ID0gIi9kZXYvIitkZXYKLS0gICAgICAg ICAgICAgICAgICAgICAgICAjcHJpbnQgImNhcmQgYiA9ICIsIHNlbGYuX2NhcmRfYl9kZXYsIHNl bGYuX2NhcmRfYl9wcmVmaXgKLSAKLS0gICAgICAgICAgICAgICAgICAgIG10ZCArPSAxCi0tICAg ICAgICAgICAgICAgICAgICBicmVhawotKyAgICAgICAgZm9yIHZvbCBpbiB2b2xzOgotKyAgICAg ICAgICAgIG1wID0gJycKLSsgICAgICAgICAgICBpZiB2b2xbJ2RldiddLkdldFByb3BlcnR5KCd2 b2x1bWUuaXNfbW91bnRlZCcpOgotKyAgICAgICAgICAgICAgICBtcCA9IHZvbFsnZGV2J10uR2V0 UHJvcGVydHkoJ3ZvbHVtZS5tb3VudF9wb2ludCcpCi0rICAgICAgICAgICAgZWxzZToKLSsgICAg ICAgICAgICAgICAgaWYgdmVyYm9zZToKLSsgICAgICAgICAgICAgICAgICAgIHByaW50ICJGQlNE Ogl0cnlpbmcgIiwgdm9sWydsYWJlbCddLCAib24iLCAnQ2FsaWJyZS0nK2xhYmVsc1tpXQotKyAg ICAgICAgICAgICAgICB0cnk6Ci0rICAgICAgICAgICAgICAgICAgICB2b2xbJ3ZvbCddLk1vdW50 KCdDYWxpYnJlLScrdm9sWydsYWJlbCddLAotKyAgICAgICAgICAgICAgICAgICAgICAgICAgICB2 b2xbJ2RldiddLkdldFByb3BlcnR5KCd2b2x1bWUuZnN0eXBlJyksIFtdKQotKyAgICAgICAgICAg ICAgICAgICAgbG9vcHMgPSAwCi0rICAgICAgICAgICAgICAgICAgICB3aGlsZSBub3Qgdm9sWydk ZXYnXS5HZXRQcm9wZXJ0eSgndm9sdW1lLmlzX21vdW50ZWQnKToKLSsgICAgICAgICAgICAgICAg ICAgICAgICB0aW1lLnNsZWVwKDEpCi0rICAgICAgICAgICAgICAgICAgICAgICAgbG9vcHMgKz0g MQotKyAgICAgICAgICAgICAgICAgICAgICAgIGlmIGxvb3BzID4gMTAwOgotKyAgICAgICAgICAg ICAgICAgICAgICAgICAgICBwcmludCAiRVJST1I6IFRpbWVvdXQgd2FpdGluZyBmb3IgbW91bnQg dG8gY29tcGxldGUiCi0rICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnRpbnVlCi0rICAg ICAgICAgICAgICAgICAgICBtcCA9IHZvbFsnZGV2J10uR2V0UHJvcGVydHkoJ3ZvbHVtZS5tb3Vu dF9wb2ludCcpCi0rICAgICAgICAgICAgICAgIGV4Y2VwdCBkYnVzLmV4Y2VwdGlvbnMuREJ1c0V4 Y2VwdGlvbiwgZToKLSsgICAgICAgICAgICAgICAgICAgIHByaW50ICJGYWlsZWQgdG8gbW91bnQg IiwgZQotKyAgICAgICAgICAgICAgICAgICAgY29udGludWUKLSsKLSsgICAgICAgICAgICAjIE1v dW50IFBvaW50IGJlY29tZXMgTW91bnQgUGF0aAotKyAgICAgICAgICAgIG1wICs9ICcvJwotKwot KyAgICAgICAgICAgIGlmIHZlcmJvc2U6Ci0rICAgICAgICAgICAgICAgIHByaW50ICJGQlNEOgkg IG1vdW50ZWQiLCB2b2xbJ2xhYmVsJ10sICJvbiIsIG1wCi0rICAgICAgICAgICAgaWYgbXRkID09 IDA6Ci0rICAgICAgICAgICAgICAgIHNlbGYuX21haW5fcHJlZml4ID0gbXAKLSsgICAgICAgICAg ICAgICAgc2VsZi5fbWFpbl92b2wgPSB2b2xbJ3ZvbCddCi0rICAgICAgICAgICAgICAgIGlmIHZl cmJvc2U6Ci0rICAgICAgICAgICAgICAgICAgICBwcmludCAiRkJTRDoJbWFpbiA9ICIsIHNlbGYu X21haW5fcHJlZml4Ci0rICAgICAgICAgICAgaWYgbXRkID09IDE6Ci0rICAgICAgICAgICAgICAg IHNlbGYuX2NhcmRfYV9wcmVmaXggPSBtcAotKyAgICAgICAgICAgICAgICBzZWxmLl9jYXJkX2Ff dm9sID0gdm9sWyd2b2wnXQotKyAgICAgICAgICAgICAgICBpZiB2ZXJib3NlOgotKyAgICAgICAg ICAgICAgICAgICAgcHJpbnQgIkZCU0Q6CWNhcmQgYSA9ICIsIHNlbGYuX2NhcmRfYV9wcmVmaXgK LSsgICAgICAgICAgICBpZiBtdGQgPT0gMjoKLSsgICAgICAgICAgICAgICAgc2VsZi5fY2FyZF9i X3ByZWZpeCA9IG1wCi0rICAgICAgICAgICAgICAgIHNlbGYuX2NhcmRfYl92b2wgPSB2b2xbJ3Zv bCddCi0rICAgICAgICAgICAgICAgIGlmIHZlcmJvc2U6Ci0rICAgICAgICAgICAgICAgICAgICBw cmludCAiRkJTRDoJY2FyZCBiID0gIiwgc2VsZi5fY2FyZF9iX3ByZWZpeAotKyAgICAgICAgICAg ICAgICAjIE5vdGUgdGhhdCBtdGQgaXMgdXNlZCBhcyBhIGJvb2wuLi4gbm90IGluY3JlbWVudGlu ZyBpcyBmaW5lLgotKyAgICAgICAgICAgICAgICBicmVhawotKyAgICAgICAgICAgIG10ZCArPSAx Ci0gCi0gICAgICAgICBpZiBtdGQgPiAwOgotICAgICAgICAgICAgIHJldHVybiBUcnVlCi0tICAg ICAgICBlbHNlIDoKLS0gICAgICAgICAgICByZXR1cm4gRmFsc2UKLSsgICAgICAgIHJhaXNlIERl dmljZUVycm9yKF8oJ1VuYWJsZSB0byBtb3VudCB0aGUgZGV2aWNlJykpCi0rCi0gIwotICMgLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tCi0gIwot LSMgICB0aGlzIG9uZSBpcyBwcmV0dHkgc2ltcGxlOgotLSMgICAgICAganVzdCB1bW91bnQgZWFj aCBvZiB0aGUgcHJldmlvdXNseQotLSMgICAgICAgbW91bnRlZCBmaWxlc3lzdGVtcywgdXNpbmcg dGhlIG1vdW50IGhlbHBlcgotKyMgICAgdGhpcyBvbmUgaXMgcHJldHR5IHNpbXBsZToKLSsjICAg ICAgICBqdXN0IHVtb3VudCBlYWNoIG9mIHRoZSBwcmV2aW91c2x5Ci0rIyAgICAgICAgbW91bnRl ZCBmaWxlc3lzdGVtcywgdXNpbmcgdGhlIHN0b3JlZCB2b2x1bWUgb2JqZWN0Ci0gIwotICAgICBk ZWYgZWplY3RfZnJlZWJzZChzZWxmKToKLS0gICAgICAgIGNtZCA9ICcvdXNyL2xvY2FsL2Jpbi9j YWxpYnJlLW1vdW50LWhlbHBlcicKLS0gICAgICAgIGNtZCA9IFtjbWQsICdlamVjdCddCi0rICAg ICAgICBpbXBvcnQgZGJ1cwotKyAgICAgICAgIyBUaGVyZSBzaG91bGQgYmUgc29tZSB3YXkgdG8g YWNjZXNzIHRoZSAtdiBhcmcuLi4KLSsgICAgICAgIHZlcmJvc2UgPSBGYWxzZQotIAotICAgICAg ICAgaWYgc2VsZi5fbWFpbl9wcmVmaXg6Ci0tICAgICAgICAgICAgI3ByaW50ICJ1bW91bnQgbWFp bjoiLCBjbWQsIHNlbGYuX21haW5fZGV2LCBzZWxmLl9tYWluX3ByZWZpeAotKyAgICAgICAgICAg IGlmIHZlcmJvc2U6Ci0rICAgICAgICAgICAgICAgIHByaW50ICJGQlNEOgl1bW91bnQgbWFpbjoi LCBzZWxmLl9tYWluX3ByZWZpeAotICAgICAgICAgICAgIHRyeToKLS0gICAgICAgICAgICAgICAg cCA9IHN1YnByb2Nlc3MuUG9wZW4oY21kICsgW3NlbGYuX21haW5fZGV2LCBzZWxmLl9tYWluX3By ZWZpeF0pCi0tICAgICAgICAgICAgZXhjZXB0IE9TRXJyb3I6Ci0tICAgICAgICAgICAgICAgIHJh aXNlIERldmljZUVycm9yKAotLSAgICAgICAgICAgICAgICBfKCdDb3VsZCBub3QgZmluZCBtb3Vu dCBoZWxwZXI6ICVzLicpJWNtZFswXSkKLS0gICAgICAgICAgICB3aGlsZSBwLnBvbGwoKSBpcyBO b25lOgotLSAgICAgICAgICAgICAgICB0aW1lLnNsZWVwKDAuMSkKLSsgICAgICAgICAgICAgICAg c2VsZi5fbWFpbl92b2wuVW5tb3VudChbXSkKLSsgICAgICAgICAgICBleGNlcHQgZGJ1cy5leGNl cHRpb25zLkRCdXNFeGNlcHRpb24sIGU6Ci0rICAgICAgICAgICAgICAgIHByaW50ICdVbmFibGUg dG8gZWplY3QgJywgZQotIAotICAgICAgICAgaWYgc2VsZi5fY2FyZF9hX3ByZWZpeDoKLS0gICAg ICAgICAgICAjcHJpbnQgInVtb3VudCBjYXJkIGE6IiwgY21kLCBzZWxmLl9jYXJkX2FfZGV2LCBz ZWxmLl9jYXJkX2FfcHJlZml4Ci0rICAgICAgICAgICAgaWYgdmVyYm9zZToKLSsgICAgICAgICAg ICAgICAgcHJpbnQgIkZCU0Q6CXVtb3VudCBjYXJkIGE6Iiwgc2VsZi5fY2FyZF9hX3ByZWZpeAot ICAgICAgICAgICAgIHRyeToKLS0gICAgICAgICAgICAgICAgcCA9IHN1YnByb2Nlc3MuUG9wZW4o Y21kICsgW3NlbGYuX2NhcmRfYV9kZXYsICBzZWxmLl9jYXJkX2FfcHJlZml4XSkKLS0gICAgICAg ICAgICBleGNlcHQgT1NFcnJvcjoKLS0gICAgICAgICAgICAgICAgcmFpc2UgRGV2aWNlRXJyb3Io Ci0tICAgICAgICAgICAgICAgIF8oJ0NvdWxkIG5vdCBmaW5kIG1vdW50IGhlbHBlcjogJXMuJykl Y21kWzBdKQotLSAgICAgICAgICAgIHdoaWxlIHAucG9sbCgpIGlzIE5vbmU6Ci0tICAgICAgICAg ICAgICAgIHRpbWUuc2xlZXAoMC4xKQotKyAgICAgICAgICAgICAgICBzZWxmLl9jYXJkX2Ffdm9s LlVubW91bnQoW10pCi0rICAgICAgICAgICAgZXhjZXB0IGRidXMuZXhjZXB0aW9ucy5EQnVzRXhj ZXB0aW9uLCBlOgotKyAgICAgICAgICAgICAgICBwcmludCAnVW5hYmxlIHRvIGVqZWN0ICcsIGUK LSAKLSAgICAgICAgIGlmIHNlbGYuX2NhcmRfYl9wcmVmaXg6Ci0tICAgICAgICAgICAgI3ByaW50 ICJ1bW91bnQgY2FyZCBiOiIsIGNtZCwgc2VsZi5fY2FyZF9iX2Rldiwgc2VsZi5fY2FyZF9iX3By ZWZpeAotKyAgICAgICAgICAgIGlmIHZlcmJvc2U6Ci0rICAgICAgICAgICAgICAgIHByaW50ICJG QlNEOgl1bW91bnQgY2FyZCBiOiIsIHNlbGYuX2NhcmRfYl9wcmVmaXgKLSAgICAgICAgICAgICB0 cnk6Ci0tICAgICAgICAgICAgICAgIHAgPSBzdWJwcm9jZXNzLlBvcGVuKGNtZCArIFtzZWxmLl9j YXJkX2JfZGV2LCBzZWxmLl9jYXJkX2JfcHJlZml4XSkKLS0gICAgICAgICAgICBleGNlcHQgT1NF cnJvcjoKLS0gICAgICAgICAgICAgICAgcmFpc2UgRGV2aWNlRXJyb3IoCi0tICAgICAgICAgICAg ICAgIF8oJ0NvdWxkIG5vdCBmaW5kIG1vdW50IGhlbHBlcjogJXMuJyklY21kWzBdKQotLSAgICAg ICAgICAgIHdoaWxlIHAucG9sbCgpIGlzIE5vbmU6Ci0tICAgICAgICAgICAgICAgIHRpbWUuc2xl ZXAoMC4xKQotKyAgICAgICAgICAgICAgICBzZWxmLl9jYXJkX2Jfdm9sLlVubW91bnQoW10pCi0r ICAgICAgICAgICAgZXhjZXB0IGRidXMuZXhjZXB0aW9ucy5EQnVzRXhjZXB0aW9uLCBlOgotKyAg ICAgICAgICAgICAgICBwcmludCAnVW5hYmxlIHRvIGVqZWN0ICcsIGUKLSAKLSAgICAgICAgIHNl bGYuX21haW5fcHJlZml4ID0gTm9uZQotICAgICAgICAgc2VsZi5fY2FyZF9hX3ByZWZpeCA9IE5v bmUKLUBAIC04NTksMTEgKzg4MSwxMCBAQAotICAgICAgICAgICAgICAgICAgICAgdGltZS5zbGVl cCg3KQotICAgICAgICAgICAgICAgICAgICAgc2VsZi5vcGVuX2xpbnV4KCkKLSAgICAgICAgICAg ICBpZiBpc2ZyZWVic2Q6Ci0tICAgICAgICAgICAgICAgIHNlbGYuX21haW5fZGV2ID0gc2VsZi5f Y2FyZF9hX2RldiA9IHNlbGYuX2NhcmRfYl9kZXYgPSBOb25lCi0rICAgICAgICAgICAgICAgIHNl bGYuX21haW5fdm9sID0gc2VsZi5fY2FyZF9hX3ZvbCA9IHNlbGYuX2NhcmRfYl92b2wgPSBOb25l Ci0gICAgICAgICAgICAgICAgIHRyeToKLSAgICAgICAgICAgICAgICAgICAgIHNlbGYub3Blbl9m cmVlYnNkKCkKLSAgICAgICAgICAgICAgICAgZXhjZXB0IERldmljZUVycm9yOgotLSAgICAgICAg ICAgICAgICAgICAgc3VicHJvY2Vzcy5Qb3BlbihbImNhbWNvbnRyb2wiLCAicmVzY2FuIiwgImFs bCJdKQotICAgICAgICAgICAgICAgICAgICAgdGltZS5zbGVlcCgyKQotICAgICAgICAgICAgICAg ICAgICAgc2VsZi5vcGVuX2ZyZWVic2QoKQotICAgICAgICAgICAgIGlmIGlzd2luZG93czoKZGlm ZiAtcnVOIGNhbGlicmUvcGtnLXBsaXN0IGNhbGlicmUubmV3L3BrZy1wbGlzdAotLS0gY2FsaWJy ZS9wa2ctcGxpc3QJMjAxMi0wMi0wNCAxOTowOTo0OS4wMDAwMDAwMDAgLTA2MDAKKysrIGNhbGli cmUubmV3L3BrZy1wbGlzdAkyMDEyLTAyLTA3IDAzOjM3OjM0LjAwMDAwMDAwMCAtMDYwMApAQCAt NTAzLDYgKzUwMyw3IEBACiBsaWIvY2FsaWJyZS9jYWxpYnJlL2d1aTIvYWRkX3dpemFyZC9fX2lu aXRfXy5weQogbGliL2NhbGlicmUvY2FsaWJyZS9ndWkyL2FkZF93aXphcmQvc2Nhbl91aS5weQog bGliL2NhbGlicmUvY2FsaWJyZS9ndWkyL2FkZF93aXphcmQvd2VsY29tZV91aS5weQorbGliL2Nh bGlicmUvY2FsaWJyZS9ndWkyL2F1dG9fYWRkLnB5CiBsaWIvY2FsaWJyZS9jYWxpYnJlL2d1aTIv YmFycy5weQogbGliL2NhbGlicmUvY2FsaWJyZS9ndWkyL2Jvb2tfZGV0YWlscy5weQogbGliL2Nh bGlicmUvY2FsaWJyZS9ndWkyL2NhdGFsb2cvX19pbml0X18ucHkK --=_839a74137ce3451b24301eabc0bf56af--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202071000.q17A0d4P015050>