You are not logged in.

#1 2021-11-30 06:48:10

dosamoda
Member
Registered: 2021-04-06
Posts: 15

[SOLVED] PKGBUILD fails to comiple with -DCMAKE_BUILD_TYPE=debugfull

I am trying to get a backtrace with plasma-desktop, so I have to compile it with

-DCMAKE_BUILD_TYPE=debugfull 

and

 options=(debug !strip) 

PKGBUILD:

# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>

pkgname=plasma-desktop
pkgver=5.23.3
pkgrel=1
pkgdesc='KDE Plasma Desktop'
arch=(x86_64)
url='https://kde.org/plasma-desktop/'
license=(LGPL)
source=(https://download.kde.org/stable/plasma/$pkgver/$pkgname-$pkgver.tar.xz{,.sig})
depends=(gawk kdelibs4support polkit-kde-agent kmenuedit systemsettings baloo accountsservice xdg-user-dirs)
optdepends=('plasma-nm: Network manager applet'
            'powerdevil: power management, suspend and hibernate support'
            'kscreen: screen management'
            'ibus: kimpanel IBUS support'
            'scim: kimpanel SCIM support'
            'kaccounts-integration: OpenDesktop integration plugin'
            'packagekit-qt5: to install new krunner plugins')
replaces=(user-manager knetattach)
makedepends=(extra-cmake-modules kdoctools xf86-input-evdev xf86-input-synaptics xf86-input-libinput xorg-server-devel
             scim kdesignerplugin kaccounts-integration intltool packagekit-qt5 kinit)
groups=(plasma)
sha256sums=('43435a514eb66965e52af49aa033ebc813db42a10ad66cd5656f7466f14d4504'
            'SKIP')
validpgpkeys=('E0A3EB202F8E57528E13E72FD7574483BB57B18D'  # Jonathan Esk-Riddell <jr@jriddell.org>
              '0AAC775BB6437A8D9AF7A3ACFE0784117FBCE11D'  # Bhushan Shah <bshah@kde.org>
              'D07BD8662C56CB291B316EB2F5675605C74E02CF'  # David Edmundson <davidedmundson@kde.org>
              '1FA881591C26B276D7A5518EEAAF29B42A678C20') # Marco Martin <notmart@gmail.com>

build() {
  cmake -B build -S $pkgname-$pkgver \
    -DCMAKE_INSTALL_LIBEXECDIR=lib \
    -DBUILD_TESTING=OFF
    -DCMAKE_BUILD_TYPE=debugfull

  cmake --build build
}

options=(debug !strip)

package() {
  DESTDIR="$pkgdir" cmake --install build
}

When I compile, I get the following:

/home/user/tracking-kded5/kded-testing/plasma-desktop/PKGBUILD: line 36: -DCMAKE_BUILD_TYPE=debugfull: command not found
==> ERROR: A failure occurred in build().
    Aborting...

Anyone know how to solve this issue?

Last edited by dosamoda (2021-11-30 09:57:30)

Offline

#2 2021-11-30 07:21:57

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,294

Re: [SOLVED] PKGBUILD fails to comiple with -DCMAKE_BUILD_TYPE=debugfull

You are missing a '\'. In any case, 'options=(debug !strip)' is enough, no need to tinker with cmake options.

Online

#3 2021-11-30 09:13:43

dosamoda
Member
Registered: 2021-04-06
Posts: 15

Re: [SOLVED] PKGBUILD fails to comiple with -DCMAKE_BUILD_TYPE=debugfull

arojas wrote:

You are missing a '\'. In any case, 'options=(debug !strip)' is enough, no need to tinker with cmake options.

I added the '\' at the end and I got the same error when compiling, so i will just stick with 'options=(debug !strip)'.
Thank you!

Offline

Board footer

Powered by FluxBB