[Dovecot] minor compilation bug in Dovecot 1.0 beta3
John DiMarco
jdd at cs.toronto.edu
Sun Feb 26 02:57:36 EET 2006
There's a minor compilation bug in dovecot 1.0 beta3 -- if there are no
sql_drivers, then the generated Makefile in src/lib-sql exits improperly. A
simple patch is appended below.
Regards,
John
--
John DiMarco <jdd at cs.toronto.edu> Office: SF3302B
IT Director Phone: 416-978-5300
Department of Computer Science, University of Toronto Fax: 416-946-5464
http://www.cs.toronto.edu/~jdd
*** src/lib-sql/Makefile.in 2006/02/26 00:39:09 1.1
--- src/lib-sql/Makefile.in 2006/02/26 00:38:43
***************
*** 470,480 ****
echo '/* this file automatically generated by Makefile */' >$@
echo '#include "lib.h"' >>$@
echo '#include "sql-api.h"' >>$@
! for i in $(sql_drivers) ; do \
echo "extern struct sql_db driver_$${i}_db;" >>$@ ; \
done
echo 'void sql_drivers_register_all(void) {' >>$@
! for i in $(sql_drivers) ; do \
echo "sql_driver_register(&driver_$${i}_db);" >>$@ ; \
done
echo '}' >>$@
--- 470,480 ----
echo '/* this file automatically generated by Makefile */' >$@
echo '#include "lib.h"' >>$@
echo '#include "sql-api.h"' >>$@
! -for i in $(sql_drivers) ; do \
echo "extern struct sql_db driver_$${i}_db;" >>$@ ; \
done
echo 'void sql_drivers_register_all(void) {' >>$@
! -for i in $(sql_drivers) ; do \
echo "sql_driver_register(&driver_$${i}_db);" >>$@ ; \
done
echo '}' >>$@
*** src/lib-sql/Makefile.am 2006/02/26 00:44:34 1.1
--- src/lib-sql/Makefile.am 2006/02/26 00:44:44
***************
*** 25,35 ****
echo '/* this file automatically generated by Makefile */' >$@
echo '#include "lib.h"' >>$@
echo '#include "sql-api.h"' >>$@
! for i in $(sql_drivers) ; do \
echo "extern struct sql_db driver_$${i}_db;" >>$@ ; \
done
echo 'void sql_drivers_register_all(void) {' >>$@
! for i in $(sql_drivers) ; do \
echo "sql_driver_register(&driver_$${i}_db);" >>$@ ; \
done
echo '}' >>$@
--- 25,35 ----
echo '/* this file automatically generated by Makefile */' >$@
echo '#include "lib.h"' >>$@
echo '#include "sql-api.h"' >>$@
! -for i in $(sql_drivers) ; do \
echo "extern struct sql_db driver_$${i}_db;" >>$@ ; \
done
echo 'void sql_drivers_register_all(void) {' >>$@
! -for i in $(sql_drivers) ; do \
echo "sql_driver_register(&driver_$${i}_db);" >>$@ ; \
done
echo '}' >>$@
More information about the dovecot
mailing list