LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 05-21-2024, 06:10 AM   #1
however
Member
 
Registered: Jan 2019
Distribution: slackware current
Posts: 523

Rep: Reputation: Disabled
darktable issues


Hello everyone,

i titled the thread 'darktable issues' because of various factors:
1) ponce's sbo package for slackware current seems to be 'darktable 4.2.1' and not 'darktable-4.6.0' as mentioned in this thread;

2) ponce's 'darktable 4.2.1-2' does not build (I re-synced ponce's repo last night before doing a bunch of re-installs)

Quote:
..........
/tmp/SBo/darktable-4.2.1/src/external/rawspeed/data/cameras.xsd:194: element complexType: Schemas parser error : complex type 'CFA2Type': The content model is not determinist.
WXS schema /tmp/SBo/darktable-4.2.1/src/external/rawspeed/data/cameras.xsd failed to compile
make[2]: *** [lib64/darktable/rawspeed/data/CMakeFiles/validate-cameras.xml.dir/build.make:76: lib64/darktable/rawspeed/data/cameras.xml.touch] Error 5
make[2]: Leaving directory '/tmp/SBo/darktable-4.2.1/build'
make[1]: *** [CMakeFiles/Makefile2:2342: lib64/darktable/rawspeed/data/CMakeFiles/validate-cameras.xml.dir/all] Error 2
make[1]: Leaving directory '/tmp/SBo/darktable-4.2.1/build'
make: *** [Makefile:156: all] Error 2

darktable:
Would you like to continue processing the rest of the
queue or would you like to abort? If this failed
package is a dependency of another package in the queue
then it may not make sense to continue.

(Y)es to continue, (N)o to abort, (R)etry the build?:
3) 'darktable-4.6.1' from pkgs.org won't launch (i know, some of you will tell me not to install anything from pkgs.org and some of you will say 'there is nothing wrong with pkgs.org). I also installed (painfully) all the required deps and subdeps specified on each package;

4) tried to build the package 'darktable 4.2.1' using slpkg (now that I finally gor it working) and interestingly enough I realized that slpkg builds its packages based on ponce's libraries which, of course, didn't work either;

Has anyone managed to get darktable to work on current? if so, how?

I would appreciate some hints because at this stage, even using a slacware binary, don't think will solve the problem.

p.s.: i am on slackware current with a 'non-virgin' installation, meaning I already have installed third-party packages such as Apache OO, Scribus, Inkscape and more

Last edited by however; 05-21-2024 at 06:12 AM.
 
Old 05-21-2024, 11:12 AM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,687

Rep: Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803
i'm able to build darktable 4.6.1 using a modified SlackBuild
Code:
diff --git a/graphics/darktable/darktable.SlackBuild b/graphics/darktable/darktable.SlackBuild
index 2c20db3062..7aa729f67b 100644
--- a/graphics/darktable/darktable.SlackBuild
+++ b/graphics/darktable/darktable.SlackBuild
@@ -28,8 +28,8 @@
 cd $(dirname $0) ; CWD=$(pwd)
 
 PRGNAM=darktable
-VERSION=${VERSION:-4.2.1}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-4.6.1}
+BUILD=${BUILD:-1}
 TAG=${TAG:-_SBo}
 PKGTYPE=${PKGTYPE:-tgz}
 # Slackware's lensfun isn't compatible
@@ -45,9 +45,6 @@ if [ -z "$ARCH" ]; then
   esac
 fi
 
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
 if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
   echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
   exit 0
@@ -100,9 +97,6 @@ cd build
     -DUSE_LIBSECRET=On \
     -DBINARY_PACKAGE_BUILD=1 \
     -DDONT_USE_INTERNAL_LUA=0 \
-    -DLensFun_INCLUDE_DIR="/opt/$LENSFUN/include/lensfun" \
-    -DLensFun_LIBRARIES="/opt/$LENSFUN/lib$LIBDIRSUFFIX" \
-    -DLensFun_LIBRARY="/opt/$LENSFUN/lib$LIBDIRSUFFIX/liblensfun.so" \
     -DCMAKE_BUILD_TYPE=Release ..
   VERBOSE=1 make
   make install DESTDIR=$PKG
diff --git a/graphics/darktable/darktable.info b/graphics/darktable/darktable.info
index 38835785d1..b37daf872f 100644
--- a/graphics/darktable/darktable.info
+++ b/graphics/darktable/darktable.info
@@ -1,10 +1,10 @@
 PRGNAM="darktable"
-VERSION="4.2.1"
+VERSION="4.6.1"
 HOMEPAGE="https://www.darktable.org/"
 DOWNLOAD="UNSUPPORTED"
 MD5SUM=""
-DOWNLOAD_x86_64="https://github.com/darktable-org/darktable/releases/download/release-4.2.1/darktable-4.2.1.tar.xz"
-MD5SUM_x86_64="ac7b028c0768f19ce9cb604beaac3d86"
+DOWNLOAD_x86_64="https://github.com/darktable-org/darktable/releases/download/release-4.6.1/darktable-4.6.1.tar.xz"
+MD5SUM_x86_64="e46c3dc0cf649f8b3b73f55153aabe97"
 REQUIRES="gmic pugixml lensfun03"
 MAINTAINER="David Spencer"
 EMAIL="baildon.research@googlemail.com"
 
1 members found this post helpful.
Old 05-21-2024, 01:54 PM   #3
however
Member
 
Registered: Jan 2019
Distribution: slackware current
Posts: 523

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by willysr View Post
i'm able to build darktable 4.6.1 using a modified SlackBuild
Code:
diff --git a/graphics/darktable/darktable.SlackBuild b/graphics/darktable/darktable.SlackBuild
index 2c20db3062..7aa729f67b 100644
--- a/graphics/darktable/darktable.SlackBuild
+++ b/graphics/darktable/darktable.SlackBuild
@@ -28,8 +28,8 @@
 cd $(dirname $0) ; CWD=$(pwd)
 
 PRGNAM=darktable
-VERSION=${VERSION:-4.2.1}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-4.6.1}
+BUILD=${BUILD:-1}
 TAG=${TAG:-_SBo}
 PKGTYPE=${PKGTYPE:-tgz}
 # Slackware's lensfun isn't compatible
@@ -45,9 +45,6 @@ if [ -z "$ARCH" ]; then
   esac
 fi
 
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
 if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
   echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
   exit 0
@@ -100,9 +97,6 @@ cd build
     -DUSE_LIBSECRET=On \
     -DBINARY_PACKAGE_BUILD=1 \
     -DDONT_USE_INTERNAL_LUA=0 \
-    -DLensFun_INCLUDE_DIR="/opt/$LENSFUN/include/lensfun" \
-    -DLensFun_LIBRARIES="/opt/$LENSFUN/lib$LIBDIRSUFFIX" \
-    -DLensFun_LIBRARY="/opt/$LENSFUN/lib$LIBDIRSUFFIX/liblensfun.so" \
     -DCMAKE_BUILD_TYPE=Release ..
   VERBOSE=1 make
   make install DESTDIR=$PKG
diff --git a/graphics/darktable/darktable.info b/graphics/darktable/darktable.info
index 38835785d1..b37daf872f 100644
--- a/graphics/darktable/darktable.info
+++ b/graphics/darktable/darktable.info
@@ -1,10 +1,10 @@
 PRGNAM="darktable"
-VERSION="4.2.1"
+VERSION="4.6.1"
 HOMEPAGE="https://www.darktable.org/"
 DOWNLOAD="UNSUPPORTED"
 MD5SUM=""
-DOWNLOAD_x86_64="https://github.com/darktable-org/darktable/releases/download/release-4.2.1/darktable-4.2.1.tar.xz"
-MD5SUM_x86_64="ac7b028c0768f19ce9cb604beaac3d86"
+DOWNLOAD_x86_64="https://github.com/darktable-org/darktable/releases/download/release-4.6.1/darktable-4.6.1.tar.xz"
+MD5SUM_x86_64="e46c3dc0cf649f8b3b73f55153aabe97"
 REQUIRES="gmic pugixml lensfun03"
 MAINTAINER="David Spencer"
 EMAIL="baildon.research@googlemail.com"
hello and thank you for the input.

I have the feeling that the long code is trying to tell me something? or is it just to confirm that you built darktable-4.6.1. successfully?

anyhow, would you be so kind to, at least, suggest what you did?

In the meantime, i tried to build darktable-4.6.1 using the SBO slackbuild and the source code that I downloaded from their website, and the build stopped with an error msg almost immediately
Quote:
...........
darktable-4.6.1/tools/wb_presets_common.rb
patching file src/common/exif.cc
Hunk #1 succeeded at 103 with fuzz 2 (offset 23 lines).
Hunk #2 FAILED at 2663.
Hunk #3 FAILED at 2703.
Hunk #4 FAILED at 2863.
Hunk #5 FAILED at 4065.
Hunk #6 FAILED at 4081.
Hunk #7 FAILED at 4209.
Hunk #8 FAILED at 4376.
Hunk #9 FAILED at 4442.
8 out of 9 hunks FAILED -- saving rejects to file src/common/exif.cc.rej
patching file tools/basecurve/exif-wrapper.cpp
Hunk #2 FAILED at 37.
1 out of 2 hunks FAILED -- saving rejects to file tools/basecurve/exif-wrapper.cpp.rej
bash-5.2#
Thanks )

Last edited by however; 05-21-2024 at 01:55 PM.
 
Old 05-21-2024, 05:15 PM   #4
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 462

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
If you're using the SlackBuild from ponce's repo, the patch command at line 91 needs to be commented out or deleted to build 4.6.1.
 
2 members found this post helpful.
Old 05-23-2024, 06:06 PM   #5
however
Member
 
Registered: Jan 2019
Distribution: slackware current
Posts: 523

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pghvlaans View Post
If you're using the SlackBuild from ponce's repo, the patch command at line 91 needs to be commented out or deleted to build 4.6.1.
Thank you for the input but it didnt work either.
Quote:
-- Performing Test HAVE_BUILTIN_CPU_SUPPORTS
-- Performing Test HAVE_BUILTIN_CPU_SUPPORTS - Success
-- Does the compiler support __builtin_cpu_supports(): 1
-- Performing Test HAVE_TLS
-- Performing Test HAVE_TLS - Success
-- Checking for -mtune=generic support
-- Performing Test MTUNEGENERIC
-- Performing Test MTUNEGENERIC - Success
-- Lua support: Enabled
CMake Error at cmake/modules/LibFindMacros.cmake:272 (message):
REQUIRED PACKAGE NOT FOUND

We could not find development headers for Pugixml. Do you have the
necessary dev package installed? This package is REQUIRED and you need to
install it or adjust CMake configuration in order to continue building
darktable.

Relevant CMake configuration variables:

Pugixml_INCLUDE_DIR=<not found>
Pugixml_LIBRARY=<not found>

You may use CMake GUI, cmake -D or ccmake to modify the values. Delete
CMakeCache.txt to discard all values and force full re-detection if
necessary.

Call Stack (most recent call first):
cmake/modules/FindPugixml.cmake:30 (libfind_process)
src/CMakeLists.txt:769 (find_package)


-- Configuring incomplete, errors occurred!
bash-5.2#
I think i will try to install darktable-4.2.1 for which I found the slackware binary

p.s.: i can see what packages it's missing, i will look for them before trying again.

Last edited by however; 05-23-2024 at 06:08 PM.
 
Old 05-23-2024, 06:15 PM   #6
however
Member
 
Registered: Jan 2019
Distribution: slackware current
Posts: 523

Original Poster
Rep: Reputation: Disabled
apologies, just saw that it was a dependency package. Installing it now and trying again the build
 
Old 05-24-2024, 03:35 AM   #7
however
Member
 
Registered: Jan 2019
Distribution: slackware current
Posts: 523

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pghvlaans View Post
If you're using the SlackBuild from ponce's repo, the patch command at line 91 needs to be commented out or deleted to build 4.6.1.
Built and installed successfully! Thank you
 
  


Reply



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
LXer: A RAW Feast on the Linux Darktable Photo Editor LXer Syndicated Linux News 0 04-25-2012 01:00 PM
LXer: Darktable- An open source photography workflow application and RAW developer LXer Syndicated Linux News 0 03-23-2012 02:20 AM
LXer: Darktable : Open Source Photography Apps and RAW Photo Editor LXer Syndicated Linux News 0 03-20-2012 09:30 PM
LXer: Darktable For Open-Source Photography LXer Syndicated Linux News 0 01-21-2012 03:40 PM
Cannot build git version of darktable arubin Slackware 11 01-12-2012 02:44 PM

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

All times are GMT -5. The time now is 11:15 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