From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]) by metis.ext.pengutronix.de with esmtps (TLS1.2:RSA_ARCFOUR_SHA1:128) (Exim 4.80) (envelope-from ) id 1ZUDXU-000659-Di for ptxdist@pengutronix.de; Tue, 25 Aug 2015 14:41:20 +0200 Received: by widdq5 with SMTP id dq5so13831065wid.0 for ; Tue, 25 Aug 2015 05:41:12 -0700 (PDT) Received: from omega (p20030064A9199E7BE2CB4EFFFE1BB546.dip0.t-ipconnect.de. [2003:64:a919:9e7b:e2cb:4eff:fe1b:b546]) by smtp.gmail.com with ESMTPSA id y15sm2506320wib.7.2015.08.25.05.41.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Aug 2015 05:41:12 -0700 (PDT) Date: Tue, 25 Aug 2015 14:41:06 +0200 From: Alexander Aring Message-ID: <20150825124100.GA20806@omega> References: <1440338218-18404-1-git-send-email-alex.aring@gmail.com> <1440338218-18404-2-git-send-email-alex.aring@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1440338218-18404-2-git-send-email-alex.aring@gmail.com> Subject: Re: [ptxdist] [PATCH 2/2] genimage: add workaround to work with glibc 2.22 List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de T24gU3VuLCBBdWcgMjMsIDIwMTUgYXQgMDM6NTY6NThQTSArMDIwMCwgQWxleGFuZGVyIEFyaW5n IHdyb3RlOgo+IFRoaXMgcGF0Y2ggYWRkcyBhIHdvcmthcm91bmQgZm9yIGNoZWNrIGlmIHZhbHVl IGFyZ3VtZW50IG9mIHNldGVudiBpcwo+IG51bGwuIEluIGFsbCBnbGliYyB2ZXJzaW9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