Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 6F3A4223C12 for <~alpine/devel@lists.alpinelinux.org>; Fri, 29 Aug 2025 16:35:06 +0000 (UTC) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-45a1b066b5eso13973015e9.1 for <~alpine/devel@lists.alpinelinux.org>; Fri, 29 Aug 2025 09:35:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1756485303; x=1757090103; darn=lists.alpinelinux.org; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=gFXPimku3OAiNYuPknxJvSLe36cE4aLwDEp6k99qjAY=; b=IHLIwlv5HYkLPtJ7niscyvyUG3CAOEdw181cBZLI+nKwrs87bcfphuu5bGJVjvuKxB JYr1hGqL5khu3uzITrggyMgbGL5JxqLH1fIIwtTzCKfrUhujSSGtsmhmNDECWOtN9m6e /W/BEvYySWUQa5WnHLqjECiYCXXxiOB1sjMgoPv1mq48z5bj09EXXOr8BIwclzJrq3My d6YPJroLJMf59cgvG/ajiweFQfYhH/0TbkwTV+Jcf1MiNNmSDwIT40hwsFFHNaLe32UD 0e+HVRkZfSIVZaPHCpkSemRH9O8+KqCfpf+7CF1ilNw0oKtobo4LxIvgPjfU5PRliXeB s0sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756485303; x=1757090103; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:to:from:date:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=gFXPimku3OAiNYuPknxJvSLe36cE4aLwDEp6k99qjAY=; b=gyvNDnRxuXIL4SYkQf2XsAgQkAY6CI0ziNTQ33zRY8gif4fyy80bCNg97ViWH51k6l +RrbxNZJWG888nBM+OmOm49vP7F4chMI17Xl4m7TQPj8XdspwZdsykhszV3YKax3VfeM RiiO+L9+ByFQSI7MRLkxOHedAO0mGmg9ojD6hg3GRSTVZA+qgrswk3NtJGePBWNmOWrh KIbGcA/PpR9n8FMinIwV5o2jWqLzDiGatK/8v89TwyjlGlF4RPsMsPaXEYVkIuC0N1rR SykvW9w8tuWauE5Va4Tmo1XGXw9dJv+01Aj3S5WT3NxGQ2S1/MvlncxZm5HY6+OS/BRL c9qQ== X-Gm-Message-State: AOJu0Yw59uBcuF7ZQM+8JWrB+A9x6UD7AsfziUcQYO3VMdbyOElU/Y9K q//ygk832DIhB0k86JPt8xt3VSaA4z/sSX4XAYtKveh5tcAjRw6LZlxNUMjU X-Gm-Gg: ASbGncuw+fcUE4pUORweo8T1+HHxpcY7ortDq2P/7cOsESiMzupmZfl9/pgK/roJjTS fLSr+pZJ5xTRd0n7/L3QMI89Fmt2vx6mPONt4FSr/H+QyDFf6EtkXfCmsmcaKXWDee46v12bgIe mCVtCuU+gLfv6ytnVvdsj+/UAcflc6WHuWLqzJGDhH3oCV+zLMCLgvDbPxuoKYc0K62Al1PgXk6 /LuMZt17LVvzCLIg2mRicJp582195wvwpuAz3uZW+M8rk7brpobplQ9lkZIccQS9Xpfo3lPOs92 7oRtEaMcZXCSbzF2O2JXiPrApoCqcCU5K18K8Nc23clUnmbpIdYItda6XfBN7T5VBlu0EMcWqDR kvM8dJIZN73BbPt1n0uYhWTSIJL4WPHkRgzTLpmXuMWpiBz8= X-Google-Smtp-Source: AGHT+IH6/xAqebZhzrEvbKMEBl5CdOvhQZkJ4kh8rEvOY4OlOY0OdzyLfQ+eJOpiGKSqy6dQb35/eA== X-Received: by 2002:a05:600c:4446:b0:45b:7a9e:c4ea with SMTP id 5b1f17b1804b1-45b7aae0996mr55117045e9.27.1756485302767; Fri, 29 Aug 2025 09:35:02 -0700 (PDT) Received: from ehlo.thunderbird.net ([216.213.191.138]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-45b7e7d2393sm45267065e9.3.2025.08.29.09.35.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 29 Aug 2025 09:35:02 -0700 (PDT) Date: Fri, 29 Aug 2025 17:35:00 +0100 From: Naomi Rennie-Waldock To: ~alpine/devel@lists.alpinelinux.org, Camelia Lavender Subject: Re: Best way to handle git submodules in APKBUILDs? User-Agent: Thunderbird for Android In-Reply-To: References: Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 29 August 2025 17:26:04 BST, Camelia Lavender wrote: >Hi everyone! > >I'm relatively new to Alpine Linux packaging, but I'm trying to learn mor= e about it by packaging a few pieces of software that aren't yet included i= n Alpine repositories=2E I really hope I ask my question in the correct pla= ce (I tried looking on the Wiki but didn't find any information about this)= :) > >I was wondering what the best way to package projects that rely on git su= bmodules was=2E The problem with submodules is that they usually aren't inc= luded in release tarballs=2E Also, since the "primary" source of the packag= e is a tarball, it is not possible to use git to automatically pull submodu= les from their upstream repositories, which, in the end, makes it (I guess)= necessary to add many different sources in the APKBUILD=2E > >What I've been thinking about doing is this: > >- For each submodule, I add a source in the APKBUILD, which points to the= source tarball of the specific commit that is checked out in the repositor= y=2E >- Then, I move the content of the tarball to the place where the content = of the submodule should be=2E > >Is this a correct way to do what I'm trying to achieve, or is there a bet= ter way to do so? > >Thanks in advance! :) >--=20 >Sincerely, > >Camelia Lavender (she/they) >PGP: 0xDBCC70EFBC360E97 > That approach is what we've been doing for other packages where upstream d= oesn't provide a full source archive=2E