Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • abuild abuild
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 41
    • Issues 41
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 27
    • Merge requests 27
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • alpine
  • abuildabuild
  • Issues
  • #10021

Closed
Open
Created Dec 20, 2020 by Sören Tempel@nmeumMaintainer

abuild rootbld: abuild-sign can't preserve ownership

When building any aport using abuild rootbld I get the following error during create_apks():

mv: can't preserve ownership of '/home/soeren/src/aports/community/tpm/pkg/.control.tpm/control.tar.gz': Invalid argument

This error message is emitted by the mv invocation in the following abuild-sign line:

https://gitlab.alpinelinux.org/alpine/abuild/-/blob/8eeca0adad838d6fd20771c2f62c394048db11cb/abuild-sign.in#L47

Both files in that line are existing files owned by root:

-rw-r--r--    1 root     root           543 Dec 20 19:31 /home/soeren/src/aports/community/tpm/pkg/.control.tpm/control.tar.gz
-rw-r--r--    1 root     root           949 Dec 20 19:31 /tmp/tmp.hKGmJh

Since that mv invocation is executed in a bwrap environment (as created by abuild rootbld) and fakeroot this may be a problem in the handling of lchown (used internally by mv to preserve ownership) in fakeroot? The error message appeared recently and wasn't present previously.

Assignee
Assign to
Time tracking