From: zenny <zenny@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [ISSUE] Lightzone-4.2.4 compilation issue
Date: Sat, 17 Feb 2024 08:55:58 +0100 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-48791@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 3927 bytes --]
New issue by zenny on void-packages repository
https://github.com/void-linux/void-packages/issues/48791
Description:
Hi,
I am trying to build LightZone 4.2.4 from using xbps-src, but it ends up at:
```
[exec] g++ -c -fno-PIE -mtune=generic -O2 -pipe -ffile-prefix-map=/builddir/lightzone-4.2.4=. -g -fPIC -march=athlon64 -msse2 -mfpmath=sse -O3 -fno-trapping-math -fo
mit-frame-pointer -std=c++14 -DJNILIB -g -fPIC -march=athlon64 -msse2 -mfpmath=sse -O3 -fno-trapping-math -fomit-frame-pointer -std=c++14 -DJNILIB -I/usr/lib/jvm/default-
jdk/include -I/usr/lib/jvm/default-jdk/include/linux -I../../../lightcrafts -I../../../lightcrafts/jnisrc/jniutils -I/usr/include/lensfun -I/usr/include/glib-2.0 -I/usr/lib
64/glib-2.0/include LC_lensfun.cpp
[exec] LC_lensfun.cpp: In function 'jlong Java_com_lightcrafts_utils_Lensfun_init(JNIEnv*, jobject, jstring)':
[exec] LC_lensfun.cpp:57:29: error: 'uintptr_t' does not name a type
[exec] 57 | return reinterpret_cast<uintptr_t>(lf);
[exec] | ^~~~~~~~~
[exec] LC_lensfun.cpp:16:1: note: 'uintptr_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
[exec] 15 | #include "interpolation.h"
[exec] +++ |+#include <cstdint>
[exec] 16 |
[exec] make[2]: *** [../../../lightcrafts/mk/sources.mk:134: LC_lensfun.o] Error 1
[exec] make[1]: *** [../jni.mk:198: mk_target] Error 2
[exec] make: *** [../mk/recurse.mk:29: lensfun] Error 1
BUILD FAILED
/builddir/lightzone-4.2.4/linux/build.xml:37: The following error occurred while executing this line:
/builddir/lightzone-4.2.4/lightcrafts/build.xml:140: exec returned: 2
Total time: 1 minute 12 seconds
/void-packages/common/xbps-src/shutils/common.sh: line 149: printf: `m': invalid format character
=> ERROR: lightzone-4.2.4_1: do_build: 'TARGET=${XBPS_TARGET_MACHINE=> ERROR: in do_build() at srcpkgs/lightzone/template:33
```
I modified the xbps-src `template` by @Orphaned to:
```
# Template file for 'lightzone'
pkgname=lightzone
version=4.2.4
revision=1
_ivy_version=2.4.0
hostmakedepends="automake git openjdk11 apache-ant javahelp2 rsync pkg-config"
makedepends="libgomp-devel lcms2-devel libjpeg-turbo-devel tiff-devel libX11-devel lensfun-devel"
depends="openjdk11 javahelp2 liblzma tiff"
short_desc="Professional-level digital darkroom and photo editor"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="http://www.lightzoneproject.org/"
distfiles="https://github.com/ktgw0316/LightZone/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz
https://repo1.maven.org/maven2/org/apache/ivy/ivy/${_ivy_version}/ivy-${_ivy_version}.jar"
checksum="49421b45a8a5a5ec17c4bc688e4699d851bb19c22080f154143ef23038425dd0
ce81cb234406b093b5b8de9f6f5b2a50ed0824d6a235891353e8d3e941a53970"
skip_extraction="ivy-${_ivy_version}.jar"
# JNI binaries are not PIE
nopie=yes
replaces="lightzone-bin>=0"
do_build() {
mkdir -p lightcrafts/lib
ln -sf $XBPS_SRCDISTDIR/${pkgname}-${version}/ivy-${_ivy_version}.jar \
lightcrafts/lib/ivy.jar
# Fix for cross building
vsed -i lightcrafts/jnisrc/tiff/GNUmakefile \
-e "s;\./configure;& --host=${XBPS_MACHINE%-musl};"
. /etc/profile.d/jdk.sh
cd linux
TARGET=${XBPS_TARGET_MACHINE%-musl} ant jar
}
do_install() {
vbin linux/products/lightzone
vmkdir usr/share
cp -pHR linux/icons ${DESTDIR}/usr/share
vinstall linux/products/lightzone.desktop 644 usr/share/applications
# Install shared libraries
for f in linux/products/*.so; do
vinstall $f 755 usr/lib/lightzone
done
# Install helpers
for f in LightZone-forkd dcraw_lz; do
vinstall linux/products/$f 755 usr/lib/lightzone
done
# Install jars
for f in linux/products/*.jar; do
vinstall $f 644 usr/share/java/lightzone
done
vlicense COPYING
}
```
next reply other threads:[~2024-02-17 7:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-17 7:55 zenny [this message]
2024-02-17 8:14 ` classabbyamp
2024-02-17 8:15 ` classabbyamp
2024-02-18 6:48 ` zenny
2024-02-18 7:16 ` classabbyamp
2024-05-19 1:48 ` github-actions
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-48791@inbox.vuxu.org \
--to=zenny@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).