From nobody Wed Jul 20 12:55:04 2022 X-Original-To: freebsd-ports@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 4LnwfN1KC8z4WynP for ; Wed, 20 Jul 2022 12:55:24 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from www121.sakura.ne.jp (www121.sakura.ne.jp [153.125.133.21]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4LnwfL1JT3z3TjX for ; Wed, 20 Jul 2022 12:55:22 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from kalamity.joker.local (123-1-85-147.area1b.commufa.jp [123.1.85.147]) (authenticated bits=0) by www121.sakura.ne.jp (8.16.1/8.16.1/[SAKURA-WEB]/20201212) with ESMTPA id 26KCt5Uq079557; Wed, 20 Jul 2022 21:55:05 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) Date: Wed, 20 Jul 2022 21:55:04 +0900 From: Tomoaki AOKI To: Andy Farkas Cc: freebsd-ports@freebsd.org Subject: Re: svgalib build fail with portmaster Message-Id: <20220720215504.88a245ea12e95bf46729e646@dec.sakura.ne.jp> In-Reply-To: <36ed0442-bea0-1ec1-874e-c346f550ed5d@andyit.com.au> References: <36ed0442-bea0-1ec1-874e-c346f550ed5d@andyit.com.au> Organization: Junchoon corps X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.0) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4LnwfL1JT3z3TjX X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of junchoon@dec.sakura.ne.jp has no SPF policy when checking 153.125.133.21) smtp.mailfrom=junchoon@dec.sakura.ne.jp X-Spamd-Result: default: False [-1.60 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; AUTH_NA(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_NA(0.00)[no SPF record]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:7684, ipnet:153.125.128.0/18, country:JP]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_SOME(0.00)[]; HAS_ORG_HEADER(0.00)[]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[sakura.ne.jp]; TO_DN_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Wed, 20 Jul 2022 22:05:19 +1000 Andy Farkas wrote: > > If I use portmaster to re-build all of my ports it fails at svgalib: > > %%% > # portmaster -adf > ... > gmake[2]: Leaving directory > '/usr/ports/work/usr/ports/graphics/svgalib/work/svgalib-1.4.3/doc' > > Now run 'make demoprogs' to make the test and demo programs in demos/ > and threedkit/. > gmake[1]: Leaving directory > '/usr/ports/work/usr/ports/graphics/svgalib/work/svgalib-1.4.3' > cd > /usr/ports/work/usr/ports/graphics/svgalib/work/svgalib-1.4.3/include/linux > &&  install  -m 0644 keyboard.h kd.h > /usr/ports/work/usr/ports/graphics/svgalib/work/stage/usr/local/include/linux > ====> Compressing man pages (compress-man) > > ===>>> Creating a backup package for old version svgalib-1.4.3_7 > Creating package for svgalib-1.4.3_7 > pkg-static: file '/usr/local/bin/dumpreg' is missing > pkg-static: package creation failed > > ===>>> Package creation failed for svgalib-1.4.3_7! > > ===>>> Ignore this error  [i] > ===>>> Abort update       [a] > ===>>> Retry              [r] > > ===>>> How would you like to proceed? [i] > %%% > > > But if I do it manually it works: > > %%% > root:~ # cd /usr/ports/graphics/svgalib/ > root:/usr/ports/graphics/svgalib # make clean ; make all ; make install > ... > ===>  Installing for svgalib-1.4.3_7 > ... > ===>  Checking if svgalib is already installed > ... > ===>   Registering installation for svgalib-1.4.3_7 > ... > Installing svgalib-1.4.3_7... > ... > ===>   NOTICE: > The svgalib port currently does not have a maintainer. As a result, it is > more likely to have unresolved issues, not be up-to-date, or even be > removed in > the future. To volunteer to maintain this port, please create an issue at: > > https://bugs.freebsd.org/bugzilla > > More information about port maintainership is available at: > > https://docs.freebsd.org/en/articles/contributing/#ports-contributing > > root@mater:/usr/ports/graphics/svgalib # > %%% > > > What am I doing wrong? > > -andyf I'm not at all familiar with portmaster (I habitally use portupgrade), but your problem happenes at "Creating a backup Creating a backup package for old version svgalib-1.4.3_7" phase. You would have deleted (regardless intentionally or accidentally) the pointed file (/usr/local/bin/dumpreg). Why direct `make clean ; make all ; make install` worked fine is that the process not at all containes backup phase. *For upgrading, usually it should be `make clean && make all && make deinstall && make reinstall \ && make clean` to be sure each phase finishes successfully and no unneeded remnants remains (except configuration files). (A bit paranoid.) Looking into commit log at cgit [1], the problematic file is already there at the first commit and unchanged afterwards. So the file should be there when you installed (or previously updated). Another possiblity would be you changed LOCALBASE when you installed (or updated) previouly but portmaster doesn't recorded the fact properly. (i.e., the port was installed under /opt/, but portmaster looks for /usr/local due to mis-recorded LOCALBASE.) But this case you SHOULD know and notice what happened clearly. [1] https://cgit.freebsd.org/ports/log/graphics/svgalib/pkg-plist -- Tomoaki AOKI