Bug 61471 - gideon freezes on checking the rpmmacros file
Summary: gideon freezes on checking the rpmmacros file
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: git master
Platform: RedHat Enterprise Linux Other
: NOR normal
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-20 20:35 UTC by tnagy
Modified: 2004-11-21 04:34 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tnagy 2003-07-20 20:35:43 UTC
Version:           gideon cvs snapshot 30718 (using KDE KDE 3.1.2KDE 1.2)
Installed from:    RedHat RPMsRedHat RPMs
Compiler:          gcc g++
OS:          I Don't Know

gideon does not like my ~/.rpmmacro file ! it freezes if i try to open a project or create a new one. The command "strace gideon" stops on this :

open("/home/tnagy/.rpmmacros", O_RDONLY|O_LARGEFILE) = 12
fstat64(12, {st_mode=S_IFREG|0644, st_size=308, ...}) = 0
fstat64(12, {st_mode=S_IFREG|0644, st_size=308, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4254d000
read(12, "%_topdir               /home/tna"..., 4096) = 308

If I remove my ~/.rpmmacros file, gideon works as expected (no freeze).

My ~/.rpmmacros file contains the following text :

%_topdir               /home/tnagy/rpm
%_tmppath              /home/tnagy/rpm/tmp

%_signature            gpg
%_gpg_name             tnagy
%_gpg_path             ~/.gnupg
%distribution          redhat
%vendor                tnagy

%__find_requires        /home/tnagy/rpm/script.sh %{?buildroot:%{buildroot}}
Comment 1 Amilcar do Carmo Lucas 2003-07-21 09:54:34 UTC
I would say that you should get rid of the ~ 
-%_gpg_path ~/.gnupg 
+%_gpg_path /home/tnagy/.gnupg 
 
Test it it migth work! :) 
Comment 2 tnagy 2003-07-21 17:39:32 UTC
In fact it is the script line .. 

that script contains :
#!/bin/bash
/usr/lib/rpm/find-requires $@ | sed -e 's/libGLcore.so.1//g'
(used to remove the nvidia libGLcore dependence when building an rpm)


Comment 3 tnagy 2003-10-29 15:53:09 UTC
This bug is still present in kdevelop cvs.
Comment 4 Jens Dagerbo 2003-10-29 18:33:12 UTC
Found it. A string that should be taken literally got evaluated as a regexp.

Fixed in CVS.