From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cL+gNE04/GBQ3QAAgWs5BA (envelope-from ) for ; Sat, 24 Jul 2021 17:57:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iOpIME04/GA5OQAAB5/wlQ (envelope-from ) for ; Sat, 24 Jul 2021 15:57:01 +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 5108F218D0 for ; Sat, 24 Jul 2021 17:57:01 +0200 (CEST) Received: from localhost ([::1]:35186 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m7K1L-0008DT-EU for larch@yhetil.org; Sat, 24 Jul 2021 11:56:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52586) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7K1A-0008DI-5j for help-guix@gnu.org; Sat, 24 Jul 2021 11:56:48 -0400 Received: from mail-40134.protonmail.ch ([185.70.40.134]:39163) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7K17-0002Nt-Dt for help-guix@gnu.org; Sat, 24 Jul 2021 11:56:47 -0400 Date: Sat, 24 Jul 2021 15:56:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1627142195; bh=DJu+9f2OSrn6UoK0KP3XnwqBm0iPc39XtOKs6eL//dY=; h=Date:To:From:Reply-To:Subject:From; b=Ul2L1RbLIJgQiMtc53OwnDju5Hpw2fWWngwYEa4ZjORg3O9An4AkgZZErSsloXG3S uY0iLp5Gcx74l1ni+2jqQMoZvvRhz8tfk+if7iKsCUkiMfKisyXHkRuHfG8ot+HYow 5PIaBL5dhi3+gG0h/TNWUudMyeL/95pvDtLJUKCM= To: "help-guix@gnu.org" From: phodina Subject: Packaging hwinfo 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.134; envelope-from=phodina@protonmail.com; helo=mail-40134.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=1627142221; 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=DJu+9f2OSrn6UoK0KP3XnwqBm0iPc39XtOKs6eL//dY=; b=dlFKnaiYKO687Wh0qynSwd5n9313phTi99UGApz/XedatOYMZ2Mfv7jveUtUGaUcHAV9PW 5jyxh0h5SoPKUrENzsKRmK5jj42JKADnKPtRL1NmXobmKU/1H+nNuefBlmc5O725Wa1V1e 9ctpmj/IY+3cdaBLS9RsLggWL9ayyzvS2AANyl/uit4clqLECxTPkwSx1ufMpEfNkUFEeZ vZ5YvQfGAIspFPxE5F7H/A2n3gJ/XKEcbom400VemjBxxtre3BgVrXu0M4lbUL0/HgGjWq 05WC4foS4rZODJ6aMC34Rjj6dxvtLejWYrgKeZbUQpDOHysuKKOJoP06oSjZ6Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627142221; a=rsa-sha256; cv=none; b=O6oOpdcdCzvF0GmrWcqNssSQa35I1UzI14QYOeC3mlOUe4fM3YzERFapi4SK0injf4fNTU 0/DaZC/XFguRthNFwfkRVIwYvxYcF1z6yLZ3mA4aSLAfnAAIBNgpvrJ5VDiPnp2CG+PVT5 XG+RaBC6xJWsLvFPi7N9FUDCLZIUy3ZUNuJOQjyiqMWEGDfRTloQZo8pKKZVKjv5NfRgw1 xRzPl3dzixg0vsP3wbk4sJZ9H3KQQ0toc/8DglCl0qe+16j7ZLZrSC6HcDAtzjPktg4d/K ZUuRg7L3/nfoz35SFD4LoYCRRq3DAoSqIVKM8wfnswBooEugKr+r/0z6MCeqbw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=Ul2L1RbL; 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: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=Ul2L1RbL; 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: 5108F218D0 X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7iFeK4N3G5WU Dear All, I'm attempting to package hwinfo which gathers HW information about the mac= hine. You'll find the package definition attached below together with the definit= ion for libx86emu. The issue I'm currently facing is that the libhd which is inside the repo i= s not detected by Makefile: starting phase `build' gcc -c -O2 -Wall -Wno-pointer-sign -pipe -g -I/tmp/guix-build-hwinfo-21.7= 5.drv-0/source/src/hd -Lsrc hwinfo.c make: *** No rule to make target '/tmp/guix-build-hwinfo-21.75.drv-0/source= /src/libhd.a', needed by 'hwinfo'. Stop. The build continues but obviously fails when linking the final binary toget= her. Does anybody have an idea how to tell make where to find the target? Kind regards Petr --- (define-public libx86emu (package (name "libx86emu") (version "3.1") (source (origin (method git-fetch) (uri =09 (git-reference =09=09(url "https://github.com/wfeldt/libx86emu") =09=09(commit version))) =09 (file-name (git-file-name name version)) (sha256 (base32 "104xqc6nj9rpi7knl3dfqvasf087hlz2n5yndb1iycw35a6j509b")))) (build-system gnu-build-system) (native-inputs `(("git" ,git) ("perl" ,perl))) (arguments `(#:tests? #f #:make-flags (list (string-append "CC=3D" ,(cc-for-target)) (string-a= ppend "DESTDIR=3D" %output) (string-append "LIBDIR=3D/lib")) #:phases (modify-phases %standard-phases =09=09(delete 'configure) =09=09(add-after 'unpack 'fix-version-and-usr (lambda* (#:key inputs #:allow-other-keys) =09 (delete-file "git2log") =09=09 (let* ((file (open-file "VERSION" "a"))) =09=09=09(display ,version file) =09=09=09(close-port file)) (substitute* "Makefile" (("/usr") "/")) =09=09 #t))))) (synopsis "x86 emulation library") (description "libx86emu is a small library to emulate x86 instructions. T= he focus here is not a complete emulation (go for qemu for this) but to cov= er enough for typical firmware blobs. @enumerate @item intercept any memory access or directly map real memory ranges @item intercept any i/o access, map real i/o ports, or block any real i/o @item intercept any interrupt @item provides hook to run after each instruction @item recognizes a special x86 instruction that can trigger logging @item has integrated logging @end enumerate") (home-page "https://github.com/wfeldt/libx86emu") (license license:bsd-1))) (define-public hwinfo (package (name "hwinfo") (version "21.75") (source (origin (method git-fetch) (uri =09 (git-reference =09=09(url "https://github.com/openSUSE/hwinfo") =09=09(commit version))) =09 (file-name (git-file-name name version)) (sha256 (base32 "139bgzwi8iy1dz0g8mqpq9iig8klsmnb5c2sp0v7qgbgh7xxnqn3")))) (build-system gnu-build-system) (native-inputs `(("flex" ,flex) ("perl" ,perl) ("pkg-config" ,pkg-config)= )) (inputs `(("libx86emu" ,libx86emu) ("util-linux:lib" ,util-linux "lib"))) (arguments `(#:tests? #f #:make-flags (list (string-append "DESTDIR=3D" %output) (string-appen= d "CC=3D" ,(cc-for-target)) (string-append "HWINFO_VERSION=3D" ,version) (s= tring-append "LIBDIR=3D" (assoc-ref %outputs "out") "/usr/lib")) #:phases (modify-phases %standard-phases =09=09(delete 'configure) =09=09(add-after 'unpack 'fix-sbin-and-flex (lambda* (#:key inputs #:allow-other-keys) =09 (delete-file "git2log") =09=09 (let* ((file (open-file "VERSION" "a"))) =09=09=09(display ,version file) =09=09=09(close-port file)) (substitute* "Makefile.common" (("-I$(TOPDIR)/src/hd") (string-append (assoc-re= f build-inputs "source") "/src/hd"))) (substitute* "Makefile" (("/sbin") "/bin") =09=09=09 (("^TARGETS.*") "TARGETS =3D hwinfo hwinfo.pc\n") =09=09=09 (("/usr") "/")) =09=09 (substitute* "src/isdn/cdb/Makefile" =09=09=09 (("lex isdn_cdb.lex") "flex isdn_cdb.lex")) =09=09 (substitute* "hwinfo.pc.in" =09=09=09 (("prefix=3D/usr") (string-append "prefix=3D" %output))) =09=09 #t))))) (synopsis "Hardware information tool") (description "hwinfo/libhd are used to probe for the hardware present in = the system. It can be used to generate a system overview log which can be l= ater used for support.") (home-page "https://github.com/openSUSE/hwinfo") (license license:gpl2)))