dlcusa has quit [Remote host closed the connection]
lavaball has joined #crux
lavaball has quit [Quit: lavaball]
ppetrov^ has joined #crux
<cruxbot>
[opt/3.7]: pure-ftpd: updated to version 1.0.52
<cruxbot>
[opt/3.7]: geeqie: updated to version 2.5
lavaball has joined #crux
stratofall has quit [Quit: leaving]
stratofall has joined #crux
maledictium has quit [Ping timeout: 260 seconds]
maledictium has joined #crux
<ppetrov^>
what regex should i use in pkgadd.conf to ignore la files in /usr/lib only (not recursively)
farkuhar has joined #crux
<farkuhar>
ppetrov^: Check out rule_applies_to_file as defined in pkgadd.cc, specifically the lines below regcomp(&preg, rule.pattern.c_str(), REG_EXTENDED | REG_NOSUB). That should indicate what kind of regular expressions are recognized.
<farkuhar>
For instance, if character classes are supported, you might try "INSTALL ^usr/lib/[^/]*\.la$ NO"
<farkuhar>
The lack of documentation here is reminding me of Vitaly's August 2016 thread, which illustrated the difference between the (narrow) intent of the tool designers and the (wider) range of solutions that end users will come up with, when the man-pages do not provide clear guidelines on what is supported.
<farkuhar>
But at least in pkgadd.conf, if you try to use an unsupported regex, then you'll hit a runtime error. So the tool itself provides the necessary guidelines, even if there's no man-page pkgadd.conf(5) explicitly indicating the types of regex that are implemented.
maledictium has quit [Ping timeout: 248 seconds]
maledictium has joined #crux
<ppetrov^>
farkuhar, your suggestion seems to work as I wanted
<ppetrov^>
thank you
<ppetrov^>
been messing with some ports depending on the old libxml (2.10) and it seems stuff got linked against the new libxml and la files got in the way
<farkuhar>
ppetrov^: no problem. The definitions of REG_EXTENDED and REG_NOSUB appear in /usr/include/regex.h, but you wouldn't know from the pkgadd man-page that those bitmasks are being used when compiling each regex in pkgadd.conf. It would be easy enough to write a man-page for pkgadd.conf, and then the user wouldn't have to dig into the source code to see how the tools work.
<farkuhar>
Or maybe just extend the existing man-page pkgadd(8), to indicate explicitly which bitmasks are used for compiling each regex. A few more examples of extended regular expressions, under the section CONFIGURATION, would be helpful for users facing similar issues as ppetrov^.
<farkuhar>
uwumeowmeownyaa asked on Tuesday whether CRUX was "essentially a BSD kind of Linux". At least one of the values more prevalent among the BSDs than among Linux distros is a care for the offline documentation. BSD man-pages are known for being super-helpful, allowing users to debug their own problems without resorting to a web search.
<farkuhar>
In fact among the BSDs it's considered a bug if the man-pages are out of sync with the program's observed behaviour, and the devs are receptive to bug reports of man-page inaccuracies or omissions. Meanwhile the man-pages of GNU projects get mostly cosmetic fixes these days, e.g. the removal of "non-inclusive language".
<farkuhar>
So in the spirit of helping CRUX live up to its reputation as "essentially a BSD kind of Linux", I opened a Gitea issue https://git.crux.nu/ports/core/issues/5 to address the omissions in pkgmk.conf(5) and Pkgfile(5). Maybe pkgadd(8) deserves its own issue, based on ppetrov^s regex question.
SiFuh_ has quit [Remote host closed the connection]
SiFuh_ has joined #crux
_0bitcount has joined #crux
ivandi has quit [Quit: WeeChat 4.4.2]
lavaball has quit [Remote host closed the connection]
ivandi has joined #crux
_0bitcount has quit [Quit: Leaving]
darfo_ has joined #crux
darfo has quit [Ping timeout: 265 seconds]
lavaball has joined #crux
groovy2shoes has quit [Ping timeout: 260 seconds]
groovy2shoes has joined #crux
darfo has joined #crux
darfo_ has quit [Ping timeout: 276 seconds]
darfo_ has joined #crux
darfo has quit [Read error: Connection reset by peer]