forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
abseil-cpp: Add GCC spec file to workaround GCC bug
abseil-cpp and packages that use it began to FTBFS after the introduction of openssf-compiler-options, specifically its addition of the -fno-delete-null-pointer-checks flag. This is believed to be a GCC bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71962 Unfortunately it isn't possible to "undo" this flag by appending the inverse flag (-fdelete-null-pointer-checks). So here we introduce a new spec file for abseil-cpp builds that will filter out the problematic flag from the openssf spec file. Fixes wolfi-dev#34075. This commit uses the spec file to build abseil-cpp itself, and ships it in the abseil-cpp-dev apk so abseil-cpp's reverse dependencies can be updated to use it. Signed-off-by: dann frazier <[email protected]>
- Loading branch information
Showing
7 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
abseil-cpp/usr/lib/gcc/aarch64-unknown-linux-gnu/12/abseil-cpp.spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# https://github.com/wolfi-dev/os/issues/34075 | ||
*self_spec: | ||
%<fno-delete-null-pointer-checks |
3 changes: 3 additions & 0 deletions
3
abseil-cpp/usr/lib/gcc/aarch64-unknown-linux-gnu/13/abseil-cpp.spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# https://github.com/wolfi-dev/os/issues/34075 | ||
*self_spec: | ||
%<fno-delete-null-pointer-checks |
3 changes: 3 additions & 0 deletions
3
abseil-cpp/usr/lib/gcc/aarch64-unknown-linux-gnu/14/abseil-cpp.spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# https://github.com/wolfi-dev/os/issues/34075 | ||
*self_spec: | ||
%<fno-delete-null-pointer-checks |
3 changes: 3 additions & 0 deletions
3
abseil-cpp/usr/lib/gcc/x86_64-pc-linux-gnu/12/abseil-cpp.spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# https://github.com/wolfi-dev/os/issues/34075 | ||
*self_spec: | ||
%<fno-delete-null-pointer-checks |
3 changes: 3 additions & 0 deletions
3
abseil-cpp/usr/lib/gcc/x86_64-pc-linux-gnu/13/abseil-cpp.spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# https://github.com/wolfi-dev/os/issues/34075 | ||
*self_spec: | ||
%<fno-delete-null-pointer-checks |
3 changes: 3 additions & 0 deletions
3
abseil-cpp/usr/lib/gcc/x86_64-pc-linux-gnu/14/abseil-cpp.spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# https://github.com/wolfi-dev/os/issues/34075 | ||
*self_spec: | ||
%<fno-delete-null-pointer-checks |