From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nils Gillmann Subject: Re: Redefining the maximum path length [Fwd: Re: [GNUnet-developers] using $TMPDIR instead of /tmp] Date: Sun, 6 May 2018 20:17:20 +0000 Message-ID: <20180506201720.ag4u6irpwh4ibnsy@abyayala> References: <20180506185923.rbzaa3jmck5k5iss@abyayala> <20180506191118.GA1898@jasmine.lan> <20180506192746.kgovlw3drfhofhkt@abyayala> <20180506194950.GC8038@jasmine.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50898) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fFQ5e-0006LN-Bx for guix-devel@gnu.org; Sun, 06 May 2018 16:17:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fFQ5d-0002sX-EV for guix-devel@gnu.org; Sun, 06 May 2018 16:17:02 -0400 Received: from conspiracy.of.n0.is ([2a01:4f8:1c0c:7ad0::1]:38864) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fFQ5d-0002ry-4B for guix-devel@gnu.org; Sun, 06 May 2018 16:17:01 -0400 Content-Disposition: inline In-Reply-To: <20180506194950.GC8038@jasmine.lan> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Leo Famulari Cc: guix-devel@gnu.org Leo Famulari transcribed 3.0K bytes: > On Sun, May 06, 2018 at 07:27:46PM +0000, Nils Gillmann wrote: > > I have inserted a build log of a failing test from > > GNUnet commit f13af7e7281064380def70d0b4392b4351211655 >=20 > [...] >=20 > > TEST: Viewing all stats...FAIL: unexpected output: > > osystem other: = 43 > > subsystem test: = 42 > > !test-statistics-api test-3= : 3 > >=20 > > FAIL test_gnunet_statistics.py (exit status: 1) >=20 > [...] >=20 > > Human addition: > > make[4]: *** [Makefile:1074: test-suite.log] Error 1 > > make[4]: Leaving directory '/tmp/guix-build-gnunet-git1.drv-0/source/sr= c/statistics' > > make[3]: *** [Makefile:1182: check-TESTS] Error 2 > > make[3]: Leaving directory '/tmp/guix-build-gnunet-git1.drv-0/source/sr= c/statistics' > > make[2]: *** [Makefile:1281: check-am] Error 2 > > make[2]: Leaving directory '/tmp/guix-build-gnunet-git1.drv-0/source/sr= c/statistics' > > make[1]: *** [Makefile:550: check-recursive] Error 1 > > make[1]: Leaving directory '/tmp/guix-build-gnunet-git1.drv-0/source/sr= c' > > make: *** [Makefile:591: check-recursive] Error 1 > > phase `set-path-for-check' failed after 29.2 seconds > > note: keeping build directory `/tmp/guix-build-gnunet-git1.drv-0' > > builder for `/gnu/store/daqbvvd3zq2w1aw6w4yz5qm7s5k247ap-gnunet-git1.dr= v' failed with exit code 1 > > @ build-failed /gnu/store/daqbvvd3zq2w1aw6w4yz5qm7s5k247ap-gnunet-git1.= drv - 1 builder for `/gnu/store/daqbvvd3zq2w1aw6w4yz5qm7s5k247ap-gnunet-git= 1.drv' failed with exit code 1 > > guix build: error: build failed: build of `/gnu/store/daqbvvd3zq2w1aw6w= 4yz5qm7s5k247ap-gnunet-git1.drv' failed >=20 > [...] >=20 > > With this we get filenames like: > > /tmp/guix-build-gnunet-git1.drv-0/gnunet/test-gnunet-statistics/.local/= share/gnunet/statistics.dat > > which is an average length. When you just do it in /tmp, you won't expe= rience any difficulties. >=20 > That path is only 98 characters long. What limit do you think it is > exceeding? Right, I provided too little context of the log. Okay, the error is elsewhere in this case, not the path length.. But on topic, I've run into the UNIX_PATH_LENGTH error a couple of times before when the package name was longer, but not unusual long (let's say gnunet-variant-flavor-bla.. A little room to wiggle for applications that do not consider folder naming with the checksums, would be good. Obviously so far these are corner cases, but even if we decide that we would not need it today, a discussion if this is something that can be done, etc etc would be good. =46rom memory, I think I've only ever encountered this in C based applicati= ons test suites. Everything else just worked.