IRC channel logs

2022-04-26.log

back to list of logs

<bauen1>fossy: so as i understand the code added in 931490551a5956e4e6ede3544aa0d1a51521aeb9 (the one with `filelist.txt`), that should have already dealt with the problem I saw with the hardlinked /usr/bin/automake, but for some reason it didn't, right ?
<bauen1>but that code depends on `find` existing which we don't have yet
<bauen1>so really the problem is that we only build `find` much later than the problem with hardlink / tar not deleting files is encountered, so the work around just doesn't work
<bauen1>or at least that is my guess, lets see if that is true
<bauen1>fossy: which brings me to this fun question, couldn't you just use `tar -t` to get the list of files and then rm / rmdir as appropiate ? yes it may be more logic but it doesn't need find (ignoring newlines in filenames)
<stikonas[m]>bauen1: note that with `tar -t` we still need to be careful and not remove `tar` and `bzip2`
<stikonas[m]>Maybe extracting to staging dir and `mv`ing would be simpler?
<bauen1>stikonas[m]: what is the problem with unlinking tar while its in use ? the worst that could happen is that tar crashes and you're left without tar ?
<stikonas>bauen1: is that not the cause of the error on that PR?
<stikonas>although I don't fully understand why it happens...
<stikonas>it should have just continued to use tar loaded into memory
<stikonas>bauen1: but what I meant above is if you first get list of files in tarball, rm -rf them from file system and then extract on top then tar might be removed and there will be nothing to extract new tarball
<bauen1>ah yes that would be a problem
<bauen1>no, that's not the problem with my PR; the problem is that the newer tar complains about not being able to rmdir /usr etc. when unpackking the tar pkg
<bauen1>but i'm more interested in the original automake issue, as that shouldn't have been an issue with fossy patch
<bauen1>which only takes effect once we have find, so pretty late
<stikonas>well, we use automake to build find
<stikonas>since nobody bothered to write custum makefile for findutils (not that I'm suggesting to write, we should try to minimize number of custom written build-systems)