From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id AOljK+3hGGSISgEASxT56A (envelope-from ) for ; Mon, 20 Mar 2023 23:45:01 +0100 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id ELkzK+3hGGRnJAEAauVa8A (envelope-from ) for ; Mon, 20 Mar 2023 23:45:01 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx2.migadu.com (Postfix) with ESMTPS id 46B5039857 for ; Mon, 20 Mar 2023 23:45:01 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peOEu-0003rJ-J6; Mon, 20 Mar 2023 18:44:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1peOEs-0003r9-Nf for help-guix@gnu.org; Mon, 20 Mar 2023 18:44:26 -0400 Received: from mail-4323.proton.ch ([185.70.43.23]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1peOEo-0005Uv-91 for help-guix@gnu.org; Mon, 20 Mar 2023 18:44:26 -0400 Date: Mon, 20 Mar 2023 22:44:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elenq.tech; s=protonmail; t=1679352257; x=1679611457; bh=TLqUKU7lNBrNV5zpNO4GeZQa7q6d2VcQtq4NnjTL6lg=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=B+hpiYOdiI3LQ4znMXwmSKdmc9GvPeG6d3VT91bM8tguZQ+wE2Bc0r9ZWd5cdaBSw GQL+b15/WzH+yE5WK/QJwVqHe0JPBSoYQNBXOSzKutOsOiKt+E6kVa0rmzWcAYbvOt BRgKrtNCGXrQgWWPxSx0kJRAy7cAEf3BPpf+u2uWVWjtExj6yh1E/0yY9NjQE6e8IL qSfEm2s/VutSe5GKACCISpa/balnzkKjVGIM9VAHKWZtP0nI3/cSFwkkMA52EeCt+6 umvfk6L3/zmLN4yabMWG6pNrJYdMr93/Zjc9w/jjKDJPFxrjLFEiuvhjpVBux90Ag4 863Mld1IeRJPg== To: "help-guix\\@gnu.org" From: Ekaitz Zarraga Subject: Need help packaging IUP (part 1: IM) Message-ID: Feedback-ID: 3263582:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.23; envelope-from=ekaitz@elenq.tech; helo=mail-4323.proton.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679352301; a=rsa-sha256; cv=none; b=iNpquJ/0aBmbjAPmaBGXO7Iw51brlgVtFvbhuQMndYvCzzvg0l53GQuyVcCvt6cfJ35uAe NJaty39we+2U8MbdnVyqnGqgXfEFNrAhIj4zRVksVr5DTeo9JBS06f2WE9ew7wzNjnjCY5 zr4cEqR8xPo8bjyNejn4e6Xmv0zbY1R/HbZk9nC+HQxMOIKJ62VGkgLdktNZEi74iWof9H B/CLmmQjQnYYuuPgy2j7G8B14glzG8YlzSoE1vbcO8EX+nqWi/ceqpjj7f3bvUASS5Y3E9 jBiiH39UbJFIP7HGYPziaEkkm9WsDd3fl/amju4c8ZQTFvhi9Pz18FS+qRJEIQ== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=pass header.d=elenq.tech header.s=protonmail header.b=B+hpiYOd; dmarc=pass (policy=none) header.from=elenq.tech; spf=pass (aspmx2.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679352301; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=TLqUKU7lNBrNV5zpNO4GeZQa7q6d2VcQtq4NnjTL6lg=; b=If15e8S5izAqoBYIBtjwZdQ5Xi6L2KIs695bejFPd8fLKz/jAObj2otllVq27is/tM3mtd ZqEzpvCy75loIOKUs4wiaSx2l0wGDGnm5aWY166tQf+G8Z2uOPZ7LlYkGaePFwgKb0FfLL /imoNVEV9XGbZ2Hwn+wmu1/miCf+2TPuGIDyHjhDX2rlumOO3KGuzdGb5FMUv2SIQx1y5U KHoYxOyiK9+NlTtKR4I1VnS7RIPW6tOoXP7A7/pt/m3PtaqSjuFc40SieVfwnx9OziWHYW r1m2PVIxmu/SXBS5qVIe7doCBkGcO5EABL0sX2isGY9WLiOJ8M63wKaGYSvWXw== X-Migadu-Spam-Score: -4.25 X-Spam-Score: -4.25 X-Migadu-Queue-Id: 46B5039857 Authentication-Results: aspmx2.migadu.com; dkim=pass header.d=elenq.tech header.s=protonmail header.b=B+hpiYOd; dmarc=pass (policy=none) header.from=elenq.tech; spf=pass (aspmx2.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn1.migadu.com X-TUID: zptllxpLDxZj Hi, I'm trying to package IUP (https://www.tecgraf.puc-rio.br/iup/) and I'm alr= eady stuck on the first package :) They have a pretty wild general Makefile but I think I'm managing to deal w= ith it. The main problem I have now is the RUNPATH is not set properly. If I keep t= he RUNPATH validation phase it fails. I tried several ways to add it but I didn't manage to fix it. I leave my current package description below. Thanks for your help! Cheers, Ekaitz PS: Also, anyone has a suggestion on how can I transform the phases to turn= then something like: (add-build-phase "im_jp2") =3D> (add-before build' build-im_jp2 (lambda _ (= invoke ...))) I tried with a simple function but the the quoting killed all my hopes and = I'm not good with macros (yet). --- (define-module (iup) #:use-module (guix packages) #:use-module (guix gexp) #:use-module (gnu packages) #:use-module ((gnu packages base) #:prefix base:) #:use-module (gnu packages algebra) #:use-module (gnu packages commencement) #:use-module (gnu packages gl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages fontutils) #:use-module (gnu packages glib) #:use-module (gnu packages gtk) #:use-module (gnu packages image) #:use-module (gnu packages lua) #:use-module (gnu packages xorg) #:use-module (guix download) #:use-module (guix build utils) #:use-module (guix build-system gnu) #:use-module (guix build-system cmake) #:use-module ((guix licenses) #:prefix license:)) (define-public im (package (name "im") (version "3.15") (source (origin (method url-fetch) (uri (string-append "https://sourceforge.net/projects/imtoolkit/files/" version "/Docs%20and%20Sources/im-" version "_Sources.tar.gz")) (sha256 (base32 "1c5p8j7sw3r7kmkd4qa49zmh3dlp5zszp2sagi71aqjq84pngp= 40")))) (inputs (list base:which libpng fftw fftwf)) (build-system gnu-build-system) (arguments (list #:tests? #f #:validate-runpath? #f ;; FIXME: Fix the runpath!! #:phases #~(modify-phases %standard-phases (add-before 'configure 'set-ldflags ;; FIXME: LDFLAGS don't work, so the runpath is broken (lambda _ (setenv "LDFLAGS" (string-append "-Wl,-rpath=3D" #$output "= /lib")))) (delete 'configure) ;; Left lua-related libs out of the mix for the moment as they ;; have some build errors and I don't need them yet. (add-before 'build 'cd (lambda _ (chdir "src"))) (add-before 'build 'build-im (lambda _ (invoke "make" "im"))) (add-before 'build 'build-im-jp2 (lambda _ (invoke "make" "im_jp2"))) (add-before 'build 'build-im-process (lambda _ (invoke "make" "im_process"))) (add-before 'build 'build-im-process-omp (lambda _ (invoke "make" "im_process_omp"))) (add-before 'build 'build-im-fftw3 (lambda _ (invoke "make" "im_fftw3"))) (delete 'build) (replace 'install (lambda* (#:key outputs #:allow-other-keys) (let* ((include (string-append #$output "/include")) (lib (string-append #$output "/lib"))) (mkdir-p include) (mkdir-p lib) (copy-recursively "../include" include) (invoke "find" "../lib" "-exec" "cp" "{}" lib ";"))))))) (home-page "https://www.tecgraf.puc-rio.br/im") (synopsis "IM is a toolkit for image representation, storage, capture a= nd processing") (description "The main goal of the library is to provide a simple API a= nd abstraction of imaging for scientific applications. The most popular file formats are supported: TIFF, BMP, PNG, JPEG, GIF and AVI. Image representat= ion includes scientific data types, and about a hundred Image Processing operat= ions are available.") (license license:expat)))