IRC channel logs

2021-03-17.log

back to list of logs

***stikonas_ is now known as stikonas
<stikonas>fossy: I'm testing my automake fixes now, it's not too bad, although automake 1.6.3 is now 3 stage process. Also when building automake-1.4 with automake-1.6 there is a non-critical error that I ignored with automake-1.6 || true. Alternatively we can patch out Makefile.am
***ChanServ sets mode: +o rekado_
***scs is now known as Guest72788
<stikonas> https://github.com/fosslinux/live-bootstrap/pull/69
<stikonas>fossy: ^^ PR is now ready, it's now like this autoconf-2.52 (manual stage1) -> automake 1.6 (manual aclocal stage; manual automake stage; proper autotools rebuild) -> automake 1.4 -> autoconf-2.52 (proper rebuild with automake-1.4)
<Hagfish>the correct response to such a pull request must be: "nice" :)
<Hagfish>i am actually reviewing it, just as a learning exercise, though
<Hagfish>stikonas: in sysa/automake-1.4-p6/automake-1.4-p6.sh you do "sed -i" then "set -i"
<stikonas>ouch, typo...
<stikonas>thanks!
<Hagfish>no problem :)
<Hagfish>presumably the CI would have picked that up?
<stikonas>probably not
<stikonas>because I ran it
<stikonas>it might be that the 2nd sed is not necessary...
<Hagfish>interesting
<Hagfish>also in src_configure() i've not seen the syntax/convention of a single ":" before
<Hagfish>i'd be interested to learn what that's for
<stikonas>it's empty statement
<stikonas>I have to define an empty function
<stikonas>oh, actually default configure is empty
<stikonas>sowe can skip it...
<Hagfish>cool
<stikonas>oh, I see why set -i wasn' necessary
<Hagfish>oh?
<stikonas>I did delete one extra line in previous sed...
***scs is now known as Guest39650
***scs is now known as Guest25016
***ChanServ sets mode: +o rekado
<pder>stikonas: it looks like we can skip sed 4.0.7 and go straight to 4.0.9. I am testing and will create a PR later
<stikonas>pder: ok
<stikonas>pder: I think we can also rebuild the same gawk
<stikonas>with autotools, then instead of those stupid redirect errors, we get meaningful errors
<stikonas>pder: e.g. that bash error that you ignored with || true is "configure:11936: error: possibly undefined macro: AC_FUNC_MBRTOWC"
<pder>If possible, it would be nice to try a newer gawk because I was seeing errors from gawk in autoconf that went away with later versions
<stikonas>well, newer gawk needs newer autoconf
<stikonas>so depends on how new
<stikonas>at the moment I locally rebuilt gawk in chroot
<pder>Maybe we try building newer gawk with a makefile?
<stikonas>to see if I can bootstrap 2.53
<stikonas>not sure if it's worth...
<stikonas>well, autoconf 2.53 had two errors, one I get get rid of easily with sed '//d'
<stikonas>by deleting one line
<stikonas>still looking at the other
<pder>Anyway, its a bit fuzzy, but I thought I tried to rebuild our current gawk version with the latest tcc-musl and it didnt help with the error you indicated above
<stikonas>configure.ac:86: error: possibly undefined macro: m4_bmatch
<stikonas>but it at least prints it properly?
<stikonas>so maybe I can just rebuild locally for now for debugging purposes
<stikonas>fix those errors
<pder>The configure script that is generated works
<stikonas>for bash yes
<stikonas>for autoconf 2.53, no
<pder>ok
<stikonas>it complains about m4 version being too old
<stikonas>even though we have it
<stikonas>so I think it's related to m4_bmatch
<stikonas>I think there were more 2.52 bug fix releases...
<stikonas>we probably don't have them
<pder>git://git.sv.gnu.org/autoconf
<pder>there is autoconf-2.52 a-i
<stikonas>yeah, that macro m4_bmatch appeared later
<stikonas>I was looking at Changelog
<stikonas>oh, those are alpha releases..
<stikonas>I think...
<stikonas>although no longer available on https://alpha.gnu.org/gnu/autoconf/
<stikonas>so I guess they used one or more intermediate versions for bootstrapping it
<pder>AUTOCONF-2.52a is newer than AUTOCONF-2.52 in git
<stikonas>yes
<stikonas>it's first alpha for 2.53
<stikonas>and i is the last alpha for 2.53
<pder>that makes sense
<stikonas>ok, that might be patchable...
<stikonas>if we remove the whole m4_bmatch block from configure.ac
***smartineng2 is now known as smartineng
<roptat>hi! I was trying to optimize our python package in guix when I noticed that it contains some bundled binaries and generated files
<roptat>for instance, there's a Lib/ensurepip/_bundled/setuptools-41.2.0-py2.py3-none-any.whl that contains some .exe (PE executables for windows), and is itself generated
<roptat>it's a zip archive with mostly .py files, so I suppose it's not too bad, but I'd like to get rid of the .exe, so if you know how to do that, it would be very helpful :)
<roptat>(just asking in case someone here noticed and already has an easy solution)
<roptat>(that file is in the sources of python, and it's uncompressed and its content is part of the resulting package)
<civodul>roptat: oh, that doesn't sound great
<civodul>is this .whl actually used?
<stikonas>maybe only used on windows?
<stikonas>these exe files are indeed part of setup tools installation
<stikonas>for some reason...
<stikonas>looks like on all distros, e.g. debian here https://packages.debian.org/buster/all/python3-setuptools/filelist same on Gentoo
<stikonas>so looks like those files have to be present for windows users
<stikonas>so on non-windows systems they are not needed
<stikonas>but I guess they are shipped so that the same package can be uploaded to PyPI
<stikonas>somebody was complaining about similar issue here https://github.com/pypa/setuptools/issues/1
<roptat>and the .whl gets installed: /gnu/store/dhs75nz707g1gsm0f2i5rblc5dsj2ixh-python-3.9.1/lib/python3.9/ensurepip/_bundled/setuptools-49.2.1-py3-none-any.whl
<stikonas>yes it's installed... but I'm just saying
<stikonas>nothing uses those files
<roptat>there's also a pip-20.2.3-py2.py3-none-any.whl (that also gets installed) in the same directory, that contains a few .exe
<stikonas>so if those exes are removed from whl then I don't think it will break anything
<roptat>right, I can try, thanks :)
<stikonas>fossy: maybe merge your PR too? It's just whitespace change now and docs
<stikonas>so CI is not really necessary
<roptat>except I'd need zip and unzip for that
<stikonas>is it not available at that stage yet ?
<roptat>oh but they're used for pip I think, so that's fine
<roptat>I can simply remove the .whl in the bootstrap python
<roptat>in commencement.scm
<fossy>yeah ok
<pder>fossy, stikonas: https://github.com/fosslinux/live-bootstrap/pull/70
<pder>This drops sed 4.0.7 in favor of sed 4.0.9 eliminating a download
<stikonas>yeah, looks fine
<stikonas>well, for this one let's wait for CI...
<stikonas>I'm now patching autoconf 2.53, hopefully another PR soon too
<pder>thanks for all your autotools work, stikonas. I hope you aren't finding it too painful.
<stikonas>no, it's alright...
<stikonas>although less exciting than other binaries
<pder>The nice thing Ive found is that once we have more modern versions of autotools, several packages like newest tar and xz compile without issues
<stikonas>yeah, that's good
<stikonas>and I think once I have 2.53, newer autotools will be more compatible
<stikonas>so easy to upgrade
<stikonas>2.52->2.53 was a big rewrite (large parts rewritten in perl)
<stikonas>xz would be nice to have too
<stikonas>more modern packages don't ship bz2
<pder>I notice there is xzdec which is a smaller possibly simpler tool to build
<stikonas>well, tcc can actually build a lot of things...
<stikonas>especially with tools and libc that we have now
<pder>I didnt notice my sed branch was behind. Shall I rebase it?
<stikonas>pder: I guess I can insert newer autoconfs just before bash?
<stikonas>so that eventually we can rebuild gawk there and remove || true workaround
<mihi>OriansJ, any idea why this code compiles with latest M2-Planet from GitHub but dies immediately with a floating-point exception? https://gist.github.com/schierlm/91f6cd3a855a82bdc5328ba6fe90bd2a
<mihi>if not, I'll have to try to debug it myself on the weekend :)
<mihi>(or reduce to a more minimal example)