Hi all.
I try build local rpm package by using “build” from build.rpm package. If I launch as root user - everything is fine. When trying as regular user, then error:
0s] initializing /var/tmp/build-root/.srcfiles.cache ...
0s] /usr/lib/build/createzyppdeps --cachedir=/var/cache/build zypp://openSUSE-42.1-0
2s] /usr/lib/build/createzyppdeps --cachedir=/var/cache/build zypp://repo-non-oss
3s] /usr/lib/build/createzyppdeps --cachedir=/var/cache/build zypp://repo-source
3s] /usr/lib/build/createzyppdeps --cachedir=/var/cache/build zypp://repo-update-non-oss
3s] /usr/lib/build/createzyppdeps --cachedir=/var/cache/build zypp://repo-update
11s] expanding package dependencies...
18s] Warning: distribution not specified, assuming 'default' (see /usr/lib/build/configs).
21s] calculating packages to download...
36s] hostname: Name or service not known
37s] [1/29] preinstalling filesystem...
37s] bsdtar: Can't chroot to ".": Operation not permitted
37s] [2/29] preinstalling glibc...
37s] bsdtar: Can't chroot to ".": Operation not permitted
37s] [3/29] preinstalling fillup...
37s] bsdtar: Can't chroot to ".": Operation not permitted
37s] [4/29] preinstalling libattr1...
37s] bsdtar: Can't chroot to ".": Operation not permitted
37s] [5/29] preinstalling libbz2-1...
37s] bsdtar: Can't chroot to ".": Operation not permitted
37s] [6/29] preinstalling libcap2...
37s] bsdtar: Can't chroot to ".": Operation not permitted
37s] [7/29] preinstalling libelf1...
37s] bsdtar: Can't chroot to ".": Operation not permitted
37s] [8/29] preinstalling libgcc_s1...
37s] bsdtar: Can't chroot to ".": Operation not permitted
37s] [9/29] preinstalling liblua5_1...
37s] bsdtar: Can't chroot to ".": Operation not permitted
37s] [10/29] preinstalling liblzma5...
37s] bsdtar: Can't chroot to ".": Operation not permitted
37s] [11/29] preinstalling libpcre1...
37s] bsdtar: Can't chroot to ".": Operation not permitted
37s] [12/29] preinstalling libpopt0...
37s] bsdtar: Can't chroot to ".": Operation not permitted
37s] [13/29] preinstalling libz1...
37s] bsdtar: Can't chroot to ".": Operation not permitted
37s] [14/29] preinstalling attr...
37s] bsdtar: Can't chroot to ".": Operation not permitted
37s] [15/29] preinstalling libacl1...
37s] bsdtar: Can't chroot to ".": Operation not permitted
37s] [16/29] preinstalling libncurses5...
37s] bsdtar: Can't chroot to ".": Operation not permitted
37s] [17/29] preinstalling libselinux1...
37s] bsdtar: Can't chroot to ".": Operation not permitted
37s] [18/29] preinstalling libreadline6...
37s] bsdtar: Can't chroot to ".": Operation not permitted
37s] [19/29] preinstalling bash...
37s] bsdtar: Can't chroot to ".": Operation not permitted
37s] [20/29] preinstalling diffutils...
37s] bsdtar: Can't chroot to ".": Operation not permitted
37s] [21/29] preinstalling m4...
37s] bsdtar: Can't chroot to ".": Operation not permitted
37s] [22/29] preinstalling sed...
37s] bsdtar: Can't chroot to ".": Operation not permitted
37s] [23/29] preinstalling grep...
37s] bsdtar: Can't chroot to ".": Operation not permitted
37s] [24/29] preinstalling tar...
37s] bsdtar: Can't chroot to ".": Operation not permitted
37s] [25/29] preinstalling coreutils...
37s] bsdtar: Can't chroot to ".": Operation not permitted
37s] [26/29] preinstalling permissions...
37s] bsdtar: Can't chroot to ".": Operation not permitted
37s] [27/29] preinstalling aaa_base...
37s] bsdtar: Can't chroot to ".": Operation not permitted
37s] [28/29] preinstalling rpm...
37s] bsdtar: Can't chroot to ".": Operation not permitted
37s] [29/29] preinstalling pam...
37s] bsdtar: Can't chroot to ".": Operation not permitted
37s]
37s] running aaa_base preinstall script
37s] chroot: cannot change root directory to /var/tmp/build-root: Operation not permitted
37s] running aaa_base postinstall script
37s] chroot: cannot change root directory to /var/tmp/build-root: Operation not permitted
37s] initializing rpm db...
37s] chroot: cannot change root directory to /var/tmp/build-root: Operation not permitted
I tried to change build root with export BUILD_ROOT, but nothing changes. Same error.
Is it possible to build rpms as non-root user?