diff mbox series

[v2] oe-selftest: Add static postgres user/group for reproducible build test

Message ID 20260421070646.1290375-1-xiao.zhang@windriver.com
State Changes Requested
Headers show
Series [v2] oe-selftest: Add static postgres user/group for reproducible build test | expand

Commit Message

Zhang Xiao April 21, 2026, 7:06 a.m. UTC
This adds the static postgres UID/GID entries to static-passwd and
static-group, fixing the "Nothing PROVIDES 'postgresql'" error when
running reproducible test.

The selftest environment requires static system user IDs to ensure
build reproducibility, which was missing for the postgres user/group
before this change.

Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com>
---
 meta-selftest/files/static-group  | 1 +
 meta-selftest/files/static-passwd | 1 +
 2 files changed, 2 insertions(+)

Comments

Yoann Congal April 21, 2026, 7:52 a.m. UTC | #1
On Tue Apr 21, 2026 at 9:06 AM CEST, ZhangXiao via lists.openembedded.org wrote:
> This adds the static postgres UID/GID entries to static-passwd and
> static-group, fixing the "Nothing PROVIDES 'postgresql'" error when
> running reproducible test.
>
> The selftest environment requires static system user IDs to ensure
> build reproducibility, which was missing for the postgres user/group
> before this change.
>
> Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com>

Since this is a meta-oe recipe, shouldn't those static IDs be defined in
https://git.openembedded.org/meta-openembedded/tree/meta-oe/files/static-passwd-meta-oe
https://git.openembedded.org/meta-openembedded/tree/meta-oe/files/static-group-meta-oe
instead?

Regards,

> ---
>  meta-selftest/files/static-group  | 1 +
>  meta-selftest/files/static-passwd | 1 +
>  2 files changed, 2 insertions(+)
>
> diff --git a/meta-selftest/files/static-group b/meta-selftest/files/static-group
> index 6a9ece20a8..a08795c4ea 100644
> --- a/meta-selftest/files/static-group
> +++ b/meta-selftest/files/static-group
> @@ -31,4 +31,5 @@ audio:x:532:
>  empower:x:533:
>  cmake-example:x:534:
>  meson-example:x:535:
> +postgres:x:536
>  nogroup:x:65534:
> diff --git a/meta-selftest/files/static-passwd b/meta-selftest/files/static-passwd
> index 98017c8153..ba1dcd54d8 100644
> --- a/meta-selftest/files/static-passwd
> +++ b/meta-selftest/files/static-passwd
> @@ -21,3 +21,4 @@ ptest:x:529:529::/:/bin/nologin
>  xuser:x:530:530::/:/bin/nologin
>  cmake-example:x:534:534::/var/lib/cmake-example:/bin/false
>  meson-example:x:535:535::/var/lib/meson-example:/bin/false
> +postgres:x:536:536::/:/bin/nologin
diff mbox series

Patch

diff --git a/meta-selftest/files/static-group b/meta-selftest/files/static-group
index 6a9ece20a8..a08795c4ea 100644
--- a/meta-selftest/files/static-group
+++ b/meta-selftest/files/static-group
@@ -31,4 +31,5 @@  audio:x:532:
 empower:x:533:
 cmake-example:x:534:
 meson-example:x:535:
+postgres:x:536
 nogroup:x:65534:
diff --git a/meta-selftest/files/static-passwd b/meta-selftest/files/static-passwd
index 98017c8153..ba1dcd54d8 100644
--- a/meta-selftest/files/static-passwd
+++ b/meta-selftest/files/static-passwd
@@ -21,3 +21,4 @@  ptest:x:529:529::/:/bin/nologin
 xuser:x:530:530::/:/bin/nologin
 cmake-example:x:534:534::/var/lib/cmake-example:/bin/false
 meson-example:x:535:535::/var/lib/meson-example:/bin/false
+postgres:x:536:536::/:/bin/nologin