Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 265637 - building dev-cpp/sptk-3.5.8.10 with USE examples, but not sqlite fails
Summary: building dev-cpp/sptk-3.5.8.10 with USE examples, but not sqlite fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Ilya Volynets (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-10 11:09 UTC by Jeremy Stent
Modified: 2009-04-25 13:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Stent 2009-04-10 11:09:35 UTC
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
Comment 1 Ilya Volynets (RETIRED) gentoo-dev 2009-04-25 12:36:54 UTC
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.
Comment 2 Ilya Volynets (RETIRED) gentoo-dev 2009-04-25 12:37:42 UTC
Closing
Comment 3 Jeremy Stent 2009-04-25 13:07:25 UTC
Thank you for your work.