Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document DABUILD_ARCH #46

Closed
z3ntu opened this issue Dec 22, 2019 · 4 comments
Closed

Document DABUILD_ARCH #46

z3ntu opened this issue Dec 22, 2019 · 4 comments

Comments

@z3ntu
Copy link

z3ntu commented Dec 22, 2019

Currently DABUILD_ARCH is not documented anywhere (readme, potential -h flag for dabuild).

Not directly related to this issue, but setting DABUILD_ARCH=aarch64 with dabuild -r results in a sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges? message, doesn't look like that's intended behavior.

@mor1
Copy link
Collaborator

mor1 commented Dec 27, 2019

README updated to document all the environment variables.

Could you give me a bit more info about your second point, concerning DABUILD_ARCH please, preferably in a separate issue. Thanks!

@z3ntu
Copy link
Author

z3ntu commented Dec 27, 2019

I'm not sure if it's meant to be used that way, but running env DABUILD_ARCH=aarch64 dabuild -r on an x86_64 machine results in sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges? being printed (tested with aarch64 & armv7) - should that work? If yes, I'll open a separate issue, otherwise I probably misunderstood something :)

@mor1
Copy link
Collaborator

mor1 commented Dec 27, 2019

Well, it seems to work for me (OS X Catalina, latest stable Docker for Mac release) using testing/jhead as a quick example:

: mort@greyjay:jhead#master= $; env DABUILD_ARCH=aarch64 dabuild -r
Unable to find image 'alpinelinux/docker-abuild:edge-aarch64' locally
edge-aarch64: Pulling from alpinelinux/docker-abuild
edbad3f7cc1d: Pull complete
2881862439b6: Pull complete
c0ac7c97105f: Pull complete
02ac5e17f513: Pull complete
8a82005e6b7e: Pull complete
d140abb03c6c: Pull complete
Digest: sha256:aaae29c60cf505c561b5f3c211aa595dfd1929637d1216f9eba838ea3a403368
Status: Downloaded newer image for alpinelinux/docker-abuild:edge-aarch64
Generating RSA private key, 2048 bit long modulus (2 primes)
....................+++++
........................+++++
e is 65537 (0x010001)
writing RSA key
>>>
>>> You'll need to install /home/builder/.abuild/-5e067a4e.rsa.pub into
>>> /etc/apk/keys to be able to install packages and repositories signed with
>>> /home/builder/.abuild/-5e067a4e.rsa
>>>
>>> Please remember to make a safe backup of your private key:
>>> /home/builder/.abuild/-5e067a4e.rsa
>>>
Unknown QEMU_IFLA_INFO_KIND ipip
Unknown QEMU_IFLA_INFO_KIND ip6tnl
sudo: setrlimit(RLIMIT_CORE): Operation not permitted
'/home/builder/.abuild/-5e067a4e.rsa.pub' -> '/etc/apk/keys/-5e067a4e.rsa.pub'
Unknown QEMU_IFLA_INFO_KIND ipip
Unknown QEMU_IFLA_INFO_KIND ip6tnl
sudo: setrlimit(RLIMIT_CORE): Operation not permitted
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/aarch64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/aarch64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/aarch64/APKINDEX.tar.gz
WARNING: Ignoring /home/builder/packages/main/aarch64/APKINDEX.tar.gz: No such file or directory
WARNING: Ignoring /home/builder/packages/community/aarch64/APKINDEX.tar.gz: No such file or directory
WARNING: Ignoring /home/builder/packages/testing/aarch64/APKINDEX.tar.gz: No such file or directory
OK: 212 MiB in 57 packages
>>> jhead: Building testing/jhead 3.03-r0 (using abuild 3.5.0-r0) started Fri, 27 Dec 2019 21:40:39 +0000
>>> jhead: Checking sanity of /home/builder/aports/testing/jhead/APKBUILD...
>>> jhead: Analyzing dependencies...
>>> jhead: Installing for build: build-base
WARNING: Ignoring /home/builder/packages//testing/aarch64/APKINDEX.tar.gz: No such file or directory
WARNING: Ignoring /home/builder/packages//community/aarch64/APKINDEX.tar.gz: No such file or directory
WARNING: Ignoring /home/builder/packages//main/aarch64/APKINDEX.tar.gz: No such file or directory
WARNING: Ignoring /home/builder/packages/main/aarch64/APKINDEX.tar.gz: No such file or directory
WARNING: Ignoring /home/builder/packages/community/aarch64/APKINDEX.tar.gz: No such file or directory
WARNING: Ignoring /home/builder/packages/testing/aarch64/APKINDEX.tar.gz: No such file or directory
(1/1) Installing .makedepends-jhead (20191227.214049)
OK: 212 MiB in 58 packages
>>> jhead: Cleaning up srcdir
>>> jhead: Cleaning up pkgdir
>>> jhead: Fetching http://www.sentex.net/~mwandel/jhead/jhead-3.03.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   238  100   238    0     0    655      0 --:--:-- --:--:-- --:--:--   676
100 67762  100 67762    0     0  46991      0  0:00:01  0:00:01 --:--:--  124k
>>> jhead: Fetching http://www.sentex.net/~mwandel/jhead/jhead-3.03.tar.gz
>>> jhead: Checking sha512sums...
jhead-3.03.tar.gz: OK
>>> jhead: Unpacking /var/cache/distfiles/jhead-3.03.tar.gz...
gcc -Os -fomit-frame-pointer -O3 -Wall -c jhead.c -o jhead.o
gcc -Os -fomit-frame-pointer -O3 -Wall -c jpgfile.c -o jpgfile.o
gcc -Os -fomit-frame-pointer -O3 -Wall -c jpgqguess.c -o jpgqguess.o
gcc -Os -fomit-frame-pointer -O3 -Wall -c paths.c -o paths.o
gcc -Os -fomit-frame-pointer -O3 -Wall -c exif.c -o exif.o
gcc -Os -fomit-frame-pointer -O3 -Wall -c iptc.c -o iptc.o
gcc -Os -fomit-frame-pointer -O3 -Wall -c gpsinfo.c -o gpsinfo.o
gcc -Os -fomit-frame-pointer -O3 -Wall -c makernote.c -o makernote.o
gcc -Wl,--as-needed -o jhead ./jhead.o ./jpgfile.o ./jpgqguess.o ./paths.o ./exif.o ./iptc.o ./gpsinfo.o ./makernote.o  -lm
>>> jhead: Entering fakeroot...
>>> jhead-doc*: Running split function doc...
jhead.1: 100% - replaced with jhead.1.gz
>>> jhead-doc*: Preparing subpackage jhead-doc...
>>> jhead-doc*: Running postcheck for jhead-doc
>>> jhead*: Running postcheck for jhead
>>> jhead*: Preparing package jhead...
>>> jhead*: Stripping binaries
>>> jhead-doc*: Scanning shared objects
>>> jhead*: Scanning shared objects
>>> jhead-doc*: Tracing dependencies...
>>> jhead-doc*: Package size: 12.0 KB
>>> jhead-doc*: Compressing data...
>>> jhead-doc*: Create checksum...
>>> jhead-doc*: Create jhead-doc-3.03-r0.apk
>>> jhead*: Tracing dependencies...
	so:libc.musl-aarch64.so.1
>>> jhead*: Package size: 76.0 KB
>>> jhead*: Compressing data...
>>> jhead*: Create checksum...
>>> jhead*: Create jhead-3.03-r0.apk
>>> jhead: Build complete at Fri, 27 Dec 2019 21:41:22 +0000 elapsed time 0h 0m 43s
>>> jhead: Cleaning up srcdir
>>> jhead: Cleaning up pkgdir
>>> jhead: Uninstalling dependencies...
WARNING: Ignoring /home/builder/packages/main/aarch64/APKINDEX.tar.gz: No such file or directory
WARNING: Ignoring /home/builder/packages/community/aarch64/APKINDEX.tar.gz: No such file or directory
WARNING: Ignoring /home/builder/packages/testing/aarch64/APKINDEX.tar.gz: No such file or directory
(1/1) Purging .makedepends-jhead (20191227.214049)
OK: 212 MiB in 57 packages
>>> jhead: Updating the testing/aarch64 repository index...
>>> jhead: Signing the index...
: mort@greyjay:jhead#master= $;

That error looks to me like QEMU is complaining about the filesystem it's been given having been mounted nosuid. Probably worth an issue, perhaps also attach info about your filesystems? Thanks!

@z3ntu
Copy link
Author

z3ntu commented Dec 28, 2019

Continued in #47 with more infos about nosuid file systems on host & container

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants