summaryrefslogtreecommitdiff
path: root/Meta/lint-ports.py
AgeCommit message (Collapse)Author
2022-06-02Meta: Add check if AvailablePorts.md is sortedcircl
2022-05-21Ports: Sanitize environment before handling PortsTim Schumacher
This keeps users from leaking their host environment variables (CFLAGS, etc.) into Ports, and it keeps us from leaking Port-specific settings into their dependencies.
2022-05-20Meta: Fix unused variable warning in lint-ports.pyDaniel Bertalan
This went undetected because I broke CI so the Python linter didn't run.
2022-05-19Meta: Disallow non-git patches for portsAli Mohammad Pur
2022-05-09Ports: Convert GLTron patches to new formatJelle Raaijmakers
2022-05-07Ports/mrsh: Fix workdir, remove or upgrade patchesEWouters
Also removes mrsh from the list of ports missing descriptions. I tried to be descriptive about the patches, but as I picked this port up from someone else, I'm not 100% sure how to best explain the patches.
2022-04-11Ports/pt2-clone: Update pt2-clone to version 1.43EWouters
Upgrade patches to git style, add ReadMe.md and remove from the list of ports missing descriptions.
2022-04-11Ports/klong: Update klong to version 20220315EWouters
Upgrade patch to git style, add ReadMe.md and remove from the list of ports missing descriptions.
2022-04-11Ports/gawk: Update gawk to version 5.1.1EWouters
The patch for config.sub is no longer required. This also removes gawk from the list of ports missing descriptions as it no longer has any patches.
2022-04-11Ports/diffutils: Update diffutils to version 3.8EWouters
The fnmatch patch that was added in 6de6dff is reverted because it is not clear why it is necessary, as discussed in #9206. This also removes diffutils from the list of ports missing descriptions as it no longer has any patches.
2022-04-03Meta: Check `port` property for ports in the linterJelle Raaijmakers
We now make sure the directory name and `port` property are identical.
2022-03-31Meta: Fix format-string in the port linterEWouters
2022-03-29Ports: Update PHP to 8.1.4Jelle Raaijmakers
2022-02-20Ports/gdb: Add descriptions to all gdb patches and remove dead codeBrian Gianforcaro
Before working on the gdb port some more, I wanted to get these patches cleaned up to have a good base to build upon.
2022-02-11Ports: Update binutils to version 2.38Daniel Bertalan
2022-01-17Meta+Ports: Make 'package.sh showproperty' report multiple propertiesAli Mohammad Pur
And use that to avoid shelling out multiple times for checking properties in lint-ports.py.
2022-01-17Meta: Optimized lint-ports.py by avoiding duplicate execs of package.shBrian Gianforcaro
The way that lint-ports.py obtains the ports properties is unfortunately very process intensive. You have to execute `./package.sh showproperty` once for each property, for each port. Resulting in hundreds of executions. We were doing this work twice in both `check_package_files()` and in `read_port_dirs()`. This resulted in a runtime of around ~10 seconds on my machine. Removing the duplicate work and allowing the other code path to utilize the to use the cached properties brought the runtime down to ~5 seconds on my machine.
2022-01-16Meta: Ensure that all port patches are documented in the linterAli Mohammad Pur
This adds a list of ports without descriptions to filter out the existing ports with unexplained ports, this list should *not* be appended to! It also adds a (for now) disabled check that ensures all ports have patches made with (or compatible with) git.
2021-08-30Meta: Update lint-ports.py for the SerenityPorts moveAndreas Kling
2021-05-07Meta: Fix error in lint-ports.pyLinus Groh
The data structures here were changed from sets to dicts at some point, with the sets now having different names - this would crash trying to subtract two dicts.
2021-04-29Everywhere: "file name" => "filename"Andreas Kling
2021-04-25Meta: Only allow sha256 and sig for auth_type in portsGunnar Beutner
2021-04-23Ports: Detect more types of errors in the AvailablePorts.md fileGunnar Beutner
This adds support for detecting incorrect version numbers and links in the ports list. Also, unlike before it doesn't parse the package.sh script but executes it instead which allows us to detect syntax errors.
2021-04-20Ports: Update the lint-ports.py script to ignore missing auth_type for ↵Gunnar Beutner
SerenityOS repositories
2021-04-16Meta: lint-ports: Check package files for required propertiesBrendan Coles
2021-04-12Meta: Add install-ports CMake targetPeter Elliott
install-ports copys the necessary files from Ports/ to /usr/Ports. Also refactor the compiler and destiation variables from .port_include.sh into .hosted_defs.sh. .hosted_defs.sh does not exists when ports are built in serenity
2021-04-11Everywhere: Update references from ReadMe.md => README.mdAndreas Kling
2021-04-02Meta: Resolve some pylint violations in Python lint scriptsBrendan Coles
Resolves: * all: consider-using-sys-exit * all: wrong-import-order * all: TODO: Require that a few keys are set? (fixme) * some: missing-function-docstring * some: line-too-long
2021-02-15Meta: Add Ports/build_installed.sh to the lint-ports ignore listAndreas Kling
2021-02-15Meta: Lint AvailablePorts.mdBen Wiederhake
As requested by popular demand ;) https://github.com/SerenityOS/serenity/pull/5325#discussion_r575657614