mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-26 14:47:52 +08:00
'cp -p' attempts to copy NFSv4 ACL extended attributes when preserving permissions. On filesystems that do not support these xattrs (e.g., ext4), this results in `Operation not supported` and causes 'cp' to fail. Add explicit skip entries for these attributes in /etc/xattr.conf so libattr ignores them during copy operations. This is needed to get bitbake builds to work when using download cache from NFS4 mount. Change-Id: I3dabb065c4d9928121fe14d0fdc896c7415bdcb9 Reviewed-by: Toni Saario <toni.saario@qt.io>
6 lines
222 B
Bash
6 lines
222 B
Bash
#!/usr/bin/env bash
|
|
# Copyright (C) 2024 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
|
|
|
sudo sed -i -e '/nfs4/s/permissions/skip/' /etc/xattr.conf
|