All of lore.kernel.org
 help / color / mirror / Atom feed
* Fakeroot fails with externalsrc
@ 2025-03-07 20:08 Kjeld Flarup
  2025-03-08 19:19 ` [yocto] " Gyorgy Sarvari
  0 siblings, 1 reply; 3+ messages in thread
From: Kjeld Flarup @ 2025-03-07 20:08 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1730 bytes --]

Hi

I'm trying to make a CI/CD Yocto build in a git repository which is used in a recipe.

I have made an include file  meta-codesys/recipes-codesys/codesys-src.inc which normally contains.

> 
> SRC_URI =
> "gitsm://gitlab.deif.com/codesys/codesys-runtimes.git;protocol=https;branch=master"
> 
> SRCREV = "927fe8fa0b9e6537b3d7ec9f2231e13c4b367a61"
> 

When building in the codesys-runtimes repository I clone the Yocto project and replaces codesys-src.inc with

> 
> inherit externalsrc
> EXTERNALSRC = "/userdata/codesys-runtimes"
> EXTERNALSRC_BUILD = "/userdata/codesys-runtimes/build"
> 

And then I run bitbake where I get this error

> 
> *** 0418:            os.lchown(path, uid, gid)
> 0419:
> 0420:    # Return a list of configuration files based on either the
> default
> 0421:    # files/fs-perms.txt or the contents of FILESYSTEM_PERMS_TABLES
> 0422:    # paths are resolved via BBPATH
> Exception: PermissionError: [Errno 1] Operation not permitted:
> '/userdata/codesys-runtimes/yocto/tmp-glibc/work/cortexa53-crypto-oe-linux/codesys-runtime/1.0-r0/package/usr'
> 
> 
> ERROR: Logfile of failure stored in:
> /userdata/codesys-runtimes/yocto/tmp-glibc/work/cortexa53-crypto-oe-linux/codesys-runtime/1.0-r0/temp/log.do_package.59961
> 
> ERROR: Task
> (/userdata/codesys-runtimes/yocto/meta-codesys/recipes-codesys/codesys-runtime/codesys-runtime.bb:do_package)
> failed with exit code '1'
> 

The problem is that do_package tries to set uid to root, but that is not allowed, unless fakeroot is used.
Why does this fail when externalsrc is used?

Just for the record, if I do not change codesys-src.inc it builds.

--
--
Regards
Kjeld Flarup
DEIF A/S

[-- Attachment #2: Type: text/html, Size: 2185 bytes --]

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

end of thread, other threads:[~2025-03-10 14:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-07 20:08 Fakeroot fails with externalsrc Kjeld Flarup
2025-03-08 19:19 ` [yocto] " Gyorgy Sarvari
2025-03-10 14:59   ` Kjeld Flarup Christensen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.