jeroen / RAppArmor

R interfaces to Linux and AppArmor security methods
cran.r-project.org/package=RAppArmor
54 stars 15 forks source link

object ?eval_safe? is not exported by 'namespace:unix' #23

Closed oliverbock closed 5 years ago

oliverbock commented 7 years ago

On:

Installing jeroen/RAppArmor from github I get this output

> library(devtools); Sys.setenv(GITHUB_PAT='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'); install_github('jeroen/RAppArmor')
Using GitHub PAT from envvar GITHUB_PAT
Downloading GitHub repo jeroen/RAppArmor@master
from URL https://api.github.com/repos/jeroen/RAppArmor/zipball/master
Installing RAppArmor
Using GitHub PAT from envvar GITHUB_PAT
Downloading GitHub repo jeroen/unix@master
from URL https://api.github.com/repos/jeroen/unix/zipball/master
Installing unix
'/usr/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore --quiet  \
  CMD INSTALL '/tmp/RtmpgppxZ0/devtools97e7231dfbce/jeroen-unix-ed5b7dd'  \
  --library='/usr/lib/opencpu/library' --install-tests 

* installing *source* package ?unix? ...
** libs
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c chroot.c -o chroot.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c process.c -o process.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c register.c -o register.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c rlimit.c -o rlimit.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c userinfo.c -o userinfo.o
gcc -std=gnu99 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o unix.so chroot.o process.o register.o rlimit.o userinfo.o -L/usr/lib/R/lib -lR
installing to /usr/lib/opencpu/library/unix/libs
** R
** tests
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (unix)
'/usr/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore --quiet  \
  CMD INSTALL '/tmp/RtmpgppxZ0/devtools97e747008ae6/jeroen-RAppArmor-d9cfc30'  \
  --library='/usr/lib/opencpu/library' --install-tests 

* installing *source* package ?RAppArmor? ...
Found pkg-config cflags/libs!
Using PKG_CFLAGS= 
Using PKG_LIBS=-lapparmor  
** libs
rm -f RAppArmor.so affinity.o apparmor.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c affinity.c -o affinity.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c apparmor.c -o apparmor.o
gcc -std=gnu99 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o RAppArmor.so affinity.o apparmor.o -lapparmor -L/usr/lib/R/lib -lR
installing to /usr/lib/opencpu/library/RAppArmor/libs
** R
** inst
** tests
** preparing package for lazy loading
Error : object ?eval_safe? is not exported by 'namespace:unix'
ERROR: lazy loading failed for package ?RAppArmor?
* removing ?/usr/lib/opencpu/library/RAppArmor?
* restoring previous ?/usr/lib/opencpu/library/RAppArmor?
Error: Command failed (1)
Execution halted

When I search jeroen/unix on github I can find no references eval_safe, so perhaps this is simply not yet committed to that package.

jeroen commented 5 years ago

This is now fixed (ON CRAN).