From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IEN0KA1v/GDzNgEAgWs5BA (envelope-from ) for ; Sat, 24 Jul 2021 21:50:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id SK4DJA1v/GDMWgAAB5/wlQ (envelope-from ) for ; Sat, 24 Jul 2021 19:50: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 CB5D51FD2B for ; Sat, 24 Jul 2021 21:50:36 +0200 (CEST) Received: from localhost ([::1]:59032 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m7NfP-0002Nt-TW for larch@yhetil.org; Sat, 24 Jul 2021 15:50:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52180) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7Nf4-0002Nh-Cb for help-guix@gnu.org; Sat, 24 Jul 2021 15:50:14 -0400 Received: from freeshell.de ([2a01:4f8:231:482b::2]:34590) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7Nf0-0000io-Md for help-guix@gnu.org; Sat, 24 Jul 2021 15:50:14 -0400 Received: from localhost (cst-prg-19-171.cust.vodafone.cz [46.135.19.171]) (Authenticated sender: wz) by freeshell.de (Postfix) with ESMTPSA id 818D4B2C24EB; Sat, 24 Jul 2021 21:50:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freeshell.de; s=mail; t=1627156207; bh=hJ6RXZbndVGLtG0oGpj9UVbF06gbCyDs52M3vijWFlM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Oj23HNhvrCi8d5eFUm5v+3q/P+Ax7IZ8kQH1jTTmXKvmt5BxAsLeZwWybrfBW8eta ExGPTyfQciwr573SeteXRFJzXrYWA5OkPL94d5cSCuZICAJ/FYBGpQbOrUlm2rkz26 pDQb1+/Bou7jBsr96z60WvH8XYfZPBGmoR+T8Ftk= Date: Sat, 24 Jul 2021 21:50:06 +0200 From: Wiktor =?utf-8?Q?=C5=BBelazny?= To: phodina Subject: Re: Packaging hwinfo Message-ID: <20210724195006.apz7gnznfnlwk5mn@wzguix> Mail-Followup-To: phodina , help-guix@gnu.org X-PGP-Key: https://freeshell.de/~wz/pubkey.asc X-PGP-Fingerprint: BDC9 74CD D9C9 BA7D 761A 573D C735 A8C6 AB60 79D5 References: <20210724174430.pqcwdndxqljm34bl@wzguix> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ofrqg6crlbarv7ob" Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=2a01:4f8:231:482b::2; envelope-from=wz@freeshell.de; helo=freeshell.de 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, 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: , Cc: help-guix@gnu.org 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=1627156237; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=hJ6RXZbndVGLtG0oGpj9UVbF06gbCyDs52M3vijWFlM=; b=IBN/jfA5Wj3uknojsgF4XMa8Y3K+Gxdpx7/usnVyi9JQODAsh90msyHnKkKkjzVunSH3SC NtxJ672sQMpK/FHBHfXbQus2t6I+v+o5t7afXoYCxgPG5fWcgOT3SjNja22Loj7ZshycLH X/ySTjQMHaXCAQviWgT6N1f+H9BMYOIthwy4mVRqPNqNoer7NF8D9pBZxBZGrTjM+X6z6x dEjrPfExbPhgmAtdVsz+Qn+DAT4yt1a2nQsLTtKJJ/11/Zaqlc8i5ywNM5I4RkVQyQGRZx 1xJtIoU/uPFZkxEbwkURWQewE941mH1do/DnfpqcNWJneVkxKS66CVer5nnNcg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627156237; a=rsa-sha256; cv=none; b=rka0yfE+rMryti1LfMhpgpDFYe/CIVa/y726eLGtURJpzvcWCTBcJAaCoYIOKkI9Eqhmqx 5SBnKPMfL+q72gSzmivVvXxs49r+AJqEhIfwhAt+zUCg5y5VbVI6B1BVRdWZ9iWwOtAv5q D2uoYUtYqIumdgB9amTwqTfj/EO6kxkLXA5+DN6xLmEjvQ55xInEojXVVu4uLkzcFNPA+K LhkbanlkqgsYL/v/9WgWvtipfq0vMO3RjwUyQIuHp10aloWGdTr8zWUJu00Mpe+1wzsasU dXEwMWgxEKeNeW6bonoKXBtSoaJ9tAn2l81EnLxh+KNCI3X/vJW/Rm9d3toTSw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=freeshell.de header.s=mail header.b=Oj23HNhv; 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.72 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=freeshell.de header.s=mail header.b=Oj23HNhv; dmarc=pass (policy=none) header.from=freeshell.de; 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: CB5D51FD2B X-Spam-Score: -4.72 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1gi6DpbQsPVC --ofrqg6crlbarv7ob Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 24, 2021 at 06:20:18PM +0000, phodina wrote: > > CFLAGS+=3D"-fPIC -I$srcdir/$pkgname/src/hd -w" \ > > > > Could it be related to libhd? > > Yes, this is due to the libhd. I probably didn't hightlight it in the > description. You described the problem very clearly, IMO. As =E2=80=9Cit=E2=80=9D, I mea= nt that line =66rom PKGBUILD. > As you suggested I already had look at Arch (previous user). > > I built it successfully on Arch using the PKGBUILD. Using pacman or abs, you mean? Can you build it from source by hand on Guix? > I applied this flag but the build is still failing. Did you apply it while attempting to build hwinfo by hand? As for your Guix package definition, I can see some substitution there. I would try CFLAGS. Maybe you will find inspiration in the existing Guix packages: $ grep FLAGS=3D-I gnu/packages/*.scm gnu/packages/astronomy.scm: (string-append "CPPFLAGS=3D= -I" netpbm "/include/netpbm") gnu/packages/audio.scm: #:make-flags (list (string-append "CFLAGS= =3D-I" gnu/packages/audio.scm: (list (string-append "-DCMAKE_CXX_FLAGS=3D= -I" gnu/packages/cobol.scm: (string-append "JS= ON_C_CFLAGS=3D-I" gnu/packages/emulators.scm: (list (string-append "CPPFLAGS=3D-I"= (assoc-ref %build-inputs "sdl2") gnu/packages/fabric-management.scm: (list (string-append "CPPFLAGS= =3D-I" (assoc-ref %build-inputs "opensm") gnu/packages/game-development.scm: (list (string-append "CFLAGS=3D= -I" gnu/packages/games.scm: (list (string-append "CXXFLAGS=3D-I" gnu/packages/games.scm: (list (string-append "CPPFLAGS=3D-I" gnu/packages/games.scm: (list (string-append "CPPFLAGS=3D-I" gnu/packages/games.scm: (list (string-append "CPPFLAGS=3D-I" gnu/packages/games.scm: (list (string-append "CFLAGS=3D-I" gnu/packages/games.scm: (string-append "CXXFLAGS=3D-I" gnu/packages/games.scm: (string-append "READLINE_CFLAGS=3D-I" gnu/packages/games.scm: (string-append "SDL_CPPF= LAGS=3D-I" gnu/packages/guile-xyz.scm: (list (string-append "CPPFLAGS=3D-I" gnu/packages/image.scm: (string-append "CFLAGS=3D-I. -Icommo= n/include -Iimage/sys -fPIC " gnu/packages/image.scm: (string-append "-DCMAKE_CXX_FLAGS= =3D-I" gnu/packages/image-viewers.scm: (string-append "CPPFLAGS=3D-= I" gnu/packages/kde-frameworks.scm: (list (string-append "-DCMAKE_CXX= _FLAGS=3D-I" gnu/packages/kde-multimedia.scm: (list (string-append "-DCMAKE_CXX= _FLAGS=3D-I" gnu/packages/kde-multimedia.scm: "-DCMAKE_CXX_FLAGS=3D-I" gnu/packages/kde.scm: (string-append "-DCMAKE_CXX_FLAGS=3D-I" gnu/packages/libreoffice.scm: (("GPGMEPP_CFLAGS=3D-I/usr") gnu/packages/libreoffice.scm: (string-append "GPGMEPP_CFL= AGS=3D-I" gnu/packages/libusb.scm: (string-append "ID3TAG_CFLAGS=3D-I" li= bid3tag "/include") gnu/packages/linux.scm: (string-append "libuuid_CFLAGS=3D-I" li= buuid "/include/uuid") gnu/packages/linux.scm: (string-append "libblkid_CFLAGS=3D-I" l= ibuuid "/include/uuid " gnu/packages/maths.scm: (string-append "CP= PFLAGS=3D-I" gnu/packages/messaging.scm: (string-append "CFLAGS=3D-I" gnu/packages/networking.scm: (string-append "CFLAGS=3D-I" gnu/packages/photo.scm: (string-append "-DCMAKE_CXX_FLAGS=3D-I" gnu/packages/qt.scm: (string-append "-DCMAKE_CXX_FLAGS=3D-I" gnu/packages/raspberry-pi.scm: "CFLAGS=3D-I../= common -I../notc/include")))) gnu/packages/raspberry-pi.scm: "CFLAGS=3D-Ilib= -I. -Iinclude -ffunction-sections -Wall -g -nostdlib -nostartfiles -ffrees= tanding -DBAREMETAL")))) gnu/packages/raspberry-pi.scm: "CFLAGS=3D-Iinc= lude -g")))) gnu/packages/search.scm: "CPPFLAGS=3D-I..= /src" gnu/packages/telephony.scm: ,(string-append "UCOMMON_CF= LAGS=3D-I" gnu/packages/telephony.scm: ,(string-append "LIBOSIP2_C= FLAGS=3D-I" gnu/packages/telephony.scm: ,(string-append "EXOSIP2_CF= LAGS=3D-I" gnu/packages/video.scm: (string-append "CPPFLAGS=3D-I" gnu/packages/virtualization.scm: (string-append "CFLAGS=3D-= I" (assoc-ref inputs "cross-libc") gnu/packages/web.scm: (string-append "liblua_CFLAGS=3D-I" lua "= /include") gnu/packages/xiph.scm: `(#:configure-flags (list (string-append "CFL= AGS=3D-I" > Besides I also opened an issue on [1] though nobody probably even > noticed :-( I=E2=80=99m not sure if anyone there is going to be excited about working o= n an issue which is Guix-specific. Some months ago, someone on this list wrote =E2=80=9Cdon=E2=80=99t bother upstream=E2=80=9D. Bye, W=C5=BB --ofrqg6crlbarv7ob Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAABCgB9FiEEvcl0zdnJun12Glc9xzWoxqtgedUFAmD8bu5fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEJE Qzk3NENERDlDOUJBN0Q3NjFBNTczREM3MzVBOEM2QUI2MDc5RDUACgkQxzWoxqtg edX8qw//ZgbP0AdpmsVYmsP5aFQnzILNaRb776O9322SUBCZ01Q3u0ZkuTbTVrxN ld9xe1TNozXBbO3xvkTwNvFecitROJ6e5/oh6f31sApXb6DaBkbyCPwoByM1rI7X HBF3Uq/v7Q7MzZJy9nFAswueY7qVB+Hm2QJIpceSMNtRyf6nbMxDs+b0LhkLEIKc 27pVkweqZ6ZYvIqDsOMyeyaJCnmuaeLu/P7dYxtglDJ1NLHvR0kMI+THahBMgo2a Q52tJdTkPgJh5+4SbEy/vxzTaHjCvUWo4jKjD0yaW1LmB6+G1KvW5Feg8UJX3hJI YAdVVOIZMPZv/uxpBnJU88x8jsMoyc+xUQoHZJPBF/J93cgnNgfFvuZ9a03nHVMx B8V7klPmBJGkhyO724qYpbfQBGnWeXaonoyUVH8C9fj2evMbC4cKZ5aXBH/d6TNP zl9eNi909zTofKcP8HZnC44KMvlIE7V7xit3fPwqECDOvhDC0OhVoc9HBe1EpZsp VCSAjg4UEAnMaewL+FcpRgR5MjFHJzU2/gzmoED3BJI4WN8AWKAk7l0lJHAmbK5E +YSKoGaaLzBVdk3a1W59FAAhNNHLov8elUQb0GCcV8hud/GAgJx5xuOXOPlrUWfE gfE1PTfVevt7i1ckJwZbj/K7YaiyCI5F49TePwGKDirrbY3GepU= =46uQ -----END PGP SIGNATURE----- --ofrqg6crlbarv7ob--