From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12736 Path: news.gmane.org!.POSTED!not-for-mail From: "A. Wilcox" Newsgroups: gmane.linux.lib.musl.general Subject: Re: Possible issue around utime() and symlinks on at least MIPS64 Date: Wed, 18 Apr 2018 16:51:31 -0500 Organization: =?UTF-8?Q?Ad=c3=a9lie_Linux?= Message-ID: <89968ffc-d4ae-93d1-0810-345ad03f2a53@adelielinux.org> References: <1628901.R1SNWt7Sda@zaphod> <20180418200014.GG3094@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="6e7iF5W48hkP9ZebzTpp07DBUF1etX3e8" X-Trace: blaine.gmane.org 1524088201 17070 195.159.176.226 (18 Apr 2018 21:50:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 18 Apr 2018 21:50:01 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 To: musl@lists.openwall.com Original-X-From: musl-return-12752-gllmg-musl=m.gmane.org@lists.openwall.com Wed Apr 18 23:49:57 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1f8uxe-0004JR-Ib for gllmg-musl@m.gmane.org; Wed, 18 Apr 2018 23:49:54 +0200 Original-Received: (qmail 20243 invoked by uid 550); 18 Apr 2018 21:52:02 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 20221 invoked from network); 18 Apr 2018 21:52:01 -0000 Openpgp: preference=signencrypt Autocrypt: addr=awilfox@adelielinux.org; prefer-encrypt=mutual; keydata= xsFNBE+DjPIBEADTQ1H/e/avDUhgt8+T3TJpjGYoY9Y47EMfHqWMm9LjR9aiZSG6GWRbpjWS 4V0DqzIhNQw7HLkPws9CVqQkmpIeltQyGDV2qcR5AXxJ4lCRWHxwRzWE0cCzhLUR9BBWOO0U NINQY+2IqmzRAqXZ9zL+mGTles/qeheXmaWLKf/T0kqJFihoM+ItQvUWOkWUdVv0prhzXr9Q QUdt0NTIW8n4sPwtuSvQgqwSzCJQArh1myugVSGiIIN38pCU8g41Vh35mHHhbHjbn0o1mhrX B/gbsndGo7QQBKz4CPaSel+Fl92dCvVWTp1XYyjqeZx2xlx1zfDrXOTuzY1WmNHi7BgHYuem tG7Zyp7u9MR6FvLKgQhmvCQZXaa+9oNtwKckxoP/I5R8ede9YRb6pLyG5JC0pTTk7kpUZCX2 tm8pLKy899zomm8BBm71aEJHE44ABEl/PbM7tA7XhSPiWsdBmVCxH4bqpUgGMx0ztqhNsUul SDDhiAWgtYFHATynhmeKBDKthkO7lj4CzwI54dn1uiwDtvUFVyVsPMjJcCxFnONbOPcvm1R9 sDg5sn57dv0f+EtaU3ppZdotutjM9X7OEC93d1flO3k1LO20qn2ZcI24f3tEOLAjn5xZ1GdV 3BYBwrtuaaiO8tMdp0uAtILzkkrcr0vOi2/SngxtXFw+44X+WQARAQABzTNBLiBXaWxjb3gg KEFkw6lsaWUgTGludXgpIDxhd2lsZm94QGFkZWxpZWxpbnV4Lm9yZz7CwXoEEwEIACQCGwMF CwkIBwIGFQgJ In-Reply-To: <20180418200014.GG3094@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:12736 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --6e7iF5W48hkP9ZebzTpp07DBUF1etX3e8 Content-Type: multipart/mixed; boundary="ReR0rIQKdKcxGpBg9l9SxlCpkYyIQhKXT"; protected-headers="v1" From: "A. Wilcox" To: musl@lists.openwall.com Message-ID: <89968ffc-d4ae-93d1-0810-345ad03f2a53@adelielinux.org> Subject: Re: [musl] Possible issue around utime() and symlinks on at least MIPS64 References: <1628901.R1SNWt7Sda@zaphod> <20180418200014.GG3094@brightrain.aerifal.cx> In-Reply-To: <20180418200014.GG3094@brightrain.aerifal.cx> --ReR0rIQKdKcxGpBg9l9SxlCpkYyIQhKXT Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 04/18/18 15:00, Rich Felker wrote: > On Thu, Jul 06, 2017 at 02:50:16PM +0100, Adam Hill wrote: >> Hi, >>=20 >> Not carried out ANY investigation around this... unfortunately I >> don't have any time atm. Could also have been mentioned already or >> actually be a bug in tar itself etc. but I couldn't find anything >> with my quick search. Just thought I'd mention it in case anyone >> does feel inclined to investigate. >>=20 >> I compiled OpenWrt using pretty much default build settings for an >> octeon chip... it uses musl-1.1.16. The only real change I made was >> to use GNU tar rather than busybox. The resulting tar binary can't >> fix the modification/access times on any extracted symbolic links, >> resulting in for example: >>=20 >> tar: usr/share/zoneinfo/Africa: Cannot utime: Invalid argument >>=20 >> I didn't have strace available so can't even be sure tar's using >> utime()... just going by the error message alone. >>=20 >> I recompiled OpenWrt changing only the C library ( to GCC ) and the >> resulting tar binary worked fine... so I can only *assume* it's >> something to do with musl. >=20 > Did anyone ever get a chance to look further into this? It's been on=20 > my todo for a long time, but without sufficient information to=20 > reproduce I don't know where to begin. I spent about 20 minutes=20 > looking at the musl and kernel code now and it does not seem likely=20 > that this is mips64-specific. >=20 > Rich >=20 This really sounds like broken cross-compiling. When we cross-compile cp, it's unable to handle xattrs until it's re-compiled on native hardware. I'd suggest poking around at autoconf for GNU tar and seeing what it is 'guessing' the environment is like, and perhaps overriding some with ac_*=3D{yes,no} on the configure line. Best, --arw --=20 A. Wilcox (awilfox) Project Lead, Ad=C3=A9lie Linux http://adelielinux.org --ReR0rIQKdKcxGpBg9l9SxlCpkYyIQhKXT-- --6e7iF5W48hkP9ZebzTpp07DBUF1etX3e8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEjNyWOYPU1SaTSMHHyynLUZIrnRQFAlrXveMACgkQyynLUZIr nRTXrg//fXswdaKIyw1g9LhyI2eib70tRFIFqOXYOOUIMt+8o5rtV4JyrW5KD207 5y8D3mx84ys3L451K63mzj2WhJtpmP75Cv7lzJmuBTbBV8H7ttFyRSc5d1e/GhkD lJkiiVOCK7wE1vmSt0acNgxprLZk+FvG6gZKvTbMzRbRlNMBVCXrXH7TyVWe3OHL tNOK57LgrTDw/ouNf3lNgdARZXCC3a+jtDVwdcPclVj0Ke43UxmV8VOl8Dh9Fik2 70FHfGPRu8+/3vvdZLNx/P4zzTi6rejZDos13WFrYPv5GOtu1hHef3IyEuacMgTK jja1tyKtbuZFSShj6Av/OTLhlGt1e/Ag2L3jP/zK84O7unOYeqgBO4xiiWAsKV3d aS9AOFSWdRMswH+Yzw7wkVcaIodOc2ATamL/KD6R62ReueB8aWgmhX0i/L/T1djM TMyHzvmaJw0eVALlQgfNn9A6t02Ocj4Nibc7THERWTjBTW7Snni8k9QMP143WAhU yrsAhMPWm+0gZuowhIsZNcLqiIr1OLby+FX488wrHKx6rVHu1TNjeaGpNE23m7LB jTAXhH/zkJ/Z4KXUnOx/I82/gpaRXZyhXSyaFS7OWkAqZ6QrIxkeLFIuQmG69hKV Uh92OJmVd1fOPAg/BHxKS9Tq96ZQTfsm1RjZ2KRnYtYUX/CLkxY= =93Rl -----END PGP SIGNATURE----- --6e7iF5W48hkP9ZebzTpp07DBUF1etX3e8--