Freedom issue #194

Freedom issue #123: wanted: blacklist for nonfree aur packages

makepkg license check

tbirdz - almost 8 years ago - . Updated 6 days ago.

freedom issue
% Done:



I think it would be a really cool feature if Parabola GNU/Linux could make a makepkg-libre version with some additional features. The new makepkg could check the license field and warn the user if they are trying to make a package without a Free license. If the user had your-freedom installed they could even block them from installing it (though that could require more changes to pacman, your example).

This would come in handy because there are many useful software packages on the aur that could be used, but sometimes its easy to accidentally install a nonfree package by mistake. This would add an extra check to make sure that you knew what you were doing.

Also the license check should have an override. Some packages in the aur have the License mislabeled, or didn't define a license. Obviously the better solution would be to have all the packages in the aur keep themselves up to date with licensing, but that isn't as feasible as this license check.

This makepkg license check would really help when installing aur packages. There may still be some degree of risk of installing a nonfree package, like if a maintainer mislabels it as GPL when it is actually under a nonfree license, so installing packages from the aur shouldn't be officially supported/etc, but this is Arch Linux's policy towards the aur anyway.

Related issues

Related to Packages - Freedom issue #1035: [your-system-sanity]: Non-Free Software From Third-party Package Managersin progress




Updated by fauno almost 8 years ago

Have you checked libretools.git ? We have a tool called "aur" that does exactly this. There're also plans to make a your-freedom package including known aur unfree packages, that's a lot less work than forking pacman/makepkg IMO.

Lukeshu has also been hacking on pacman lately, maybe he has more input :)


Updated by lukeshu over 6 years ago

could make a makepkg-libre version with some additional features.

Exactly this exits. It is called "libremakepkg", and is part of the "libretools" package. The license check itself is "pkgbuild-check-nonfree".

I think configuring acceptable licenses in pacman would be a really cool, but not worth the effort of maintaining a fork.


Updated by lukeshu about 6 years ago

  • Status changed from open to not-a-bug

Updated by bill-auger 6 days ago


Updated by bill-auger 6 days ago

  • Parent task set to #123

Updated by bill-auger 6 days ago

  • Related to Freedom issue #1035: [your-system-sanity]: Non-Free Software From Third-party Package Managers added

Also available in: Atom PDF