Openembedded Core Discussions
 help / color / mirror / Atom feed
* Prelink problem
@ 2019-01-08  7:14 Andrej Valek
  2019-01-08 12:27 ` Burton, Ross
  0 siblings, 1 reply; 10+ messages in thread
From: Andrej Valek @ 2019-01-08  7:14 UTC (permalink / raw)
  To: Burton, Ross; +Cc: openembedded-core@lists.openembedded.org

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-02-05  9:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-08  7:14 Prelink problem Andrej Valek
2019-01-08 12:27 ` Burton, Ross
2019-01-08 20:14   ` Mark Hatle
2019-01-08 20:37     ` Burton, Ross
2019-01-08 20:50       ` Mark Hatle
2019-01-08 21:46         ` Richard Purdie
2019-01-16  7:23           ` Andrej Valek
2019-01-16 15:57             ` Mark Hatle
2019-01-22  9:49               ` Andrej Valek
2019-02-05  8:54                 ` [PATCH] lib/oe/rootfs: prelink only when image-prelink is inherited Andrej Valek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox