Skip to content

Building debs in master fails with permissions issue after yesterday's update #1363

@rodw-au

Description

@rodw-au

Here are the steps I follow to reproduce the issue:

  1. cd ./src git pull
  2. cd ..
  3. dpkg-buildpackage -b -uc

This is what I expected to happen:

debs would be built just like they did yesterday
## This is what happened instead:

executing regular installation with regular prefix but unterneath the debian folder
DESTDIR=/home/plasma2/linuxcnc-dev/debian/linuxcnc-uspace /usr/bin/make -C src install
make[2]: Entering directory '/home/plasma2/linuxcnc-dev/src'
emc/Submakefile:4: warning: overriding recipe for target '../include/linuxcnc.h'
emc/Submakefile:4: warning: ignoring old recipe for target '../include/linuxcnc.h'
install -o root -d -m 0755 /home/plasma2/linuxcnc-dev/debian/linuxcnc-uspace/usr/lib/linuxcnc/modules/linuxcnc
/home/plasma2/linuxcnc-dev/debian/linuxcnc-uspace/usr/bin
/home/plasma2/linuxcnc-dev/debian/linuxcnc-uspace/etc/linuxcnc
install: cannot change owner and permissions of ‘/home/plasma2/linuxcnc-dev/debian/linuxcnc-uspace/usr/lib/linuxcnc/modules/linuxcnc’: Operation not permitted
install: cannot change owner and permissions of ‘/home/plasma2/linuxcnc-dev/debian/linuxcnc-uspace/usr/bin’: Operation not permitted
install: cannot change owner and permissions of ‘/home/plasma2/linuxcnc-dev/debian/linuxcnc-uspace/etc/linuxcnc’: Operation not permitted
make[2]: *** [Makefile:798: install-kernel-dep] Error 1
make[2]: Leaving directory '/home/plasma2/linuxcnc-dev/src'
make[1]: *** [debian/rules:71: override_dh_auto_install] Error 2
make[1]: Leaving directory '/home/plasma2/linuxcnc-dev'
make: *** [debian/rules:39: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

It worked properly before this:

(If the behavior changed after making a particular change in hardware or
software, describe the change you think is responsible. E.g., "after upgrading
from LinuxCNC 2.7.3 to 2.7.4")

Information about my hardware and software:

  • I am using this Linux distribution and version Debian Bullseye 11
  • I am using this kernel version (shown by uname -a): Preempt_rt
  • I am running ... the build process

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions