Bug 292007 - Compile failure for KDE 4.8 RC 2 on OpenBSD amd64
Summary: Compile failure for KDE 4.8 RC 2 on OpenBSD amd64
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: unspecified
Platform: OpenBSD OpenBSD
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-20 01:52 UTC by Amit Kulkarni
Modified: 2018-11-10 18:24 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Amit Kulkarni 2012-01-20 01:52:59 UTC
Version:           unspecified (using Devel) 
OS:                OpenBSD

compiling plasmaaddons, because of missing .moc definition in CMakeLists.txt we get a compile error in the generated main.cpp by moc 

applets/kimpanel/backend/scim/CMakeLists.txt

here's the patch diff to fix it... Hope it goes in for other arches...

+--- applets/kimpanel/backend/scim/CMakeLists.txt.orig  Thu Jan 19 19:41:33 2012

++++ applets/kimpanel/backend/scim/CMakeLists.txt  Thu Jan 19 19:42:14 2012

+@@ -5,7 +5,7 @@ if(SCIM_FOUND)

+     configure_file(config-scim.h.cmake config-scim.h)

+     set(kimpanel_scim_panel_SRCS main.cpp)

+     qt4_generate_moc(${kimpanel_scim_panel_SRCS} ${CMAKE_CURRENT_BINARY_DIR}/main.moc)

+-    add_executable(kimpanel-scim-panel ${kimpanel_scim_panel_SRCS})

++    add_executable(kimpanel-scim-panel ${kimpanel_scim_panel_SRCS} ${CMAKE_CURRENT_BINARY_DIR}/main.moc)

+     target_link_libraries(kimpanel-scim-panel ${QT_QTCORE_LIBRARY} ${QT_QTDBUS_LIBRARY} ${SCIM_LIBRARIES})

+     install(TARGETS kimpanel-scim-panel DESTINATION ${LIBEXEC_INSTALL_DIR})

+ endif(SCIM_FOUND)

Reproducible: Always

Steps to Reproduce:
try to compile

Actual Results:  
should compile

Expected Results:  
should compile
Comment 1 Amit Kulkarni 2012-01-20 02:01:22 UTC
OpenBSD amd64 64 bits 5.1 -current.

System compiler is gcc/g++ 4.2.1
Comment 2 Weng Xuetian 2012-05-26 13:08:14 UTC
Please confirm if this still happen with KDE 4.8, I found current cmake is already adjusted.
Comment 3 Jekyll Wu 2012-05-26 13:12:35 UTC
Amit,  need your feedback on comment #2 from the kimpanel maitainer.
Comment 4 Myriam Schweingruber 2012-05-26 13:34:03 UTC
Closing as resolved. Please feel free to reopen this report if you can still reproduce this with KDE 4.8.3 or later.
Comment 5 Amit Kulkarni 2018-11-10 18:24:08 UTC
Rafael is slowly bringing KDE5 into OpenBSD, this should probably be fixed. Sorry for the extremely late email.