RPM noob (query, log, build)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



So, I went and built my first RPM recently.  I had to go back and forth a 
bit with the developers, but it's built from the most recent svn update 
of curl-java, and, from what I see, is exactly what I wanted to install 
is installed the way I want it installed.  However, I don't understand 
why the rpm query isn't returning the expected result.

Oddly, I recall running the query option to figure out where the JAR was 
installed to.  Also, there's more than a JAR involved, there are some .so 
files.  Is there a different query to run?

Did I make the RPM incorrectly?  Here I am going around in circles a bit 
(after doing the hard part, building the RPM):



[root@arrakis i386]# 
[root@arrakis i386]# 
[root@arrakis i386]# yum -y remove curl-java-0.2.3.SVN-2.i386
Loaded plugins: refresh-packagekit
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package curl-java.i386 0:0.2.3.SVN-2 set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================
 Package             Arch           Version                  
Repository           Size
=======================================================================================
Removing:
 curl-java           i386           0.2.3.SVN-2              
installed            15 k

Transaction Summary
=======================================================================================
Install      0 Package(s)         
Update       0 Package(s)         
Remove       1 Package(s)         

Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing        : curl-
java                                                       1/1 

Removed:
  curl-java.i386 
0:0.2.3.SVN-2                                                         

Complete!
[root@arrakis i386]# 
[root@arrakis i386]# jar -tf /usr/share/java/curljava.jar
java.io.FileNotFoundException: /usr/share/java/curljava.jar (No such file 
or directory)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:137)
	at java.io.FileInputStream.<init>(FileInputStream.java:96)
	at sun.tools.jar.Main.run(Main.java:223)
	at sun.tools.jar.Main.main(Main.java:1044)
[root@arrakis i386]# 
[root@arrakis i386]# ll
total 76
-rw-r--r-- 1 makerpm makerpm 12935 2009-06-01 00:58 curl-
java-0.2.3-2.i386.rpm
-rw-r--r-- 1 makerpm makerpm 13202 2009-06-05 15:23 curl-
java-0.2.3.SVN-2.i386.rpm
-rw-r--r-- 1 makerpm makerpm 20300 2009-06-01 00:58 curl-java-
debuginfo-0.2.3-2.i386.rpm
-rw-r--r-- 1 makerpm makerpm 20503 2009-06-05 15:23 curl-java-
debuginfo-0.2.3.SVN-2.i386.rpm
[root@arrakis i386]# 
[root@arrakis i386]# rpm -ivh curl-java-0.2.3-2.i386.rpm
Preparing...                ########################################### 
[100%]
   1:curl-java              ########################################### 
[100%]
[root@arrakis i386]# 
[root@arrakis i386]# rpm -qa curl-java-0.2.3-2.i386
[root@arrakis i386]# 
[root@arrakis i386]# rpm -qa curl-java-0.2.3-2.i386.rpm 
[root@arrakis i386]# 
[root@arrakis i386]# jar -tf /usr/share/java/curljava.jar
CurlGlue.class
CurlIO.class
CurlRead.class
CurlWrite.class
META-INF/
META-INF/MANIFEST.MF
[root@arrakis i386]# 
[root@arrakis i386]# yum -y remove curl-java-0.2.3-2.i386
Loaded plugins: refresh-packagekit
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package curl-java.i386 0:0.2.3-2 set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================
 Package              Arch            Version               
Repository            Size
=======================================================================================
Removing:
 curl-java            i386            0.2.3-2               
installed             14 k

Transaction Summary
=======================================================================================
Install      0 Package(s)         
Update       0 Package(s)         
Remove       1 Package(s)         

Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing        : curl-
java                                                       1/1 

Removed:
  curl-java.i386 
0:0.2.3-2                                                             

Complete!
[root@arrakis i386]# 
[root@arrakis i386]# 
[root@arrakis i386]# jar -tf /usr/share/java/curljava.jar
java.io.FileNotFoundException: /usr/share/java/curljava.jar (No such file 
or directory)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:137)
	at java.io.FileInputStream.<init>(FileInputStream.java:96)
	at sun.tools.jar.Main.run(Main.java:223)
	at sun.tools.jar.Main.main(Main.java:1044)
[root@arrakis i386]# 
[root@arrakis i386]# 
[root@arrakis i386]# ll
total 76
-rw-r--r-- 1 makerpm makerpm 12935 2009-06-01 00:58 curl-
java-0.2.3-2.i386.rpm
-rw-r--r-- 1 makerpm makerpm 13202 2009-06-05 15:23 curl-
java-0.2.3.SVN-2.i386.rpm
-rw-r--r-- 1 makerpm makerpm 20300 2009-06-01 00:58 curl-java-
debuginfo-0.2.3-2.i386.rpm
-rw-r--r-- 1 makerpm makerpm 20503 2009-06-05 15:23 curl-java-
debuginfo-0.2.3.SVN-2.i386.rpm
[root@arrakis i386]# 
[root@arrakis i386]# rpm -ivh curl-java-0.2.3.SVN-2.i386.rpm
Preparing...                ########################################### 
[100%]
   1:curl-java              ########################################### 
[100%]
[root@arrakis i386]# 
[root@arrakis i386]# jar -tf /usr/share/java/curljava.jar
META-INF/
META-INF/MANIFEST.MF
net/
net/haxx/
net/haxx/curl/
net/haxx/curl/CurlGlue.class
net/haxx/curl/CurlIO.class
net/haxx/curl/CurlRead.class
net/haxx/curl/CurlWrite.class
[root@arrakis i386]# 
[root@arrakis i386]# date
Fri Jun  5 22:37:05 PDT 2009
[root@arrakis i386]# 
[root@arrakis i386]# pwd
/home/makerpm/rpmbuild/RPMS/i386
[root@arrakis i386]# 
[root@arrakis i386]# whoami
root
[root@arrakis i386]# 






thanks,

Thufir

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux