From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-4.1 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id F38971F45F for ; Sun, 5 May 2019 15:57:17 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 3B1B2120A0A; Mon, 6 May 2019 00:57:13 +0900 (JST) Received: from o1678916x28.outbound-mail.sendgrid.net (o1678916x28.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id BDD8C120A09 for ; Mon, 6 May 2019 00:57:11 +0900 (JST) Received: by filter0064p3las1.sendgrid.net with SMTP id filter0064p3las1-12824-5CCF07D8-E 2019-05-05 15:57:12.458244916 +0000 UTC m=+848243.140413826 Received: from herokuapp.com (unknown [35.172.227.62]) by ismtpd0023p1iad2.sendgrid.net (SG) with ESMTP id IfbrKZRTS5iaiKZcInZSsw for ; Sun, 05 May 2019 15:57:12.137 +0000 (UTC) Date: Sun, 05 May 2019 15:57:12 +0000 (UTC) From: zmizsei@extrowerk.com Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 68038 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 15787 X-Redmine-Issue-Author: extrowerk X-Redmine-Sender: extrowerk X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: =?us-ascii?Q?=2Fdp7rojWUFaulpcwB2EwWIzUzLr6WwrWraSpLm61wGpz8OP9w+nYSRWiXtBkW5?= =?us-ascii?Q?AZHZyYtaQkICP2h+KsJGV0UiNTlz6X=2F6CXp32rl?= =?us-ascii?Q?m58v=2Fv4SYb1Sp7sxr7GWOPL76Ix9x2D2tY6Lo12?= =?us-ascii?Q?4+wBjr9g0C4HTVnDbDIaJ+SuAlvlEyJoDbJaCXq?= =?us-ascii?Q?ktO4aqcUyk5MY8E8MfO1NIttyssOSe=2Fgizw=3D=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 92555 Subject: [ruby-core:92555] [Ruby trunk Bug#15787] LoadError by EPERM on read-only volume X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #15787 has been updated by extrowerk (Zolt=E1n Mizsei). nobu (Nobuyoshi Nakada) wrote: > Sorry, I have wrongly got this as a rubygems specific error by just readi= ng the subject. > Opening in non-blocking mode is not to block the whole process by loading= from a fifo, then reset it to get rid of problems on the `DATA` stream. > Would't just ignoring `EPERM` suffice? Sorry, but because the missing knowledge i cannot give you a correct and he= lpful answer, but i would gladly test it if you can propose a better fix fo= r this. Thanks! ---------------------------------------- Bug #15787: LoadError by EPERM on read-only volume https://bugs.ruby-lang.org/issues/15787#change-77920 * Author: extrowerk (Zolt=E1n Mizsei) * Status: Feedback * Priority: Normal * Assignee: = * Target version: = * ruby -v: ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-haiku] * Backport: 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN ---------------------------------------- On Haiku the package management just virtually extracts/populates the files= , and as it doesn't have write-overlay feature, the populated files are rea= d-only. Issue: Ruby has to maintain a list of installed gems in a single file, in r= ubygems.rb. Ruby stats this file, and bails out if it is read-only: ``` ~ =BB ruby --version ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-haiku] ~ =BB ruby Traceback (most recent call last): 1: from :2:in `' :2:in `require': Operation not supported -- /boot/sys= tem/lib/ruby/2.6.0/rubygems.rb (LoadError) ~ =BB ls -la /boot/system/lib/ruby/2.6.0/rubygems.rb -r--r--r-- 1 user root 36970 m=E1rc. 6 10:01 /boot/system/lib/ruby/2.6.0/r= ubygems.rb ~ =BB uname -a Haiku shredder 1 hrev53091 Apr 22 2019 22:17:21 x86_64 x86_64 Haiku ``` = The 2.2.x branch was not affected, but since 2.3 every version have this pr= oblem. Happens here: https://github.com/ruby/ruby/blob/trunk/ruby.c#L2098 Either it has to create this file somewhere in non-packaged (this is the wr= iteable folderstructure) and hope it won't get out of sync when pkgman (pac= kage updater software) updates Ruby packages, or it has to be fixed to enum= erate them directly by examining the directories. The fact that this file is located in a packaged tree also hints that Ruby = will probably want to also use packaged location for manual gems installs, = which obviously won't work either. Question: is it possible to force/instrument ruby to use a user-specific "r= ubygems.rb" if the system one read only? Probably this problem exists on other platforms too, where the user doesn't= have write-right to this file. How is it handled? Thank You! ---Files-------------------------------- ruby-changes.patch (897 Bytes) -- = https://bugs.ruby-lang.org/ Unsubscribe: