- 论坛徽章:
- 0
|
在make.conf里设置WITH_PKGNG=yes,让ports编译的包注册的pkgng数据库。- root@:~ # cat /etc/make.conf
- FORCE_MAKE_JOBS=yes
- MAKE_JOBS_NUMBER=4
- MASTER_SITE_OVERRIDE=http://ftp.jaist.ac.jp/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}
- WITH_PKGNG=yes
- .if ${.CURDIR:M*/editors/vim}
- WITH_OPTIONS=YES
- .endif
复制代码 但是官方pkgng库里的有些包,不满足要求,比如ecore-x11不支持X11 composite,必须从ports中
编译ecore-x11,使其支持composite。下次使用pkg upgrade更新全部软件包时,出现问题了:- root@:~ # pkg upgrade
- Updating repository catalogue
- Upgrades have been requested for the following 15 packages:
- Reinstalling ecore-x11-1.7.8 (needed shared library changed)
- Reinstalling evas-core-1.7.8 (needed shared library changed)
- Installing gnome-icon-theme: 3.6.2
- Reinstalling gnome-vfs-2.24.4_1 (options changed)
- Reinstalling libgnome-2.32.0_1 (direct dependency changed)
- Installing libXxf86dga: 1.1.4
- Installing mplayer-skins: 1.1.3_1
- Installing mplayer: 1.1.r20130308
- Reinstalling vim-7.3.1314 (options changed)
- Reinstalling elementary-1.7.8 (needed shared library changed)
- Reinstalling enlightenment-0.17.4_1,2 (needed shared library changed)
- Reinstalling libbonoboui-2.24.4_1 (direct dependency changed)
- Reinstalling libgnomeui-2.24.4_2 (direct dependency changed)
- Reinstalling smplayer-0.8.6 (direct dependency changed)
- Reinstalling gnome-themes-extras-2.22.0_9 (direct dependency changed)
- The upgrade will require 19 MB more space
- 5 MB to be downloaded
- Proceed with upgrading packages [y/N]:
复制代码 PKGNG总是认为远端仓库的ecore-x11才是"正确"的包,提示重新安装。
Reinstalling ecore-x11-1.7.8 (needed shared library changed)
这种情况下,该如何处理?google了以下,目前好像没有好的解决方案。只能每次手动从Ports中更新
这几个软件包,很大的不方便就是以后无法运行pkg upgrade省级软件包了。所以,貌似以后升级软件包的话,
最省事的做法是使用portupgrade或portmaster了。
PS:为啥ports不能既保持原有的数据库,而pkgin在每次更新或者安装软件包时,从原有的ports包数据库注册到pkgng数据库?
目前NetBSD的pkgin是这么处理的。 |
|