From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EOtKCjVTWWH7XQEAgWs5BA (envelope-from ) for ; Sun, 03 Oct 2021 08:52:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id UMEGBjVTWWF3HAAA1q6Kng (envelope-from ) for ; Sun, 03 Oct 2021 06:52:37 +0000 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 aspmx1.migadu.com (Postfix) with ESMTPS id 4141A9F69 for ; Sun, 3 Oct 2021 08:52:36 +0200 (CEST) Received: from localhost ([::1]:57250 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWvMQ-0001bZ-Fs for larch@yhetil.org; Sun, 03 Oct 2021 02:52:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60488) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWvMG-0001bB-T9 for help-guix@gnu.org; Sun, 03 Oct 2021 02:52:24 -0400 Received: from mail-40131.protonmail.ch ([185.70.40.131]:11476) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWvME-0004ZN-9h for help-guix@gnu.org; Sun, 03 Oct 2021 02:52:24 -0400 Date: Sun, 03 Oct 2021 06:52:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1633243934; bh=qzxHN90Lv+TCzNX2Ioyqa5rWIPG9K7EmDhoo4mYG7NU=; h=Date:To:From:Reply-To:Subject:From; b=qco5jEusSayr8s+obiq2KyDnsgoU18bZ8s9PR3B4CpFAzjdN57Ne1URgJri44dMOV BrHGKyZ1cggUM9aT1lsPw4dnF1zW4dp/2whW2SAFlXOXTaEj4q3/OSZzEl5pqk9wmD /IEe4phPhBPvwoea9pd4oqmjoAlw8nCw5X2/cuxA= To: help-guix From: phodina Subject: Resources issue with glib-compile-resources Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.131; envelope-from=phodina@protonmail.com; helo=mail-40131.protonmail.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, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: phodina Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633243956; h=from:from:sender:sender:reply-to: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=qzxHN90Lv+TCzNX2Ioyqa5rWIPG9K7EmDhoo4mYG7NU=; b=j2z4/swx5XrLcsGo+FOxav1pOnvjJg2CisELbKbkoqOjF12j/FzLZSh7zG21P9WL3DvhBl NiSG08WTWo6R2KT2uoPk9U/MlzI0+W4JLJSynFwnh05MOVJ/RkbB0/kGV+K2I9EH96arCx csLZQvb7bwkNSiKDk9QR0Ewn+jw8VwZBNgbErH1XGXVS+hSDIkAHr82fpXP7MhfCoh/up2 RyjMw0UtBhftjJFIYhz5QI6O8znSHpksN1m3Qa761X8wGPX1LkP+34A58LtfuJUyso80l3 1HDFgVWsHepwGtyY8pU35xsTNP26gkQt3t/9rxNjpjbPRGVpTvcw1/sPUsarJw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633243956; a=rsa-sha256; cv=none; b=MuTK6lIf3Bl1vM2whqn61wFGrFVPCX2U0HhAsSclUtSk2XNQDKqtMJRMDYBEsCWAjL7CNc Vxo8BK9qHrd/ApddL4L89k4KNHVNBRKgbR38y7bwgD+sUEX/Re4XzyYQLrUfgzhBhWnwKw BulWMmhT+vBI3PWntYRVAUmkBg+o/LB/gyQs4B2jcKDSpSjHFklhRq2f18DobyvZK/qdYa bqYDAjlv3U9xZdfImWpLY0mqZAxeKbNnzV2DOkHrF+r/xcNNmsc0vUjpUlOPkfQpgn1Ktq yl/kg05rtf8JtMljmrgBkrMY3+UQnYF7I4V/jm8NfMUInLuiPXa5Ir2gjU+Gdw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=qco5jEus; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -4.00 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=qco5jEus; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 4141A9F69 X-Spam-Score: -4.00 X-Migadu-Scanner: scn1.migadu.com X-TUID: 8HZ0ub4RS3ZF Hi Guix, I'm struggling to build this package (patch provided below) and would like to ask for your ideas. The issue is that in Makefile we call glib-compile-resources to compile the resources. However, the path needs to be substituted otherwise the resources are not found when the app is launched. But by substituting the location the build phase fails as the glib-compile-resources command looks for the resources in the /gnu/store/xxxxx where the files are not yet present. The only solution I come up with is to install those files there before the build stage. What do you think? --8<---------------cut here---------------start------------->8--- >From 5b75a1733107268fe41207c32e714d60643b9714 Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Sat, 2 Oct 2021 15:58:53 +0200 Subject: [PATCH] gnu: Add pine-flasher. * gnu/packages/embedded.scm (pine-flasher): New variable. diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm index f388c11c3d..9b790b1aa5 100644 --- a/gnu/packages/embedded.scm +++ b/gnu/packages/embedded.scm @@ -43,12 +43,16 @@ #:use-module ((gnu packages base) #:prefix base:) #:use-module (gnu packages bison) #:use-module (gnu packages boost) + #:use-module (gnu packages curl) #:use-module (gnu packages compression) #:use-module (gnu packages cross-base) #:use-module (gnu packages dejagnu) #:use-module (gnu packages flex) #:use-module (gnu packages gcc) #:use-module (gnu packages gdb) + #:use-module (gnu packages glib) + #:use-module (gnu packages gnome) + #:use-module (gnu packages gtk) #:use-module (gnu packages guile) #:use-module (gnu packages libftdi) #:use-module (gnu packages libusb) @@ -60,6 +64,7 @@ #:use-module (gnu packages python-xyz) #:use-module (gnu packages swig) #:use-module (gnu packages texinfo) + #:use-module (gnu packages xml) #:use-module (gnu packages xorg) #:use-module (srfi srfi-1)) @@ -1217,6 +1222,74 @@ SPI, I2C, JTAG.") (home-page "https://hyvatti.iki.fi/~jaakko/pic/picprog.html") (license license:gpl3+))) +(define-public pinetime-flasher +(package + (name "pinetime-flasher") + (version "0.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/arteeh/pinetime-flasher") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1n5isqi2s4y69w80ymfwndyqxzqgp5aycimm27dpmsxnx3rxsx48")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; no test suite + #:phases + (modify-phases %standard-phases + (delete 'configure) + (add-before 'build 'fix-icon-location-chdir + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (icons (string-append out + "/share/icons/hicolor/scalable/apps"))) + (substitute* "src/pinetime-flasher.ui" + (("../build") icons)) + (substitute* "src/pinetime-flasher.gresource.xml" + (("../build") icons)) + (chdir "build") #t))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (share (string-append out "/share")) + (udev (string-append out "/lib/udev/rules.d")) + (udev-rule (string-append + (assoc-ref inputs "udev-rules") "/60-openocd.rules")) + (icons (string-append share "/icons/hicolor/scalable/ap= ps"))) + (mkdir-p bin) + (mkdir-p icons) + (mkdir-p share) + (mkdir-p udev) + (install-file "icon.png" icons) + (install-file "icon.svg" icons) + (install-file udev-rule udev) + (install-file "com.arteeh.Flasher.desktop" share) + (install-file "pinetime-flasher" bin))))))) + (native-inputs `(("glib" ,glib "bin") + ("libxml2" ,libxml2) + ("pkg-config" ,pkg-config))) + (inputs `(("curl" ,curl) + ("gtk+" ,gtk+) + ("libhandy" ,libhandy) + ("stlink" ,stlink) + ("udev-rule" + ,(origin + (method url-fetch) + (uri (string-append "https://sourceforge.net/p/openocd= " + "/code/ci/master/tree/contrib/60-openocd.rules?format= =3Draw")) + (sha256 + (base32 + "1xvgpk6nzd6kp86sh240iqk122yqbarhwi6s6js98zfj431= 90sn0")))))) + (synopsis "Flashing app for PineTime") + (description "Pinetime Flasher provides a GTK app for easily flashing +the Pinetime smartwatch with an ST-Link.") + (home-page "https://github.com/arteeh/pinetime-flasher") + (license license:expat))) + (define-public fc-host-tools (package (name "fc-host-tools") -- 2.32.0