<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[HyperForum — how to get libretools to read local pkg repo]]></title>
	<link rel="self" href="https://forums.hyperbola.info/extern.php?action=feed&amp;tid=1191&amp;type=atom" />
	<updated>2026-05-31T10:06:44Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.hyperbola.info/viewtopic.php?id=1191</id>
		<entry>
			<title type="html"><![CDATA[Re: how to get libretools to read local pkg repo]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=8924#p8924" />
			<content type="html"><![CDATA[<p>That is the intended way to have a repository as it is foremost managed elsewhere on a separated server and not only local with also at risk wasting harddisk and also at risk loosing at a point your created packages (and the repository created also).</p><p>I will now close this thread.</p>]]></content>
			<author>
				<name><![CDATA[throgh]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=347</uri>
			</author>
			<updated>2026-05-31T10:06:44Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=8924#p8924</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: how to get libretools to read local pkg repo]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=8923#p8923" />
			<content type="html"><![CDATA[<p>haha, hosting own server to manage HTTP nonsense is quite a bit beyond the scope here.</p><p>anyway i figured out i think the initial fix i wanted (to make local repo work)<br />after repo-adding in main system (/var/local/foxypkgs/needs to have the database files from repo-add) and creating the librechroot, as wheel user in main system:<br /></p><div class="codebox"><pre><code>doas cp -rnv -- /var/local/foxypkgs/ /var/lib/archbuild/native/vixenbuild/var/local/
doas cp -rnv -- /var/local/foxypkgs/ /var/lib/archbuild/native/root/var/local/</code></pre></div><p>then as build user, update and sync the librechroot. should work.</p><p>foxypkgs is my repo name. native is the name of the librechroot. vixenbuild is the user i make to use librechroot/libremakepkg</p><p>librechroot -h is unusable in console, the usual </p><div class="codebox"><pre><code>librechroot -h | less
librechroot -h &gt; help.txt</code></pre></div><p> and etc doesn&#039;t work, it prints the text super fast and no way to scroll up and read without X server holding it, less &amp; tee &amp; redirection produce empty content (unless i&#039;m just dumb) answer is </p><div class="codebox"><pre><code>librechroot help | less</code></pre></div><p>messing about with trying to create an internet repo was a colossal waste of time and stress, gpgme database errors and nonsense.<br />this might technically violate the chrooting but for purpose of build it works, and afaik it&#039;s still quite a clean fix.<br />can anyone else give a better answer for how to manage this thread&#039;s topic?<br />if not i think that&#039;s gonna be my final answer</p>]]></content>
			<author>
				<name><![CDATA[aquafoxyirina]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=773</uri>
			</author>
			<updated>2026-05-31T05:53:24Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=8923#p8923</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: how to get libretools to read local pkg repo]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=8914#p8914" />
			<content type="html"><![CDATA[<p>You can surely host your own webserver (also local) and you do not direct need to sign packages when you are the only one using and doing. In general I would not recommend doing that much excessive work further. Yes, per default the trust is essential. But this is something on the rumors beneath and we should ask ourselves: How long can we hold this up?</p><p>Per default we are already not recommending using 3rd party repositories as it is nowadays more than easy to build up &quot;trust&quot; and then later misusing it - xz is a good example. Not saying that you are on doing such, but I hope you get the point. When you host your own repository for others: Yes, that&#039;s a different point. But in general: Just using your own local via HTTP and you should be good to go.</p>]]></content>
			<author>
				<name><![CDATA[throgh]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=347</uri>
			</author>
			<updated>2026-05-30T23:17:19Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=8914#p8914</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: how to get libretools to read local pkg repo]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=8913#p8913" />
			<content type="html"><![CDATA[<p>So the only approved answer is to setup an internet repo?<br />What&#039;s the recommended setup to sign own packages for hosting via codeberg/sourcehut or something, then?</p><p>I&#039;ll look around with Arch&#039;s pacman info and test if can get working, just making own pgp key and signing shouldn&#039;t be hard.</p>]]></content>
			<author>
				<name><![CDATA[aquafoxyirina]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=773</uri>
			</author>
			<updated>2026-05-30T22:57:37Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=8913#p8913</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: how to get libretools to read local pkg repo]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=8912#p8912" />
			<content type="html"><![CDATA[<p>It is really not to recommend building with own defined repositories when you have not checked them working fully. So I recommend first really to approve your own repository running via pacman / hyperman.</p><p>Please remember that your repository is local out of the chroot and therefore not really possible to be accessible. The chroot does not use anything outside and only download data at the prepare-step. When your repository is only local on your hosts disks, the chroot is not able to access it.</p>]]></content>
			<author>
				<name><![CDATA[throgh]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=347</uri>
			</author>
			<updated>2026-05-30T22:26:44Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=8912#p8912</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: how to get libretools to read local pkg repo]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=8911#p8911" />
			<content type="html"><![CDATA[<p>Not something I had thought of!<br />Just checked it and it includes an empty repo line above my local repo, i installed nano and removed the empty repo, but doesn&#039;t seem to make any difference.<br />/etc/pacman.conf in chroot is now identical to it in the main system.</p><p>If I manually </p><div class="codebox"><pre><code>doas librechroot -n native run mkdir /var/local/foxypkgs</code></pre></div><div class="codebox"><pre><code>doas librechroot -n native run cd /var/local/foxypkgs &amp;&amp; repo-add foxypkgs.db.tar.lz *.pkg.tar.lz</code></pre></div><p>then it seems to pick up the recently-compiled pkg, but<br /></p><div class="codebox"><pre><code>doas librechroot -n native run pacman -Syu</code></pre></div><p>still gives same errors about the local repo, and trying to install the same pkg still doesn&#039;t work</p>]]></content>
			<author>
				<name><![CDATA[aquafoxyirina]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=773</uri>
			</author>
			<updated>2026-05-30T21:59:06Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=8911#p8911</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: how to get libretools to read local pkg repo]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=8909#p8909" />
			<content type="html"><![CDATA[<p>Have you checked the file <strong>/etc/pacman.conf</strong> within your chroot?</p>]]></content>
			<author>
				<name><![CDATA[throgh]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=347</uri>
			</author>
			<updated>2026-05-30T21:31:23Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=8909#p8909</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[how to get libretools to read local pkg repo]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=8908#p8908" />
			<content type="html"><![CDATA[<p>Hi, back again because I don&#039;t understand librechroot/libremakepkg well enough.<br />My problem is: some pkgs need (or ideally should use) pkgs that previously built via libremakepkg then installed into the main system via pacman local repository, but the librechroot doesn&#039;t want to read the main system&#039;s local repo!</p><p>I had this dirtily figured out before, but i had to reinstall Hyperbola and running into this same problem again &gt;.&lt;<br />my /etc/pacman.conf has: </p><div class="codebox"><pre><code>[foxypkgs]
SigLevel Optional TrustAll
Server = file:///var/local/foxypkgs</code></pre></div><p>directly above the default [core] and [extra] parts<br />/var/local/foxypkgs is root:root 755 permissions, so i don&#039;t think that would be an issue..?<br />and all the actuall pkgs are world-readable</p><p>i did all the setup commands like <a href="https://wiki.hyperbola.info/doku.php?id=en:manual:contrib:package_creation">https://wiki.hyperbola.info/doku.php?id … e_creation</a> says to, and have successfully compiled pkgs with this new install via </p><div class="codebox"><pre><code>doas libremakepkg -n native</code></pre></div><p>&quot;native&quot; cause i made a librechroot with /usr/share/pacman/defaults/makepkg.conf version set to use march=native, for myself.</p><p>so yeah, if someone knows please help?</p><p>i&#039;m using a dedicated build user that is *not* part of wheel group but has lines in /etc/doas.conf to enable using librechroot and libremakepkg commands, is otherwise regular user with groups: users storage input</p><p>it always throws errors: </p><div class="codebox"><pre><code>error: failed retrieving file &#039;foxypkgs.db&#039; from disk : Couldn&#039;t open file /var/local/foxypkgs/foxypkgs.db
error: failed to update foxypkgs (download library error)</code></pre></div><p>then works fine for core &amp; extra, as expected - but no luck for my local repo.</p>]]></content>
			<author>
				<name><![CDATA[aquafoxyirina]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=773</uri>
			</author>
			<updated>2026-05-30T14:19:41Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=8908#p8908</id>
		</entry>
</feed>
