Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
FEATURES=binpkg-multi-instance quickpkg internal issue
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3825

PostPosted: Mon Oct 28, 2024 5:10 pm    Post subject: FEATURES=binpkg-multi-instance quickpkg internal issue Reply with quote

Depending which tool is used to create a gentoo arbitrary binary package,
internal structure of the generated package differs here.
Testing here:
Code:
emerge --buildpkgonly virtual/man
These are the packages that would be built, in reverse order:
Calculating dependencies   ..... done!
Dependency resolution took 13.01 s (backtrack: 0/20).
[ebuild   R    ] virtual/man-0-r4
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) virtual/man-0-r4::gentoo
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/virtual/man-0-r4/work
>>> Preparing source in /var/tmp/portage/virtual/man-0-r4/work ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/virtual/man-0-r4/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/virtual/man-0-r4/work ...
>>> Source compiled.
>>> Test phase [not enabled]: virtual/man-0-r4
>>> Install virtual/man-0-r4 into /var/tmp/portage/virtual/man-0-r4/image
>>> Completed installing virtual/man-0-r4 into /var/tmp/portage/virtual/man-0-r4/image
 * Final size of build directory: 0 KiB
 * Final size of installed tree:  0 KiB
>>> Done.
--------------------------------------
ls -l  /var/cache/binpkgs/virtual/man/
total 20
-rw-r--r-- 1 root root 20480 oct.  28 19:45 man-0-r4-1.gpkg.tar
-----------------------------------------------------------
tar -tvf /var/cache/binpkgs/virtual/man/man-0-r4-1.gpkg.tar
-rw-r--r-- 0/0               0 2024-10-28 19:45 man-0-r4-1/gpkg-1
-rw-r--r-- 0/0            8864 2024-10-28 19:45 man-0-r4-1/metadata.tar.xz
-rw-r--r-- 0/0             176 2024-10-28 19:45 man-0-r4-1/image.tar.xz
-rw-r--r-- 0/0             881 2024-10-28 19:45 man-0-r4-1/Manifest
Plz note the containing directory in the tar 'man-0-r4-1' matches the file name.
Code:
quickpkg --include-config n --umask 0072 virtual/man
 * Building package for virtual/man-0-r4 ...                             [ ok ]

 * Packages now in '/var/cache/binpkgs':
 * virtual/man-0-r4: 20.0K
-------------------------------------
ls -l /var/cache/binpkgs/virtual/man/
total 40
-rw-r--r-- 1 root root 20480 oct.  28 19:45 man-0-r4-1.gpkg.tar
-rw-r--r-- 1 root root 20480 oct.  28 19:46 man-0-r4-2.gpkg.tar
-----------------------------------------------------------
tar -tvf /var/cache/binpkgs/virtual/man/man-0-r4-2.gpkg.tar
-rw-r--r-- 0/0               0 2024-10-28 19:46 man-0-r4/gpkg-1
-rw-r--r-- 0/0            8620 2024-10-28 19:46 man-0-r4/metadata.tar.xz
-rw-r--r-- 0/0             156 2024-10-28 19:46 man-0-r4/image.tar.xz
-rw-r--r-- 0/0             881 2024-10-28 19:46 man-0-r4/Manifest
Plz note the containing directory name in the tar 'man-0-r4' which DOES'NT matches the file name, i.e. 'man-0-r4-2'.

I'd expect both commands results to be more consistent :oops:
What may be missing here?

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "


Last edited by CaptainBlood on Mon Oct 28, 2024 7:17 pm; edited 3 times in total
Back to top
View user's profile Send private message
bstaletic
Guru
Guru


Joined: 05 Apr 2014
Posts: 354

PostPosted: Mon Oct 28, 2024 5:32 pm    Post subject: Reply with quote

It's not about different tools. It's about the specification of GPKG format.
I had the same question.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3825

PostPosted: Mon Oct 28, 2024 6:19 pm    Post subject: Reply with quote

Indeed
FEATURES=-binpkg-multi-instance brings:
Consistency between binary package names between tools.
Consistency between the binary package name and its content, whatever tool is used.

Let's call it full consistency.

I think this is a little # issue:
FEATURES=binpkg-multi-instance brings
Consistency between binary package names between tools.
Consistency between the binary package name and its content, when using emerge.
Inconsistency between the binary package name and its content, when using quickpkg.

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
pingtoo
Veteran
Veteran


Joined: 10 Sep 2021
Posts: 1213
Location: Richmond Hill, Canada

PostPosted: Mon Oct 28, 2024 7:04 pm    Post subject: Reply with quote

Does this mean the result binary package can (or cannot) be use interchangeable?

i.e. can quickpkg created package be use by emerge -K and vice versa?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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