From nobody Wed Jul 20 15:34:19 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 4Lp09n4WNqz4XHGx for ; Wed, 20 Jul 2022 15:34:21 +0000 (UTC) (envelope-from se@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Lp09n40NLz3rtD; Wed, 20 Jul 2022 15:34:21 +0000 (UTC) (envelope-from se@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658331261; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wtUJo+zgxA8cXgI0FNNuu8nhKJdRGeC7Lw4yjlKFu5U=; b=ZZLiY0psY6d1vHhR1auedGqk1MX0KST7G/3CXCRDU6nbaOHaTZv57pvrKxhss9E617QvVP tQoWQsoYc0BUoDrBb8eyjGBakC0PjYyaBPPKcxzjvfVF9mKmXupKGm5AObTk0KjSB9Z56D 7dqJFNluZkXNzT/hdHbSSC/3GB7UMoh8O0ncRE69kDDlhb1GAct8/BQ5ZpoP8GzS5a3Knv q/g08hZRIpBUD3mRbCVVWnqj/mBnbt+8RXslz3iOlB+SoBub/5UBukyr1YHKPNN8L3pXMM 0tI0DGgE43wxov55bdhTRJGD4Ip95MUVI/vGldZBzS1NLojY5KcGlAcUs2LxTw== Received: from [IPV6:2003:cd:5f1d:8a00:a05e:903e:a00:8024] (p200300cd5f1d8a00a05e903e0a008024.dip0.t-ipconnect.de [IPv6:2003:cd:5f1d:8a00:a05e:903e:a00:8024]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) (Authenticated sender: se/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Lp09m6qTpz15xH; Wed, 20 Jul 2022 15:34:20 +0000 (UTC) (envelope-from se@freebsd.org) Message-ID: <28e79015-321f-ced6-2388-1392680ea6d3@FreeBSD.org> Date: Wed, 20 Jul 2022 17:34:19 +0200 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 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.0.2 From: se@freebsd.org Subject: Re: svgalib build fail with portmaster Content-Language: de-DE, en-US To: Andy Farkas References: <36ed0442-bea0-1ec1-874e-c346f550ed5d@andyit.com.au> Cc: FreeBSD ports In-Reply-To: <36ed0442-bea0-1ec1-874e-c346f550ed5d@andyit.com.au> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658331261; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wtUJo+zgxA8cXgI0FNNuu8nhKJdRGeC7Lw4yjlKFu5U=; b=CsKKrngPlbZSqEaEznKES/T1PaEmaEXhqhr6a9uUtk3mWwbAbLJtdACRf68NVYE/s11ZK2 QT8iI8Bt6ZqfEtd6QK/6QKlnJIvICNRWN/O28Wgvt1NSHtcbg4r+mv6bhA7qbSguZtoLgQ WsOQUCkIGxy1iWpwBwhxnm1OCj6J16wpvwXUqRWciFam1zXG/dKj00nemA8ep2BKL78fmH a27wGQtSsQS8dGdByaYe72fhmORLVuxWE6WqK3cZqYpnKWpPjqvJgA4xTZ8qGKSKxVzdEQ zIN0krWLNop2Xcwx+TlfIA12iAmzVn9OVJ0d03aBr9iFKGjLPXsXPU99vhA0Kg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658331261; a=rsa-sha256; cv=none; b=ky2E3fxhk0KwBwcI+4YASDTmW1l0V6bYGTnPYvT1tII+bccxcfIlkX+oQq+yPdrS4c8er1 zhAMVghBigz+DSqC2fcRl241RGdtLQdQztMeXKuo6j/MTPnuA4jw7Fx/q29swEeARMAtx2 xHNpM0YZ/xK9WBY3wumrgIm6SJQHSYl0j1/s41srzgo5dNkUenudbl5Tu1ysnTvYjMmqaT yVg3RTjDTwRNGeejvhlS1U2B5gXleM9S0M1TFZJS0k43fVrCYJdG3eW0dBDlCsnEVdtI73 4NYNafI4+586mrIpJl75lwFZyu+BqBPnt/0rYHl18JQIrcY7K0DH1/t2uL1+hg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N Am 20.07.22 um 14:05 schrieb Andy Farkas: > > If I use portmaster to re-build all of my ports it fails at svgalib: Yes, that port is unmaintained (MAINTAINER=ports@freebsd.org) and *severely* broken. I have just spent half an hour trying to identify where the breakage originates, will look a bit more after writing this reply ... This is not an issue in portmaster, but portmaster detects it if you use the -b option (or the equivalent setting in portmaster.rc). The issue is that "make all" in the port directory deletes quite a number of installed files from the system! No port is allowed to install or remove files outside its work directory or the TMPDIR (i.e. /tmp) during "make all" - but this port does just that! > %%% > # 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] > %%% You can just type "i" to ignore the failure to create a backup of the old version before it is removed. > 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 You must not install a port *update* without prior "make deinstall", and BTW: its best to not chain multiple make commands with ";" in the way you show them. Use either && to connect them, or just use multiple targets: # make clean all deinstall install > ... If you had run "make deinstall here, you'd have got the following output: # make deinstall ===> Deinstalling for svgalib ===> Deinstalling svgalib-1.4.3_7 Updating database digests format: 100% Checking integrity... done (0 conflicting) Deinstallation has been requested for the following 1 packages (of 0 packages in the universe): Installed packages to be REMOVED: svgalib: 1.4.3_7 Number of packages to be removed: 1 The operation will free 2 MiB. [1/1] Deinstalling svgalib-1.4.3_7... [1/1] Deleting files for svgalib-1.4.3_7: 0% svgalib-1.4.3_7: missing file /usr/local/bin/dumpreg [1/1] Deleting files for svgalib-1.4.3_7: 0% svgalib-1.4.3_7: missing file /usr/local/bin/restorefont [1/1] Deleting files for svgalib-1.4.3_7: 0% svgalib-1.4.3_7: missing file /usr/local/bin/restorepalette [1/1] Deleting files for svgalib-1.4.3_7: 1% svgalib-1.4.3_7: missing file /usr/local/bin/restoretextmode [1/1] Deleting files for svgalib-1.4.3_7: 1% svgalib-1.4.3_7: missing file /usr/local/bin/savetextmode [1/1] Deleting files for svgalib-1.4.3_7: 2% svgalib-1.4.3_7: missing file /usr/local/bin/textmode [1/1] Deleting files for svgalib-1.4.3_7: 4% svgalib-1.4.3_7: missing file /usr/local/include/vga.h [1/1] Deleting files for svgalib-1.4.3_7: 5% svgalib-1.4.3_7: missing file /usr/local/include/vgagl.h [1/1] Deleting files for svgalib-1.4.3_7: 5% svgalib-1.4.3_7: missing file /usr/local/include/vgajoystick.h [1/1] Deleting files for svgalib-1.4.3_7: 6% svgalib-1.4.3_7: missing file /usr/local/include/vgakeyboard.h [1/1] Deleting files for svgalib-1.4.3_7: 6% svgalib-1.4.3_7: missing file /usr/local/include/vgamouse.h [1/1] Deleting files for svgalib-1.4.3_7: 6% svgalib-1.4.3_7: missing file /usr/local/lib/libvga.a [1/1] Deleting files for svgalib-1.4.3_7: 7% svgalib-1.4.3_7: missing file /usr/local/lib/libvga.so [1/1] Deleting files for svgalib-1.4.3_7: 7% svgalib-1.4.3_7: missing file /usr/local/lib/libvga.so.1 [1/1] Deleting files for svgalib-1.4.3_7: 7% svgalib-1.4.3_7: missing file /usr/local/lib/libvgagl.a [1/1] Deleting files for svgalib-1.4.3_7: 8% svgalib-1.4.3_7: missing file /usr/local/lib/libvgagl.so [1/1] Deleting files for svgalib-1.4.3_7: 8% svgalib-1.4.3_7: missing file /usr/local/lib/libvgagl.so.1 [1/1] Deleting files for svgalib-1.4.3_7: 100% All the files the port installs have been removed from /usr/local/bin and /usr/local/lib by "make all". There is nothing left to delete (and nothing to backup, and that's what portmaster is complaining about). > ===>  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? Well, trying to install and use svgalib might be considered wrong-doing in this millenium ;-) But no, you just detected this unacceptable behavior of the svgalib Makefile (it is not an issue in the port, but in one of the Makefiles in the svgalib sources). I'll commit an update to the svgalib port when I succeed in locating the line that issues the "rm -f" command that deletes those files. I cn see "unlink" system calls being issued to remove them and I see the PID of the rm command (or rather several invocations of "rm"), but I have not identified from where these commands are run. Regards, STefan