LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Downloaded Wireshark source code and while make rpm got this error, kindly help (https://www.linuxquestions.org/questions/linux-newbie-8/downloaded-wireshark-source-code-and-while-make-rpm-got-this-error-kindly-help-629439/)

pkhera_2001 03-20-2008 07:31 AM

Downloaded Wireshark source code and while make rpm got this error, kindly help
 
Hi!

I have downloaded Wireshark from "http://sourceforge.net/project/downloading.php?group_id=255&use_mirror=jaist&filename=wireshark-0.99.8.tar.gz&43465604" link and installed it successfully.

But while making a rpm as suggested by README file, I am getting following error message. As being newbie in Linux, don't know what to do next.

"Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.24420
+ umask 022
+ cd /root/wireshark-0.99.8/packaging/rpm/BUILD
+ cd wireshark-0.99.8
+ DOCDIR=/tmp/wireshark-0.99.8-root/usr/share/doc/wireshark-0.99.8
+ export DOCDIR
+ rm -rf /tmp/wireshark-0.99.8-root/usr/share/doc/wireshark-0.99.8
+ /bin/mkdir -p /tmp/wireshark-0.99.8-root/usr/share/doc/wireshark-0.99.8
+ cp -pr AUTHORS COPYING ChangeLog FAQ INSTALL NEWS README README.aix README.bsd README.hpux README.irix README.linux REAmacos README.tru64 README.vmware README.win32 /tmp/wireshark-0.99.8-root/usr/share/doc/wireshark-0.99.8
+ exit 0


RPM build errors:
File not found by glob: /tmp/wireshark-0.99.8-root/usr/man/*/*
make: *** [rpm-package] Error 1"

Tried to find on Wireshark.org's FAQ and Mailing List but could not find any solution.

Kindly help.

Regards,
PK

unSpawn 03-20-2008 08:09 AM

Quote:

Originally Posted by pkhera_2001 (Post 3094887)
File not found by glob: /tmp/wireshark-0.99.8-root/usr/man/*/*

This will fail on systems that don't have %{prefix}/man or where %{prefix}/man is a symbolic link to %{prefix}/share/man. Here's a patch for packaging/rpm/SPECS/wireshark.spec.in.
Code:

--- wireshark.spec.in        2008-02-27 20:59:03.000000000 +0100
+++ wireshark.spec.in        2008-02-27 20:59:04.000000000 +0100
@@ -45,7 +45,7 @@
 %prefix/lib/*
 %prefix/share/wireshark/*
 %prefix/share/wireshark/*/*
-%prefix/man/*/*
+%prefix/share/man/*/*
 
 %changelog
 * Thu Aug 10 2006 Joerg Mayer

If you care please notify the developers.

* BTW building RPMs as root account user is not a best practice.


All times are GMT -5. The time now is 07:28 PM.