Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[sol] (bcachefs) / and (tmpfs) /var/tmp/portage emerges fail
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
DeIM
Guru
Guru


Joined: 11 Apr 2006
Posts: 442

PostPosted: Fri Jul 19, 2024 1:30 pm    Post subject: [sol] (bcachefs) / and (tmpfs) /var/tmp/portage emerges fail Reply with quote

I have bchachefs as root fs with compression and compile /var/tmp/portage on tmpfs.

Some packages fails to install with:
Code:
Failed to copy file: _parsed_options=Namespace(group=-1, owner=-1, mode=420, preserve_timestamps=False), source=b'/var/tmp/portage/app-misc/screen-4.9.1-r1/files/screenrc', dest_dir=b'/var/tmp/portage/app-misc/screen-4.9.1-r1/image/etc'
Traceback (most recent call last):
  File "/usr/lib/portage/python3.12/doins.py", line 200, in run
    movefile._copyxattr(source, dest, exclude=self._xattr_exclude)
  File "/usr/lib/python3.12/site-packages/portage/util/movefile.py", line 99, in _copyxattr
    raise OperationNotSupported(
portage.exception.OperationNotSupported: Filesystem containing file '/var/tmp/portage/app-misc/screen-4.9.1-r1/image/etc/screenrc' does not support extended attribute 'bcachefs_effective.compression'


When I umount tmpfs it works well.


Last edited by DeIM on Wed Oct 02, 2024 9:22 am; edited 1 time in total
Back to top
View user's profile Send private message
sublogic
Apprentice
Apprentice


Joined: 21 Mar 2022
Posts: 269
Location: Pennsylvania, USA

PostPosted: Sat Jul 20, 2024 1:04 am    Post subject: Reply with quote

I can only offer guesses, but
Code:
portage.exception.OperationNotSupported: Filesystem containing file '/var/tmp/portage/app-misc/screen-4.9.1-r1/image/etc/screenrc' does not support extended attribute 'bcachefs_effective.compression'
your tmpfs does not support one of your bcachefs' attributes. Why portage is trying to set that attribute when copying from tmpfs to tmpfs is beyond me.

DeIM wrote:
When I umount tmpfs it works well.
Because now you are writing to bcachefs.
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2851

PostPosted: Sat Jul 20, 2024 2:37 am    Post subject: Reply with quote

sublogic wrote:
I can only offer guesses, but
Code:
portage.exception.OperationNotSupported: Filesystem containing file '/var/tmp/portage/app-misc/screen-4.9.1-r1/image/etc/screenrc' does not support extended attribute 'bcachefs_effective.compression'
your tmpfs does not support one of your bcachefs' attributes. Why portage is trying to set that attribute when copying from tmpfs to tmpfs is beyond me.
It's not from tmpfs to tmpfs, it's from bcachefs to tmpfs, the file it's copying is: /var/tmp/portage/app-misc/screen-4.9.1-r1/files/screenrc

And "files/" is going to be a symlink to /var/db/repos/gentoo/app-misc/screen/files.

That aside, haven't tried much but I can't reproduce in my bchacefs VM (test VM I happened to try bcachefs for rootfs in before) if I switch portage's tmpdir to use tmpfs as-is, probably need to set the xattr (I do have compression enabled but filesystem-wide rather than per-directory/file, don't know bcachefs well but assume the latter uses xattrs).

Edit: Presumably, that would solve this https://github.com/gentoo/portage/pull/1346 (pointed out by sam on irc)
Back to top
View user's profile Send private message
Flow__
n00b
n00b


Joined: 10 Jul 2007
Posts: 26

PostPosted: Sat Jul 20, 2024 8:40 am    Post subject: Reply with quote

Note that setting

Code:

PORTAGE_XATTR_EXCLUDE="${PORTAGE_XATTR_EXCLUDE} bachefs.* bcachefs_effective.*"


in /etc/portage/make.conf should also fix this, even without the changes of the PR applied.
Back to top
View user's profile Send private message
DeIM
Guru
Guru


Joined: 11 Apr 2006
Posts: 442

PostPosted: Wed Oct 02, 2024 9:23 am    Post subject: Reply with quote

Flow__ wrote:
Note that setting

Code:

PORTAGE_XATTR_EXCLUDE="${PORTAGE_XATTR_EXCLUDE} bachefs.* bcachefs_effective.*"


in /etc/portage/make.conf should also fix this, even without the changes of the PR applied.


This works well for me :-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum