From nobody Sat Nov 06 00:53:04 2021 X-Original-To: ports-bugs@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 608AB182B69D for ; Sat, 6 Nov 2021 00:53:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HmJl42Dhnz4hyR for ; Sat, 6 Nov 2021 00:53:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2C98E21F34 for ; Sat, 6 Nov 2021 00:53:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1A60r4ST083614 for ; Sat, 6 Nov 2021 00:53:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1A60r4qc083613 for ports-bugs@FreeBSD.org; Sat, 6 Nov 2021 00:53:04 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: ports-bugs@FreeBSD.org Subject: [Bug 259669] comms/xastir update from 2.1.6 to 2.1.8 Date: Sat, 06 Nov 2021 00:53:04 +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 Only Me X-Bugzilla-Who: russo@bogodyn.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: 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 List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259669 --- Comment #3 from russo@bogodyn.org --- Alas, while my patch does work on my system, that's because I have autoconf= and automake installed, both of which are needed by "bootstrap.sh". Unfortunat= ely, as I have done it that introduces a problem. Bootstrap.sh must be run *after* extraction and *before* patching, because = two of the patches are to files that automake creates (Makefile.in and src/Makefile.in) and which do not exist in the tarball anymore. That's why= I put the replace_cmd and bootstrap.sh in post-extract. But because bootstrap.sh runs them, autoconf and autoconf are build dependencies. I have tried to add them to BUILD_DEPENDS as: BUILD_DEPENDS=3D xfontsel:x11-fonts/xfontsel \ autoconf>=3D2.60:devel/autoconf \ automake>=3D0:devel/automake But apparently build dependencies don't even get checked until after patchi= ng. Thus, a user trying to build the package without having autoconf and automa= ke installed already would have the port fail during post-extraction, and not cleanly. I am not sure the best way to proceed, because this package must have bootstrap.sh run before the patches can work, and bootstrap.sh requires autoconf and automake. It is possible that the patches to Makefile.in and src/Makefile.in could be better handled by patching Makefile.am and src/Makefile.am, the inputs to automake, and if so "bootstrap.sh" could be run as a pre-configure step --- that would solve the dependency problem, because build dependencies are che= cked before pre-configure. Unfortunately, I don't immediately see how to make both of those changes wo= rk in the pre-autotools files. The Makefile.in patch is easy and could just be done earlier by removing one line of Makefile.am (the line that unnecessarily sets mandir=3D${prefix}/share/man). I don't even know why that line is there. But I don't understand the sparc64-specific src/Makefile.in patch or how to place it correctly in Makefile.am so it is inserted properly when automake generates Makefile.am. From what I can tell, it's trying to change optimization options on the compile line for exactly one source file, but o= nly on sparc64. If the two Makefile.in patches could be recrafted so that they could apply = to Makefile.am instead, then running bootstrap.sh could be deferred until pre-configure. Note that simply doing "USES =3D autoreconf" is not good enough, because Xa= stir's bootstrap.sh does more than just run all the autotools, it also generates a= few other files outside of the autoconf system (mostly goofy language files that some developer thought were hilarious for some reason). --=20 You are receiving this mail because: You are the assignee for the bug.=