[arch-general] Possible to rebuild a standard package?
Hello, I'd like to re-build (not just re-install) pyside2 and python-shiboken2 locally. As PKGBUILD (at least for shiboken2) contains cmake instructions, I'd guess this should be easy, but I cannot figure out, how. Kind regards, Peter
Hi, I am replying from my phone, so I hope this works. You can just download the build files for the package using $ asp checkout <package> After that you can run $ makepkg -s in the newly created directory which will download all depenencies, build and package the application or library. If you want to build the project to work on it, then you should look into the project's documentation, as they might have a workflow for that. Stay safe, Sefa https://scrumplex.net -------- Original Message -------- From: Peter Nabbefeld via arch-general <arch-general@lists.archlinux.org> Sent: 4 September 2021 14:12:33 GMT+02:00 To: arch-general@lists.archlinux.org Cc: Peter Nabbefeld <peter.nabbefeld@gmx.de> Subject: [arch-general] Possible to rebuild a standard package? Hello, I'd like to re-build (not just re-install) pyside2 and python-shiboken2 locally. As PKGBUILD (at least for shiboken2) contains cmake instructions, I'd guess this should be easy, but I cannot figure out, how. Kind regards, Peter
Thank You, Sefa, it seems to work :) (still building) - didn't know about the "asp" - seems to be very usful :) Kind regards, Peter Am 04.09.21 um 14:37 schrieb Sefa Eyeoglu:
Hi, I am replying from my phone, so I hope this works.
You can just download the build files for the package using
$ asp checkout <package>
After that you can run
$ makepkg -s
in the newly created directory which will download all depenencies, build and package the application or library.
If you want to build the project to work on it, then you should look into the project's documentation, as they might have a workflow for that.
Stay safe,
-------- Original Message -------- From: Peter Nabbefeld via arch-general <arch-general@lists.archlinux.org> Sent: 4 September 2021 14:12:33 GMT+02:00 To: arch-general@lists.archlinux.org Cc: Peter Nabbefeld <peter.nabbefeld@gmx.de> Subject: [arch-general] Possible to rebuild a standard package?
Hello,
I'd like to re-build (not just re-install) pyside2 and python-shiboken2 locally. As PKGBUILD (at least for shiboken2) contains cmake instructions, I'd guess this should be easy, but I cannot figure out, how.
Kind regards, Peter
On Sat, 4 Sep 2021 15:41:54 +0200, Peter Nabbefeld wrote:
didn't know about the "asp"
https://wiki.archlinux.org/title/Arch_Build_System Btw. consider to do something similar to this or exactly this: https://wiki.archlinux.org/title/Arch_Build_System#Preserve_modified_package... It depends, but I'm usually in favour of IgnorePkg and pkgrel=x.y , using y for my package release.
Hi, your question isn't clear to me. Does one of the packages fail to build after running "makepkg"? Or do you want to change build options? Don't you want to build a split package? ...? At least starting to build the split shiboken2 package does work here: [rocketmouse@archlinux extra-x86_64]$ makepkg -s ==> Making package: shiboken2 5.15.2-9 (Sat 04 Sep 2021 14:34:09 CEST) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Downloading pyside-setup-opensource-src-5.15.2.tar.xz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 312 100 312 0 0 1460 0 --:--:-- --:--:-- --:--:-- 1464 100 3391k 100 3391k 0 0 4070k 0 --:--:-- --:--:-- --:--:-- 4070k ==> Validating source files with sha256sums... pyside-setup-opensource-src-5.15.2.tar.xz ... Passed ==> Extracting sources... -> Extracting pyside-setup-opensource-src-5.15.2.tar.xz with bsdtar ==> Starting build()... [snip] [ 1%] Generating embed/signature_bootstrap_inc.h, embed/signature_inc.h [ 3%] Automatic MOC for target apiextractor [ 3%] Built target apiextractor_autogen [ 4%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/apiextractor_autogen/mocs_compilation.cpp.o [ 6%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/basewrapper.cpp.o ^C[snip] Regards, Ralf
On 04/09/2021 15:12, Peter Nabbefeld via arch-general wrote:
Hello,
I'd like to re-build (not just re-install) pyside2 and python-shiboken2 locally. As PKGBUILD (at least for shiboken2) contains cmake instructions, I'd guess this should be easy, but I cannot figure out, how.
Kind regards, Peter
One thing you could also try locally is to install the devtools package and then run the `extra-x86_64-build` command in the folder containing the PKGBUILD file. This will create a clean chroot under /var and will build the package exactly they way we build most packages in the official repos. One thing to remember is that this way is much more taxing in computing resources, specifically disk space and time. But it is safer as your system is separated from the build environment. -- Regards, Konstantin
Am 04.09.21 um 16:06 schrieb Konstantin Gizdov via arch-general:
On 04/09/2021 15:12, Peter Nabbefeld via arch-general wrote:
Hello,
I'd like to re-build (not just re-install) pyside2 and python-shiboken2 locally. As PKGBUILD (at least for shiboken2) contains cmake instructions, I'd guess this should be easy, but I cannot figure out, how.
Kind regards, Peter
One thing you could also try locally is to install the devtools package and then run the `extra-x86_64-build` command in the folder containing the PKGBUILD file. This will create a clean chroot under /var and will build the package exactly they way we build most packages in the official repos. One thing to remember is that this way is much more taxing in computing resources, specifically disk space and time. But it is safer as your system is separated from the build environment.
Thank You, Konstantin. I tried this, but had problems installing. Also, I noticed some output of pacman - it seems, all the needed packages are fetched from official repositories. As I wanted to rebuild pyside2 and shiboken2 with an updated cx-freeze (from AUR, and further modified) as well as an updated version of patchelf (from community-testing), this doesn't work for me. BTW, I have not checked the dependencies of pyside2, but I do need the updated packages at least for meshroom-git, so it's not been important for me to check, if pyside2 has those dependencies, too. Kind regards, Peter
participants (4)
-
Konstantin Gizdov
-
Peter Nabbefeld
-
Ralf Mardorf
-
Sefa Eyeoglu