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 ms11 with LMTPS id mw37Gr5f/1+WNAAA0tVLHw (envelope-from ) for ; Wed, 13 Jan 2021 21:01:50 +0000 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 IHhvFr5f/197OgAAB5/wlQ (envelope-from ) for ; Wed, 13 Jan 2021 21:01:50 +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 C164F94036A for ; Wed, 13 Jan 2021 21:01:49 +0000 (UTC) Received: from localhost ([::1]:36406 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kznH2-0006Um-E9 for larch@yhetil.org; Wed, 13 Jan 2021 16:01:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kznG2-0006TI-HY for guix-devel@gnu.org; Wed, 13 Jan 2021 16:00:48 -0500 Received: from zancanaro.com.au ([45.76.117.151]:57984) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kznFx-0002sL-JW for guix-devel@gnu.org; Wed, 13 Jan 2021 16:00:46 -0500 Received: by zancanaro.com.au (Postfix, from userid 116) id BBA2E30D8E; Wed, 13 Jan 2021 21:00:35 +0000 (UTC) Received: from jolteon (unknown [27.96.215.68]) by zancanaro.com.au (Postfix) with ESMTPSA id 1670630D8C; Wed, 13 Jan 2021 21:00:35 +0000 (UTC) References: <87sg74sqe8.fsf@gmail.com> User-agent: mu4e 1.4.14; emacs 27.1 From: Carlo Zancanaro To: Timothy Subject: Re: Help with packaging: Dendrite (Matrix), Gitea, Caddy In-reply-to: <87sg74sqe8.fsf@gmail.com> Date: Thu, 14 Jan 2021 08:00:33 +1100 Message-ID: <878s8w7dse.fsf@zancanaro.id.au> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=45.76.117.151; envelope-from=carlo@zancanaro.id.au; helo=zancanaro.com.au X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.36 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: C164F94036A X-Spam-Score: -2.36 X-Migadu-Scanner: scn0.migadu.com X-TUID: HOdZ6Bb6SzIH Hi Timothy, On Thu, Jan 14 2021, Timothy wrote: > For the past ~month I've been trying to package Dendrite (a > second generation reference Matrix server implementation, set to > succeed Synapse when feature parity is reached), Gitea, and > Caddy. I took a look at dendrite, and it looks like it needs some dependencies. In the build output I saw a bunch of: src/github.com/matrix-org/dendrite/internal/consumers.go:21:2: cannot find package "github.com/Shopify/sarama" in any of: /gnu/store/cb9kqjg7m6xk1wz7ap8as792fd5kcmd2-go-1.14.10/src/github.com/Shopify/sarama (from $GOROOT) /tmp/guix-build-dendrite-0.3.1.drv-0/src/github.com/Shopify/sarama (from $GOPATH) src/github.com/matrix-org/dendrite/appservice/appservice.go:23:2: cannot find package "github.com/gorilla/mux" in any of: /gnu/store/cb9kqjg7m6xk1wz7ap8as792fd5kcmd2-go-1.14.10/src/github.com/gorilla/mux (from $GOROOT) /tmp/guix-build-dendrite-0.3.1.drv-0/src/github.com/gorilla/mux (from $GOPATH) ... >From what I can see of the other Go packages in Guix, each of the dependencies needs to be added to the propagated-inputs of the dendrite package to make it build. I don't think we have all of these dependencies packaged in Guix at the moment, so you will have to write some package definitions for these dependencies before you can package dendrite. I'm not up-to-date on the state of Go in Guix, but I think there are some patches for a Go importer floating around on the mailing list, if you wanted to try automatically importing package definitions. I hope that helps, Carlo