Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 843935 - dev-db/postgresql-14.3[server,llvm]: fails to apply llvm-14 patch
Summary: dev-db/postgresql-14.3[server,llvm]: fails to apply llvm-14 patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-12 19:14 UTC by Holger Hoffstätte
Modified: 2022-05-12 20:06 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 Holger Hoffstätte 2022-05-12 19:14:10 UTC
Subject says it all: postgresql-14.3 fails during prepare phase.


Reproducible: Always

Steps to Reproduce:
1. try to emerge postgresql-14.3 +server +llvm
2. failure

Actual Results:  
build postgresql-14.3.ebuild prepare
 * postgresql-14.3.tar.bz2 BLAKE2B SHA512 size ;-) ...                                                                               [ ok ]
 * Determining the location of the kernel source code
 * Unable to find kernel sources at /usr/src/linux
 * Please make sure that /usr/src/linux points at your running kernel, 
 * (or the kernel you wish to build against).
 * Alternatively, set the KERNEL_DIR environment variable to the kernel sources location
 * Unable to calculate Linux Kernel version for build, attempting to use running version
 * Checking for suitable kernel configuration options ...                                                                            [ ok ]
>>> Unpacking source...
>>> Unpacking postgresql-14.3.tar.bz2 to /tmp/portage/dev-db/postgresql-14.3/work
>>> Source unpacked in /tmp/portage/dev-db/postgresql-14.3/work
>>> Preparing source in /tmp/portage/dev-db/postgresql-14.3/work/postgresql-14.3 ...
 * Applying postgres-llvm14.patch ...
patching file src/backend/jit/llvm/Makefile
Hunk #1 succeeded at 28 with fuzz 2 (offset 6 lines).
patching file src/backend/jit/llvm/llvmjit_error.cpp
Hunk #1 FAILED at 23.
Hunk #2 FAILED at 129.
2 out of 2 hunks FAILED -- saving rejects to file src/backend/jit/llvm/llvmjit_error.cpp.rej
patching file src/backend/jit/llvm/llvmjit_inline.cpp
Hunk #1 FAILED at 594.
Hunk #2 FAILED at 871.
Hunk #3 FAILED at 880.
3 out of 3 hunks FAILED -- saving rejects to file src/backend/jit/llvm/llvmjit_inline.cpp.rej                                        [ !! ]
 * ERROR: dev-db/postgresql-14.3::gentoo failed (prepare phase):
 *   patch -p1  failed with /tmp/portage/dev-db/postgresql-14.3/files/postgres-llvm14.patch


Expected Results:  
Successful build.
Comment 1 Larry the Git Cow gentoo-dev 2022-05-12 20:06:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=124a43c946d8c17126b3fc46941513b339a52af5

commit 124a43c946d8c17126b3fc46941513b339a52af5
Author:     Patrick Lauer <patrick@gentoo.org>
AuthorDate: 2022-05-12 20:05:46 +0000
Commit:     Patrick Lauer <patrick@gentoo.org>
CommitDate: 2022-05-12 20:06:34 +0000

    dev-db/postgresql: Fix build with USE=llvm
    
    Patch has been applied upstream, so it can be safely removed
    
    Closes: https://bugs.gentoo.org/843935
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Patrick Lauer <patrick@gentoo.org>

 dev-db/postgresql/postgresql-12.11.ebuild | 1 -
 dev-db/postgresql/postgresql-13.7.ebuild  | 1 -
 dev-db/postgresql/postgresql-14.3.ebuild  | 1 -
 3 files changed, 3 deletions(-)