You are not logged in.

#1 2021-05-28 11:45:22

funkaddict
Member
Registered: 2018-08-13
Posts: 117

[SOLVED] How to manually fix a pkgbuild

Hi there,

I was not working with spyder for a while. However, for a journal publication I have to get some of my python scripts running again to post-process some data from the lab quickly. Unfortunately, it crashes when I try to open it.

The error has been reported before on bugs.archlinux. From what I understand, the error was corrected upstream already github. However, the package in the Arch repositories is still out of date.

From would I read on the bugs.archlinux page, I can repair this bug when installing (and building) spyder. But I was wondering how exactly I have to do this? I didn't find anything in the Wiki on the pacmans page. I have installed packages from the AUR before. So I am wondering if it is the same approach? Should I just download the pkgbuild from the source edit the lines as explained/linked by loqs on the bugs.archlinux site and then install it manually via pacman just as it was a pkgbuild from AUR?

I appreciate your help!

Last edited by funkaddict (2021-05-28 12:39:16)

Offline

#2 2021-05-28 12:06:49

loqs
Member
Registered: 2014-03-06
Posts: 19,010

Re: [SOLVED] How to manually fix a pkgbuild

Yes Arch_Build_System#Retrieve_PKGBUILD_source

git clone git://git.archlinux.org/svntogit/community.git --single-branch --branch "packages/python-spyder-kernels" #get the PKGBUILD
cd community/trunk/
curl -o PKGBUILD.diff https://bugs.archlinux.org/task/70689?getfile=20184 #get the diff of the fix,  check it is the fix
git apply -v PKGBUILD.diff # apply the fix
makepkg -rsi #build and install package

Offline

#3 2021-05-28 12:38:51

funkaddict
Member
Registered: 2018-08-13
Posts: 117

Re: [SOLVED] How to manually fix a pkgbuild

loqs wrote:

Yes Arch_Build_System#Retrieve_PKGBUILD_source

git clone git://git.archlinux.org/svntogit/community.git --single-branch --branch "packages/python-spyder-kernels" #get the PKGBUILD
cd community/trunk/
curl -o PKGBUILD.diff https://bugs.archlinux.org/task/70689?getfile=20184 #get the diff of the fix,  check it is the fix
git apply -v PKGBUILD.diff # apply the fix
makepkg -rsi #build and install package

Oh wow, thanks for the lighnting-fast and precise help! smile

Offline

Board footer

Powered by FluxBB