Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to work with pkgdev?
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
Perfect Gentleman
Veteran
Veteran


Joined: 18 May 2014
Posts: 1199

PostPosted: Sat May 14, 2022 3:01 am    Post subject: How to work with pkgdev? Reply with quote

Recently repoman was deprecated. pkgdev is recommended instead. But I don't get it how to work with it.
'pkgdev manifest' is not drop-in replacement for 'repoman manifest'
How should I use 'pkgdev manifest' properly ?
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2240

PostPosted: Sat May 14, 2022 3:20 am    Post subject: Reply with quote

What do you mean? pkgdev manifest successfully generates the manifest as I'd expect.

If need to see the few options, `pkgdev manifest --help`, e.g. -d /path/to/alternate/distdir
Back to top
View user's profile Send private message
Perfect Gentleman
Veteran
Veteran


Joined: 18 May 2014
Posts: 1199

PostPosted: Sat May 14, 2022 5:41 am    Post subject: Reply with quote

In my case 'pkgdev manifest' dosn't generate Manifest successfully. Moreover it generates md5-cache with causes errors during synchronization.
Back to top
View user's profile Send private message
Perfect Gentleman
Veteran
Veteran


Joined: 18 May 2014
Posts: 1199

PostPosted: Sat May 14, 2022 5:46 am    Post subject: Reply with quote

I run 'repoman manifest' in root directory of my local repo and it generates Manifest files for all ebuilds. Then push changes to git and sync succesfully.

When I run 'pkgdev manifest' there, I don't know what it does because there is no any output. And it doesn't generate Manifest files properly. It only generates useless md5-cache.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 28251
Location: here

PostPosted: Sat May 14, 2022 6:14 am    Post subject: Reply with quote

I must admit I haven't used pkgdev yet but have you tried with pkgdev manifest -f command?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Perfect Gentleman
Veteran
Veteran


Joined: 18 May 2014
Posts: 1199

PostPosted: Sat May 14, 2022 6:19 am    Post subject: Reply with quote

Yes, it unsuccessfully re-generated Manifest for libreoffice ebuild.

Last edited by Perfect Gentleman on Sat May 14, 2022 6:21 am; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 28251
Location: here

PostPosted: Sat May 14, 2022 6:21 am    Post subject: Reply with quote

What is the problem? Command return some errors?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2240

PostPosted: Sat May 14, 2022 10:09 am    Post subject: Reply with quote

For md5-cache, may want to have that on gitignore given pkg* tools will use cache a lot, ::gentoo tree has a .gitignore for it so I tend to forget about it.
Back to top
View user's profile Send private message
Perfect Gentleman
Veteran
Veteran


Joined: 18 May 2014
Posts: 1199

PostPosted: Sat May 14, 2022 11:09 am    Post subject: Reply with quote

fedeliallalinea wrote:
What is the problem? Command return some errors?

In case of libreoffice it could not fetch some library which I don't know is used for.
In general it doesn't generate Manifest files properly.
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2240

PostPosted: Sat May 14, 2022 11:35 am    Post subject: Reply with quote

Please be more specific, show errors, etc... I still have no idea what issue you're having with it.

I tried to re-generate the manifest for libreoffice in your overlay using pkgdev and it worked for all files here, albeit my downloaded *unowinreg.dll hash mismatch your overlay's Manifest (Edit: and it's to be expected because it downloaded an html page rather than the file, link seems broken, doesn't work if I open it in a browser too).

By the way, I'd recommend to use thin manifests if you use git, aka add thin-manifests = true to your layout.conf, git already tracks hashes of files it contains (like the ebuilds) so there's no need to have them in the Manifest.
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