2019-06-07 13:22:29 So I'd like to suggest requiring patch headers to be added to patched 2019-06-07 13:22:51 See https://exherbo.org/docs/eapi/exheres-for-smarties.html#applying_patches for some reasoning as to why (feel free to ignore the Exherbo specific parts like when to apply patches) 2019-06-07 13:23:06 It's super nice knowing if a patch is upstream and what it's for 2019-06-07 13:23:13 Thanks :) 2019-06-07 13:23:27 I can't guarantee it'll make it in, but there's a good case for it and I'll include it in the draft 2019-06-07 13:23:33 And it's just super annoying having to guess what a patch is for 2019-06-07 13:24:04 Thanks. Ping me if there's something I can help with :) 2019-06-07 13:30:36 Will do :) 2019-06-07 22:51:34 Ping Cogitri - I'm thinking the idea is good, but would be interested in a different header type 2019-06-07 22:51:44 Would that be ok with you, or do you want that one specifically? 2019-06-07 22:52:49 Ah, I'm totally fine with a different header type, that one was just an example. What do you have in mind? 2019-06-07 22:54:20 I'm thinking Source: with a standard format (Todo) + Remove When: 2019-06-07 22:54:38 And whatever is needed (loose format) explaining the reason for the patch and what it does 2019-06-07 22:55:30 Remove When could be anything from (1.0.0 is out) to bug_url is resolved to "musl support is added upstrean" 2019-06-07 22:58:02 Hm, I feel like almost every time `Remove When` would point to an URL containing more info anyway, it's pretty hard to say when a patch should be removed in advance 2019-06-07 22:58:39 It's still more useful, imo 2019-06-07 22:59:03 Sometimes there isn't a url, and sometimes the fix is already merged, but no release has been made 2019-06-07 22:59:13 Hm, alright 2019-06-07 22:59:15 Upstream is just very vague, and less informative 2019-06-07 22:59:53 (e.g in Remove When:, JUST a url wouldn't make sense 2019-06-07 23:00:09 It would be "the bug in this url is resolved" or "this PR is merged", etc) 2019-06-07 23:00:10 ACTION sent a long message: < https://matrix.org/_matrix/media/v1/download/matrix.org/wavwlmYNTjJVDwMtULLrfLPc > 2019-06-07 23:00:20 Yes 2019-06-07 23:00:27 Source would be a standardized format 2019-06-07 23:00:58 Alright, sounds good to me 2019-06-07 23:01:13 Something like [distribution:] [John Doe] [URL to something containing the patch or a link to it, preferably the latter] 2019-06-07 23:01:25 With one or more elements required 2019-06-07 23:01:44 Okay, Ty :) 2019-06-07 23:01:49 I'll ping you again once I have a draft 2019-06-07 23:03:18 Thanks! 2019-06-08 17:21:27 ping Cogitri - current draft for the "best packaging practices" page is here: https://minio.toastin.space/shared/best.html 2019-06-08 17:21:38 you may notice a section relevant to you at the end 2019-06-08 17:21:40 does that look ok? 2019-06-08 17:23:57 What's the `family` in `Source: [distribution: ] [Name Family] [URL]` for? 2019-06-08 17:25:30 John Doe 2019-06-08 17:25:32 Doe being the family 2019-06-08 17:25:37 (as in family name) 2019-06-08 17:25:42 I dislike the name/surname distinction sort 2019-06-08 17:26:13 since it implies that the family is necessarily more important (see: etymology of "sur" - "above" etc) 2019-06-08 17:26:41 Ah, but isn't it `Full name ` everywhere else? 2019-06-08 17:26:50 <_ikke_> Isn't "John Doe " more common? 2019-06-08 17:27:03 oh, I might be blanking 2019-06-08 17:27:09 my bad, will fix 2019-06-08 17:27:21 Yup, what ikke said 2019-06-08 17:27:24 s/Family// 2019-06-08 17:27:30 Seems good to me otherwise, thank you! 2019-06-08 17:27:31 I think I was thinking of 2019-06-08 17:28:53 _ikke_: does this look ok? `[[Name] ["Nickname"] [Family Name] ]` 2019-06-08 17:29:02 i.e Email is the important part, you can include all this other information, in that format 2019-06-08 17:29:18 if not I'll just keep `Name ` 2019-06-08 17:34:46 Isn't 'e-mail address' enough 2019-06-08 17:35:48 it depends 2019-06-08 17:35:58 e-mail is the original spelling, and it's "electronic mail", but english does evolve 2019-06-08 17:36:11 email is a far more common spelling, to the point that the AP stylebook recommends email 2019-06-08 17:36:20 several newspapers as well 2019-06-08 17:36:21 some doesn't want to write their full names when sending patches 2019-06-08 17:36:55 that's why I explicitly mark them as optional 2019-06-08 17:37:19 ah, then it is ok 2019-06-08 17:37:19 [something] is commonly used in cli environments (like manual pages and --help outputs) to mark optional content 2019-06-08 17:37:40 as per the comments below - you must *at least* have an email or a URL 2019-06-08 17:37:45 everything else is just bonus information :) 2019-06-08 17:38:01 ok, read through elinks, and thought it added brackets 2019-06-08 17:38:37 personally I prefer full names, but know that some doesn't 2019-06-08 17:40:19 latest iteration: `Source: [distribution: ] [Name] ["Nickname"] [Family Name] [] [URL]` 2019-06-08 17:40:31 with "at least one of Email or URL being required" 2019-06-08 17:41:10 Seems good to me 2019-06-08 17:41:21 ty :) 2019-06-09 02:32:40 ( | ) 2019-06-09 02:32:40 ^^ the usual way to say one is required 2019-06-09 02:32:58 tcely++, let me patch that in 2019-06-09 02:33:20 it wasn't an option initially because they weren't next to each other 2019-06-09 02:33:41 done, ty :) 2019-06-09 02:33:59 yw 2019-06-09 02:37:02 no <>s around URL, but that's because the <>s in Email are literal 2019-06-09 02:37:09 (i.e literally ) 2019-06-09 03:14:56 Literals usually get quoted to distinguish them from NF syntax 2019-06-09 03:15:39 well this isn't really meant to exactly replicate stuff 2019-06-09 03:15:44 maybe I'll add an example with everything present 2019-06-13 19:13:56 re: https://github.com/alpinelinux/aports/pull/8780#pullrequestreview-249535101 - this opens up an interesting conversation 2019-06-13 19:14:17 as of right now, there definitely is a "majority" of things done a specific way, but certainly not all 2019-06-13 19:14:23 lots of inconsistencies around as well 2019-06-13 19:14:58 things that should ideally be decided (and documented once they have been decided): 2019-06-13 19:15:05 1. How should constants be quoted? 2019-06-13 19:15:20 2. How should non-constants be quoted? 2019-06-13 19:15:35 3. How should interpolations be quotes (things like "$srcdir"/cargo) 2019-06-13 19:15:54 currently, 1 is highly inconsistent (for instance, pkgname is a constant, and is *un*quoted) 2019-06-13 19:15:58 I propose the following: 2019-06-13 19:16:29 1. Constants are either unquoted, or quoted with single-quotes. Single quotes are required if the constant contains anything besides [a-zA-Z\.] 2019-06-13 19:16:41 2. non-constants are quoted with double-quotes, always. 2019-06-13 19:17:00 2. interpolations are quoted, in their entirety, with double-quotes, always. (like "$srcdir/cargo") 2019-06-13 19:17:05 s/2./3./ 2019-06-13 19:17:45 the reasoning for 1 and 2 is that double-quotes thus signal that escaping is done, while single or missing quotes constants 2019-06-13 19:18:00 the reasoning for 3 is that having full ""s delinates individual arguments 2019-06-13 19:18:41 this is a departure from the general majority, and I would be fine with whatever is ultimately decided - just saying what I think should happen and explaining why; point being that we probably *should* decide on a specific standard as to increase consistency and avoid future bickering 2019-06-13 19:19:09 ncopa: ^ opinions? (I'll be at work quite late tomorrow, so waiting until potentially even Monday for any response is fine) 2019-06-13 19:20:46 also, for 1, I mean [a-zA-Z0-9\.\-] (alphanumerics, periods and dashes) 2019-06-13 19:23:59 I'd go for "" even for constants, simply because we already use that everywhere 2019-06-13 19:24:22 well, we don't though 2019-06-13 19:24:28 see pkgname for instance - typically unquoted 2019-06-13 19:24:40 what we use everywhere right now is more complex than `always ""` 2019-06-13 19:24:43 And it'd be a bit confusing to have pkgdesc='something' only to have pkgdesc="$pkgdesc - subpackage" later on 2019-06-13 19:25:10 not to anyone that knows shell, which should probably be a requirement for... writing shell 2019-06-13 19:26:14 Then I'd argue that you don't necessarily have to know SH to understand (simple) APKBUILDs :) 2019-06-13 19:26:52 certainly, the distinction between '' and "" isn't something a casual peruser need to understand to understand the general intent, if they don't intend to change it (and thus partake in writing) 2019-06-13 19:27:20 I haven't encountered single quotes anywhere during the time I've worked on Alpine yet tbh 2019-06-13 19:27:22 either way, I'm fine with ""s for constants (given that it's plopped into a similar structure to my proposed 1, because again - pkgname and the like *are* constants) 2019-06-13 19:27:27 <_ikke_> SpaceToast: well, until they wonder why '$foo' does not work as expected 2019-06-13 19:27:45 _ikke_: in that case, they are *writing* APKBUILDs and thus should have a general understanding of shell :) 2019-06-13 19:28:21 Huh, did Ikke write something? Doesn't show up for me :c 2019-06-13 19:28:36 '' is less error prone for that exact reason - you could always have an upstream package description that includes a verbatim `$`, for instance 2019-06-13 19:28:44 <_ikke_> Cogitri: yes, I did write something 2019-06-13 19:28:51 Ah, now it does 2019-06-13 19:29:41 SpaceToast: Escaping that in that rare occasions seems easier than explaining with '$variable' doesn't work 2019-06-13 19:30:08 I don't think saying "single-quotes forbid escaping and are thus useful for constants" is that big of a burden 2019-06-13 19:30:17 in fact, that explanation could be written right next to wherever we put the specification :) 2019-06-13 19:30:25 (probably the best-practices page) 2019-06-13 19:31:02 <_ikke_> I don't think we should say always use ' or always use " 2019-06-13 19:31:12 Sadly I doubt that the best case (everyone reading all of the guide) will apply :) 2019-06-13 19:31:40 Hm, I feel like some consistency would be nice, ikke 2019-06-13 19:32:17 _ikke_: let me re-iterate my proposal regarding constants: 1. Constants are either unquoted, or quoted with single-quotes. Single quotes are required if the constant contains anything besides [a-zA-Z0-9_\.\-] 2019-06-13 19:32:32 Cogitri: well, "please read best practices guide" is very low-effort :) 2019-06-13 19:33:09 and consistency is what at least 2 people clearly desire, and something ncopa has spoken in favor of in the past (though to get his exact opinion we'll need to wait until at least tomorrow) 2019-06-13 19:39:03 Yup, but it'd be consistent with our current behaviour to not use single quotes 2019-06-13 19:42:25 well, as mentioned, I'm fine with any spec :) I'm just here to propose what I believe to be the most technically correct one 2019-06-13 19:42:51 (and give justification, of course) 2019-06-13 19:42:59 I'd personally vote for make what we currently use the spec 2019-06-13 19:43:15 s/use/most commonly use/ 2019-06-13 19:44:36 so that would be "" for constants that have chars besides [a-zA-Z0-9_\.\-], "" for interpolations being assigned to variables and "expansion"unquoted for non-assignments 2019-06-13 19:45:01 that just seems really awkward, but I'll defer to whatever ncopa and/or the rest of the core team figure (so long as it is a complete spec that can be applied, of course) 2019-06-14 07:59:17 ugh... should I calculate a week of time spent on discussion how to use quotes? 2019-06-14 08:01:04 Not really 2019-06-14 08:07:41 best practices is good but i dont like to see a gazillion commits saying: "repo/foobar: update quotes to follow best practices" 2019-06-14 08:09:04 clandmeter: also I don't like these i.e. commit msg says just 'modernize' 2019-06-14 08:09:59 mps: Well, people complain if you require them to modernize during updates too 2019-06-14 08:10:16 you cannot always prevent modernize due to changes. 2019-06-14 08:10:20 So I think it makes sense to modernize the thing in one go instead of complaining about it when someone updates the thing 2019-06-14 08:10:25 some apkbuilds are very old. 2019-06-14 08:10:48 Yup, and very crude 2019-06-14 08:11:04 I agree with SpaceToast's observations but also think that Cogitri's 'I'd personally vote for make what we currently most commonly use the spec' 2019-06-14 08:11:17 Currently working through perl-* 2019-06-14 08:12:21 I'm not against changes but personally prefer change when the pkg upgraded or fixed 2019-06-14 08:12:37 Well, I honestly think we should go back to more productive discussions :) 2019-06-14 08:12:56 or do something else productive 2019-06-14 08:12:58 :) 2019-06-14 08:13:53 Cogitri: you manager on bugs.a.o right? 2019-06-14 08:14:01 or whatever the title is 2019-06-14 08:14:06 yes, but I have first to wake up ;) 2019-06-14 08:14:16 Yup 2019-06-14 08:14:17 so, why not make single quotes the standard for new apkbuilds, and leave it to maintainer discretion when/if to "modernize" existing instances? 2019-06-14 08:14:31 Btw, do you happen to know why I can't assign bugs to myself, clandmeter? 2019-06-14 08:14:55 Cogitri: care to check out gitlab.a.o? 2019-06-14 08:15:05 desultory: Hm, that still breaks the habits of most contributors 2019-06-14 08:15:09 hehe 2019-06-14 08:15:10 clandmeter: sure thing! 2019-06-14 08:15:23 algitbot: shut up 2019-06-14 08:15:34 you are holding it wrong 2019-06-14 08:15:45 ok let me get you a pw 2019-06-14 08:15:59 smtp is disabled 2019-06-14 08:16:12 Cogitri: what is your username on bugs? 2019-06-14 08:16:19 Cogitri: how? "do this in new packages, and if you remember/care to when changing old ones" doesn't seem all that bad. 2019-06-14 08:16:28 clandmeter: Cogitri 2019-06-14 08:17:14 ah you are rasmus 2019-06-14 08:17:21 i need to get used to these new names... 2019-06-14 08:17:49 Cogitri: alternately, "we officially don't care about which qutes you use unless it matters in the circumstances in which they're used" would be about the least "disruptuive" to habit policy which could be made in this case. 2019-06-14 08:18:11 desultory: Seeing that about no one uses the proposed style right now I don't really see a point in suddenly enforcing it 2019-06-14 08:19:10 Cogitri: so you'd be in favor of "we officially don't care"? 2019-06-14 08:19:16 desultory: Yup, I think that matches our current, implicit, policy well I think 2019-06-14 08:19:35 Meant to reply to this ^ 2019-06-14 08:19:42 Mobile net is a bit shoddy right now 2019-06-14 08:20:05 clandmeter: Heh, no worries 2019-06-14 08:21:58 Cogitri: pmed pw 2019-06-14 08:25:22 Uhh..where? I haven't received something yet 2019-06-14 08:31:11 Cogitri: can you pm me? 2019-06-14 08:31:18 i guess you are using matrix? 2019-06-14 08:32:03 Yup 2019-06-14 08:33:28 i cannot help you with that :) 2019-06-14 08:34:40 clandmeter: looks like import from bugs.a.o went good 2019-06-14 08:34:44 we have a thelounge instance for alpine devs who like to use it. 2019-06-14 08:36:24 ehm, my last msg belongs to infra 2019-06-14 08:36:37 Hm, I pinged you via irc though 2019-06-14 08:36:46 im not getting anything 2019-06-14 08:36:53 its normal for matrix though 2019-06-14 08:37:17 i can send you an email 2019-06-14 09:53:08 well, maxice8 is (was?) demanding consistency 2019-06-14 09:53:27 I'm fine with "we officially don't care", but would ask one of you to them that if that's the case :) 2019-06-14 09:53:52 s/them/tell them/ 2019-06-19 16:48:09 Hello.. there is a type in "https://beta.docs.alpinelinux.org/user-handbook/0.1a/index.html" - SLAAC section... "an method" should be "a method" 2019-06-19 16:48:20 typo* 2019-06-19 16:51:39 good catch, thanks, will correct it once I get off work 2019-06-19 16:52:06 nvm 2019-06-19 17:03:24 <_ikke_> Is it just me, or are you bound to mispell typo when you want to point one out? 2019-06-19 17:05:43 _ikke_: Talking to me? Yeah.. My keyboard skills suck xD 2019-06-19 17:06:22 Touchscreen actually! 2019-06-19 17:06:28 xD 2019-06-19 17:09:19 <_ikke_> It happens to me as well :) 2019-06-19 17:09:29 <_ikke_> "Hey, you made a type here" 2019-06-19 22:03:01 errn0: typo fixed, do enjoy :) 2019-06-20 21:37:33 I mistyped typo so often as tyop, that I started using that intentionally after a while. ;-)