diff mbox series

[yocto-patches,meta-cgl,3/3] ucarp: Fix the permissions

Message ID 20250929045007.12623-3-vanusuri@mvista.com
State New
Headers show
Series [yocto-patches,meta-cgl,1/3] recipes: Fix whitespace warnings | expand

Commit Message

Vijay Anusuri Sept. 29, 2025, 4:50 a.m. UTC
From: Vijay Anusuri <vanusuri@mvista.com>

Gave write permission to po
List of Makefile.in.ins to update po/Makefile.in.in

Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
---
 meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Khem Raj Sept. 29, 2025, 6:55 p.m. UTC | #1
On Sun, Sep 28, 2025 at 9:50 PM Vijay Anusuri via
lists.yoctoproject.org <vanusuri=mvista.com@lists.yoctoproject.org>
wrote:
>
> From: Vijay Anusuri <vanusuri@mvista.com>
>
> Gave write permission to po
> List of Makefile.in.ins to update po/Makefile.in.in
>
> Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
> ---
>  meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb b/meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb
> index d221814..8a2737b 100644
> --- a/meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb
> +++ b/meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb
> @@ -42,6 +42,10 @@ EXTRA_OECONF += "--sysconfdir=${sysconfdir}/${BPN}"
>  # fix the perms for config.rpath
>  do_configure:prepend() {
>      chmod 755 ${S}/config.rpath
> +    # Make sure po directory is writable by current user

Why should it be writable ?

> +    if [ -d "${S}/po" ]; then
> +        chmod -R u+rw ${S}/po
> +    fi
>  }
>
>  do_install:append() {
> --
> 2.25.1
>
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#2248): https://lists.yoctoproject.org/g/yocto-patches/message/2248
> Mute This Topic: https://lists.yoctoproject.org/mt/115490482/1997914
> Group Owner: yocto-patches+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto-patches/leave/13340786/1997914/645821814/xyzzy [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
Vijay Anusuri Sept. 30, 2025, 1:16 a.m. UTC | #2
Hi Khem,

The Makefile.in.in file inside the po/ directory had read-only permissions (
0444), even for the file owner. During the build, the process attempted to
copy and overwrite this file but failed due to lack of write permissions.

I updated the permissions to grant write access so that the build process
could proceed successfully.

Below is the error snippet


| NOTE: List of Makefile.in.ins to update:
/home/xxx/project/yocto_master/poky/build/tmp/work/x86-64-v3-poky-linux/ucarp/1.5.2/sources/ucarp-1.5.2/po/
Makefile.in.in
| NOTE: Executing: cp
/home/xxx/project/yocto_master/poky/build/tmp/work/x86-64-v3-poky-linux/ucarp/1.5.2/recipe-sysroot-native/usr/share/gettext/po/
Makefile.in.in
/home/xxx/project/yocto_master/poky/build/tmp/work/x86-64-v3-poky-linux/ucarp/1.5.2/sources/ucarp-1.5.2/po/
| cp: cannot create regular file
'/home/xxx/project/yocto_master/poky/build/tmp/work/x86-64-v3-poky-linux/ucarp/1.5.2/sources/ucarp-1.5.2/po/
Makefile.in.in': Permission denied

Thanks & Regards,
Vijay

On Tue, Sep 30, 2025 at 12:26 AM Khem Raj <raj.khem@gmail.com> wrote:

> On Sun, Sep 28, 2025 at 9:50 PM Vijay Anusuri via
> lists.yoctoproject.org <vanusuri=mvista.com@lists.yoctoproject.org>
> wrote:
> >
> > From: Vijay Anusuri <vanusuri@mvista.com>
> >
> > Gave write permission to po
> > List of Makefile.in.ins to update po/Makefile.in.in
> >
> > Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
> > ---
> >  meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb | 4 ++++
> >  1 file changed, 4 insertions(+)
> >
> > diff --git a/meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb
> b/meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb
> > index d221814..8a2737b 100644
> > --- a/meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb
> > +++ b/meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb
> > @@ -42,6 +42,10 @@ EXTRA_OECONF += "--sysconfdir=${sysconfdir}/${BPN}"
> >  # fix the perms for config.rpath
> >  do_configure:prepend() {
> >      chmod 755 ${S}/config.rpath
> > +    # Make sure po directory is writable by current user
>
> Why should it be writable ?
>
> > +    if [ -d "${S}/po" ]; then
> > +        chmod -R u+rw ${S}/po
> > +    fi
> >  }
> >
> >  do_install:append() {
> > --
> > 2.25.1
> >
> >
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#2248):
> https://lists.yoctoproject.org/g/yocto-patches/message/2248
> > Mute This Topic: https://lists.yoctoproject.org/mt/115490482/1997914
> > Group Owner: yocto-patches+owner@lists.yoctoproject.org
> > Unsubscribe:
> https://lists.yoctoproject.org/g/yocto-patches/leave/13340786/1997914/645821814/xyzzy
> [raj.khem@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
> >
>
Khem Raj Sept. 30, 2025, 2:59 a.m. UTC | #3
On Mon, Sep 29, 2025 at 6:16 PM Vijay Anusuri <vanusuri@mvista.com> wrote:
>
> Hi Khem,
>
> The Makefile.in.in file inside the po/ directory had read-only permissions (0444), even for the file owner. During the build, the process attempted to copy and overwrite this file but failed due to lack of write permissions.
>
> I updated the permissions to grant write access so that the build process could proceed successfully.
>
> Below is the error snippet
>
>
> | NOTE: List of Makefile.in.ins to update: /home/xxx/project/yocto_master/poky/build/tmp/work/x86-64-v3-poky-linux/ucarp/1.5.2/sources/ucarp-1.5.2/po/Makefile.in.in
> | NOTE: Executing: cp /home/xxx/project/yocto_master/poky/build/tmp/work/x86-64-v3-poky-linux/ucarp/1.5.2/recipe-sysroot-native/usr/share/gettext/po/Makefile.in.in /home/xxx/project/yocto_master/poky/build/tmp/work/x86-64-v3-poky-linux/ucarp/1.5.2/sources/ucarp-1.5.2/po/
> | cp: cannot create regular file '/home/xxx/project/yocto_master/poky/build/tmp/work/x86-64-v3-poky-linux/ucarp/1.5.2/sources/ucarp-1.5.2/po/Makefile.in.in': Permission denied
>

Good. It will be nice to add this context in the commit message.

>
> Thanks & Regards,
> Vijay
>
> On Tue, Sep 30, 2025 at 12:26 AM Khem Raj <raj.khem@gmail.com> wrote:
>>
>> On Sun, Sep 28, 2025 at 9:50 PM Vijay Anusuri via
>> lists.yoctoproject.org <vanusuri=mvista.com@lists.yoctoproject.org>
>> wrote:
>> >
>> > From: Vijay Anusuri <vanusuri@mvista.com>
>> >
>> > Gave write permission to po
>> > List of Makefile.in.ins to update po/Makefile.in.in
>> >
>> > Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
>> > ---
>> >  meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb | 4 ++++
>> >  1 file changed, 4 insertions(+)
>> >
>> > diff --git a/meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb b/meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb
>> > index d221814..8a2737b 100644
>> > --- a/meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb
>> > +++ b/meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb
>> > @@ -42,6 +42,10 @@ EXTRA_OECONF += "--sysconfdir=${sysconfdir}/${BPN}"
>> >  # fix the perms for config.rpath
>> >  do_configure:prepend() {
>> >      chmod 755 ${S}/config.rpath
>> > +    # Make sure po directory is writable by current user
>>
>> Why should it be writable ?
>>
>> > +    if [ -d "${S}/po" ]; then
>> > +        chmod -R u+rw ${S}/po
>> > +    fi
>> >  }
>> >
>> >  do_install:append() {
>> > --
>> > 2.25.1
>> >
>> >
>> >
>> > -=-=-=-=-=-=-=-=-=-=-=-
>> > Links: You receive all messages sent to this group.
>> > View/Reply Online (#2248): https://lists.yoctoproject.org/g/yocto-patches/message/2248
>> > Mute This Topic: https://lists.yoctoproject.org/mt/115490482/1997914
>> > Group Owner: yocto-patches+owner@lists.yoctoproject.org
>> > Unsubscribe: https://lists.yoctoproject.org/g/yocto-patches/leave/13340786/1997914/645821814/xyzzy [raj.khem@gmail.com]
>> > -=-=-=-=-=-=-=-=-=-=-=-
>> >
>> >
Vijay Anusuri Sept. 30, 2025, 3:36 a.m. UTC | #4
Sure. I will update the commit message and send out a v2 patch.

On Tue, Sep 30, 2025 at 8:29 AM Khem Raj <raj.khem@gmail.com> wrote:

> On Mon, Sep 29, 2025 at 6:16 PM Vijay Anusuri <vanusuri@mvista.com> wrote:
> >
> > Hi Khem,
> >
> > The Makefile.in.in file inside the po/ directory had read-only
> permissions (0444), even for the file owner. During the build, the process
> attempted to copy and overwrite this file but failed due to lack of write
> permissions.
> >
> > I updated the permissions to grant write access so that the build
> process could proceed successfully.
> >
> > Below is the error snippet
> >
> >
> > | NOTE: List of Makefile.in.ins to update:
> /home/xxx/project/yocto_master/poky/build/tmp/work/x86-64-v3-poky-linux/ucarp/1.5.2/sources/ucarp-1.5.2/po/
> Makefile.in.in
> > | NOTE: Executing: cp
> /home/xxx/project/yocto_master/poky/build/tmp/work/x86-64-v3-poky-linux/ucarp/1.5.2/recipe-sysroot-native/usr/share/gettext/po/
> Makefile.in.in
> /home/xxx/project/yocto_master/poky/build/tmp/work/x86-64-v3-poky-linux/ucarp/1.5.2/sources/ucarp-1.5.2/po/
> > | cp: cannot create regular file
> '/home/xxx/project/yocto_master/poky/build/tmp/work/x86-64-v3-poky-linux/ucarp/1.5.2/sources/ucarp-1.5.2/po/
> Makefile.in.in': Permission denied
> >
>
> Good. It will be nice to add this context in the commit message.
>
> >
> > Thanks & Regards,
> > Vijay
> >
> > On Tue, Sep 30, 2025 at 12:26 AM Khem Raj <raj.khem@gmail.com> wrote:
> >>
> >> On Sun, Sep 28, 2025 at 9:50 PM Vijay Anusuri via
> >> lists.yoctoproject.org <vanusuri=mvista.com@lists.yoctoproject.org>
> >> wrote:
> >> >
> >> > From: Vijay Anusuri <vanusuri@mvista.com>
> >> >
> >> > Gave write permission to po
> >> > List of Makefile.in.ins to update po/Makefile.in.in
> >> >
> >> > Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
> >> > ---
> >> >  meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb | 4 ++++
> >> >  1 file changed, 4 insertions(+)
> >> >
> >> > diff --git a/meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb
> b/meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb
> >> > index d221814..8a2737b 100644
> >> > --- a/meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb
> >> > +++ b/meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb
> >> > @@ -42,6 +42,10 @@ EXTRA_OECONF += "--sysconfdir=${sysconfdir}/${BPN}"
> >> >  # fix the perms for config.rpath
> >> >  do_configure:prepend() {
> >> >      chmod 755 ${S}/config.rpath
> >> > +    # Make sure po directory is writable by current user
> >>
> >> Why should it be writable ?
> >>
> >> > +    if [ -d "${S}/po" ]; then
> >> > +        chmod -R u+rw ${S}/po
> >> > +    fi
> >> >  }
> >> >
> >> >  do_install:append() {
> >> > --
> >> > 2.25.1
> >> >
> >> >
> >> >
> >> > -=-=-=-=-=-=-=-=-=-=-=-
> >> > Links: You receive all messages sent to this group.
> >> > View/Reply Online (#2248):
> https://lists.yoctoproject.org/g/yocto-patches/message/2248
> >> > Mute This Topic: https://lists.yoctoproject.org/mt/115490482/1997914
> >> > Group Owner: yocto-patches+owner@lists.yoctoproject.org
> >> > Unsubscribe:
> https://lists.yoctoproject.org/g/yocto-patches/leave/13340786/1997914/645821814/xyzzy
> [raj.khem@gmail.com]
> >> > -=-=-=-=-=-=-=-=-=-=-=-
> >> >
> >> >
>
diff mbox series

Patch

diff --git a/meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb b/meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb
index d221814..8a2737b 100644
--- a/meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb
+++ b/meta-cgl-common/recipes-cgl/ucarp/ucarp_1.5.2.bb
@@ -42,6 +42,10 @@  EXTRA_OECONF += "--sysconfdir=${sysconfdir}/${BPN}"
 # fix the perms for config.rpath
 do_configure:prepend() {
     chmod 755 ${S}/config.rpath
+    # Make sure po directory is writable by current user
+    if [ -d "${S}/po" ]; then
+        chmod -R u+rw ${S}/po
+    fi
 }
 
 do_install:append() {