Bug 346814

Summary: Does not compile on Debian, problem with prepare-include-files.sh
Product: [Unmaintained] kreenshot-editor Reporter: Gregor Mi <codestruct>
Component: generalAssignee: Gregor Mi <codestruct>
Status: RESOLVED WORKSFORME    
Severity: normal CC: justin.zobel
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Gregor Mi 2015-04-27 19:59:20 UTC
Originally reported here: https://forum.kde.org/viewtopic.php?f=19&t=125841#p333757

I get this errors when i try to compile on my debian sid :( 

```
cd build; cmake ..
[INFO] root/start
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
[INFO] root/add_subdirectory(src)
[INFO] src/start
[INFO] src/find_package Qt5
[INFO] src/include_directories
[INFO] src/add_executable
[INFO] src/target_link_libraries
[INFO] src/add_subdirectory(lib/kreenshoteditor)
[INFO] lib/kreenshoteditor/start
[DEBUG] kreenshoteditor_FORMS=ui/settings/preferencesdialog.ui;ui/settings/pageoutput.ui
[DEBUG] kreenshoteditor_FORMS_HEADERS=/home/mte90/Desktop/kde/kreenshot-editor/build/src/lib/kreenshoteditor/ui_preferencesdialog.h;/home/mte90/Desktop/kde/kreenshot-editor/build/src/lib/kreenshoteditor/ui_pageoutput.h
[DEBUG] LIB_SUFFIX=
[DEBUG] env var XDG_DATA_DIRS=/usr/share:/usr/share:/usr/local/share
[DEBUG] env var from spec file KREEN_SPEC_ARCH=
[DEBUG] after WORKAROUND LIB_SUFFIX=
[INFO] src/lib/kreenshoteditor add_custom_target: prepare-include-files
[INFO] lib/kreenshoteditor/end
[INFO] src/end
[INFO] root/add_subdirectory(tests)
[INFO] tests
[INFO] CMAKE_SOURCE_DIR=/home/mte90/Desktop/kde/kreenshot-editor
[INFO] CMAKE_CURRENT_SOURCE_DIR=/home/mte90/Desktop/kde/kreenshot-editor/tests
[INFO] CMAKE_CURRENT_BINARY_DIR=/home/mte90/Desktop/kde/kreenshot-editor/build/tests
[INFO] root/end
-- Configuring done
CMake Warning (dev) at src/CMakeLists.txt:41 (add_executable):
  Policy CMP0028 is not set: Double colon in target name means ALIAS or
  IMPORTED target.  Run "cmake --help-policy CMP0028" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  Target "kreenshot-editor" links to target "Qt5::Network" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at tests/CMakeLists.txt:25 (add_executable):
  Policy CMP0028 is not set: Double colon in target name means ALIAS or
  IMPORTED target.  Run "cmake --help-policy CMP0028" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  Target "Test1" links to target "Qt5::Network" but the target was not found.
  Perhaps a find_package() call is missing for an IMPORTED target, or an
  ALIAS target is missing?
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at tests/CMakeLists.txt:31 (add_executable):
  Policy CMP0028 is not set: Double colon in target name means ALIAS or
  IMPORTED target.  Run "cmake --help-policy CMP0028" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  Target "TestCore" links to target "Qt5::Network" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at tests/CMakeLists.txt:37 (add_executable):
  Policy CMP0028 is not set: Double colon in target name means ALIAS or
  IMPORTED target.  Run "cmake --help-policy CMP0028" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  Target "TestSettings" links to target "Qt5::Network" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at tests/CMakeLists.txt:43 (add_executable):
  Policy CMP0028 is not set: Double colon in target name means ALIAS or
  IMPORTED target.  Run "cmake --help-policy CMP0028" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  Target "TestUi" links to target "Qt5::Network" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at tests/CMakeLists.txt:49 (add_executable):
  Policy CMP0028 is not set: Double colon in target name means ALIAS or
  IMPORTED target.  Run "cmake --help-policy CMP0028" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  Target "TestWidgetsInteractive" links to target "Qt5::Network" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
This warning is for project developers.  Use -Wno-dev to suppress it.
```

```
root@siduction:/home/mte90/Desktop/kde/kreenshot-editor/build# make
Scanning dependencies of target kreenshot-editor_automoc
[  2%] Automatic moc for target kreenshot-editor
Generating moc_mainwindow.cpp
[  2%] Built target kreenshot-editor_automoc
Scanning dependencies of target prepare-include-files
[prepare-include-files.sh] start (first argument is INC_TARGET_DIR)
[prepare-include-files.sh] pwd=/home/mte90/Desktop/kde/kreenshot-editor/src/lib/kreenshoteditor
[prepare-include-files.sh] INC_TARGET_DIR=generated-include
/home/mte90/Desktop/kde/kreenshot-editor/src/lib/kreenshoteditor/prepare-include-files.sh: 18: /home/mte90/Desktop/kde/kreenshot-editor/src/lib/kreenshoteditor/pude-files.sh: Syntax error: "(" unexpected
src/lib/kreenshoteditor/CMakeFiles/prepare-include-files.dir/build.make:49: set di istruzioni per l'obiettivo "src/lib/kreenshoteditor/CMakeFiles/prepare-include riuscito
make[2]: *** [src/lib/kreenshoteditor/CMakeFiles/prepare-include-files] Errore 2
CMakeFiles/Makefile2:229: set di istruzioni per l'obiettivo "src/lib/kreenshoteditor/CMakeFiles/prepare-include-files.dir/all" non riuscito
make[1]: *** [src/lib/kreenshoteditor/CMakeFiles/prepare-include-files.dir/all] Errore 2
Makefile:127: set di istruzioni per l'obiettivo "all" non riuscito
make: *** [all] Errore 2
```
Comment 1 Gregor Mi 2015-04-27 20:13:10 UTC
The error is located in kreenshot-editor/src/lib/kreenshoteditor/prepare-include-files.sh. This file is supposed to be workaround to avoid make install during development. And now it fails. :(

1) Could you replace the shebang line "#!/bin/sh" with "#!/bin/bash" and try again?

2) In your log text there is file name "pude-files.sh". Does this file exist on your machine? The name looks like the distorted form of "prepare-include-files.sh".
Comment 2 Justin Zobel 2020-11-24 05:03:53 UTC
Can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved. I've set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved" when you respond, thanks.
Comment 3 Bug Janitor Service 2020-12-09 04:34:04 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2020-12-24 04:34:52 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!