mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6403] build: failure due to invalid --date option (ChromeOS) #3262
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#3262
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Zopolis4 on GitHub (Jul 11, 2024).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6403
Steps to Reproduce
Checked out from version
0.9.72.Configured with
CFLAGS="-O2 -pipe -ffat-lto-objects -fPIC -fuse-ld=mold -flto=auto" CXXFLAGS="-O2 -pipe -ffat-lto-objects -fPIC -fuse-ld=mold -flto=auto" FCFLAGS="-O2 -pipe -ffat-lto-objects -fPIC -fuse-ld=mold -flto=auto" FFLAGS="-O2 -pipe -ffat-lto-objects -fPIC -fuse-ld=mold -flto=auto" LD_LIBRARY_PATH="/usr/local/lib64" LDFLAGS="-flto=auto " ./configure --prefix=/usr/local --libdir=/usr/local/lib64 --mandir=/usr/local/share/man --disable-dependency-tracking --build=x86_64-cros-linux-gnu --host=x86_64-cros-linux-gnu --target=x86_64-cros-linux-gnu --program-prefix='' --program-suffix=''Environment
Docker container
satmandu/crewbuild:amd64.@kmk3 commented on GitHub (Jul 11, 2024):
What is the distribution and version?
What date version is this?
Which package provides it?
Does it work with the following patch?
@Zopolis4 commented on GitHub (Jul 11, 2024):
ChromeOS M125, with chromebrew as the package manager.
Unsure:
zoneinfo (version 2024a)
No:
@kmk3 commented on GitHub (Jul 11, 2024):
Hmm that's unfortunate, but
-d/--dateis not POSIX and seems to be therejust to support using
SOURCE_DATE_EPOCHanyway.I suppose that we could try to detect and only use
-dif it is supported.If you just remove the
--date="@${SOURCE_DATE_EPOCH:-$(date +%s)}arguments,does it work?
@Zopolis4 commented on GitHub (Jul 11, 2024):
Assuming you mean this, then yes, that works.
@kmk3 commented on GitHub (Jul 11, 2024):
Alright, should be fixed by #6404.
For clarity, is this date program installed by default on ChromeOS or is it
from chromebrew?
Also, I think that this is the first bug report involving ChromeOS, so
congratulations :)
Out of curiosity, does firejail work well on ChromeOS?
@Zopolis4 commented on GitHub (Jul 11, 2024):
Ok, so I looked at this a little further--
/bin/dateis provided by ChromeOS itself, and that works./usr/local/bin/date, which is used by default, is provided by zoneinfo via chromebrew, and does not work.I'll try and track down if this is a chromebrew issue or a zoneinfo issue.
@Zopolis4 commented on GitHub (Jul 11, 2024):
Looking at https://reproducible-builds.org/docs/source-date-epoch/, it seems the problem is that the
datefromzoneinfois being used instead of the one fromcoreutils,busyboxoruutils. Given that, I'm not sure whether this issue actually merits a fix, or if its just an incorrect environment.@Zopolis4 commented on GitHub (Jul 11, 2024):
I suppose it is a matter of maintaining POSIX compatibility or not, even though the issue could be resolved by using a different date command.