Return-Path: Received: from mail5.wrs.com (mail5.windriver.com [192.103.53.11]) by mail.openembedded.org (Postfix) with ESMTP id 7B08D7BDA1 for ; Tue, 8 Jan 2019 20:15:35 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id x08KEbjK014866 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Tue, 8 Jan 2019 12:14:58 -0800 Received: from soho-mhatle-m.local (172.25.36.226) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.408.0; Tue, 8 Jan 2019 12:14:45 -0800 To: "Burton, Ross" , Andrej Valek References: <05af53a7-6ed6-9615-be2e-d8c31dbfb321@siemens.com> From: Mark Hatle Openpgp: preference=signencrypt Autocrypt: addr=mark.hatle@windriver.com; prefer-encrypt=mutual; keydata= mQENBFYKxFgBCACt/pzutBp6p/xVKTFJjHbM3KpQKCblyot/YP+bpTr51Hrc5xDXBQhoG7TC aIRvRIvbhEevEQK9y04gW3JK/5lobq5ORebolcsHlYBUvpNeIPjupLQwGvz/TPtrLRNGLqDC rvsM6OA2XbQ2bwzxWaSQS3ImE2O2iXOZn9HhThMGeDB4Nff3fgUvXOTDIrgWOn9K2DgLL7Yc zkUIlFdj+Nraksd/7BSk8oH6tjeBVhFqSFvKta9QxWgdr58oPaTYaW/xNqUjlLrbJuMw/MSe xzuYfdfDfm6J8kRjMOnwQ0n8svJElzqAk+d83ow38gpGQ+LkjGgnf8ZFJ4rUJFADroX3ABEB AAG0JU1hcmsgSGF0bGUgPG1hcmsuaGF0bGVAd2luZHJpdmVyLmNvbT6JATcEEwEIACEFAlYK xFgCGwMFCwkIBwIGFQgJCgsCBBYCAwECHgECF4AACgkQfv796/r0vvlvZAf9Gs+eN320yhRW V/fZCsngKhmOK4v3HrTwFrkSmoD9QHQiE/5IPdNacHwIPwZx07tNBohB8xOeNqCPRYRBwGhA AnxKOPyd0nnm6ZhPzbA57v4x3IGRQr4QzvcBTASJq91l3Ew4lpAslyx5w1DPPqRD7G8ycDKg peKyDwmdkvCunVisSAQI3XIMq2y230biTO98tDPEezg+lg+yTsz9ZT33F5KNuWrpf8VL5fG/ mt+kAv7wtsx/KTRbqhH3iFXF6eBSwMjAfTXFlkLfbM9riJGXrWEl9n2S2R3cDHNHug0lb8f4 whK370KEO4OwRKIYW/VUBmzk5XZUE9DTlDSV8ycsrrkBDQRWCsRYAQgAwK3FuHCE+HW3YWdH PUjeSn5p//xJ57u8g2rng8zm9zNjmYgpPv5UxozaD9i2jf4mlQLHGGOezhHae8K4Nj70oVcv 8AmwcrJa9i9WL1oy/9R3fHMWf/Ctt9VXTO0qlCuq6PDzaUfvsXR61aJIjTKNQTOjCLjY1vXm VSewUgARysmA8WrjTfwGBihMBxAX0+kIjx8nOlam0WvekMBXZ0AbS56oTLRxYao6DI3GeB/N oWPy/5DfuTKaSdM0Pf8al20x9RuNN5/HLMlyDH/k8bIa1xd9aAqW+Feiw5gC107V2E6ULyIy q6em2UrsmIRxrvpHqbNgQKqvTehJ+V/i4g/uOwARAQABiQEfBBgBCAAJBQJWCsRYAhsMAAoJ EH7+/ev69L755XAH/3ZcNhooqd9OBhFkvXm1iWZ8EoC7motWqVn2oEyxoonsg8AD9kFXiN+T dYp7dH99EZu9q4ptj56AXm4uHzOgywL/5/V2TY6twCGAjUGzDjAB5gzoi+JLIBlDiyOip0eL QswIhRk473xy3j8DA4oVamnSPWgyNJ+qsdt37YWDzoDFFvtDoRU7Eb+znfIMDKzlny0XU/8L cW1bNHJlpv/78GPdfP4tjysEd8MuA5jf5o5w4XqcwTqalffEJtQ/s3pbkstEi7qm5uPui5Kt gq6YYLSqcSNe0GWAF9/T+qwyo7burSTxUWCWtMmlXdAQLW9SynLhB3Jbch0nFAh0fCKi6yY= Organization: Wind River Systems Message-ID: Date: Tue, 8 Jan 2019 14:14:44 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Cc: "openembedded-core@lists.openembedded.org" Subject: Re: Prelink problem X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jan 2019 20:15:35 -0000 Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit On 1/8/19 6:27 AM, Burton, Ross wrote: > That patch removed the dependency on the QA, but your failure is at rootfs time. > > No idea why the opkg rootfs code is doing prelink operations when RPM > or dpkg don't. CCing Mark who may have an idea here. I thought the > autobuilder exerised multilib-on-opkg, but maybe not. They all should be doing prelink operations. The operation SHOULD be generically implemented as part of the image-prelink class, which is where I would have expected that copy to exist. If any of the package types of specifically doing something, that sounds broken... but the generic ones (last I looked) said to copy in the config file [if it didn't exist], run prelink, remove the file [if it wasn't there to start with]. --Mark > Ross > > On Tue, 8 Jan 2019 at 07:14, Andrej Valek wrote: >> >> Hi Ross, >> >> I would like to ask You a question about your commit, which removed >> prelink dependency >> (http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/meta/classes/insane.bbclass?h=thud&id=659c8b5267dc2220f67bfcb4ae2df91ae5052cdc). >> Is it really necessary to remove the QADEPENDS = "prelink-native"? >> >> I was trying to build extensible SDK with multilib support, but without >> success. Here is the crash log: >> >> 0709: if not os.path.exists(prelink_cfg): >> >> 0710: >> shutil.copy(self.d.expand('${STAGING_DIR_NATIVE}${sysconfdir_native}/prelink.conf'), >> >> *** 0711: prelink_cfg) >> >> 0712: >> >> 0713: cmd_prelink = >> self.d.expand('${STAGING_DIR_NATIVE}${sbindir_native}/prelink') >> >> 0714: self._exec_shell_cmd([cmd_prelink, >> >> 0715: '--root', >> >> File: '/usr/lib/python3.5/shutil.py', lineno: 241, function: copy >> >> 0237: >> >> 0238: """ >> >> 0239: if os.path.isdir(dst): >> >> 0240: dst = os.path.join(dst, os.path.basename(src)) >> >> *** 0241: copyfile(src, dst, follow_symlinks=follow_symlinks) >> >> 0242: copymode(src, dst, follow_symlinks=follow_symlinks) >> >> 0243: return dst >> >> 0244: >> >> 0245:def copy2(src, dst, *, follow_symlinks=True): >> >> File: '/usr/lib/python3.5/shutil.py', lineno: 120, function: copyfile >> >> 0116: >> >> 0117: if not follow_symlinks and os.path.islink(src): >> >> 0118: os.symlink(os.readlink(src), dst) >> >> 0119: else: >> >> *** 0120: with open(src, 'rb') as fsrc: >> >> 0121: with open(dst, 'wb') as fdst: >> >> 0122: copyfileobj(fsrc, fdst) >> >> 0123: return dst >> >> 0124: >> >> Exception: FileNotFoundError: [Errno 2] No such file or directory: >> '/home/.../1.0-r0/recipe-sysroot-native/etc/prelink.conf' >> >> >> It points into meta/lib/oe/rootfs.py:705 >> >> if not os.path.exists(prelink_cfg): >> >> shutil.copy(self.d.expand('${STAGING_DIR_NATIVE}${sysconfdir_native}/prelink.conf'),prelink_cfg) >> >> >> How it's possible to copy non-existing file, because of removed >> prelink-native dependency. >> >> Do I need to explicitly inherit some class, let say image-prelink? >> What am I doing wrong? >> >> Regards, >> Andrej