LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: axlrose

独立的飞信客户端linux fetion ebuild文件

[复制链接]
 楼主| 发表于 2008-5-17 13:31:54 | 显示全部楼层
打开了portage目录中的几个ebuild 用vim  :set list 看了一下,果然都是tab缩进
不过用空格也没影响,我VIM全设置成tab用空格代替了,看来以后写ebuild 时候注意一下这个问题
回复 支持 反对

使用道具 举报

发表于 2008-5-17 14:03:31 | 显示全部楼层
我是用sunrise-commit checkin你提供的ebuild时发现出错,而后google到下面这个:
http://devmanual.gentoo.org/gene ... ndencies/index.html
你在这个网页中搜索一下SLOT Dependencies
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-5-27 00:29:18 | 显示全部楼层
linux-fetion-0.2.0.ebuild 文件内容
给linux-fetion作者联系,建议使用ebuild方便的格式组织代码打包,例如 ${PN}-${PV}.tar.gz
与前一个版本的ebuild不同之处用#来注释了,因为可能还要改动,所以暂时先不放入gentoo-china中,等一到两天再更新
主要是因为源代码压缩包里的一些东西可能还要改变,到时更新后会把不必要的 # 行删除
  1. # Copyright 1999-2008 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Header: $
  4. inherit eutils qt4
  5. DESCRIPTION="Linux Fetion a KDE IM client, Using CHINA MOBILE's Fetion Protocol"
  6. HOMEPAGE="http://www.libfetion.cn/"
  7. #MY_PN=${PN/-/_}
  8. #MY_P=${MY_PN}-${PV}
  9. #SRC_URI="http://www.libfetion.cn/download/App/${MY_P}.tar.gz"
  10. SRC_URI="http://www.libfetion.cn/download/App/${P}.tar.gz"
  11. LICENSE="GPL-2"
  12. SLOT="0"
  13. #KEYWORDS="~x86 ~amd64"   #暂时还不支持64bit
  14. KEYWORDS="~x86"
  15. IUSE=""
  16. RESTRICT="mirror"
  17. DEPEND="|| ( ( x11-libs/qt-gui
  18.         x11-libs/qt-qt3support )
  19.         >=x11-libs/qt-4.3 )
  20.         virtual/libstdc++
  21.         >=sys-devel/automake-1.5
  22.         "
  23. RDEPEND="${DEPEND}
  24.         net-misc/curl
  25.         "
  26. #S=${WORKDIR}/${MY_PN}
  27. src_unpack()
  28. {
  29.         unpack ${A}
  30.         cd "${S}"
  31.         #epatch "${FILESDIR}/linux-fetion-desktop.patch"
  32.         #echo -e "\nTARGET=${PN}\n" >> ${MY_PN}.pro
  33. }
  34. src_compile()
  35. {
  36.         #eqmake4 ${MY_PN}.pro || die "qmake fail"
  37.         eqmake4 ${PN}.pro || die "qmake fail"
  38.         emake || die "emake fail"
  39. }
  40. src_install()
  41. {
  42.         insinto /usr/share/libfetion
  43.         doins fetion_utf8_CN.qm image
  44.         doins -r image
  45.         insinto /usr/share/applications
  46.         #doins LinuxFetion.desktop
  47.         doins LibFetion.desktop
  48.         insinto /usr/share/pixmaps
  49.         doins fetion.png
  50.         insinto /usr/share/app-install/icons
  51.         doins fetion.png
  52.         dobin ${PN}
  53. }
复制代码
回复 支持 反对

使用道具 举报

发表于 2008-5-27 08:43:11 | 显示全部楼层
好的,期待中
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-5-27 10:35:55 | 显示全部楼层
以前竟然没看过这个文章,失败呀
多谢  acevery 兄

https://groups.google.com/group/ ... ay-developers-guide
  1. Gentoo china overlay developer's guide            
  2.                
  3. 注意:本文尚未完成,先发出来供大家预览
  4. 1. 宗旨
  5. 写本指南的宗旨在于规范化overlay的运作,给开发者提供指引。希望各位开发者尽量遵照执行,希望每一个成员最后都可以成为正式的Gentoo Developer。
  6. 2. Gentoo China Overlay概况
  7. 地址  http://code.google.com/p/gentoo-china-overlay/
  8. 管理员  robert.zhangle
  9. 目前成员列表   hejian.he, viruscamp, lidaibin, goldenshore999, yetist, liuqing.com, acevery
  10. 3. 文档
  11. 下面两个文档,第一个是必读的,第二个是供需要时查阅的
  12. Gentoo开发者手册
  13. http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml
  14. Gentooo Devmanual
  15. http://devmanual.gentoo.org/
  16. 4. 准备工作
  17. 4.1 软件
  18. commit时推荐使用sunrise-commit,sunrise-commit可以自动digest,自动添加ChangeLog,自动调用repoman
  19. 执行如下命令获得
  20. emerge gentoolkit-dev
  21. layman -a sunrise
  22. emerge overlay-utils
  23. 4.2 环境变量
  24. 在/etc/profile中添加
  25. export ECHANGELOG_USER="Zhang Le <r0bertz@gentoo.org>"
  26. 添加时请改为你自己的名字和email地址
  27. 5.工作流程
  28. 5.1 添加新软件
  29.     * 进入overlay根目录
  30.     * 建立并添加目录结构
  31.       mkdir -p category/package && svn add category/package && svn ci -m "added category/package"
  32.     * 进入软件目录
  33.       cd category/package
  34.     * 将写好的ebuild拷贝过来
  35.       cp /path/to/your/foo-0.0.1.ebuild .
  36.     * 添加metadata.xml 查看此文件内容并做必要修改(移除注释,写上email和描述,解释USE标记的详细作用)有关此文件的作用的描述请看注释里给出的文档连接
  37.       cp /usr/portage/skel.metadata.xml  metadata.xml
  38.     * 使用sunrise-commit checkin
  39.       sunrise-commit -c "commit and changelog message"
  40.     * 如果repoman(sunrise-commit会自动调用)检查发现ebuild,有问题。修正问题后 svn revert ChangeLog 再使用sunrise-commit checkin
复制代码
回复 支持 反对

使用道具 举报

发表于 2008-5-27 15:04:29 | 显示全部楼层
axlrose兄客气了
回复 支持 反对

使用道具 举报

发表于 2008-6-4 00:47:08 | 显示全部楼层
Post by newsky_;1849898
f_curl.c.text+0x7e2): undefined reference to `curl_easy_perform'
f_curl.c.text+0x831): undefined reference to `curl_easy_cleanup'
./libfetion.a(f_curl.o): In function `get_usrinfo_by_uid':
f_curl.c.text+0x8b7): undefined reference to `curl_easy_init'
f_curl.c.text+0x8d1): undefined reference to `curl_easy_setopt'
f_curl.c.text+0x8e9): undefined reference to `curl_easy_setopt'
f_curl.c.text+0x8fd): undefined reference to `curl_easy_setopt'
f_curl.c.text+0x917): undefined reference to `curl_easy_setopt'
f_curl.c.text+0x94a): undefined reference to `curl_easy_setopt'
./libfetion.a(f_curl.o):f_curl.c.text+0x962): more undefined references to `curl_easy_setopt' follow
./libfetion.a(f_curl.o): In function `get_usrinfo_by_uid':
f_curl.c.text+0x982): undefined reference to `curl_easy_perform'
f_curl.c:(.text+0x9b7): undefined reference to `curl_easy_cleanup'
collect2: ld 返回 1
make: *** [linux-fetion] 错误 1
*
* ERROR: net-misc/linux-fetion-0.1.2 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 2494: Called die
* The specific snippet of code:
* emake || die "emake fail"
* The die message:
* emake fail
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/net-misc/linux-fetion-0.1.2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/net-misc/linux-fetion-0.1.2/temp/environment'.


同样的错误,curl版本7.18.1 关注中。。。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-4 14:26:42 | 显示全部楼层
难不成是 curl 的USE?

equery uses curl  列出
  1. [ Found these USE variables for net-misc/curl-7.17.1 ]
  2. U I
  3. - - ares     : Enabled c-ares dns support
  4. - - gnutls   : Adds support for net-libs/gnutls (TLS 1.0 and SSL 3.0 support)
  5. - - idn      : Enable support for Internationalized Domain Names
  6. - - ipv6     : Adds support for IP version 6
  7. + + kerberos : Adds kerberos support
  8. + + ldap     : Adds LDAP support (Lightweight Directory Access Protocol)
  9. - - nss      : Use NSS as the crypto engine
  10. + + ssl      : Adds support for Secure Socket Layer connections
  11. - - test     : Workaround to pull in packages needed to run with FEATURES=test. Portage-2.1.2 handles this internally, so don't set it in make.conf/package.use anymore
复制代码
回复 支持 反对

使用道具 举报

发表于 2008-6-10 20:07:50 | 显示全部楼层

更新linux-fetion出错

* checking linux-fetion-0.2.0.tar.gz ;-) ...                 [ !! ]

!!! Digest verification failed:
!!! /usr/portage/distfiles/linux-fetion-0.2.0.tar.gz
!!! Reason: Filesize does not match recorded size
!!! Got: 1459721
!!! Expected: 1459703
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-11 14:34:55 | 显示全部楼层
rm /usr/portage/distfiles/linux-fetion-0.2.0.tar.gz -f
重新emerge 看看
如果实在不行的话看看把文件下到/usr/portage/distfile 目录,然后再emerge
我在两台机子上测试是OK的
回复 支持 反对

使用道具 举报

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

本版积分规则

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