Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 619510 - kde-apps/cantor-9999 fails to apply cantor-16.12.2-bashism.patch
Summary: kde-apps/cantor-9999 fails to apply cantor-16.12.2-bashism.patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-24 07:34 UTC by Frank Hellmuth
Modified: 2017-05-24 09:33 UTC (History)
0 users

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 Frank Hellmuth 2017-05-24 07:34:36 UTC
Since a few weeks I get this error

>>> Jobs: 5 of 5 complete                           Load avg: 13.7, 11.7, 7.2
 * Package:    kde-apps/cantor-9999
 * Repository: kde
 * Maintainer: kde@gentoo.org
 * USE:        abi_x86_64 amd64 analitza elibc_glibc handbook kernel_linux postscript python python_targets_python2_7 userland_GNU
 * FEATURES:   ccache distcc distcc-pump preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
 * Fetching https://anongit.kde.org/cantor ...
git fetch https://anongit.kde.org/cantor +HEAD:refs/git-r3/HEAD
git symbolic-ref refs/git-r3/kde-apps/cantor/5/__main__ refs/git-r3/HEAD
 * Checking out https://anongit.kde.org/cantor to /var/tmp/portage/kde-apps/cantor-9999/work/cantor-9999 ...
git checkout --quiet refs/git-r3/HEAD
GIT update -->
   repository:               https://anongit.kde.org/cantor
   at the commit:            ce862dfdf3697eb3ef57ce1bf07e1cdcd32370fb
>>> Source unpacked in /var/tmp/portage/kde-apps/cantor-9999/work
>>> Preparing source in /var/tmp/portage/kde-apps/cantor-9999/work/cantor-9999 ...
 * Applying cantor-16.12.2-bashism.patch ...
1 out of 1 hunk FAILED -- saving rejects to file cmake/FindR.cmake.rej
 [ !! ]
 * ERROR: kde-apps/cantor-9999::kde failed (prepare phase):
 *   patch -p1  failed with /var/tmp/portage/kde-apps/cantor-9999/files/cantor-16.12.2-bashism.patch
 * 
 * Call stack:
 *               ebuild.sh, line  115:  Called src_prepare
 *             environment, line 5784:  Called kde5_src_prepare
 *             environment, line 3742:  Called cmake-utils_src_prepare
 *             environment, line 1773:  Called default_src_prepare
 *      phase-functions.sh, line  873:  Called __eapi6_src_prepare
 *             environment, line  335:  Called eapply '/var/tmp/portage/kde-apps/cantor-9999/files/cantor-16.12.2-bashism.patch'
 *             environment, line 1989:  Called _eapply_patch '/var/tmp/portage/kde-apps/cantor-9999/files/cantor-16.12.2-bashism.patch'
 *             environment, line 1927:  Called __helpers_die 'patch -p1  failed with /var/tmp/portage/kde-apps/cantor-9999/files/cantor-16.12.2-bashism.patch'
 *   isolated-functions.sh, line  117:  Called die
 * The specific snippet of code:
 *              die "$@"


The content of cmake/FindR.cmake.rej is

--- cmake/FindR.cmake
+++ cmake/FindR.cmake
@@ -31,7 +31,7 @@ IF(R_EXECUTABLE)
         OUTPUT_VARIABLE R_INCLUDE_DIR)
     ELSE(WIN32)
       EXECUTE_PROCESS(
-        COMMAND ${R_EXECUTABLE} CMD sh -c "echo -n $R_INCLUDE_DIR"
+        COMMAND ${R_EXECUTABLE} CMD sh -c "printf $R_INCLUDE_DIR"
         OUTPUT_VARIABLE R_INCLUDE_DIR)
     ENDIF(WIN32)
   ENDIF(NOT R_INCLUDE_DIR)
Comment 1 Andreas Sturmlechner gentoo-dev 2017-05-24 09:33:02 UTC
Thanks, fixed in git commit d7ddd1f18c6b25891cd1ab613b16475988fe0a48