From owner-freebsd-ruby@freebsd.org Wed Jul 11 12:41:11 2018 Return-Path: Delivered-To: freebsd-ruby@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B97A11039B5F for ; Wed, 11 Jul 2018 12:41:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 516408F972 for ; Wed, 11 Jul 2018 12:41:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 0EAA41039B5C; Wed, 11 Jul 2018 12:41:11 +0000 (UTC) Delivered-To: ruby@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E04F61039B5B for ; Wed, 11 Jul 2018 12:41:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7DD2E8F96D for ; Wed, 11 Jul 2018 12:41:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 8EBA21B29D for ; Wed, 11 Jul 2018 12:41:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w6BCf9MD031291 for ; Wed, 11 Jul 2018 12:41:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w6BCf96q031284 for ruby@FreeBSD.org; Wed, 11 Jul 2018 12:41:09 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ruby@FreeBSD.org Subject: [Bug 229630] rubygem update fails with portmaster caused of wrong order of build (missing build depends in rubygem ports) Date: Wed, 11 Jul 2018 12:41:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: se@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ruby@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jul 2018 12:41:12 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229630 Stefan Esser changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Open --- Comment #2 from Stefan Esser --- The RUN_DEPENDS list is for dependencies that need not be available or up-to-date during a port build, but only to execute the applications in this port (e.g. shells, interpreters). These lead to dependencies recorded in the package built from a port. If the port is manually installed, then run dependencies are checked in the install phase (after the port has been built and staged). Pure run dependencies need not be available when some port is built. Dependencies that are required to build a port are either BUILD_DEPENDS (if= the test is for the existence of some binary, e.g. a compiler) or LIB_DEPENDS. These are made available (and upgraded by portmaster, if applicable) before port that depends on them is built. Since the rubygem ports declare their dependencies as RUN_DEPENDS only, it = is correct to assume that they need by updated before the dependent port is bu= ilt. Therefore, the actual problem is that there are dependencies on shared libraries, which are wrongly declared as run dependencies. The relevant excerpts from bsd.port.mk (somewhat sanitized for easier readi= ng) are: RUN_DEPENDS: A list of "path:dir[:target]" tuples of other ports this=20 package depends to run. The test done to determine the existence of the dependency is the same as FETCH_DEPENDS. This will be checked during the "install" stage and the name of the dependency will be put into the package as well. [...] LIB_DEPENDS: A list of "lib:dir[:target]" tuples of other ports this package depends on. "lib" is the name of a shared library. For dependencies on shared libraries provided by other ports, it is suffici= ent to specify those ports in LIB_DEPENDS, this will imply that those libraries will be registered as run dependencies in the generated packages. Examples of correct usage can also be found in many Uses/*.mk files. --=20 You are receiving this mail because: You are the assignee for the bug.=