You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue #185 seems that still happens with enchant-2.2.3 and probably also the latest master (on NetBSD-current) and it is actually an rm -rf / (so please be careful if you would like to reproduce the following steps!):
% tar xzf enchant-2.2.3.tar.gz
% cd enchant-2.2.3
% ./configure --enable-relocatable
[...]
% make
[...]
% make check
[...]
mv -f Provider/.deps/providers_test-provider_request_dict.Tpo Provider/.deps/providers_test-provider_request_dict.Po
make libenchant-copy
rm -rf /
rm: /usr/bin/agrep: Permission denied
rm: /usr/bin/atf-config: Permission denied
[...]
After a quick skim I think that the following rm -rf' are the problematic ones (probably same one of the issue reported), in tests/Makefile.am`:
Unfortunately the problem is not just in the above Makefile.am but also in m4/gnu-make.m4 that has wrong assumptions:
11 # Set GNU_MAKE if we are using a recent-enough version of GNU make.
12
13 # Use --version AND trailing junk, because SGI Make doesn't fail on --version.
14
15 AC_DEFUN([gl_GNU_MAKE],
16 [
17 AM_CONDITIONAL([GNU_MAKE],
18 [${MAKE-make} --version /cannot/make/this >/dev/null 2>&1])
19 ])
(Of course on NetBSD make --version /cannot/make/this cleanly return a succesfull exit status!)
...and indeed in config.log we can see:
[...]
GNU_MAKE_FALSE='#'
GNU_MAKE_TRUE=''
[...]
If libdir_subdir is manually initialized to:
libdir_subdir = lib
in tests/Makefile and tests/enchant_providers/Makefile, then make check no longer rm -rf but fails with:
Issue #185 seems that still happens with
enchant-2.2.3
and probably also the latestmaster
(on NetBSD-current) and it is actually anrm -rf /
(so please be careful if you would like to reproduce the following steps!):After a quick skim I think that the following
rm -rf' are the problematic ones (probably same one of the issue reported), in
tests/Makefile.am`:...and in
tests/enchant_providers/Makefile.am
:I think it would be better to remove the trailing
/
and then tryto adjust
libdir_subdir
as neeeded.The text was updated successfully, but these errors were encountered: