LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 469|回复: 6

如何mask libreoffice-bin-3.4.3.2-r1?

[复制链接]
发表于 2012-2-15 10:37:48 | 显示全部楼层 |阅读模式
由于安装libreoffice-bin-3.4.3.2-r1之后会出现版友描述的无限次revdep-rebuild无果的怪事,所以想把mask住,安装libreoffice-bin-3.4.3-r2(可怜我的机器无力编译libreoffice啊!)。问题就出在无法正常mask,请看:

  1. # echo ">=libreoffice-bin-3.4.3.2-r1" > /etc/portage/package.mask
  2. # emerge  libreoffice-bin
  3. # emerge -au libreoffice-bin

  4. These are the packages that would be merged, in order:

  5. Calculating dependencies... done!
  6. [ebuild  N     ] app-text/libexttextcat-3.2.0  USE="-static-libs"
  7. [ebuild  N     ] net-misc/npapi-sdk-0.27
  8. [ebuild  N     ] sci-mathematics/lpsolve-5.5.2.0  USE="-static-libs"
  9. [ebuild  N     ] dev-db/unixODBC-2.3.1  USE="minimal -odbcmanual -static-libs"
  10. [ebuild  N     ] dev-libs/hyphen-2.8.3  USE="-static-libs"
  11. [ebuild  N     ] media-libs/sampleicc-1.6.6  USE="-static-libs"
  12. [ebuild  N     ] app-crypt/mhash-0.9.9.9  USE="-static-libs"
  13. [ebuild  N     ] dev-perl/Archive-Zip-1.300.0
  14. [ebuild  N     ] dev-libs/jemalloc-2.2.5  USE="-debug -stats"
  15. [ebuild  N     ] dev-util/cppunit-1.12.1-r1  USE="examples -doc -static-libs"
  16. [ebuild  N     ] media-libs/raptor-2.0.6  USE="curl unicode xml -debug -json -static-libs"
  17. [ebuild  N     ] app-text/mythes-1.2.2  USE="-static-libs"
  18. [ebuild  N     ] app-text/libwps-0.2.4  USE="-debug -doc -static-libs"
  19. [ebuild  N     ] media-gfx/graphite2-1.0.3-r1  USE="perl -test"
  20. [ebuild  N     ] dev-cpp/libcmis-0.1.0  USE="-static-libs -test"
  21. [ebuild  N     ] dev-db/mysql-connector-c++-1.1.0-r1  USE="examples -debug -gcov -static-libs"
  22. [ebuild  N     ] media-libs/libvisio-0.0.14  USE="-doc -static-libs"
  23. [ebuild  N     ] dev-util/mdds-0.5.3-r1
  24. [ebuild  N     ] dev-libs/rasqal-0.9.28  USE="crypt mhash pcre xml -doc -gmp -static-libs -test"
  25. [ebuild  N     ] dev-libs/redland-1.0.15  USE="berkdb mysql sqlite ssl xml -iodbc -odbc -postgres -static-libs"
  26. [ebuild     U  ] app-office/libreoffice-bin-3.4.3-r2 [3.3.4]
  27. [ebuild  N     ] virtual/ooo-0
  28. [ebuild  N     ] app-office/libreoffice-3.5.0.3  USE="branding dbus eds gnome graphite gstreamer gtk gtk3 jemalloc mysql nsplugin opengl svg vba webdav xmlsec (-aqua) -binfilter -debug -java -kde -odk -pdfimport -postgres -test"
  29. [ebuild  N     ] app-office/libreoffice-l10n-3.5.0-r4  USE="-offlinehelp -templates" LINGUAS="en zh_CN zh_TW -af -ar -as -ast -be -bg -bn -bo -br -brx -bs -ca -ca_XV -cs -cy -da -de -dgo -dz -el -en_GB -en_ZA -eo -es -et -eu -fa -fi -fr -ga -gd -gl -gu -he -hi -hr -hu -id -is -it -ja -ka -kk -km -kn -ko -kok -ks -ku -lb -lo -lt -lv -mai -mk -ml -mn -mni -mr -my -nb -ne -nl -nn -nr -nso -oc -om -or -pa_IN -pl -pt -pt_BR -ro -ru -rw -sa_IN -sat -sd -sh -si -sk -sl -sq -sr -ss -st -sv -sw_TZ -ta -te -tg -th -tn -tr -ts -ug -uk -uz -ve -vi -xh -zu"
  30. [blocks B      ] app-office/libreoffice ("app-office/libreoffice" is blocking app-office/libreoffice-bin-3.3.4, app-office/libreoffice-bin-3.4.3-r2)
  31. [blocks B      ] app-office/libreoffice-bin ("app-office/libreoffice-bin" is blocking app-office/libreoffice-3.5.0.3)

  32. * Error: The above package list contains packages which cannot be
  33. * installed at the same time on the same system.

  34.   (app-office/libreoffice-3.5.0.3::gentoo, ebuild scheduled for merge) pulled in by
  35.     >=app-office/libreoffice-3.4.4.2-r1 required by (app-office/libreoffice-l10n-3.5.0-r4::gentoo, ebuild scheduled for merge)

  36.   (app-office/libreoffice-bin-3.4.3-r2::gentoo, ebuild scheduled for merge) pulled in by
  37.     libreoffice-bin
  38.     app-office/libreoffice-bin required by (virtual/ooo-0::gentoo, ebuild scheduled for merge)
  39.     app-office/libreoffice-bin required by @selected


  40. For more information about Blocked Packages, please refer to the following
  41. section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

  42. http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked
复制代码

即使强行安装libreoffice-bin-3.4.3-r2,之后也会在revdep-rebuild环节出现前述莫名其妙的错误。

搞不懂正确的mask方法了?
好像gentoo中的包的命名方法有什么特殊要求。
发表于 2012-2-15 10:57:30 | 显示全部楼层
  • 既然您装了Portage-2.2,又何必做revdep-rebuild... portage-2.2用的命令是 emerge @preserved-rebuild  ,而且如果emerge正常执行完成时没有关于preserved libraries的提示就不必运行。
  • 如果您仔细看了提示就会发现问题出在app-office/libreoffice-l10n-3.5.0-r4的依赖上,这个家伙的较新版本依赖libreoffice(因为libreoffice-bin的版本号太旧了),而libreoffice和libreoffice-bin不能同时安装。
    解决方案就是把依赖libreoffice的新版本app-office/libreoffice-l10n mask掉。
    1. echo '>=app-office/libreoffice-l10n-3.4.4' >> /etc/portage/package.mask
    复制代码

回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-2-15 11:01:07 | 显示全部楼层
^_^,
阁下真是我的Gentoo导师啊!
回复 支持 反对

使用道具 举报

发表于 2012-2-15 14:15:55 | 显示全部楼层
Post by easior lars;2160110
^_^,
阁下真是我的Gentoo导师啊!

所以你养成习惯了,什么事都上来问。

这个问题要是仔细看文档,说得太详细了;搜索论坛也很容易得到答案。不能坐等着人家给答案啊。靠别人扶着永远学不会骑单车不是。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-2-15 15:20:58 | 显示全部楼层
Post by zhou3345;2160120
所以你养成习惯了,什么事都上来问。

这个问题要是仔细看文档,说得太详细了;搜索论坛也很容易得到答案。不能坐等着人家给答案啊。靠别人扶着永远学不会骑单车不是。


兄台也不能这么说。

实际上,即使读文档、搜论坛,得到的答案也不会比循循善诱的解答者来得更多。
我碰到的大多数问题丝毫不是什么原创性的东西,或者说这只不过是个已经被解决的问题。
相反地,(从好的一面来说),解答者可能会把他的个人经验揉合到解答之中。
经验可是文档等难以传达的。

当然,读文档是第一步;但是,经验积累也很重要。
就像一本C语言书放在哪里,无论这本书的作者是谁,
不要妄想通读这本书就能成为C语言高手;
一定要把自己弄得很脏,丰富的经验才是财富。
软件的好多改进,一部分就是来源于用户体验(经验)。
回复 支持 反对

使用道具 举报

发表于 2012-2-15 16:04:16 | 显示全部楼层
有老师谁不喜欢啊,进步当然快。兄弟应该知道我的意思。

建议您向RichardGv学学学习方法。人家这水平肯定不是问出来的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-2-15 16:45:39 | 显示全部楼层
Post by zhou3345;2160124
有老师谁不喜欢啊,进步当然快。兄弟应该知道我的意思。

建议您向RichardGv学学学习方法。人家这水平肯定不是问出来的。


:-),我也是这么想的。

我不光想得到鱼,也希望得到渔!

不过未必所有老师都愿意教授渔的技术或者有教授渔的能力。
可能这是中国大环境所致,好多学生都是靠“悟出来”的。
长此以往,技术怎么传下去呢?
扯远了,还是回到Gentoo中来吧。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表