| Summary: | Build issue: tdebindings (smoke) FTBFS when not using TDE hwlib | ||
|---|---|---|---|
| Product: | TDE | Reporter: | Francois Andriot <albator78> |
| Component: | non-core programs | Assignee: | Michele Calgaro <michele.calgaro> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | albator78, be4youcome, bugwatch, michele.calgaro, slavek.banko |
| Priority: | P5 | ||
| Version: | R14.0.x [Trinity] | ||
| Hardware: | Other | ||
| OS: | Linux | ||
| See Also: | http://bugs.pearsoncomputing.net/show_bug.cgi?id=2706 | ||
| Compiler Version: | TDE Version String: | ||
| Application Version: | Application Name: | ||
| Bug Depends on: | |||
| Bug Blocks: | 3190 | ||
| Attachments: | tdelibs : disable non-existent class headers when tdehwlib is disabled | ||
|
Description
Francois Andriot
2015-08-01 09:12:31 CDT
Created attachment 2547 [details]
tdelibs : disable non-existent class headers when tdehwlib is disabled
A first problem exists in tdelibs: the classes "TDEHardwareDevices" and "TDEGlobalNetworkManager" should be conditional in "tdecore/tdeglobal.h".
See attached patch.
Alas, it looks the smoke code is autogenerated using the "kalyptus" utility, which is itself provided in tdebindings.
It looks like kalyptus is reading all include files in /opt/trinity/include/tde/*.h , and ignores the potential #ifdef .
So, even adding "#ifdef __TDE_HAVE_TDEHWLIB" will not do the trick...
For now, I have to hack in tdelibs post-installation to delete the code during package build:
sed -i "tdecore/kinstance.h" \
-i "tdecore/tdeglobal.h" \
-e "/#ifdef __TDE_HAVE_TDEHWLIB/,/#endif/d"
I'm afraid that for this problem at this moment there is no good solution available, but only "hack", as stated in comment 2. The solution should be rework tdehw library, as proposed in the bug 2706. Proposed fix here: https://mirror.git.trinitydesktop.org/gitea/TDE/tdebindings/pulls/10 This has been resolved in the PR linked above. @Francois: please test and confirm. If you still have issues, please reopen this bug report. |