自定义构建环境/目标库
我想构建一个与不同 Debian/Ubuntu 版本上的 Debian Lenny(libc、postgres、oracle 和其他库)兼容的应用程序。 这可能吗?如果是这样,我在哪里可以阅读如何操作?
I want to build an application that will be compatible with, say, Debian Lenny (libc, postgres, oracle and other libs) on a different Debian/Ubuntu release.
Is this possible? If so, where can I read how to do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为此,您可以使用开放构建服务。为其创建 Debian 软件包描述文件(您还可以添加 rpm 规范文件),选择目标发行版,您将在每个平台上构建它,并获得每个平台的特定下载存储库。您的包也会在需要时自动重建。如果您需要托管专有代码,您可以安装自己的服务实例。
如果您想要一个多平台二进制文件,您可能需要针对 LSB chroot 构建它:
http:// /ftp.linux-foundation.org/pub/lsb/impl
并捆绑不属于其中的任何库。 LSB 有工具可以检查您的应用程序是否合规。他们的网站现在已关闭,但应该位于:http://ldn.linuxfoundation。 org/lsb/check-your-app
You can use the open build service for this. Create the Debian package description files for it (you can add also rpm spec files), select the target distributions and you will get it built on each platform and also get a specific download repository for each platform. Your package will be rebuilt automatically when needed as well. You can install your own instance of the service if you need to host proprietary code.
If you want a multiplatform binary, you may want to build it against a LSB chroot:
http://ftp.linux-foundation.org/pub/lsb/impl
And bundle any library that is not part of it. The LSB has tools to then check your app for compliance. Their website is down right now, but it should be here: http://ldn.linuxfoundation.org/lsb/check-your-app