Skip to content

Commit

Permalink
Eext-mock: Pass FILE_OFFSET_BITS=64 to compilations
Browse files Browse the repository at this point in the history
On 32 bit, there are issues in barney when we aren't able to understand
inode numbers with more than 64 bits, which then causes all sorts of
problems. Allow us to solve this for eext RPMS by usingthe relevant flag
to compile in 64 bit support for stat/...
  • Loading branch information
cfsteefel committed Nov 13, 2023
1 parent 1fda617 commit e98d1c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions configfiles/mock.cfg.template
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ config_opts['cleanup_on_success'] = False

# Make sure static libraries are deterministic
config_opts['macros']['__brp_strip_static_archive'] = '/usr/lib/rpm/brp-strip-static-archive "%{__strip} -D"'
config_opts['macros']['_preprocessor_defines'] = '-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -D_FILE_OFFSET_BITS=64'

# Autogenerated common configuration
{{- range $key,$val := .DefaultCommonCfg}}
Expand Down
1 change: 1 addition & 0 deletions impl/testData/expected-mock.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ config_opts['cleanup_on_success'] = False

# Make sure static libraries are deterministic
config_opts['macros']['__brp_strip_static_archive'] = '/usr/lib/rpm/brp-strip-static-archive "%{__strip} -D"'
config_opts['macros']['_preprocessor_defines'] = '-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -D_FILE_OFFSET_BITS=64'

# Autogenerated common configuration
config_opts['resultdir'] = "{{.TestWorkingDir}}/work/pkg1/mock-x86_64/mock-results"
Expand Down

0 comments on commit e98d1c0

Please sign in to comment.