QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4969|回复: 15

编译 src.rpm 包,为什么会出这个问题?

[复制链接]
发表于 2008-9-6 23:14:26 | 显示全部楼层 |阅读模式
  1. make[2]: Nothing to be done for `install-exec-am'.
  2. make[2]: Nothing to be done for `install-data-am'.
  3. make[2]: Leaving directory `/root/rpmbuild/BUILD/lua-5.1.2/test'
  4. make[1]: Leaving directory `/root/rpmbuild/BUILD/lua-5.1.2/test'
  5. make[1]: Entering directory `/root/rpmbuild/BUILD/lua-5.1.2'
  6. make[2]: Entering directory `/root/rpmbuild/BUILD/lua-5.1.2'
  7. make[2]: Nothing to be done for `install-exec-am'.
  8. make[2]: Nothing to be done for `install-data-am'.
  9. make[2]: Leaving directory `/root/rpmbuild/BUILD/lua-5.1.2'
  10. make[1]: Leaving directory `/root/rpmbuild/BUILD/lua-5.1.2'
  11. + rm /root/rpmbuild/BUILDROOT/lua-5.1.2-1mgc.i386/usr/lib/liblua.la
  12. + /usr/lib/rpm/brp-compress
  13. + /usr/lib/rpm/brp-strip
  14. + /usr/lib/rpm/brp-strip-static-archive
  15. + /usr/lib/rpm/brp-strip-comment-note
  16. Processing files: lua-5.1.2-1mgc
  17. error: File not found by glob: /root/rpmbuild/BUILDROOT/lua-5.1.2-1mgc.i386/usr/*/debug*
  18. Executing(%doc): /bin/sh -e /usr/var/tmp/rpm-tmp.LQGVKd
  19. + umask 022
  20. + cd /root/rpmbuild/BUILD
  21. + cd lua-5.1.2
  22. + DOCDIR=/root/rpmbuild/BUILDROOT/lua-5.1.2-1mgc.i386/usr/doc/lua-5.1.2
  23. + export DOCDIR
  24. + rm -rf /root/rpmbuild/BUILDROOT/lua-5.1.2-1mgc.i386/usr/doc/lua-5.1.2
  25. + /bin/mkdir -p /root/rpmbuild/BUILDROOT/lua-5.1.2-1mgc.i386/usr/doc/lua-5.1.2
  26. + cp -pr COPYRIGHT HISTORY README doc/contents.html doc/luac.html doc/lua.html doc/manual.html doc/readme.html doc/lua.css doc/manual.css doc/amazon.gif doc/logo.gif doc/cover.png /root/rpmbuild/BUILDROOT/lua-5.1.2-1mgc.i386/usr/doc/lua-5.1.2
  27. + exit 0
  28. Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/lua-5.1.2-1mgc.i386


  29. RPM build errors:
  30.     File not found by glob: /root/rpmbuild/BUILDROOT/lua-5.1.2-1mgc.i386/usr/*/debug*
  31. bash-3.2#
复制代码

lfs 第六章完成后,继续安装了
lzma-4.32.7.tar.gz
nss-3.12-with-nspr-4.7.tar.gz
popt-1.14.tar.gz
rpm-4.5.90.git8426.tar.bz2
之后编译 lua 的 src.rpm 竟然这样?
发表于 2008-9-7 00:31:36 | 显示全部楼层
好像是rpm的版本问题,得修改src文件。具体我也不是太清楚
回复

使用道具 举报

 楼主| 发表于 2008-9-7 10:34:33 | 显示全部楼层

ML 的 src.rpm 在我这里连 patch 过程都能出错……
回复

使用道具 举报

发表于 2008-9-7 10:58:48 | 显示全部楼层
spec里是不是有那一行?

现在rpm默认的fuzzy是0,所以有些patch出错,改成2就好了。
回复

使用道具 举报

 楼主| 发表于 2008-9-7 11:15:55 | 显示全部楼层

看了 spec ,写了排除 */debug*
回复

使用道具 举报

发表于 2008-9-7 11:31:51 | 显示全部楼层
嗯,在2.1上exclude的内容如果没有不影响打包,但是2.5不行的,还有doc的内容也是。
就是2.5的spec要求更严格。
回复

使用道具 举报

 楼主| 发表于 2008-9-7 12:14:19 | 显示全部楼层

设置问题?
回复

使用道具 举报

发表于 2008-9-7 12:59:18 | 显示全部楼层
嗯。
回复

使用道具 举报

 楼主| 发表于 2008-9-7 14:18:51 | 显示全部楼层
= =#
给个设置行不……
懒得改……
回复

使用道具 举报

 楼主| 发表于 2008-9-9 17:44:24 | 显示全部楼层
我很想知道色即是空是怎么编译通过 compat-db 的……

  1. checking for mmap... yes
  2. checking for munmap... yes
  3. checking for shmget... yes
  4. checking "rpcgen -C" build of db_server.h... yes
  5. checking for 64-bit integral type support for sequences... yes
  6. configure: creating ./config.status
  7. ./config.status: line 855: db_cxx.h:../../dbinc/db_cxx.in: No such file or directory
  8. ./config.status: line 856: db_int.h:../../dbinc/db_int.in: No such file or directory
  9. ./config.status: line 857: include.tcl:../../test/include.tcl: No such file or directory
  10. ./config.status: line 858: db.h:../../dbinc/db.in:../../dbinc_auto/ext_prot.in: No such file or directory
  11. ./config.status: line 859: db_185.h:../../dbinc/db_185.in:../../dbinc_auto/ext_185_prot.in: No such file or directory
  12. ./config.status: line 860: db185_int.h:../../db185/db185_int.in:../../dbinc_auto/ext_185_prot.in: No such file or directory
  13. config.status: creating Makefile
  14. ++ echo 4.3.29
  15. ++ cut -f1,2 -d.
  16. + soversion=4.3
  17. + make libdb=libdb-4.3.a libcxx=libdb_cxx-4.3.a -j2
  18. /bin/sh ./libtool --mode=compile cc -c -I. -I../..  -D_GNU_SOURCE -D_REENTRANT -O2 -g -pipe -D_FORTIFY_SOURCE=2 -m32 -march=i686 -mcpu=i686 -mtune=i686  ../../db185/db185.c
  19. /bin/sh ./libtool --mode=compile cc -c -I. -I../..  -D_GNU_SOURCE -D_REENTRANT -O2 -g -pipe -D_FORTIFY_SOURCE=2 -m32 -march=i686 -mcpu=i686 -mtune=i686  ../../mutex/mut_pthread.c
  20. mkdir .libs
  21. cc -c -I. -I../.. -D_GNU_SOURCE -D_REENTRANT -O2 -g -pipe -D_FORTIFY_SOURCE=2 -m32 -march=i686 -mcpu=i686 -mtune=i686 ../../mutex/mut_pthread.c  -fPIC -DPIC -o .libs/mut_pthread.o
  22. cc -c -I. -I../.. -D_GNU_SOURCE -D_REENTRANT -O2 -g -pipe -D_FORTIFY_SOURCE=2 -m32 -march=i686 -mcpu=i686 -mtune=i686 ../../db185/db185.c  -fPIC -DPIC -o .libs/db185.o
  23. ../../db185/db185.c:10:23: error: db_config.h: No such file or directory
  24. ../../mutex/mut_pthread.c:10:23: error: db_config.h: No such file or directory
  25. ../../db185/db185.c:24:20: error: db_int.h: No such file or directory
  26. ../../db185/db185.c:25:23: error: db185_int.h: No such file or directory
  27. ../../db185/db185.c:27: error: expected ')' before '*' token
  28. ../../db185/db185.c:28: error: expected ')' before '*' token
  29. ../../db185/db185.c:29: error: expected ';', ',' or ')' before '*' token
  30. ../../db185/db185.c:30: error: expected ';', ',' or ')' before '*' token
  31. ../../db185/db185.c:31: error: expected ';', ',' or ')' before '*' token
  32. ../../db185/db185.c:33: error: expected ')' before '*' token
  33. ../../db185/db185.c:34: error: expected ')' before '*' token
  34. ../../db185/db185.c:35: error: expected ';', ',' or ')' before '*' token
  35. ../../db185/db185.c:36: error: expected ';', ',' or ')' before '*' token
  36. ../../db185/db185.c:37: error: expected ';', ',' or ')' before '*' token
  37. ../../db185/db185.c:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
复制代码

  1. [root@MagicLinux SPECS]# rpm -qa "db*"
  2. dbus-glib-devel-0.74-0.1mgc
  3. dbus-glib-0.74-0.1mgc
  4. db4-4.7.25-1mgc
  5. dbus-1.2.1-0.6mgc
  6. dbus-qt3-0.70-3mgc
  7. db4-devel-4.7.25-1mgc
  8. dbus-qt3-devel-0.70-3mgc
  9. dbus-devel-1.2.1-0.6mgc
  10. db4-cxx-4.7.25-1mgc
  11. db4-tcl-4.7.25-1mgc
  12. dbus-python-0.81.1-1mgc
  13. dbus-x11-1.2.1-0.6mgc
  14. db4-utils-4.7.25-1mgc
  15. [root@MagicLinux SPECS]#
复制代码
回复

使用道具 举报

发表于 2008-9-9 17:50:27 | 显示全部楼层
原帖由 jiangtao9999 于 2008-9-9 17:44 发表
我很想知道色即是空是怎么编译通过 compat-db 的……

checking for mmap... yes
checking for munmap... yes
checking for shmget... yes
checking "rpcgen -C" build of db_server.h... yes
checking f ...

呵呵,我这里没有任何问题啊。
回复

使用道具 举报

 楼主| 发表于 2008-9-9 17:57:44 | 显示全部楼层

诡异……
难道是某个包版本的问题?
回复

使用道具 举报

 楼主| 发表于 2008-9-9 17:59:01 | 显示全部楼层
确实有这几个文件啊……
回复

使用道具 举报

发表于 2008-11-15 13:20:37 | 显示全部楼层
在spec文件中把%exclude /usr/*/debug去掉即可,其实最好把不需要的文件直接删除,只有那些分包过程可以用%exclude,这个毛病我很早就提及,%exclude /usr/*/debug是个非常错误的做法,应该在打包前删掉,MGC的SRPM包滥用了%exclude
回复

使用道具 举报

发表于 2008-11-15 13:22:17 | 显示全部楼层
原帖由 jiangtao9999 于 2008-9-7 10:34 发表

ML 的 src.rpm 在我这里连 patch 过程都能出错……

se兄新打包的rpm对打包审核地太严,具体要修改哪个地方的设置我不得而知,但是总的来说MGC的补丁没有经常修订也是一个很大的问题。
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-4-20 00:15 , Processed in 0.079523 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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