Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How is "egencache" supposed to work?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
nagmat84
Apprentice
Apprentice


Joined: 27 Mar 2007
Posts: 220

PostPosted: Thu Apr 04, 2024 10:16 am    Post subject: How is "egencache" supposed to work? Reply with quote

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
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9541
Location: beyond the rim

PostPosted: Thu Apr 04, 2024 11:16 am    Post subject: Reply with quote

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
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1583

PostPosted: Thu Apr 04, 2024 5:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1693

PostPosted: Fri Apr 05, 2024 3:12 pm    Post subject: Reply with quote

I can't look into this right now but if you end up getting nowhere, please do file a bug.
Back to top
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1583

PostPosted: Sat May 04, 2024 1:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum