[MDEV-8438] Generated include files installed as mode 0444 instead of 0644 Created: 2015-07-09  Updated: 2022-09-08

Status: Confirmed
Project: MariaDB Server
Component/s: Compiling
Affects Version/s: 5.5, 10.0, 10.1
Fix Version/s: 10.1

Type: Bug Priority: Minor
Reporter: Brian Evans Assignee: Sergei Golubchik
Resolution: Unresolved Votes: 0
Labels: None
Environment:

Gentoo Linux



 Description   

Gentoo bug 554258 says:
"While the issue is not immediately noticeable since usually all write operations on those files (e.g. stripping) are done as root. However, this is upstream issue that will eventually cause some random failures.

For example, this will fail if the whole build & install is done as unprivileged user. Or when SELinux (without dac_override) is effective [pointed out by perfinion]."

include/CMakeLists.txt:

FOREACH(f ${HEADERS_GEN_CONFIGURE})
  INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${f} DESTINATION ${INSTALL_INCLUDEDIR} COMPONENT Development PERMISSIONS OWNER_READ GROUP_READ WORLD_READ)
ENDFOREACH(f)

Should be:

FOREACH(f ${HEADERS_GEN_CONFIGURE})
  INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${f} DESTINATION ${INSTALL_INCLUDEDIR} COMPONENT Development PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
ENDFOREACH(f)


Generated at Thu Feb 08 07:27:09 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.