From nobody Sun Aug 27 17:54:06 2023 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RYhCC3b2Wz4rSnB for ; Sun, 27 Aug 2023 17:54:15 +0000 (UTC) (envelope-from dchagin@heemeyer.club) Received: from heemeyer.club (heemeyer.club [195.93.173.158]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RYhCB32SGz4YKb for ; Sun, 27 Aug 2023 17:54:14 +0000 (UTC) (envelope-from dchagin@heemeyer.club) Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of dchagin@heemeyer.club has no SPF policy when checking 195.93.173.158) smtp.mailfrom=dchagin@heemeyer.club; dmarc=none Received: from heemeyer.club (localhost [127.0.0.1]) by heemeyer.club (8.17.2/8.16.1) with ESMTP id 37RHs65R062983 for ; Sun, 27 Aug 2023 20:54:06 +0300 (MSK) (envelope-from dchagin@heemeyer.club) Received: (from dchagin@localhost) by heemeyer.club (8.17.2/8.16.1/Submit) id 37RHs6iL062982 for current@freebsd.org; Sun, 27 Aug 2023 20:54:06 +0300 (MSK) (envelope-from dchagin) Date: Sun, 27 Aug 2023 20:54:06 +0300 From: Dmitry Chagin To: current@freebsd.org Subject: Re: Possible issue with linux xattr support? Message-ID: References: <3q2k3tje2ig2s6wzy4hzvjmoyejiecminvcvevivumtukxrgki@btnpjbztyfa6> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3q2k3tje2ig2s6wzy4hzvjmoyejiecminvcvevivumtukxrgki@btnpjbztyfa6> X-Spamd-Result: default: False [-0.72 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; AUTH_NA(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-0.99)[-0.993]; NEURAL_HAM_SHORT(-0.93)[-0.927]; FORGED_SENDER(0.30)[dchagin@freebsd.org,dchagin@heemeyer.club]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[current@freebsd.org]; TO_DOM_EQ_FROM_DOM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_SPF_NA(0.00)[no SPF record]; R_DKIM_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DMARC_NA(0.00)[freebsd.org]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FREEFALL_USER(0.00)[dchagin]; ARC_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[dchagin@freebsd.org,dchagin@heemeyer.club]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[current@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; ASN(0.00)[asn:61400, ipnet:195.93.173.0/24, country:RU] X-Spamd-Bar: / X-Rspamd-Queue-Id: 4RYhCB32SGz4YKb On Sun, Aug 27, 2023 at 07:15:57PM +0200, Felix Palmen wrote: > * Felix Palmen [20230825 19:54]: > > To verify, I removed xattr support completely from coreutils (and also > > sed) in commit "linuxsrc: Disable usage of xattr" and indeed, with this > > change, GNU's install works as it should. > > I now ran into a second case which makes it very likely the xattr > support is indeed the problem. Trying to create a port for python > setuptools, calling "setup.py install" with debugging opened showed me > this error: > > #v+ > File "/wrkdirs/usr/ports/devel/linuxsrc-setuptools/work/setuptools-63.1.0/setuptools/_distutils/command/install.py", line 706, in run > self.run_command(cmd_name) > File "/wrkdirs/usr/ports/devel/linuxsrc-setuptools/work/setuptools-63.1.0/setuptools/_distutils/cmd.py", line 317, in run_command > self.distribution.run_command(command) > File "/wrkdirs/usr/ports/devel/linuxsrc-setuptools/work/setuptools-63.1.0/setuptools/dist.py", line 1217, in run_command > super().run_command(command) > File "/wrkdirs/usr/ports/devel/linuxsrc-setuptools/work/setuptools-63.1.0/setuptools/_distutils/dist.py", line 987, in run_command > cmd_obj.run() > File "/wrkdirs/usr/ports/devel/linuxsrc-setuptools/work/setuptools-63.1.0/setuptools/command/install_egg_info.py", line 42, in run > self.execute( > File "/wrkdirs/usr/ports/devel/linuxsrc-setuptools/work/setuptools-63.1.0/setuptools/_distutils/cmd.py", line 338, in execute > util.execute(func, args, msg, dry_run=self.dry_run) > File "/wrkdirs/usr/ports/devel/linuxsrc-setuptools/work/setuptools-63.1.0/setuptools/_distutils/util.py", line 344, in execute > func(*args) > File "/wrkdirs/usr/ports/devel/linuxsrc-setuptools/work/setuptools-63.1.0/setuptools/command/install_egg_info.py", line 63, in copytree > unpack_archive(self.source, self.target, skimmer) > File "/wrkdirs/usr/ports/devel/linuxsrc-setuptools/work/setuptools-63.1.0/setuptools/archive_util.py", line 53, in unpack_archive > driver(filename, extract_dir, progress_filter) > File "/wrkdirs/usr/ports/devel/linuxsrc-setuptools/work/setuptools-63.1.0/setuptools/archive_util.py", line 88, in unpack_directory > shutil.copystat(f, target) > File "/usr/lib64/python3.11/shutil.py", line 380, in copystat > _copyxattr(src, dst, follow_symlinks=follow) > File "/usr/lib64/python3.11/shutil.py", line 322, in _copyxattr > names = os.listxattr(src, follow_symlinks=follow_symlinks) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > PermissionError: [Errno 1] Operation not permitted: 'setuptools.egg-info/top_level.txt' > #v- > > I then rebuilt python passing "ac_cv_header_sys_xattr_h=no" to its > configure script, so it thinks there is no sys/xattr.h header. Indeed, > this made the problem installing setuptools go away. > > Cheers, Felix Hi, 1. which fs are you using? 2. jailed? > > -- > Felix Palmen {private} felix@palmen-it.de > -- ports committer -- {web} http://palmen-it.de > {pgp public key} http://palmen-it.de/pub.txt > {pgp fingerprint} 6936 13D5 5BBF 4837 B212 3ACC 54AD E006 9879 F231