Wiki software

Sourceware runs a copy of moinmoin in order to serve /PROJECT/wiki type URLs.

The software comes from Fedora EPEL RPMs, and is unmodified. Last build, 2026-10-28, moin 1.9.11:

rpmbuild -i https://kojipkgs.fedoraproject.org//packages/moin/1.9.11/1.el7/src/moin-1.9.11-1.el7.src.rpm
cd ~/rpmbuild/SPECS
vi moin.spec  # to get rhel python2 macros enabled
rpmbuild -ba moin.spec #  be patient at last step
cd ~/rpmbuild/RPMS/noarch
rpm -Fvh moin*
cd /sourceware1/www/sourceware/htdocs
ln -s /usr/lib/python2.7/site-packages/MoinMoin/web/static/htdocs moin_staticNNNN  # 1.9.11 => 1911
cd /sourceware1/www/gcc/htdocs
ln -s /usr/lib/python2.7/site-packages/MoinMoin/web/static/htdocs moin_staticNNNN  # 1.9.11 => 1911

It is configured under /wiki/, one .py file per wiki, plus /wiki/farmconfig.py for systemwide settings. It's under local git repo control.

It is a pain in the butt in that spammers have created masses of accounts for themselves, and deposited thousands of junk files in several of the wikis (gdb, gcc were the worst affected). So we instituted editor-level ACLs on most of the content, so they couldn't create more spam. Unfortunately, mechanical removal of this historical mass of spam has not been attempted, so we have lots of handbags, erectile dysfunction medicine, and lucrative inheritence somewhere on the site.

However, they can still create junk accounts. So a cron job /etc/cron.weekly/moin-user-cleanup nukes junk wiki accounts that are not also in the respective EditorGroup.