LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-26-2017, 07:51 AM   #1
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Rep: Reputation: 129Reputation: 129
trying to build a package for webkitgtk-2.16.1


I'm trying to build a package for webkitgtk-2.16.1
There is no configure file (cmake is used).
I can't find any documentation about the options available and where the installed files go to.

After some trials and errors I was able to built it successfully by running this
Code:
mkdir -p build || exit 1
cd build

cmake -DPORT=GTK -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_RPATH=ON \
 -DCMAKE_INSTALL_PREFIX=/usr -DLIB_INSTALL_DIR=/usr/lib$LIBDIRSUFFIX \
 -DLIBEXEC_INSTALL_DIR=/usr/lib$LIBDIRSUFFIX/webkit2gtk-4.0 \
 -DCMAKE_C_FLAGS="$SLKCFLAGS" -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
 -DENABLE_MINIBROWSER=ON \
 -DUSE_LIBHYPHEN=OFF -DENABLE_GEOLOCATION=OFF .. || exit 1

make -j$(nproc) || make || exit 1
There's no DESTDIR in Makefile

I figured that these directories are going to be used for the installation if I want to manually copy the files:
Code:
mkdir -p $PKG/usr/bin
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/webkit2gtk-4.0
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/pkgconfig
mkdir -p $PKG/usr/libexec/webkit2gtk-4.0
mkdir -p $PKG/usr/include/webkitgtk-4.0
mkdir -p $PKG/usr/share/gtk-doc/html/webkit{2,dom}gtk-4.0
I'm tempted to copy bin/* to $PKG/usr/bin, lib/* to $PKG/usr/lib$LIBDIRSUFFIX/webkit2gtk-4.0,
the *.pc files to the pkgconfig directory ...

I tried to change the INSTALLATION DESTINATION PATH in the different cmake_install.cmake (with a seder) but when I run
Code:
make install
this starts building the objects again ...
 
Old 04-26-2017, 07:59 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,068

Rep: Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145
have you tried using the SlackBuild from SBo?

https://gitlab.com/SlackBuilds.org/s...ies/webkit2gtk

I point you at the gitlab mirror of the SBo repository because ATM the server is not reachable probably for a network issue upstream (as you might guess with traceroute).

Last edited by ponce; 04-26-2017 at 10:15 AM.
 
Old 04-26-2017, 10:19 AM   #3
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Original Poster
Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by ponce View Post
have you tried using the SlackBuild from SBo?

https://gitlab.com/SlackBuilds.org/s...ies/webkit2gtk
I just looked at the SlackBuild:

Code:
make install DESTDIR=$PKG
But there's no DESTDIR in the Makefile
I'm afraid this will try to install at the root filesystem
 
Old 04-26-2017, 10:42 AM   #4
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by vonbiber View Post
Code:
make install DESTDIR=$PKG
But there's no DESTDIR in the Makefile
I'm afraid this will try to install at the root filesystem
$PKG is a variable defined in the SlackBuild. If you look up in the SlackBuild you can see that it points to:
Code:
PKG=$TMP/package-$PRGNAM
which breaks down to /tmp/SBo/package-webkit2gtk

Edit: Ooops, I forgot to mention like ponce does below, that DESTDIR is recognized by cmake already.

Last edited by Skaendo; 04-26-2017 at 10:53 AM.
 
Old 04-26-2017, 10:44 AM   #5
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,068

Rep: Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145Reputation: 4145
Quote:
Originally Posted by vonbiber View Post
I just looked at the SlackBuild:

Code:
make install DESTDIR=$PKG
But there's no DESTDIR in the Makefile
I'm afraid this will try to install at the root filesystem
you don't have to be.
if you look at the Makefile in the build directory (generated by running cmake), it calls several other Makefile in the subdirectories of ./build: those, for the "install" target call theirself the relative cmake_install.cmake files that contain references to DESTDIR.
Code:
/tmp/SBo/webkitgtk-2.16.1/build# find . -name cmake_install.cmake -exec grep DESTDIR {} \;
  if(EXISTS "$ENV{DESTDIR}/usr/lib64/webkit2gtk-4.0/WebKitPluginProcess2" AND
     NOT IS_SYMLINK "$ENV{DESTDIR}/usr/lib64/webkit2gtk-4.0/WebKitPluginProcess2")
      execute_process(COMMAND "/usr/bin/strip" "$ENV{DESTDIR}/usr/lib64/webkit2gtk-4.0/WebKitPluginProcess2")
  if(EXISTS "$ENV{DESTDIR}/usr/lib64/webkit2gtk-4.0/injected-bundle/libwebkit2gtkinjectedbundle.so" AND
     NOT IS_SYMLINK "$ENV{DESTDIR}/usr/lib64/webkit2gtk-4.0/injected-bundle/libwebkit2gtkinjectedbundle.so")
      execute_process(COMMAND "/usr/bin/strip" "$ENV{DESTDIR}/usr/lib64/webkit2gtk-4.0/injected-bundle/libwebkit2gtkinjectedbundle.so")
  if(EXISTS "$ENV{DESTDIR}/usr/lib64/webkit2gtk-4.0/WebKitPluginProcess" AND
     NOT IS_SYMLINK "$ENV{DESTDIR}/usr/lib64/webkit2gtk-4.0/WebKitPluginProcess")
      execute_process(COMMAND "/usr/bin/strip" "$ENV{DESTDIR}/usr/lib64/webkit2gtk-4.0/WebKitPluginProcess")
  if(EXISTS "$ENV{DESTDIR}/usr/lib64/webkit2gtk-4.0/WebKitDatabaseProcess" AND
     NOT IS_SYMLINK "$ENV{DESTDIR}/usr/lib64/webkit2gtk-4.0/WebKitDatabaseProcess")
      execute_process(COMMAND "/usr/bin/strip" "$ENV{DESTDIR}/usr/lib64/webkit2gtk-4.0/WebKitDatabaseProcess")
      "$ENV{DESTDIR}/usr/lib64/libwebkit2gtk-4.0.so.37.19.4"
      "$ENV{DESTDIR}/usr/lib64/libwebkit2gtk-4.0.so.37"
      "$ENV{DESTDIR}/usr/lib64/libwebkit2gtk-4.0.so"
  if(EXISTS "$ENV{DESTDIR}/usr/lib64/webkit2gtk-4.0/WebKitWebProcess" AND
     NOT IS_SYMLINK "$ENV{DESTDIR}/usr/lib64/webkit2gtk-4.0/WebKitWebProcess")
      execute_process(COMMAND "/usr/bin/strip" "$ENV{DESTDIR}/usr/lib64/webkit2gtk-4.0/WebKitWebProcess")
  if(EXISTS "$ENV{DESTDIR}/usr/lib64/webkit2gtk-4.0/WebKitNetworkProcess" AND
     NOT IS_SYMLINK "$ENV{DESTDIR}/usr/lib64/webkit2gtk-4.0/WebKitNetworkProcess")
      execute_process(COMMAND "/usr/bin/strip" "$ENV{DESTDIR}/usr/lib64/webkit2gtk-4.0/WebKitNetworkProcess")
  if(EXISTS "$ENV{DESTDIR}/usr/lib64/webkit2gtk-4.0/jsc" AND
     NOT IS_SYMLINK "$ENV{DESTDIR}/usr/lib64/webkit2gtk-4.0/jsc")
      execute_process(COMMAND "/usr/bin/strip" "$ENV{DESTDIR}/usr/lib64/webkit2gtk-4.0/jsc")
      "$ENV{DESTDIR}/usr/lib64/libjavascriptcoregtk-4.0.so.18.5.8"
      "$ENV{DESTDIR}/usr/lib64/libjavascriptcoregtk-4.0.so.18"
      "$ENV{DESTDIR}/usr/lib64/libjavascriptcoregtk-4.0.so"

Last edited by ponce; 04-26-2017 at 10:45 AM.
 
1 members found this post helpful.
Old 04-27-2017, 05:56 AM   #6
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Original Poster
Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by ponce View Post
you don't have to be.
if you look at the Makefile in the build directory (generated by running cmake), it calls several other Makefile in the subdirectories of ./build: those, for the "install" target call theirself the relative cmake_install.cmake files that contain references to DESTDIR.
Thank you for pointing out this to me.
By the way
Code:
make
make install DESTDIR=$PKG
is a waste of time.
Code:
make install DESTDIR=$PKG
is enough (it will (re)build even if you 'make'd before)

Thanks again
Now, where's this solved button again?
 
  


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
Tried to build webkitgtk-2.4.11, but this happened... FTIO Slackware 3 10-21-2016 05:33 PM
[SOLVED] webkitgtk fails to build on Slackware61-14.1 frushiyama Slackware 10 05-26-2015 06:17 AM
webkitgtk 2 binary package? moisespedro Slackware 7 09-19-2014 06:16 PM
[SOLVED] Unable to build webkitgtk trademark91 Slackware 3 03-17-2012 10:47 PM
What are the steps to build and install a Slackware package from a RPM package? sudeepkulkarni Slackware 6 04-25-2011 12:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:07 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
Open Source Consulting | Domain Registration