Run all libcheck tests before failure and look for both static and

shared libraries.  Fixed $srcdir typo in lib/Makefile.in.
merge-requests/1/head
Chris Bagwell 2009-01-22 02:23:38 +00:00
rodzic 690f1670c3
commit e168ad39f3
3 zmienionych plików z 16 dodań i 9 usunięć

Wyświetl plik

@ -1,3 +1,8 @@
2009-01-21 Chris Bagwell <cbagwell-guest at users.alioth.debian.org>
* Makefile.am, lib/Makefile.in: Run all libcheck tests before
failure and look for both static and shared libraries.
Fixed $srcdir typo in lib/Makefile.in.
2009-01-21 m. allan noah <kitno455 a t gmail d o t com>
* backend/canon_dr.[ch], backend/epjitsu.[ch], backend/fujitsu.[ch]:
- dont export private symbols

Wyświetl plik

@ -35,23 +35,25 @@ sort-cvsignore:
#
libcheck:
@echo "Libraries exporting 'illegal' symbols:"
@for lib in backend/.libs/*.so; do \
@for lib in backend/.libs/*.so backend/.libs/*.a; do \
lines=`nm -g $$lib|grep '\( T \)\|\( D \)'|egrep -v ' _fini| _init'|egrep -v ' sane_| sanei_'`; \
if test -n "$$lines" ; then \
echo -e "*** $$lib:\n$$lines"; \
exit 1; \
found_errors="yes"; \
fi \
done
@echo
@echo "Libraries exporting 'non-standard sane_*' symbols:"
@for lib in backend/.libs/*.so; do \
done; \
echo; \
echo "Libraries exporting 'non-standard sane_*' symbols:"; \
for lib in backend/.libs/*.so backend/.libs/*.a; do \
lines=`nm -g $$lib|grep '\( T \)\|\( D \)'|egrep ' sane_' | egrep -v 'sane_.*init|sane_.*exit|sane_.*get_devices|sane_.*open|sane_.*close|sane_.*get_option_descriptor|sane_.*control_option|sane_.*get_parameters|sane_.*start|sane_.*read|sane_.*cancel|sane_.*set_io_mode|sane_.*get_select_fd|sane_strstatus'` ; \
if test -n "$$lines" ; then \
echo -e "*** $$lib:\n$$lines"; \
found_errors="yes"; \
exit 1; \
fi \
done
done;
if test ! -z $$found_errors ; then \
exit 1; \
fi
# TODO: If software can be updated to pass the libcheck tests again then
# the following line can be uncommented. Then we will have a single

Wyświetl plik

@ -94,7 +94,7 @@ dist: distdir
distdir: $(DISTFILES)
for file in $(DISTFILES); do \
ln $(srcdir)/$$file $(distdir) 2> /dev/null \
|| cp -p $(srcidr)/$$file $(distdir) ; \
|| cp -p $(srcdir)/$$file $(distdir) ; \
done
# Used by top level distcheck target