From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id eIFyFuchtV4/NgAA0tVLHw (envelope-from ) for ; Fri, 08 May 2020 09:09:59 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id uLr7NvMhtV6UXgAAbx9fmQ (envelope-from ) for ; Fri, 08 May 2020 09:10:11 +0000 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:470:142::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 B22C6940039 for ; Fri, 8 May 2020 09:10:09 +0000 (UTC) Received: from localhost ([::1]:37158 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jWz1F-0000Nm-4U for larch@yhetil.org; Fri, 08 May 2020 05:10:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56300) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWz18-0000Ng-Uo for bug-guix@gnu.org; Fri, 08 May 2020 05:10:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33046) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jWz18-0007gQ-LZ for bug-guix@gnu.org; Fri, 08 May 2020 05:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jWz18-0001Eg-FD for bug-guix@gnu.org; Fri, 08 May 2020 05:10:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#41120: uvesafb service is unsupported on aarch64 Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 08 May 2020 09:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41120 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: "pelzflorian \(Florian Pelz\)" Received: via spool by 41120-submit@debbugs.gnu.org id=B41120.15889289544684 (code B ref 41120); Fri, 08 May 2020 09:10:02 +0000 Received: (at 41120) by debbugs.gnu.org; 8 May 2020 09:09:14 +0000 Received: from localhost ([127.0.0.1]:44592 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jWz0L-0001DT-RD for submit@debbugs.gnu.org; Fri, 08 May 2020 05:09:14 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:40100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jWz0K-0001DH-7V for 41120@debbugs.gnu.org; Fri, 08 May 2020 05:09:12 -0400 Received: by mail-wm1-f68.google.com with SMTP id u16so9766287wmc.5 for <41120@debbugs.gnu.org>; Fri, 08 May 2020 02:09:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=XPe1UQW2O+kRVWRBKCbYPhSpii+Aqhjik61zTMpGH10=; b=UKsuKkqm53zMen6RKBjM7aYbXt21i3Yd/eu7ZSJAJyDq/JMSkxU9qhn5eNj+W3GE7B y87gIvzup20R+kiT3zlTuBFt2bUnoqGBb6C/agEwuAUqtOHLbR/DZurvFx7p+ltPjOEe 5G6WBawBAZfZrc8TcUfZsBqZD1wK+yMse5uPSxiIWLJ+p1cBJP0uHeNKgLxvbYLoBaj7 g8ULKYi6aixWbjHYb4jjK9LVC1GVppDEf3Da0GyTT+/O+a5p5xkMjjDy7PxnRTdB9om0 tkpMsxUk6E+vXSDJTShWXTQLZuSP4F0g1qdruqKIUrJafxzrCivDEBv9yn1LClzbTAX6 sI1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=XPe1UQW2O+kRVWRBKCbYPhSpii+Aqhjik61zTMpGH10=; b=hgYkFM9JaYSH8D0naQqj2zkopXGCo2QT/Tb6fVI4He6udHLqI+TXTgUPKEQVj4egiB S2c3v2c0qamn9o08DAgB+O2TLAVt6xyaWuqcYOhGRRRQtsDzsVqQF6yhgJ/kaK+wH8UU QK38p4uccJXbCaVDpO11zYRTTwIsrAteKcVlwZEz9YGKIPDqLJ47bSgbQ6qcVLwPUmo7 bERQBaeVmBiTtxtJf/NPT6TXw9TQ4qZPrd4AdJ3iOpYyW/WUfRin6L+8VslbgntQqPCZ ew4NNG8KVon9VvlZdf30ukURiptjoXUIixaasKj7uXVgVjb2cuDjXA2Knl2Pz6Kdav3i 0Pjw== X-Gm-Message-State: AGi0PuYC+KVjbja3yXE76BtAST5CAfeanEk3fH93HysXpdxn+Ja5FBmG 7eIv0tXitso71BFUAnPvqxc= X-Google-Smtp-Source: APiQypKnpRbaNgSY3j5+IvGAXQBziq1Cc4Ri67yrpB+X0aQlMkhrselMSpIeuROm2TB43YJsJDcDrg== X-Received: by 2002:a1c:4e12:: with SMTP id g18mr14869064wmh.11.1588928946241; Fri, 08 May 2020 02:09:06 -0700 (PDT) Received: from cervin ([2a01:cb18:832e:5f00:d130:8dab:4aff:8b2]) by smtp.gmail.com with ESMTPSA id q187sm12389777wma.41.2020.05.08.02.09.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 May 2020 02:09:04 -0700 (PDT) From: Mathieu Othacehe References: <20200507054015.GG2359@E5400> <87wo5ody1e.fsf@gmail.com> <20200507081234.GJ2359@E5400> <20200507145511.zfw5474uzecs2oum@pelzflorian.localdomain> <20200507145801.nmedsi44wtparffh@pelzflorian.localdomain> Date: Fri, 08 May 2020 11:09:03 +0200 In-Reply-To: <20200507145801.nmedsi44wtparffh@pelzflorian.localdomain> (pelzflorian@pelzflorian.de's message of "Thu, 7 May 2020 16:58:01 +0200") Message-ID: <875zd6lro0.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 41120@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 X-Spam-Score: 0.09 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=UKsuKkqm; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 2001:470:142::17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Scan-Result: default: False [0.09 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.49894896233737]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:142::/48:c]; R_DKIM_REJECT(1.00)[gmail.com:s=20161025]; DWL_DNSWL_FAIL(0.00)[2001:470:142::17:server fail]; FREEMAIL_FROM(0.00)[gmail.com]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.10), country: US(-0.00), ip: 2001:470:142::17(-0.50)]; DKIM_TRACE(0.00)[gmail.com:-]; RCPT_COUNT_TWO(0.00)[2]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_IN_DNSWL_FAIL(0.00)[2001:470:142::17:server fail]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:22989, ipnet:2001:470:142::/48, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; ARC_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[mothacehe@gmail.com,bug-guix-bounces@gnu.org]; FROM_HAS_DN(0.00)[]; URIBL_BLOCKED(0.00)[gnu.org:url]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[41120@debbugs.gnu.org]; HAS_LIST_UNSUB(-0.01)[]; RCVD_COUNT_SEVEN(0.00)[9]; FORGED_SENDER_MAILLIST(0.00)[]; DMARC_POLICY_SOFTFAIL(0.10)[gmail.com : SPF not aligned (relaxed),none] X-TUID: CZhZjrvBC+9s Hello, Thanks for working on that Florian & Efraim. > + (if (and (string-suffix? "linux-gnu" %host-type) > + (or (string-prefix? "x86_64" %host-type) > + (string-prefix? "i686" %host-type))) > + #~(lambda () > + ;; uvesafb is only supported on x86 and x86_64. > + (or (file-exists? "/dev/fb0") > + (invoke #+(file-append kmod "/bin/modprobe") > + "uvesafb" > + (string-append "v86d=" #$v86d "/sbin/v86d") > + "mode_option=1024x768"))) > + #~(lambda () #t))) > (respawn? #f) > (one-shot? #t)))) The issue with using %host-type at build time is that it won't support system build with --system and --target. For instance if cross-compiling for aarch64-linux-gnu on a x86_64 system, %host-type will be "x86_64-..." and we will try to build v86d for aarch64. We could maybe do something like that: --8<---------------cut here---------------start------------->8--- (define (operating-system-hardware-specific-services) #~(let-system (system target) (cond ((target-arm? system target) '()) ((target-intel? system target) (list uvesafb-shepherd-service))))) (define (operating-system-kernel-specific-services) #~(let-system (system target) (cond ((target-linux? system target) linux-specific-services) ((target-hurd? system target) hurd-specific-services)))) --8<---------------cut here---------------end--------------->8--- This way, uvesafb-shepherd-service would be built and installed only when producing a system targeting an Intel CPU. We could also extend this mechanism to have kernel specific services. That would mean, we need to dig out Ludo patch introducing let-system[1], but I think it was almost ready. Adding janneke, Danny and Ludo to the discussion. WDYT? Thanks, Mathieu [1]: https://lists.gnu.org/archive/html/guix-patches/2017-11/msg00274.html