bug#70320: Krita fails to build

2024-04-10 Thread Ignas Lapėnas
Hello,

Trying to build the updated Krita (5.2.1). The package doesn't seem to
build in any way possible. Couldn't figure out what exactly is the
issue.

Guix version:

guix (GNU Guix) 8bfa49444d688fd39d66dfa7d8a5d8fc04b3b571

Log ending:

make[2]: Leaving directory '/tmp/guix-build-krita-5.2.1.drv-0/build'
[ 89%] Built target kritaheifimport
make[1]: Leaving directory '/tmp/guix-build-krita-5.2.1.drv-0/build'
make: *** [Makefile:149: all] Error 2
error: in phase 'build': uncaught exception:
%exception #< program: "make" arguments: ("-j" "24") exit-status: 
2 term-signal: #f stop-signal: #f>

CMakeError.log:

Determining if the function powf exists failed with the following output:
Change Dir: /tmp/guix-build-krita-wayland-5.2.1.drv-0/build/CMakeFiles/CMakeTmp

Run Build 
Command(s):/gnu/store/wj7casda7rb55rvqjnpm0bm7a2zm6618-make-4.3/bin/make -f 
Makefile cmTC_79c81/fast && 
/gnu/store/wj7casda7rb55rvqjnpm0bm7a2zm6618-make-4.3/bin/make  -f 
CMakeFiles/cmTC_79c81.dir/build.make CMakeFiles/cmTC_79c81.dir/build
make[1]: Entering directory 
'/tmp/guix-build-krita-wayland-5.2.1.drv-0/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_79c81.dir/CheckFunctionExists.c.o
/gnu/store/5lqhcv91ijy82p92ac6g5xw48l0lwwz4-gcc-11.3.0/bin/gcc -D_GNU_SOURCE 
-D_LARGEFILE64_SOURCE  -fno-common -Wall -Wextra -Wcast-align -Wchar-subscripts 
-Wformat-security -Wno-long-long -Wpointer-arith -Wundef 
-Wmissing-format-attribute -Wwrite-strings 
-Werror=implicit-function-declaration -DCHECK_FUNCTION_EXISTS=powf -std=gnu90 
-o CMakeFiles/cmTC_79c81.dir/CheckFunctionExists.c.o -c 
/gnu/store/gl26kr5v6ch5lc3ignly61kb224drijc-cmake-minimal-3.24.2/share/cmake-3.24/Modules/CheckFunctionExists.c
: warning: conflicting types for built-in function ‘powf’; 
expected ‘float(float,  float)’ [-Wbuiltin-declaration-mismatch]
/gnu/store/gl26kr5v6ch5lc3ignly61kb224drijc-cmake-minimal-3.24.2/share/cmake-3.24/Modules/CheckFunctionExists.c:7:3:
 note: in expansion of macro ‘CHECK_FUNCTION_EXISTS’
7 |   CHECK_FUNCTION_EXISTS(void);
  |   ^
/gnu/store/gl26kr5v6ch5lc3ignly61kb224drijc-cmake-minimal-3.24.2/share/cmake-3.24/Modules/CheckFunctionExists.c:1:1:
 note: ‘powf’ is declared in header ‘’
  +++ |+#include 
1 | #ifdef CHECK_FUNCTION_EXISTS
Linking C executable cmTC_79c81
/gnu/store/gl26kr5v6ch5lc3ignly61kb224drijc-cmake-minimal-3.24.2/bin/cmake -E 
cmake_link_script CMakeFiles/cmTC_79c81.dir/link.txt --verbose=1
/gnu/store/5lqhcv91ijy82p92ac6g5xw48l0lwwz4-gcc-11.3.0/bin/gcc  -fno-common 
-Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long 
-Wpointer-arith -Wundef -Wmissing-format-attribute -Wwrite-strings 
-Werror=implicit-function-declaration -DCHECK_FUNCTION_EXISTS=powf 
-Wl,--enable-new-dtags   CMakeFiles/cmTC_79c81.dir/CheckFunctionExists.c.o -o 
cmTC_79c81  
/gnu/store/hfx4i5fd1b7xxvq8k21cpj45r3asys95-lcms-2.13.1/lib/liblcms2.so
ld: CMakeFiles/cmTC_79c81.dir/CheckFunctionExists.c.o: undefined reference to 
symbol 'powf@@GLIBC_2.27'
ld: /gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/lib/libm.so.6: error 
adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_79c81.dir/build.make:100: cmTC_79c81] Error 1
make[1]: Leaving directory 
'/tmp/guix-build-krita-wayland-5.2.1.drv-0/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:127: cmTC_79c81/fast] Error 2

-- 
Best Regards,
Ignas Lapėnas





bug#69667: build of sway-1.9-checkout.drv failed

2024-03-19 Thread Ignas Lapėnas
It looks that contrib/grimshot was dropped from sway.

https://github.com/swaywm/sway/issues/7405

The contrib was moved to:
https://github.com/OctopusET/sway-contrib

It looks, that grimshot package will have to be updated.

-- 
Best regards,
Ignas Lapėnas





bug#69667: build of sway-1.9-checkout.drv failed

2024-03-19 Thread Ignas Lapėnas
Dropping this here, if anyone still needs it. Still looking how would I
go to send a merge request or a patch. Also as I see this might just be
a duplication of work with Isaac van Bakel. Sorry about that.

#+BEGIN_SRC Guile
(define-module (packages sway)
  #:use-module (guix packages)
  #:use-module (gnu packages base)
  #:use-module (guix download)
  #:use-module (guix build-system copy)
  #:use-module (guix git-download)
  #:use-module (gnu packages wm)
  #:use-module (gnu packages image)
  #:use-module (gnu packages web)
  #:use-module (gnu packages gnome)
  #:use-module (gnu packages xdisorg)
  #:use-module (gnu packages man)
  #:use-module (guix gexp)
  #:use-module (guix utils)
  #:use-module ((guix licenses) #:prefix license:))

(define-public grimshot
  (package
(name "grimshot")
(version "1.9-contrib.0")
(source (origin
 (method git-fetch)
 (uri (git-reference
   (url "https://github.com/OctopusET/sway-contrib;)
   (commit version)))
 (sha256
  (base32
   "16fa8l81zjy25nsky1i525hb7zjprqz74mbirm9b76pvksschdv5"
(build-system copy-build-system)
(arguments
 (list #:install-plan #~`(("grimshot" "bin/")
  ("grimshot.1" "share/man/man1/"))
   #:phases #~(modify-phases %standard-phases
(add-after 'chdir 'patch-script-dependencies
  (lambda* (#:key inputs #:allow-other-keys)
(substitute* "grimshot"
  
(("\\b(date|grim|jq|notify-send|slurp|swaymsg|wl-copy)\\b"
_ binary)
   (search-input-file
inputs (string-append "bin/" binary))
(add-after 'patch-script-dependencies 'build-man-page
  (lambda _
(with-input-from-file "grimshot.1.scd"
  (lambda _
(with-output-to-file "grimshot.1"
  (lambda _
(invoke "scdoc"))
(native-inputs (list scdoc))
(inputs (list coreutils
  grim
  jq
  libnotify
  slurp
  sway
  wl-clipboard))
(synopsis "Screenshot utility for the Sway window manager")
(description "Grimshot is a screenshot utility for @code{sway}.  It provides
an interface over @code{grim}, @code{slurp} and @code{jq}, and supports storing
the screenshot either directly to the clipboard using @code{wl-copy} or to a
file.")
(home-page "https://github.com/OctopusET/sway-contrib;)
(license license:expat)))
#+END_SRC scm

-- 
Best regards,
Ignas Lapėnas