Post B7pqA97Fwk6Stum7uq by crzwdjk@mastodon.social
(DIR) More posts by crzwdjk@mastodon.social
(DIR) Post #B7oNvyOxzfbbk4YKhM by ariadne@social.treehouse.systems
0 likes, 0 repeats
oh right I should merge feature/pccritic I guess
(DIR) Post #B7oOJPSPZGhyJWL6IK by ariadne@social.treehouse.systems
0 likes, 0 repeats
what the fuck is pccritic? great questionit critiques your pc(5) files. basically pkgconf --validate but deeper and gamified.
(DIR) Post #B7oOvK3C7OSaY7cetE by ariadne@social.treehouse.systems
0 likes, 0 repeats
here is an action shot. clearly the libucontext pkg-config file needs some love.
(DIR) Post #B7oQYaOBPDWiTDj4D2 by ariadne@social.treehouse.systems
0 likes, 0 repeats
i coded pccritic while camping in yukon a couple weeks ago, because @Elizafox and i got to talking about how to drive adoption of the new pc(5) improvements we have been rolling out
(DIR) Post #B7oRNP9awD7uOS8PRI by ariadne@social.treehouse.systems
0 likes, 0 repeats
now the big question is... how optimal are the pc(5) files on my system?i think i have a pretty typical pkg-config database for an average linux developer: i have kde frameworks and gtk+ development packages installed, but maybe these decisions bias the results in some unforeseen way.most pc(5) files are scoring in the upper 80s or lower 90s, if i were to eyeball it, i would say 87/100 is the average score.
(DIR) Post #B7oTz8j4fENIM8qpKy by 9pfs@tilde.zone
0 likes, 0 repeats
@ariadne Does an AUR package for that software exist, out of curiosity?
(DIR) Post #B7oTz8ulxjjSwQKAZU by ariadne@social.treehouse.systems
0 likes, 0 repeats
@9pfs pkgconf-git will get you pccritic now
(DIR) Post #B7oW3NLaRcvqlm0q6S by DG0YT@social.darc.de
1 likes, 0 repeats
@ariadne Native "system" pc files are boring. Fun starts with non-system pc files, cross builds, and static library linkage.
(DIR) Post #B7oWUplIuInmiP8PU8 by ariadne@social.treehouse.systems
0 likes, 0 repeats
@DG0YT yeah i already have a lot of checks for those sorts of fuckups :D
(DIR) Post #B7oX0FF4DsU0iX2Agi by DG0YT@social.darc.de
0 likes, 0 repeats
@ariadne I really want throw it on vcpkg. But I have to finish other things first.
(DIR) Post #B7ofEL4y7I1MVZXfjk by lanodan@queer.hacktivis.me
0 likes, 1 repeats
@ariadne On my Gentoo desktop it ends up with a 81.22% average, with about as much in the 70s and 80s:$ ./build/pccritic $(pkgconf --list-package-names) | awk '/score:/ { print $2 }' | cut -d/ -f1 | awk '{ c+=1; a += $1 } END { print a / c }'81.2286$ ./build/pccritic $(pkgconf --list-package-names) | awk '/score:/ { print $2 }' | cut -b-1 | sort | uniq -c1 461 6467 7478 8117 9
(DIR) Post #B7ogsGSApmDphPzvhg by ariadne@social.treehouse.systems
1 likes, 0 repeats
@lanodan you can just do pccritic --quiet /usr/lib/pkgconfig/*.pc btw
(DIR) Post #B7pqA97Fwk6Stum7uq by crzwdjk@mastodon.social
0 likes, 0 repeats
@ariadne Oh I suppose I should get this to check the pc files my project is generating, since I am adding the ability to generate these files.