When attempting to emerge dev-cpp/sptk-3.5.8.10 with USE flags "aspell doc examples excel fltk mysql odbc -postgres -sqlite" attempts to build some sqlite specific examples and fails. Could this ebuild please be modified to not build sqlite specific examples if the sqlite flag is not specified? Reproducible: Always Steps to Reproduce: 1. USE="examples -sqlite" emerge "=dev-cpp/sptk-3.5.8.10" Actual Results: [ 98%] [ 98%] Building CXX object examples/net/CMakeFiles/http_connect.dir/http_connect.o Building CXX object examples/net/CMakeFiles/imap_connect.dir/imap_connect.o /var/tmp/portage/dev-cpp/sptk-3.5.8.10/work/sptk-3.5.8.10/examples/tree_test.cpp:140: error: 'CSQLite3Database' does not name a type /var/tmp/portage/dev-cpp/sptk-3.5.8.10/work/sptk-3.5.8.10/examples/tree_test.cpp: In constructor 'CFileManagerTree::CFileManagerTree(CFileListTreeHeader*)': /var/tmp/portage/dev-cpp/sptk-3.5.8.10/work/sptk-3.5.8.10/examples/tree_test.cpp:422: error: class 'CFileManagerTree' does not have any field named 'm_db' /var/tmp/portage/dev-cpp/sptk-3.5.8.10/work/sptk-3.5.8.10/examples/tree_test.cpp: In member function 'void CFileManagerTree::refreshData()': /var/tmp/portage/dev-cpp/sptk-3.5.8.10/work/sptk-3.5.8.10/examples/tree_test.cpp:443: error: 'm_db' was not declared in this scope make[2]: *** [examples/CMakeFiles/tree_test.dir/tree_test.o] Error 1 make[1]: *** [examples/CMakeFiles/tree_test.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... /var/tmp/portage/dev-cpp/sptk-3.5.8.10/work/sptk-3.5.8.10/examples/net/imap_connect.cpp: In function 'int main(int, char**)': /var/tmp/portage/dev-cpp/sptk-3.5.8.10/work/sptk-3.5.8.10/examples/net/imap_connect.cpp:62: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result /var/tmp/portage/dev-cpp/sptk-3.5.8.10/work/sptk-3.5.8.10/examples/net/imap_connect.cpp:67: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result /var/tmp/portage/dev-cpp/sptk-3.5.8.10/work/sptk-3.5.8.10/examples/net/imap_connect.cpp:71: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result Linking CXX executable imap_connect Linking CXX executable http_connect Expected Results: successful merge
Building examples isn't very useful (they don't even get installed), thus I removed the flag for now. Perhaps in future I'll re-add it, and have it install example code into docs directory.
Closing
Thank you for your work.