View previous topic :: View next topic |
Author |
Message |
nagmat84 Apprentice
Joined: 27 Mar 2007 Posts: 220
|
Posted: Thu Apr 04, 2024 10:16 am Post subject: How is "egencache" supposed to work? |
|
|
I have set up my own build server (for my less capable clients) which also hosts a site-specific Ebuild repository. I created a GPG signing key to sign my binary packages which I also want to use to sign the repository.
When I run egencache on my own repository on the build server nothing happens no matter what options/actions I pass to egencache. How is that tool supposed to work? What am I missing?
File /var/db/repos/my-repo/metadata/layout.conf on the build server Code: | masters = gentoo
sign-manifests = true | File /etc/portage/repos.conf/my-repo.conf on the build server Code: | [my-repo]
location = /var/db/repos/my-repo
auto-sync = no |
I tried the following one-liner: Code: | egencache --repo=my-repo -v --rsync --gpg-dir /srv/gentoo-build/.gnupg --gpg-key <KEY-ID> --write-timestamp --update --update-pkg-desc-index --update-manifests | but also individual commands for each action, i.e. Code: | egencache --repo=my-repo -v --rsync --update
egencache --repo=my-repo -v --gpg-dir /srv/gentoo-build/.gnupg --gpg-key <KEY-ID> --update-manifests
egencache --repo=my-repo -v --update-pkg-desc-index
egencache --repo=my-repo -v --write-timestamp |
No matter what, I always get the messages Code: | * Searching for changes
* No updates found |
I also tried to delete all the manifest files inside each /var/db/repos/my-repo/<category>/<package>/, but they are not re-created, muss less signed. The cache /var/db/repos/my-repo/metadata/md5-cache remains empty, too. The only thing which seems to work is updating the time stamp /var/db/repos/my-repo/metadata/timestamp.chk.
I expected egencache to - create manifest files in each /var/db/repos/my-repo/<category>/<package>/ for each found ebuild and sign it
- populate /var/db/repos/my-repo/metadata/md5-cache
|
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9541 Location: beyond the rim
|
Posted: Thu Apr 04, 2024 11:16 am Post subject: |
|
|
Unfortunately doesn't look like egencache contains much in terms of debug or status output functionality. You'd probably have to add some debug code to egencache itself to figure out what is actually going on.
Quote: | I'm not an expert on that but egencache, as stated in the manual page, creates metadata/md55-cache in your repo, |
That was its original purpose. It has been extended with additional functionality since. |
|
Back to top |
|
|
logrusx Veteran
Joined: 22 Feb 2018 Posts: 1583
|
Posted: Thu Apr 04, 2024 5:15 pm Post subject: |
|
|
Genone wrote: | Unfortunately doesn't look like egencache contains much in terms of debug or status output functionality. You'd probably have to add some debug code to egencache itself to figure out what is actually going on.
Quote: | I'm not an expert on that but egencache, as stated in the manual page, creates metadata/md55-cache in your repo, |
That was its original purpose. It has been extended with additional functionality since. |
I believe that was a part of my response which turned out to be inadequate and that's why I deleted it. Two of them actually :)
Best Regards,
Georgi |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 1693
|
Posted: Fri Apr 05, 2024 3:12 pm Post subject: |
|
|
I can't look into this right now but if you end up getting nowhere, please do file a bug. |
|
Back to top |
|
|
logrusx Veteran
Joined: 22 Feb 2018 Posts: 1583
|
Posted: Sat May 04, 2024 1:36 pm Post subject: |
|
|
With the remark I'm not clear on what you want to achieve and most certainly what's the proper way to do it, today I noticed that running `pkgdev manifest` in the root of my local repo it created those md5-cache directory and files for all the packages in it:
Code: | modified: app-misc/freeplane-bin/Manifest
modified: app-misc/freeplane-bin/freeplane-bin-1.11.13.ebuild
new file: dev-util/umlet-bin/Manifest
new file: dev-util/umlet-bin/umlet-bin-15.1.ebuild
new file: metadata/md5-cache/app-misc/freeplane-bin-1.11.11
new file: metadata/md5-cache/app-misc/freeplane-bin-1.11.12
new file: metadata/md5-cache/app-misc/freeplane-bin-1.11.13
new file: metadata/md5-cache/dev-util/umlet-bin-15.1
new file: metadata/md5-cache/gnome-extra/gnome-pomodoro-0.23.1-r1
new file: metadata/md5-cache/gnome-extra/gnome-pomodoro-0.25.0
new file: metadata/md5-cache/gnome-extra/gnome-pomodoro-0.25.1
new file: metadata/md5-cache/gnome-extra/gnome-pomodoro-9999
new file: metadata/md5-cache/sys-apps/caps2esc-0.3.2
new file: metadata/md5-cache/sys-apps/interception-tools-0.6.8
new file: metadata/md5-cache/sys-apps/linuxconsoletools-1.8.1
|
I remembered me of this thread and decided to share. I hope that helps.
Best Regards,
Georgi |
|
Back to top |
|
|
|