LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-23-2016, 04:20 PM   #1
Amarildo
Member
 
Registered: Jun 2014
Posts: 176

Rep: Reputation: Disabled
Arch Linux - Building webkitgtk2 without geoclue


I have ZERO experience with cmake, so I need some help.

I'm trying to build webkit2gtk without geoclue as a dependency, on Arch. I got the PKGBUILD, removed the 'geoclue2' part on the dependencies, and ran "makepkg -s". However, this happens:

Quote:
-- Checking for module 'geoclue-2.0'
-- Package 'geoclue-2.0' not found
-- Could NOT find GEOCLUE2 (missing: VERSION_OK)
-- Checking for module 'geoclue'
-- Package 'geoclue' not found
-- Could NOT find GEOCLUE (missing: GEOCLUE_INCLUDE_DIRS GEOCLUE_LIBRARIES)
CMake Error at Source/cmake/OptionsGTK.cmake:272 (message):
Geoclue is needed for ENABLE_GEOLOCATION.
Call Stack (most recent call first):
CMakeLists.txt:164 (include)


-- Configuring incomplete, errors occurred!
See also "/home/amarildo/webkit/src/build/CMakeFiles/CMakeOutput.log".
See also "/home/amarildo/webkit/src/build/CMakeFiles/CMakeError.log".
==> ERROR: A failure occurred in build().
Aborting...
How can I build this package without having geoclue2?

BTW, here's my current PKGBUILD:

Code:
# $Id$
# Maintainer: Eric Blanger <eric@archlinux.org>

pkgname=webkit2gtk
pkgver=2.10.5
pkgrel=1
pkgdesc="GTK+ Web content engine library"
arch=('i686' 'x86_64')
url="http://webkitgtk.org/"
license=('custom')
depends=('libxt' 'libxslt' 'enchant' 'gst-plugins-base-libs'
	 'libsecret' 'libwebp' 'harfbuzz-icu' 'gtk3' 'libnotify' 'hyphen')
makedepends=('gtk2' 'gperf' 'gobject-introspection' 'ruby' 'gtk-doc' 'cmake' 'python')
optdepends=('gtk2: Netscape plugin support'
            'gst-plugins-base: free media decoding'
            'gst-plugins-good: media decoding'
            'gst-libav: nonfree media decoding')
options=('!emptydirs')
source=(http://webkitgtk.org/releases/webkitgtk-${pkgver}.tar.xz)
sha256sums=('785d5e98eaf07be15fb8891b7d5b13a2df7072c609b3ee631ca07d5dea1d79fa')

prepare() {
  mkdir build

  cd webkitgtk-$pkgver
  sed -i '1s/python$/&2/' Tools/gtk/generate-gtkdoc
  rm -r Source/ThirdParty/gtest/
  rm -r Source/ThirdParty/qunit/
}

build() {
  cd build
  cmake -DPORT=GTK -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_SKIP_RPATH=ON -DCMAKE_INSTALL_PREFIX=/usr \
        -DLIB_INSTALL_DIR=/usr/lib -DLIBEXEC_INSTALL_DIR=/usr/lib/webkit2gtk-4.0 \
        -DENABLE_GTKDOC=ON ../webkitgtk-$pkgver
        -DENABLE_GEOLOCATION=FALSE \
  make
}

package() {
  cd build
  make DESTDIR="$pkgdir" install

  install -m755 -d "$pkgdir/usr/share/licenses/webkit2gtk"
  cd "$srcdir/webkitgtk-$pkgver/Source"
  for f in $(find -name 'COPYING*' -or -name 'LICENSE*'); do
    echo $f >> "$pkgdir/usr/share/licenses/webkit2gtk/LICENSE"
    cat $f >> "$pkgdir/usr/share/licenses/webkit2gtk/LICENSE"
    echo "" >> "$pkgdir/usr/share/licenses/webkit2gtk/LICENSE"
  done
}

Last edited by Amarildo; 01-23-2016 at 04:35 PM.
 
Old 01-23-2016, 08:22 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 13,413
Blog Entries: 9

Rep: Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658
hmm, strange, it already says "ENABLE_GEOLOCATION=FALSE".
but i think your build function is messed up, it should probably look like this:
Code:
build() {
  cd build
  cmake -DPORT=GTK -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_SKIP_RPATH=ON -DCMAKE_INSTALL_PREFIX=/usr \
        -DLIB_INSTALL_DIR=/usr/lib -DLIBEXEC_INSTALL_DIR=/usr/lib/webkit2gtk-4.0 \
        -DENABLE_GEOLOCATION=FALSE \
        -DENABLE_GTKDOC=ON ../webkitgtk-$pkgver
  make
}
was geoclue in depends or in makedepends?
 
Old 01-24-2016, 08:17 AM   #3
Amarildo
Member
 
Registered: Jun 2014
Posts: 176

Original Poster
Rep: Reputation: Disabled
Yes, I added that "-DENABLE_GEOLOCATION=FALSE " part, though I'm not sure that's how it should be done.

was geoclue in depends or in makedepends?
It was on depends.

Well, it looks like it's building after I used your suggestion o.O This is weird. I'll let you know how it goes.
 
Old 01-24-2016, 04:46 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 13,413
Blog Entries: 9

Rep: Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658
Quote:
Originally Posted by Amarildo View Post
This is weird.
no it's not.
your syntax was off.
do you know what that '\' at the end of a line does in a shell script?
 
Old 01-24-2016, 06:06 PM   #5
Amarildo
Member
 
Registered: Jun 2014
Posts: 176

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
no it's not.
your syntax was off.
do you know what that '\' at the end of a line does in a shell script?
I don't, but I assume it goes to the next line? If so, now it makes sense that it didn't work.
 
Old 01-25-2016, 01:17 PM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 13,413
Blog Entries: 9

Rep: Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658
yep.

so how did it go?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Building - Arch Linux "Issue" Swampr Linux - Newbie 3 12-02-2015 01:50 PM
Disabling privacy-invasive Zeitgeist, Geoclue, Whoopsie (and NTPD) ihavequestions Linux - General 5 02-18-2014 03:05 PM
Which distro building system is easier - Arch or Gentoo? Mr. Alex Linux - Distributions 5 05-08-2011 02:23 PM
Building RexFBD-0.6 on 2.6.36-ck2-ARCH MrSandwich Linux - Kernel 3 11-27-2010 01:44 AM
LXer: Henri Bergius on Akademy, MidGard, Open Collaboration Services and GeoClue LXer Syndicated Linux News 0 07-24-2010 01:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration