aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: error compiling / rpmbuild  (Read 3164 times)

torn88

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
error compiling / rpmbuild
« on: January 03, 2007, 03:04:16 AM »

Using rpmbuild -bb (build binary package - however, same error with -ba) all seems to go very well until during what I believe is still the "make install" stage.  Following is the tail end of the process where it dies:

make[2]: Leaving directory `/usr/src/redhat/BUILD/amule-cvs'
make[1]: Leaving directory `/usr/src/redhat/BUILD/amule-cvs'
+ /usr/lib/rpm/redhat/find-lang.sh /var/tmp/aMule-CVS-20070102-root-root amule
+ /usr/lib/rpm/find-debuginfo.sh /usr/src/redhat/BUILD/amule-cvs
extracting debug info from /var/tmp/aMule-CVS-20070102-root-root/usr/bin/ed2k
extracting debug info from /var/tmp/aMule-CVS-20070102-root-root/usr/bin/amuleweb
extracting debug info from /var/tmp/aMule-CVS-20070102-root-root/usr/bin/amule
extracting debug info from /var/tmp/aMule-CVS-20070102-root-root/usr/bin/cas
extracting debug info from /var/tmp/aMule-CVS-20070102-root-root/usr/bin/amulecmd
extracting debug info from /var/tmp/aMule-CVS-20070102-root-root/usr/bin/wxcas
cpio: amule-cvs/src/: No such file or directory
cpio: amule-cvs/src/libs/common/: No such file or directory
cpio: amule-cvs/src/libs/ec/: No such file or directory
cpio: amule-cvs/src/utils/wxCas/src/: No such file or directory
cpio: amule-cvs/src/webserver/src/: No such file or directory
10176 blocks
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/brp-python-bytecompile
+ /usr/lib/rpm/redhat/brp-java-repack-jars
Processing files: aMule-CVS-20070102
error: File not found by glob: /var/tmp/aMule-CVS-20070102-root-root/usr/share/doc/*
Processing files: aMule-debuginfo-CVS-20070102
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1


RPM build errors:
    File not found by glob: /var/tmp/aMule-CVS-20070102-root-root/usr/share/doc/*


Any ideas?  Any help would be greatly appreciated.  I prefer using RPMs to keep my machine clean and stable, but don't really understand spec files etc. so I don't want to muck around there.  Also, using current release is no good do to file size limitation.

Thank you very much.
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: error compiling / rpmbuild
« Reply #1 on: January 03, 2007, 03:17:41 AM »

Please provide the output of the following command:
Code: [Select]
find /var/tmp/aMule-CVS-20070102-root-rootAlso, please read this thread:

http://forum.amule.org/thread.php?threadid=11942

And provide the information I requested there.

The issues are somewhat different, but connected and the solution is probably the same for both (using "make install DESTDIR=$RPM_BUILD_ROOT" instead of "%makeinstall").

Are you building these packages as root? (You shouldn't)
« Last Edit: January 03, 2007, 03:29:00 AM by Gerd78 »
Logged

torn88

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: error compiling / rpmbuild
« Reply #2 on: January 03, 2007, 11:16:17 PM »

Quote
Originally posted by Gerd78
Please provide the output of the following command:
Code: [Select]
find /var/tmp/aMule-CVS-20070102-root-root
Attached as amule-find.txt
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: error compiling / rpmbuild
« Reply #3 on: January 03, 2007, 11:20:14 PM »

Your problem is identical to the one in http://forum.amule.org/thread.php?threadid=11942 except that you're building as root (don't do that!), so it fails at a later point, but for the same reason.

The above thread contains the solution as well.
Logged

torn88

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: error compiling / rpmbuild
« Reply #4 on: January 03, 2007, 11:24:53 PM »

Quote
Originally posted by Gerd78
Please provide the output of the following command:
Code: [Select]
find /var/tmp/aMule-CVS-20070102-root-root
done in previous post.

Also, please read this thread:

http://forum.amule.org/thread.php?threadid=11942

Read the thread and trying the solution ... currently trying to build rpms now so I'll post back within the hour.

And provide the information I requested there.

...pending this attempt :)

The issues are somewhat different, but connected and the solution is probably the same for both (using "make install DESTDIR=$RPM_BUILD_ROOT" instead of "%makeinstall").

I see that now after reading that post.  I was all over here last night and missed that - if this fixes it I do apologize for not catching that one.

Are you building these packages as root? (You shouldn't)

Well, yes I am as using my "normal" user fails with strange errors as it seems only the root account can "see" many of the different things.  I'll go through the permissions and see if that's it or if it's an SELinux issue.  I don't like using the root account but on occasion seems necessary.

Thanks again.
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: error compiling / rpmbuild
« Reply #5 on: January 03, 2007, 11:32:45 PM »

Quote
Originally posted by torn88
I don't like using the root account but on occasion seems necessary.
It should never, ever be necessary to build packages.

It's necessary to install them, but it's not necessary to build them.
Logged

torn88

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Ok, that worked
« Reply #6 on: January 03, 2007, 11:50:30 PM »

Replacing the %makeinstall line as per the other thread you pointed me to did in fact solve the problem.

Thank  you very much.  Now, off to rebuild after I figure out how to specify i686 as a target instead of i386 lol.

Thank you again.
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: error compiling / rpmbuild
« Reply #7 on: January 03, 2007, 11:53:52 PM »

rpmbuild --target=i686 [...rest_of_options...]
« Last Edit: January 03, 2007, 11:54:06 PM by Gerd78 »
Logged

torn88

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: error compiling / rpmbuild
« Reply #8 on: January 04, 2007, 12:10:06 AM »

Well - that was quick -- figured that out but thanks for that anyhow.

Disabled SELinux rules and can access gcc for one as normal user.  I never used the SE stuff before since I have a firewall box anyhow but just started to play with it.  I'll fix that up later.

Everything is good and working as it should besides that so again - Thanks.
Logged