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=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 C44901F5CB for ; Tue, 23 Apr 2019 19:39:29 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 0CA9D120B57; Wed, 24 Apr 2019 04:39:24 +0900 (JST) Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id 079DF12093B for ; Wed, 24 Apr 2019 04:39:19 +0900 (JST) Received: by filter0033p3las1.sendgrid.net with SMTP id filter0033p3las1-13359-5CBF69E8-1C 2019-04-23 19:39:20.894396964 +0000 UTC m=+90966.008618102 Received: from herokuapp.com (unknown [52.90.207.227]) by ismtpd0027p1mdw1.sendgrid.net (SG) with ESMTP id mnt1qKv6SRGO44fKnEeOBw for ; Tue, 23 Apr 2019 19:39:20.687 +0000 (UTC) Date: Tue, 23 Apr 2019 19:39:21 +0000 (UTC) From: zmizsei@extrowerk.com Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 67869 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?=2Fdp7rojWUFaulpcwB2EwWIzUzLr6WwrWraSpLm61wGpQH4fT0gjLypEi7096YV?= =?us-ascii?Q?b1meHNz9lz2=2FFJgqxb76hYBeQKXGOPQ5IFRACE4?= =?us-ascii?Q?46b8TXNRLUSYjdE9A1PpehCgEYWrGvcTpS1K4Yc?= =?us-ascii?Q?f0c0U=2FhNERiPmOw8N0jbD4ZnMrXl=2FEihkh1m0hN?= =?us-ascii?Q?UaJhRr9PpVReF0UlrhPtGponHsao8Y7konA=3D=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 92386 Subject: [ruby-core:92386] [Ruby trunk Bug#15787] rubygems.rb 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 reported by extrowerk (Zolt=E1n Mizsei). ---------------------------------------- Bug #15787: rubygems.rb on read-only volume https://bugs.ruby-lang.org/issues/15787 * Author: extrowerk (Zolt=E1n Mizsei) * Status: Open * 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 uname -a Haiku shredder 1 hrev53091 Apr 22 2019 22:17:21 x86_64 x86_64 Haiku ~ =BB ``` = 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! -- = https://bugs.ruby-lang.org/ Unsubscribe: