You are not logged in.
Hiya,
I've only used the AUR a couple of times via Pamac and so i'm quite unfamiliar with how to get around issues. I'm trying to install Sayonara but it fails:
/home/me/.AUR/pamac-build/sayonara-player/src/sayonara-player/src/Gui/Utils/Widgets/Slider.cpp: In member function ‘virtual void Gui::Slider::paintEvent(QPaintEvent*)’:
/home/me/.AUR/pamac-build/sayonara-player/src/sayonara-player/src/Gui/Utils/Widgets/Slider.cpp:220:16: error: aggregate ‘QPainterPath path’ has incomplete type and cannot be defined
220 | QPainterPath path;
| ^~~~
make[2]: *** [src/Gui/Utils/CMakeFiles/gui_utils.dir/build.make:540: src/Gui/Utils/CMakeFiles/gui_utils.dir/Widgets/Slider.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2297: src/Gui/Utils/CMakeFiles/gui_utils.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
A comment by 'richteer' notes:
https://aur.archlinux.org/packages/sayonara-player/
Appears to be missing a header in that file, seems to be fixed upstream: https://gitlab.com/luciocarreras/sayona … 05ab1a4b21
Editing that source file manually and rebuilding worked for me
I edited the file per the GitHub link provided by richteer on my PC (i.e. in src/Gui/Utils/Widgets/Slider.cpp) and ran
makepkg -sirc
but i got the error which i gather means the change i made wasn't picked up:
/home/me/.AUR/pamac-build/sayonara-player/src/sayonara-player/src/Gui/Utils/Widgets/Slider.cpp: In member function ‘virtual void Gui::Slider::paintEvent(QPaintEvent*)’:
/home/me/.AUR/pamac-build/sayonara-player/src/sayonara-player/src/Gui/Utils/Widgets/Slider.cpp:220:16: error: aggregate ‘QPainterPath path’ has incomplete type and cannot be defined
220 | QPainterPath path;
| ^~~~
make[2]: *** [src/Gui/Utils/CMakeFiles/gui_utils.dir/build.make:540: src/Gui/Utils/CMakeFiles/gui_utils.dir/Widgets/Slider.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2297: src/Gui/Utils/CMakeFiles/gui_utils.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
Can someone please advise what i need to do after i've edited the file? Thank you
Last edited by DifficultDerek (2020-08-01 05:42:31)
Offline
You need to use makepkg -e to retain any changes you made to the source.
The best way would be to create a patch unless you want to make the changes manually every time you build it.
Last edited by yochananmarqos (2020-08-01 04:09:26)
Online
You need to use makepkg -e to retain any changes you made to the source.
Thank you - that gave me the clue i needed to work the rest out. I noted instructions in case others find it useful (and probably my reference, as it's not something i'd do often i'd expect):
$ cd ~/.AUR
$ git clone https://aur.archlinux.org/package_name.git
$ cd ~/.AUR/package_name
$ less PKGBUILD
$ makepkg -sirc
** FAILS **
- Modify files as required (Sayonara example in earlier post), then run:
$ makepkg -e.
If it errors, make note - it may be the 'build' directory needs to be deleted:
"mkdir: cannot create directory ‘build’: File exists"
re-run
$ makepkg -e
then
$ makepkg -sirc
(allow pacman -U to do it's thing by entering the your password)
Test the app worked - It worked! :)
Clean up directories.
=====
The best way would be to create a patch unless you want to make the changes manually every time you build it.
Could you give me a pointer there? Thanks!
Offline
I'll point here: https://wiki.archlinux.org/index.php/Patching_packages
Online
Thanks
Offline