marcIhm / yabasic

Yabasic - A simple Basic interpreter for Unix and Windows
http://www.yabasic.de
MIT License
90 stars 17 forks source link

2.86.7 build broken in Debian #42

Closed ginggs closed 4 years ago

ginggs commented 4 years ago

Building yabasic 2.86.7 in Debian fails with the following:

rm: cannot remove '/usr/share/aclocal/libtool.m4': Permission denied
rm: cannot remove '/usr/share/aclocal/ltargz.m4': Permission denied
rm: cannot remove '/usr/share/aclocal/ltdl.m4': Permission denied
rm: cannot remove '/usr/share/aclocal/ltoptions.m4': Permission denied
rm: cannot remove '/usr/share/aclocal/ltsugar.m4': Permission denied
rm: cannot remove '/usr/share/aclocal/ltversion.m4': Permission denied
rm: cannot remove '/usr/share/aclocal/lt~obsolete.m4': Permission denied
rm: cannot remove '/usr/share/aclocal/libtool.m4': Permission denied
rm: cannot remove '/usr/share/aclocal/libtool.m4': Permission denied
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, '/usr/share/aclocal'.
libtoolize:   error: '/usr/share/aclocal/libtool.m4' exists: use '--force' to overwrite
rm: cannot remove '/usr/share/aclocal/ltoptions.m4': Permission denied
rm: cannot remove '/usr/share/aclocal/ltoptions.m4': Permission denied
libtoolize:   error: '/usr/share/aclocal/ltoptions.m4' exists: use '--force' to overwrite
rm: cannot remove '/usr/share/aclocal/ltsugar.m4': Permission denied
rm: cannot remove '/usr/share/aclocal/ltsugar.m4': Permission denied
libtoolize:   error: '/usr/share/aclocal/ltsugar.m4' exists: use '--force' to overwrite
rm: cannot remove '/usr/share/aclocal/ltversion.m4': Permission denied
rm: cannot remove '/usr/share/aclocal/ltversion.m4': Permission denied
libtoolize:   error: '/usr/share/aclocal/ltversion.m4' exists: use '--force' to overwrite
rm: cannot remove '/usr/share/aclocal/lt~obsolete.m4': Permission denied
rm: cannot remove '/usr/share/aclocal/lt~obsolete.m4': Permission denied
libtoolize:   error: '/usr/share/aclocal/lt~obsolete.m4' exists: use '--force' to overwrite

I believe https://github.com/marcIhm/yabasic/blob/master/unix/lang/configure.ac#L7 AC_CONFIG_MACRO_DIRS([/usr/share/aclocal]) should be: AC_CONFIG_MACRO_DIRS([m4]) and https://github.com/marcIhm/yabasic/blob/master/unix/lang/Makefile.am#L9 ACLOCAL_AMFLAGS = -I /usr/share/aclocal should be: ACLOCAL_AMFLAGS = -I m4

marcIhm commented 4 years ago

Hi, I think that this solution implies having a directory m4 within yabasic, which is easy enough :-) So the suggested changes and this dir are both part of yabasic 2.86.8 ; hope this helps ...

ginggs commented 4 years ago

That fixed it, thanks!