当我使用 -P 参数运行 dpkg-buildpackage 时,它失败了
dpkg-buildpackage -b -us -uc -P mypackageprofile
dpkg-buildpackage: unknown option or argument mypackageprofile
我也试过 -P [mypackageprofile] 和 ['mypackageprofile']。根据手册有这个论点
-P, --build-profiles=profile[,...]
Specify the profile(s) we build, as a comma-separated list
(since dpkg 1.17.2, long option since dpkg 1.18.8). The
default behavior is to build for no specific profile. Also
sets them (as a space separated list) as the
DEB_BUILD_PROFILES environment variable which allows, for
example, debian/rules files to use this information for
conditional builds.
https://man7.org/linux/man-pages/man1/dpkg-buildpackage.1.html