From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15310 invoked by alias); 27 Apr 2012 02:08:06 -0000 Received: (qmail 15183 invoked by uid 22791); 27 Apr 2012 02:08:05 -0000 X-SWARE-Spam-Status: No, hits=-4.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-vb0-f41.google.com (HELO mail-vb0-f41.google.com) (209.85.212.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 27 Apr 2012 02:07:52 +0000 Received: by vbbey12 with SMTP id ey12so233581vbb.0 for ; Thu, 26 Apr 2012 19:07:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.240.170 with SMTP id wb10mr8193329vdc.58.1335492471355; Thu, 26 Apr 2012 19:07:51 -0700 (PDT) Received: by 10.220.132.1 with HTTP; Thu, 26 Apr 2012 19:07:51 -0700 (PDT) Date: Fri, 27 Apr 2012 02:08:00 -0000 Message-ID: Subject: [PATCH] fix problem with "install" call in populate script From: Anthony Foiani To: crossgcc@sourceware.org, "Yann E. MORIN" Content-Type: multipart/mixed; boundary=20cf307ca4045af79d04be9f9237 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2012-04/txt/msg00041.txt.bz2 --20cf307ca4045af79d04be9f9237 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-length: 1289 Greetings all -- Due to the usual cascade of requirements and bugs, I had to upgrade my toolchain to gcc-4.6.3, so I updated my ct-ng to latest hg head.=C2=A0 (I tried the 1.14.1 release, but that didn't have the 4.6.3 stuff in it). When I ran though my old scripts for building my ramdisk, I got new errors: /opt/cross/platforms/foo/xtools/bin/powerpc-e300c3-linux-gnu-populate: line 208: /usr/bin/install -c: No such file or directory readelf: Error: 'lib/libpthread.so.0': No such file Adding verbosity didn't help.=C2=A0 It turns out that autoconf found "/usr/bin/install -c" to be the correct install tool.=C2=A0 When populate tries to call it, however, it keeps it in double-quotes, and the shell tries to interpret the whole string as a command name: =C2=A0 # this is the value returned by autoconf and stored in CT_install =C2=A0 $ ins=3D"/usr/bin/install -c" =C2=A0 # if we call it with quotes, the command is not found =C2=A0 $ "${ins}" =C2=A0 bash: /usr/bin/install -c: No such file or directory =C2=A0 # removing the quotes lets it work as expected =C2=A0 $ ${ins} =C2=A0 /usr/bin/install: missing file operand =C2=A0 Try `/usr/bin/install --help' for more information. The fix is easy: just remove the quotes around the use of ${install}. Patch attached. Thanks, t. --20cf307ca4045af79d04be9f9237 Content-Type: application/octet-stream; name="ctng-fix_populate_install.patch" Content-Disposition: attachment; filename="ctng-fix_populate_install.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_h1ilpzrx0 Content-length: 2046 IyBIRyBjaGFuZ2VzZXQgcGF0Y2gKIyBVc2VyIEFudGhvbnkgRm9pYW5pIDxh bnRob255LmZvaWFuaUBnbWFpbC5jb20+CiMgRGF0ZSAxMzM1NDkxNzU5IDIx NjAwCiMgTm9kZSBJRCA3ZWEzMjRiYTQ5ODgxY2VmNTMwNWVkOTc3ZTJkZDg4 NDljZWNmNzkzCiMgUGFyZW50ICBjN2ZhOTdkZWJiMzZiY2VhNzhhMjhhNjM5 ZDFhZTU2OTk5N2NjNmYyCkFsbG93IG11bHRpLXdvcmQgImluc3RhbGwiIGNv bW1hbmQuCgpBdXRvY29uZiBjYW4gZGV0ZXJtaW5lIHRoYXQgdGhlIGNvcnJl Y3QgaW5zdGFsbCBjb21tYW5kIGluY2x1ZGVzIGZsYWdzLAplLmcuLCAiL3Vz ci9iaW4vaW5zdGFsbCAtYyIuICBXaGVuIHVzaW5nIHRoaXMgYXMgYSBjb21t YW5kLCB3ZSBjYW4ndAplbmNsb3Nl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ICR7Q1RfUFJJTlRGfSAiICAgICAgaW5zdGFsbGluZyBhcyAnJXMvJXMn LCBtb2RlPSclcydcbiIgIiR7ZGlyfSIgIiR7dHJ1ZV9saWJuYW1lfSIgIiR7 bW9kZX0iCi0gICAgICAgICAgICAiJHtpbnN0YWxsfSIgLW0gIiR7bW9kZX0i ICIke2xpYmZpbGV9IiAiJHtkaXJ9LyR7dHJ1ZV9saWJuYW1lfSIKKyAgICAg ICAgICAgICR7aW5zdGFsbH0gLW0gIiR7bW9kZX0iICIke2xpYmZpbGV9IiAi JHtkaXJ9LyR7dHJ1ZV9saWJuYW1lfSIKICAgICAgICAgICAgIGRvX3Jlc29s dmVfZGVwcyAiJHtkaXJ9LyR7dHJ1ZV9saWJuYW1lfSIKICAgICAgICAgICAg IHJldHVybiAwCiAgICAgICAgIGZpCg== --20cf307ca4045af79d04be9f9237 Content-Type: text/plain; charset=us-ascii Content-length: 71 -- For unsubscribe information see http://sourceware.org/lists.html#faq --20cf307ca4045af79d04be9f9237--