From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [94.130.110.93]) (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) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 590391F4CC for ; Fri, 27 Dec 2024 10:16:38 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=NDEVjRYA; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=Wd+gC3+7; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1735294595; bh=83fPgZHsWTGDv9L/20oPtWvWiKHXcD1RtSwbiTnkakI=; h=Date:References:To:Reply-To:Subject:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From:Cc:From; b=NDEVjRYAFTe1EBwx1bXon6Dl8t3HW7jlM1769ItRAb0mc3NCVgMc0fiqSh/kAh5Hp 00+4Jua/5fW85s9dg2lqYz2GUIp0jqJim7VjZA0LrJWooqALcj7ypGP+2QPBZO+EYQ Is/6b11n7iMFAMRvrHD5UktgP4YR7QWKt/WB8Erk= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id A877445F6E for ; Fri, 27 Dec 2024 10:16:35 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=pass (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=Wd+gC3+7; dkim-atps=neutral Received: from s.wfbtzhsw.outbound-mail.sendgrid.net (s.wfbtzhsw.outbound-mail.sendgrid.net [159.183.224.105]) by nue.mailmanlists.eu (Postfix) with ESMTPS id C6F7D45F63 for ; Fri, 27 Dec 2024 10:16:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc:content-type:from:subject:to; s=s1; bh=vXCBAA1G+Xscwso5P2uWxc8EqA/lmDSkMEFldoR3i/s=; b=Wd+gC3+72Irhq2+2MJ6Puk1+mjMbXBE2UExKt7YWlvofReUqpjlkvF+T2urEE0Lq/Vfj s/zexlM7OkyoAFrXtv4xAI5/l7XQOhpPLau/2VFAnxGkdUEaE8+J+qbK9+qqbMW4Wx19Kl 2QXwEqCBxM3l8U2Pr6gYjBd6QjxspKSBjcLTW117a7+bbr5d7sek0OiQLhDJKEX9H0RSmT k6MLZGJL48VqTyKQjUwcFV86t56VbmLpJwiOqnloz1Hi7tVvH93xEhchSFKcMejF/qSJOt 3z/22ToPqqs9/3R+V4mKFSz9cPisuGCGeF3YtzfIpnZNu6qrruLNBqbXvARsqqEA== Received: by recvd-84b546689d-ls6gx with SMTP id recvd-84b546689d-ls6gx-1-676E7E7D-5 2024-12-27 10:16:29.091349459 +0000 UTC m=+3675115.298646863 Received: from herokuapp.com (unknown) by geopod-ismtpd-35 (SG) with ESMTP id yhiY9ELiTUSaWWFtA9G8qg for ; Fri, 27 Dec 2024 10:16:29.032 +0000 (UTC) Date: Fri, 27 Dec 2024 10:16:30 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 20800 X-Redmine-Issue-Author: vo.x X-Redmine-Issue-Priority: Normal X-Redmine-Sender: vo.x 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-Redmine-MailingListIntegration-Message-Ids: 97105 X-SG-EID: =?us-ascii?Q?u001=2EyMiCBSACWrWmffOKyGXWHegF7vzERB8YDC=2Fl8bL1VoJCfzjoEQKqqhWMB?= =?us-ascii?Q?cCIxOU5CxEWLdUTISPq9d+vx=2FmMepEmVp3104xw?= =?us-ascii?Q?7AOMJiUOPbpCMcur3nDNzw0ik+zyQmvaNOYO4pX?= =?us-ascii?Q?YvAhtqqjRSKW19dEt5MkvCbjptbFV3=2F8sd3dGo0?= =?us-ascii?Q?VWgsk3VF=2Fn4quqkQwrwqyJ3NRY+7kB7pUgvcXdH?= =?us-ascii?Q?7esiYQ8pScovbiftLnaiiZvRKx7a3G88lpO4HFA?= =?us-ascii?Q?5oha?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: BDTZXPR4S3C3OJLBCLQ5JAPQBJGXXJPP X-Message-ID-Hash: BDTZXPR4S3C3OJLBCLQ5JAPQBJGXXJPP X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:120429] [Ruby master Bug#20800] Don't place `ruby` executable into `/usr/libexec/x86_64-linux/bin` List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "vo.x (Vit Ondruch) via ruby-core" Cc: "vo.x (Vit Ondruch)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20800 has been updated by vo.x (Vit Ondruch). What I actually want is the configuration options to be honored. If there is used `--bindir=/usr/bin` configuration option, then simply place binaries into that directory (IOW with that option, I expect `/usr/bin/ruby` to be created), don't do any additional modifications to it. Currently, there are still additional logic [1] under which is the destination modified. If there is no `--bindir` specified, then I don't really mind about the result that much. [1]: https://github.com/ruby/ruby/blob/adbbc9109ee71848204b5168a7c1bf604849e5fa/tool/rbinstall.rb#L369-L371 ---------------------------------------- Bug #20800: Don't place `ruby` executable into `/usr/libexec/x86_64-linux/bin` https://bugs.ruby-lang.org/issues/20800#change-111208 * Author: vo.x (Vit Ondruch) * Status: Closed * ruby -v: ruby 3.4.0dev (2024-10-15 master 3da3cabf98) +PRISM [x86_64-linux] * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- Trying to prepare Ruby 3.4 package for Fedora, it seems that since [1], the `ruby` executable is installed into `/usr/libexec/x86_64-linux/bin`: ~~~ installing binary commands: /usr/libexec/x86_64-linux/bin ~~~ Unfortunately, the PR does not explain anything about reasons why. To me, using `libexec` is surprising, because according to FHS [2], the directory is for internal binaries. What is even more surprising is usage of the `bin` subdirectory there, which IMHO does not follow any standard or convention (I don't have `/usr/libexec/x86_64-linux/bin` directory on my Fedora yet). Just FTR, these are the configuration options used: ~~~ /builddir/build/BUILD/ruby-3.4.0_20241016git3da3cabf98-build/ruby-3.4.0-3da3cabf98/configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --runstatedir=/run --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-rubylibprefix=/usr/share/ruby --with-archlibdir=/usr/lib64 --with-rubyarchprefix=/usr/lib64/ruby --with-sitedir=/usr/local/share/ruby/site_ruby --with-sitearchdir=/usr/local/lib64/ruby/site_ruby --with-vendordir=/usr/share/ruby/vendor_ruby --with-vendorarchdir=/usr/lib64/ruby/vendor_ruby --with-rubyhdrdir=/usr/include --with-rubyarchhdrdir=/usr/include '--with-sitearchhdrdir=$(sitehdrdir)/$(arch)' '--with-vendorarchhdrdir=$(vendorhdrdir)/$(arch)' --with-rubygemsdir=/usr/share/rubygems --with-ruby-pc=ruby.pc --with-compress-debug-sections=no --disable-rpath --enable-mkmf-verbose --enable-shared --with-ruby-version= --enable-multiarch --enable-yjit ~~~ The `--enable-multiarch` is among the options. It is used not because Fedora would be `multiarch`, but because it provides the highest flexibility. [1]: https://github.com/ruby/ruby/pull/10010 [2]: https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s07.html -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/