Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909068 - PORTAGE_BINPKG_TAR_OPTS have no effect with BINPKG_FORMAT=gpkg
Summary: PORTAGE_BINPKG_TAR_OPTS have no effect with BINPKG_FORMAT=gpkg
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Binary packages support (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-24 08:37 UTC by Ulrich Müller
Modified: 2023-06-24 08:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2023-06-24 08:37:53 UTC
make.conf(5) says:

       PORTAGE_BINPKG_TAR_OPTS
              This  variable  contains options to be passed to the tar command
              for creation of binary packages.

However, it seems to have no effect:

# BINPKG_FORMAT=gpkg PORTAGE_BINPKG_TAR_OPTS=--mtime=2023-01-01T00:00:00Z emerge -B app-editors/mg
[...]
>>> Emerging (1 of 1) app-editors/mg-20230501::gentoo
[...]
>>> Done
# tar tvf /var/cache/binpkgs/app-editors/mg/mg-20230501-1.gpkg.tar 
-rw-r--r-- 0/0               0 2023-06-24 08:36 mg-20230501-1/gpkg-1
-rw-r--r-- 0/0           16682 2023-06-24 08:36 mg-20230501-1/metadata.tar.bz2
-rw-r--r-- 0/0          393873 2023-06-24 08:36 mg-20230501-1/image.tar.bz2
-rw-r--r-- 0/0             887 2023-06-24 08:36 mg-20230501-1/Manifest
# tar xf /var/cache/binpkgs/app-editors/mg/mg-20230501-1.gpkg.tar
# tar tvf mg-20230501-1/image.tar.bz2 
drwxr-xr-x root/root         0 2023-06-24 10:36 image/
drwxr-xr-x root/root         0 2023-06-24 10:36 image/usr/
drwxr-xr-x root/root         0 2023-06-24 10:36 image/usr/bin/
-rwxr-xr-x root/root    223856 2023-06-24 10:36 image/usr/bin/mg
[...]

Whereas with xpak things work as expected:

# BINPKG_FORMAT=xpak PORTAGE_BINPKG_TAR_OPTS=--mtime=2023-01-01T00:00:00Z emerge -B app-editors/mg
[...]
>>> Emerging (1 of 1) app-editors/mg-20230501::gentoo
[...]
>>> Done
# tar tvf /var/cache/binpkgs/app-editors/mg/mg-20230501-2.xpak
drwxr-xr-x root/root         0 2023-01-01 01:00 ./
drwxr-xr-x root/root         0 2023-01-01 01:00 ./usr/
[...]
drwxr-xr-x root/root         0 2023-01-01 00:00 ./usr/bin/
-rwxr-xr-x root/root    223856 2023-01-01 00:00 ./usr/bin/mg

bzip2: (stdin): trailing garbage after EOF ignored