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

building libmvndnative.* creates root files in target directory #627

Closed
hboutemy opened this issue May 1, 2022 · 1 comment
Closed

building libmvndnative.* creates root files in target directory #627

hboutemy opened this issue May 1, 2022 · 1 comment

Comments

@hboutemy
Copy link
Member

hboutemy commented May 1, 2022

$ cd native
$ make native-all
...
$ ls -l target/native-*
target/native-FreeBSD-x86:
total 12
-rwxr-xr-x 1 root root 4803 mai    1 10:13 libmvndnative.so
-rw-r--r-- 1 root root 1344 mai    1 10:13 mvndnative.o

target/native-FreeBSD-x86_64:
total 12
-rwxr-xr-x 1 root root 6755 mai    1 10:13 libmvndnative.so
-rw-r--r-- 1 root root 2240 mai    1 10:13 mvndnative.o

target/native-Linux-arm:
total 12
-rwxr-xr-x 1 root root 7804 mai    1 10:13 libmvndnative.so
-rw-r--r-- 1 root root 1584 mai    1 10:13 mvndnative.o

target/native-Linux-arm64:
total 16
-rwxr-xr-x 1 root root 8864 mai    1 10:13 libmvndnative.so
-rw-r--r-- 1 root root 1976 mai    1 10:13 mvndnative.o

target/native-Linux-armv6:
total 16
-rwxr-xr-x 1 herve herve 8564 mai    1 10:13 libmvndnative.so
-rw-r--r-- 1 herve herve 1520 mai    1 10:13 mvndnative.o

target/native-Linux-armv7:
total 12
-rwxr-xr-x 1 root root 7824 mai    1 10:13 libmvndnative.so
-rw-r--r-- 1 root root 1404 mai    1 10:13 mvndnative.o

target/native-Linux-ppc64:
total 20
-rwxr-xr-x 1 root root 70304 mai    1 10:13 libmvndnative.so
-rw-r--r-- 1 root root  2536 mai    1 10:13 mvndnative.o

target/native-Linux-x86:
total 20
-rwxr-xr-x 1 herve herve 15188 mai    1 10:13 libmvndnative.so
-rw-r--r-- 1 herve herve  1988 mai    1 10:13 mvndnative.o

target/native-Linux-x86_64:
total 16
-rwxr-xr-x 1 root root 8384 mai    1 10:13 libmvndnative.so
-rw-r--r-- 1 root root 2384 mai    1 10:13 mvndnative.o

target/native-Mac-arm64:
total 56
-rwxr-xr-x 1 root root 50801 mai    1 10:13 libmvndnative.jnilib
-rw-r--r-- 1 root root  2160 mai    1 10:13 mvndnative.o

target/native-Mac-x86:
total 16
-rwxr-xr-x 1 root root 9044 mai    1 10:13 libmvndnative.jnilib
-rw-r--r-- 1 root root 1492 mai    1 10:13 mvndnative.o

target/native-Mac-x86_64:
total 16
-rwxr-xr-x 1 root root 9260 mai    1 10:13 libmvndnative.jnilib
-rw-r--r-- 1 root root 2156 mai    1 10:13 mvndnative.o

target/native-Windows-x86:
total 92
-rwxr-xr-x 1 herve herve 87265 mai    1 10:13 mvndnative.dll
-rw-r--r-- 1 herve herve  1323 mai    1 10:13 mvndnative.o

target/native-Windows-x86_64:
total 108
-rwxr-xr-x 1 herve herve 103015 mai    1 10:13 mvndnative.dll
-rw-r--r-- 1 herve herve   1665 mai    1 10:13 mvndnative.o

majority of outputs are root, only a few respect user (Windows and Linux x86 and armv6)

@hboutemy
Copy link
Member Author

hboutemy commented May 1, 2022

first research results: the 4 cases respecting user are in fact those having a script that does proper job for user detection:
https://github.com/apache/maven-mvnd/tree/master/native/docker
for example https://github.com/apache/maven-mvnd/blob/master/native/docker/dockcross-linux-x86#L242 with value from https://github.com/apache/maven-mvnd/blob/master/native/docker/dockcross-linux-x86#L198

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

1 participant