Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 799428 - ERROR: dev-libs/redland-1.0.17-r2::gentoo failed (prepare phase):
Summary: ERROR: dev-libs/redland-1.0.17-r2::gentoo failed (prepare phase):
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-01 05:42 UTC by jhon
Modified: 2023-01-10 19:28 UTC (History)
2 users (show)

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


Attachments
emerge --info (i.txt,6.50 KB, text/plain)
2021-07-01 05:42 UTC, jhon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jhon 2021-07-01 05:42:54 UTC
Created attachment 720426 [details]
emerge --info

Calculating dependencies... done!
[ebuild   R    ] dev-libs/redland-1.0.17-r2::gentoo  USE="mysql sqlite -berkdb* -iodbc -odbc -postgres -static-libs" 0 KiB

>>> Emerging (1 of 7) dev-libs/redland-1.0.17-r2::gentoo
 * Fetching files in the background.
 * To view fetch progress, run in another terminal:
 * tail -f /var/log/emerge-fetch.log
 * redland-1.0.17.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                                                   [ ok ]
>>> Unpacking source...
>>> Unpacking redland-1.0.17.tar.gz to /var/tmp/portage/dev-libs/redland-1.0.17-r2/work
>>> Source unpacked in /var/tmp/portage/dev-libs/redland-1.0.17-r2/work
>>> Preparing source in /var/tmp/portage/dev-libs/redland-1.0.17-r2/work/redland-1.0.17 ...
 * Applying redland-1.0.17-mysql-8-my_bool.patch ...                                                                                                                                                                                                                   [ ok ]
 * Applying redland-1.0.17-r2.patch ...
patching file src/rdf_storage_mysql.c
Hunk #1 FAILED at 447.
1 out of 1 hunk FAILED -- saving rejects to file src/rdf_storage_mysql.c.rej                                                                                                                                                                                           [ !! ]
 * ERROR: dev-libs/redland-1.0.17-r2::gentoo failed (prepare phase):
 *   patch -p1  failed with /etc/portage/patches/dev-libs/redland-1.0.17-r2/redland-1.0.17-r2.patch
 * 
 * Call stack:
 *               ebuild.sh, line  127:  Called src_prepare
 *             environment, line 1269:  Called default
 *      phase-functions.sh, line  858:  Called default_src_prepare
 *      phase-functions.sh, line  923:  Called __eapi6_src_prepare
 *             environment, line  235:  Called eapply_user
 *             environment, line  617:  Called eapply '/etc/portage/patches/dev-libs/redland-1.0.17-r2/redland-1.0.17-r2.patch'
 *             environment, line  587:  Called _eapply_patch '/etc/portage/patches/dev-libs/redland-1.0.17-r2/redland-1.0.17-r2.patch'
 *             environment, line  525:  Called __helpers_die 'patch -p1  failed with /etc/portage/patches/dev-libs/redland-1.0.17-r2/redland-1.0.17-r2.patch'
 *   isolated-functions.sh, line  112:  Called die
 * The specific snippet of code:
 *              die "$@"
 * 
 * If you need support, post the output of `emerge --info '=dev-libs/redland-1.0.17-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/redland-1.0.17-r2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/redland-1.0.17-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/redland-1.0.17-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/redland-1.0.17-r2/work/redland-1.0.17'
 * S: '/var/tmp/portage/dev-libs/redland-1.0.17-r2/work/redland-1.0.17'
Comment 1 acmondor 2021-07-04 14:44:20 UTC
I just ran into this bug. It's due to the user patch file:

/etc/portage/patches/dev-libs/redland-1.0.17-r2/redland-1.0.17-r2.patch

That file is now a duplicate of following and is therefore no longer required:

/usr/portage/dev-libs/redland/files/redland-1.0.17-mysql-8-my_bool.patch

The package emerge'd fine after removing the user patch file in (/etc/portage/patches/...).
Comment 2 jhon 2021-07-04 19:27:53 UTC
wow, thank you!
I didn't even think about checking whether there's a user added patch...
Apparently, it was created there on my PC in Feb, 2020.
I still don't remember me doing that, but I guess, if it's there - it was probably added by me... I mean, who else could have added a file into that dir?
I feel so silly..

anyways, thanks a lot and sorry for any inconvenience I might have caused
Comment 3 Vincent Le Ligeour 2023-01-10 19:28:35 UTC
Just encounter the exact same bug, using user patches should maybe be a warn instead of an info (it would be easier to notice especially lost in the middle of other patches)