You are not logged in.

#1 2020-08-01 03:35:53

DifficultDerek
Member
Registered: 2020-05-20
Posts: 5

Sayonara - AUR package broken. Please help me work around it. [solved]

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/

richteer wrote:

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 smile

Last edited by DifficultDerek (2020-08-01 05:42:31)

Offline

#2 2020-08-01 04:07:48

yochananmarqos
Member
Registered: 2020-02-05
Posts: 18
Website

Re: Sayonara - AUR package broken. Please help me work around it. [solved]

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)

Offline

#3 2020-08-01 05:19:33

DifficultDerek
Member
Registered: 2020-05-20
Posts: 5

Re: Sayonara - AUR package broken. Please help me work around it. [solved]

yochananmarqos wrote:

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.

=====
yochananmarqos wrote:

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? smile Thanks!

Offline

#4 2020-08-01 05:23:13

yochananmarqos
Member
Registered: 2020-02-05
Posts: 18
Website

Re: Sayonara - AUR package broken. Please help me work around it. [solved]

Offline

#5 2020-08-01 05:42:03

DifficultDerek
Member
Registered: 2020-05-20
Posts: 5

Re: Sayonara - AUR package broken. Please help me work around it. [solved]

Thanks smile

Offline

Board footer

Powered by FluxBB