Change:
Steps to reproduce the behavior: Adding fixes the issue. <!-- Please @ people who are in the list of the offending package or module. If in doubt, check for whoever last touched something. --Please run and paste the result.

Discussion:
, exiv2 , expat , fetchFromGitHub <ins> , fetchpatch </ins> , fftw , fftwFloat , gettext

, pcre , pkg-config , pugixml <del> , lib, stdenv </del> <ins> , lib , stdenv </ins> , swig , vips <ins> , gtk-mac-integration-gtk2 </ins> }: stdenv.mkDerivation rec {

sha256 = "1bq4733hbh15nwpixpyhqfn3bwkg38amdj2xc0my0pii8l9ln793"; }; <del> patches = [ ./CMakeLists.patch ]; </del> <ins> patches = [ (fetchpatch { name = "fix-compiler-flags.patch"; url = "https://sources.debian.org/data/main/p/photoflow/0.2.8%2Bgit20200114-3/debian/patches/ftbfs"; sha256 = "sha256-DG5yG6M4FsKOykE9Eh5TGd7Z5QURGTTVbO1pIxMAlhc="; }) ./CMakeLists.patch ./fix-build.patch ]; </ins> nativeBuildInputs = [ automake

expat fftw fftwFloat <del> gtkmm2  # Could be build with gtk3 but proper UI theme is missing and therefore not very usable with gtk3 # See: https://discuss.pixls.us/t/help-needed-for-gtk3-theme/5803 </del> <ins> gtkmm2 # Could be build with gtk3 but proper UI theme is missing and therefore not very usable with gtk3 # See: https://discuss.pixls.us/t/help-needed-for-gtk3-theme/5803 </ins> lcms2 lensfun libexif

pcre pugixml vips <ins> ] ++ lib.optionals stdenv.isDarwin [ gtk-mac-integration-gtk2 </ins> ]; cmakeFlags = [

description = "A fully non-destructive photo retouching program providing a complete RAW image editing workflow"; homepage = "https://aferrero2707.github.io/PhotoFlow/"; license = licenses.gpl3Plus; <del> maintainers = [ maintainers.MtP ]; platforms = platforms.linux; # sse3 is not supported on aarch64 badPlatforms = [ "aarch64-linux" ]; # added 2021-09-30 # upstream seems pretty dead #/build/source/src/operations/denoise.cc:30:10: fatal error: vips/cimg_funcs.h: No such file or directory broken = true; </del> <ins> maintainers = with maintainers; [ MtP wegank ]; platforms = platforms.unix; </ins> }; }

<ins> diff --git a/src/external/librtprocess/src/include/librtprocess.h b/src/external/librtprocess/src/include/librtprocess.h index 47691a09..b1c63dbd 100644 --- a/src/external/librtprocess/src/include/librtprocess.h +++ b/src/external/librtprocess/src/include/librtprocess.h @@ -21,6 +21,7 @@ #define _LIBRTPROCESS_ #include <functional> +#include <cstddef> enum rpError {RP_NO_ERROR, RP_MEMORY_ERROR, RP_WRONG_CFA, RP_CACORRECT_ERROR}; diff --git a/src/operations/denoise.cc b/src/operations/denoise.cc index 10050f70..16b340c1 100644 --- a/src/operations/denoise.cc +++ b/src/operations/denoise.cc @@ -27,7 +27,7 @@ */ -#include <vips/cimg_funcs.h> +//#include <vips/cimg_funcs.h> #include "../base/new_operation.hh" #include "convert_colorspace.hh" diff --git a/src/operations/gmic/gmic.cc b/src/operations/gmic/gmic.cc index 876e7c20..fc6a8505 100644 --- a/src/operations/gmic/gmic.cc +++ b/src/operations/gmic/gmic.cc @@ -28,13 +28,31 @@ */ //#include <vips/cimg_funcs.h> +#include <vips/vips.h> #include "../../base/processor_imp.hh" #include "../convertformat.hh" #include "gmic.hh" -int vips_gmic(VipsImage **in, VipsImage** out, int n, int padding, double x_scale, double y_scale, const char* command, ...); - +int vips_gmic(VipsImage **in, VipsImage** out, int n, int padding, double x_scale, double y_scale, const char* command, ...) +{ +	VipsArrayImage *array; +	va_list ap; +	int result; + +#ifndef NDEBUG +	printf("vips_gmic(): padding=%dn", padding); +#endif + +	array = vips_array_image_new( in, n ); +	va_start( ap, command ); +	result = vips_call_split( "gmic", ap, array, out, +		padding, x_scale, y_scale, command ); +	va_end( ap ); +	vips_area_unref( VIPS_AREA( array ) ); + +	return( result ); +} PF::GMicPar::GMicPar(): OpParBase(), diff --git a/src/vips/gmic/gmic/src/CImg.h b/src/vips/gmic/gmic/src/CImg.h index 268b9e62..5a79640c 100644 --- a/src/vips/gmic/gmic/src/CImg.h +++ b/src/vips/gmic/gmic/src/CImg.h @@ -32843,7 +32843,7 @@ namespace cimg_library_suffixed { see deriche(), vanvliet(). **/ CImg<T>& blur_box(const float boxsize, const bool boundary_conditions=true) { -      const float nboxsize = boxsize>=0?boxsize:-boxsize*std::max(_width,_height,_depth)/100; +      const float nboxsize = boxsize>=0?boxsize:-boxsize*std::max({_width,_height,_depth})/100; return blur_box(nboxsize,nboxsize,nboxsize,boundary_conditions); } </ins>

<del> {lib, stdenv, fetchurl}: </del> <ins> { lib, stdenv, fetchurl, libiconv }: </ins> stdenv.mkDerivation rec { pname = "libiptcdata"; version = "1.0.4"; <ins> buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; </ins> src = fetchurl { url = "mirror://sourceforge/libiptcdata/${pname}-${version}.tar.gz"; sha256 = "03pfvkmmx762iydq0q207x2028d275pbdysfsgpmrr0ywy63pxkr";

homepage = "http://libiptcdata.sourceforge.net/"; license = lib.licenses.gpl2Plus; platforms = lib.platforms.unix; <ins> maintainers = with lib.maintainers; [ wegank ]; </ins> }; }