jaeger changed the topic of #crux-devel to: CRUX (https://crux.nu/) development channel | Logs: https://libera.irclog.whitequark.org/crux-devel/
prologic has quit [Quit: ZNC - https://znc.in]
prologic has joined #crux-devel
<beerman> anyway, jaeger jue Romster would be fine to decide what to do together.
<beerman> i won't have time to change all my package files before sometime next week. but it would be good to decide if we pull the rename patch into 3.6 or not..
<SiFuh_> Everybody
<stenur> Hey.
<stenur> Could someone write a script that simply does
<SiFuh_> Haha
<stenur> git ls-remote https://github.com/vim/vim | grep v8.2.3685
<stenur> c07f11e42fc2eac5e750bf05aa3030f9b02a22ca refs/tags/v8.2.3685
<stenur> Or git ls-remote https://github.com/crigler/dtach | grep v0.9
<stenur> a7a74fe4f830c09d2d7a8a7205850e24846d62a0 refs/tags/v0.9
<stenur> a7acac922770597f5da5df7b290078770d20dac32 refs/tags/v0.9^{}
<stenur> Ie that surely can be worked around automatically with a script, no?
<stenur> .. because:
<stenur> that works, yet the Pkgfile
<stenur> =======> ERROR: Downloading 'https://github.com/vim/vim/archive/v8.2.3671/vim-8.2.3671.tar.gz' failed.
<stenur> does not
<SiFuh_> anymore*
<stenur> yeah.
<stenur> It needs to be
<stenur> 34c20ff85b87be587ea5d0398812441b502ee6a5 refs/tags/v8.2.3671
<stenur> anyhow
<stenur> Much better doing that automatically than editing it all by hand.
<SiFuh_> I have just under 109 of them to change and who knows how many Romster and Beerman need to change
<stenur> Yes. I would say wait a bit maybe they fix it ('was wodering why Google said just nothing on the topic), otherwise write a script that replaces the version with the git commit
<SiFuh_> beerman mentioned something about a renaming system.
<stenur> Ie. my nawk port uses gitver= and then does https://github.com/onetrueawk/${realn}/archive/${gitver}/${realn}-${version}.tar.gz, did so for different reasons but scheme should work for everything
<stenur> SiFuh: yes that change from five years ago or so where all the old CRUX hands commented on, but did not commit it; they all quit but the thing maybe is in now.
<SiFuh_> Could also introduce something like arch linux's special handling of package version for GIT
<stenur> Btw AlpineLinux switches from sudo to doas. doas here just fine
<ivandi> 2021-11-27 14:43:28 (6.27 MB/s) - 'vim-8.2.3671.tar.gz' saved [15811048]
<ivandi> just found PKGMK_WGET_OPTS in pkgmk.conf, so we can add --content-disposition to wget options and use the github url
<farkuhar> ivandi: the wget manpage suggests that --content-disposition is meant for CGI scripts that servers use to specify the filename for downloads. But /usr/bin/pkgmk invokes wget with the --output-document option, overriding any filename info that github would provide in a Content-Disposition header.
<ivandi> wget -c --content-disposition https://git.sr.ht/~sircmpwn/scdoc/archive/1.11.2.tar.gz
<ivandi> 2021-11-27 15:54:28 (425 MB/s) - 'scdoc-1.11.2.tar.gz' saved [12746]
<ivandi> farkuhar: we have to modify pkgmk and get rid of LOCAL_FILENAME_PARTIAL stuff
<ivandi> looks easier than a rename patch
<farkuhar> ivandi: no objection here. The LOCAL_FILENAME_PARTIAL stuff seemed like too much micromanagement anyway, but I can see the logic of making sure that the filenames agree with the contents of .signature, independent of any reconfiguration of the server later on.
<farkuhar> Letting github or another host decide what to write on your disk ... after their tweaks to the URL rewrite configuration this weekend, I'm not sure I trust them to provide good metadata in a Content-Disposition header.
<farkuhar> If anyone chose to set PKGMK_DOWNLOAD_PROG="curl" instead of the default wget, then the counterpart to ivandi's wget suggestion is to set PKGMK_CURL_OPTS="-OJ". Again the manpage warns us that misconfigured servers could return a filename that clobbers something you don't want to overwrite on your system, hence the use of LOCAL_FILENAME_PARTIAL as a safeguard.
ivandi has quit [Quit: WeeChat 3.3]
ivandi has joined #crux-devel
<groovy2shoes> i had -J in my curl opts for a bit, according to a comment in my pkgmk.conf, which also says it broke some ports
<groovy2shoes> but i don't remember which ones
<stenur> curl: --continue-at and --remote-header-name cannot be combined
<stenur> bad for my internet connection; though now that i go via "jump host" aka wireguard VPN tunnel that became much much better
<stenur> btw curl -J -L https://github.com/vim/vim/archive/v8.2.3671/vim-8.2.3671.tar.gz does not work, too