getsolus / ypkg

Modern, declarative, structured build format
https://getsol.us
GNU General Public License v3.0
22 stars 11 forks source link

Export xattrs info to files.xml internally in our eopkg #72

Closed ReillyBrogan closed 4 months ago

ReillyBrogan commented 4 months ago

Brought back another old commit. Depends on getsolus/eopkg#57 (ypkg will exit with an exception if it imports eopkg without that commit). Has the same limitation regarding nuitka as is mentioned in that PR.

Note that this xattr support intentionally only supports executables for now since we basically only care about the security.capability attribute for file capabilities.

This was tested by building packages that both do and do not contain file caps, and installing them with py2 eopkg (no patch applied, so it's unaware of the new fields) and with py3 eopkg (with patch applied so it correctly applies the attributes).