build: Don't force preserving permissions on config-devices.mak.old
PATCH 1/1 build: Don't force preserving permissions on config-devices.mak.old
I get the following error when building on an NFSv3 filesystem:
% make -j8
GEN aarch64-softmmu/config-devices.mak.tmp
GEN config-host.h
[snip]
GEN qmp-marshal.c
GEN aarch64-softmmu/config-devices.mak
cp: preserving permissions for ‘aarch64-softmmu/config-devices.mak.old’: Operation not supported
make: *** Deleting file `aarch64-softmmu/config-devices.mak'
GEN qapi-types.c
[snip]
CC scsi/qemu-pr-helper.o
make: *** No rule to make target config-all-devices.mak', needed by subdir-aarch64-softmmu'. Stop.
make: *** Waiting for unfinished jobs....
Ideally you would only build on a filesystem with proper support, but I haven't been able to find a reason why preserving exact permissions is important in this case.
--- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Makefile +2 -2
@@ -287,7 +287,7 @@ endif $(call quiet-command, if test -f $@; then \ if cmp -s [email protected] $@; then \ mv [email protected] $@; \ - cp -p $@ [email protected]; \ + cp $@ [email protected]; \ else \ if test -f [email protected]; then \ echo "WARNING: $@ (user modified) out of date.";\
@@ -299,7 +299,7 @@ endif fi; \ else \ mv [email protected] $@; \ - cp -p $@ [email protected]; \ + cp $@ [email protected]; \ fi,"GEN","$@"); defconfig:
Signature · 3 lines
Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.
Quoted 16 lines · Aaron Lindsay
I get the following error when building on an NFSv3 filesystem:
% make -j8
GEN aarch64-softmmu/config-devices.mak.tmp
GENconfig-host.h
[snip]
GENqmp-marshal.c
GEN aarch64-softmmu/config-devices.mak
cp: preserving permissions for ‘aarch64-softmmu/config-devices.mak.old’: Operation not supported
make: *** Deleting file `aarch64-softmmu/config-devices.mak'
GENqapi-types.c
[snip]
CCscsi/qemu-pr-helper.o
make: *** No rule to make targetconfig-all-devices.mak', needed bysubdir-aarch64-softmmu'. Stop.
make: *** Waiting for unfinished jobs....
Quoted 3 lines
Ideally you would only build on a filesystem with proper support, but I haven't been able to find a reason why preserving exact permissions is important in this case.
Do we even need this code at all? As far as I can tell from the git logs, the idea is to support users who hand-modify config-devices.mak. But do we want to support that? I would think of config-devices.mak as an internal part of the build machinery, and the bit you can edit as a user is the stuff in default-configs/.
thanks
-- PMM
Quoted 21 lines · Peter Maydell
Quoted 16 lines · Aaron Lindsay
I get the following error when building on an NFSv3 filesystem:
% make -j8
GEN aarch64-softmmu/config-devices.mak.tmp
GENconfig-host.h
[snip]
GENqmp-marshal.c
GEN aarch64-softmmu/config-devices.mak
cp: preserving permissions for ‘aarch64-softmmu/config-devices.mak.old’: Operation not supported
make: *** Deleting file `aarch64-softmmu/config-devices.mak'
GENqapi-types.c
[snip]
CCscsi/qemu-pr-helper.o
make: *** No rule to make targetconfig-all-devices.mak', needed bysubdir-aarch64-softmmu'. Stop.
make: *** Waiting for unfinished jobs....Quoted 3 lines
Ideally you would only build on a filesystem with proper support, but I haven't been able to find a reason why preserving exact permissions is important in this case.
Quoted 6 lines
Do we even need this code at all? As far as I can tell from the git logs, the idea is to support users who hand-modify config-devices.mak. But do we want to support that? I would think of config-devices.mak as an internal part of the build machinery, and the bit you can edit as a user is the stuff in default-configs/.
I haven't ever found a reason to modify config-devices.mak and just assumed others had. Its existence doesn't bother me, but I can also see the argument to simplify if it's unused. Would you prefer I resubmit a patch removing it instead?
-Aaron
Signature · 3 lines
Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.
Am 20.10.2017 um 20:24 schrieb [email protected]:
Quoted 27 lines · Peter Maydell
Quoted 26 lines
Quoted 23 lines · Aaron Lindsay
I get the following error when building on an NFSv3 filesystem:
% make -j8
GEN aarch64-softmmu/config-devices.mak.tmp
GENconfig-host.h
[snip]
GENqmp-marshal.c
GEN aarch64-softmmu/config-devices.mak
cp: preserving permissions for ‘aarch64-softmmu/config-devices.mak.old’: Operation not supported
make: *** Deleting file `aarch64-softmmu/config-devices.mak' GENqapi-types.c
[snip]
CCscsi/qemu-pr-helper.o
make: *** No rule to make targetconfig-all-devices.mak', needed bysubdir-aarch64-softmmu'. Stop.
make: *** Waiting for unfinished jobs....Ideally you would only build on a filesystem with proper support, but I haven't
been able to find a reason why preserving exact permissions is important in
this case.
Quoted 6 lines
Quoted 6 lines
Do we even need this code at all? As far as I can tell from the git logs, the idea is to support users who hand-modify config-devices.mak. But do we want to support that? I would think of config-devices.mak as an internal part of the build machinery, and the bit you can edit as a user is the stuff in default-configs/.
It's a long time since I wrote that code, but when I look at the commit message for my commit 012f0879234, it was written for users who do _not_ hand-modify config-devices.mak. They had a problem when they updated the code from git and the new version had changed some of the device configurations which were used to build config-devices.mak.
So maybe that code is still needed because device configurations change sometimes.
Regards,
Stefan
Quoted 7 lines
I haven't ever found a reason to modify config-devices.mak and just assumed others had. Its existence doesn't bother me, but I can also see the argument to simplify if it's unused. Would you prefer I resubmit a patch removing it instead?
-Aaron
Quoted 9 lines · Stefan Weil
Am 20.10.2017 um 20:24 schrieb [email protected]:
Quoted 7 lines · Peter Maydell
Quoted 6 lines
Do we even need this code at all? As far as I can tell from the git logs, the idea is to support users who hand-modify config-devices.mak. But do we want to support that? I would think of config-devices.mak as an internal part of the build machinery, and the bit you can edit as a user is the stuff in default-configs/.
Quoted 6 lines
It's a long time since I wrote that code, but when I look at the commit message for my commit
012f0879234, it was written for users who do _not_ hand-modify config-devices.mak. They had a problem when they updated the code from git and the new version had changed some of the device configurations which were used to build config-devices.mak.
Right, but it's only this complicated set of conditions because we seem to be also trying to support the hand-modify case. Otherwise we could just generate the new version and copy it into place if it's changed, unconditionally...
thanks
-- PMM
Quoted 17 lines · Peter Maydell
Quoted 9 lines · Stefan Weil
Am 20.10.2017 um 20:24 schrieb [email protected]:
Quoted 7 lines · Peter Maydell
Quoted 6 lines
Do we even need this code at all? As far as I can tell from the git logs, the idea is to support users who hand-modify config-devices.mak. But do we want to support that? I would think of config-devices.mak as an internal part of the build machinery, and the bit you can edit as a user is the stuff in default-configs/.
Quoted 6 lines
It's a long time since I wrote that code, but when I look at the commit message for my commit
012f0879234, it was written for users who do _not_ hand-modify config-devices.mak. They had a problem when they updated the code from git and the new version had changed some of the device configurations which were used to build config-devices.mak.
Quoted 4 lines
Right, but it's only this complicated set of conditions because we seem to be also trying to support the hand-modify case. Otherwise we could just generate the new version and copy it into place if it's changed, unconditionally...
So, do we need this patch? If yes, who's going to merge it? If no, do we need some other patch?
Quoted 16 lines · Aaron Lindsay
I get the following error when building on an NFSv3 filesystem:
% make -j8
GEN aarch64-softmmu/config-devices.mak.tmp
GENconfig-host.h
[snip]
GENqmp-marshal.c
GEN aarch64-softmmu/config-devices.mak
cp: preserving permissions for ‘aarch64-softmmu/config-devices.mak.old’: Operation not supported
make: *** Deleting file `aarch64-softmmu/config-devices.mak'
GENqapi-types.c
[snip]
CCscsi/qemu-pr-helper.o
make: *** No rule to make targetconfig-all-devices.mak', needed bysubdir-aarch64-softmmu'. Stop.
make: *** Waiting for unfinished jobs....
Quoted 8 lines
Ideally you would only build on a filesystem with proper support, but I haven't been able to find a reason why preserving exact permissions is important in this case.
Signed-off-by Aaron Lindsay <[email protected]>--- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
I cannot see a reason why [email protected] must preserve timestamp/mode/ownership either: