Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Invalid ebuild detection
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
bsnipes
n00b
n00b


Joined: 30 May 2002
Posts: 37

PostPosted: Fri Jun 14, 2002 8:21 pm    Post subject: Invalid ebuild detection Reply with quote

OK. I went to install ethereal and it bombed because of problems with libpcap on the configure. I scrolled up and it said that the libpcap had been merged successfully. After peering around a bit I found out that he ebuild file for 0.7.1 version of libpcap was empty except for whitespace.
After looking at about 10 ebuild files the only common characters I saw in all of the nonempty ones was the '#' comment character. If all empty/whitespace only ebuild files are broken (valid assumption?), how about a script (probably much better than this one) to check on invalid ones and report them to the proper maintainer. I used find and got:

bash-2.05a# find ./ -name "*.ebuild" -exec grep -L \# {} \;
./app-text/jadetex/jadetex-2.20.ebuild
./app-text/noweb/noweb-2.9-r1.ebuild
./gnome-base/nautilus/nautilus-1.1.19.ebuild
./media-gfx/xv/xv-3.10a-r2.ebuild
./media-libs/libpng/libpng-1.2.3.ebuild
./net-ftp/gftp/gftp-2.0.11.ebuild
./net-ftp/gftp/gftp-2.0.12.ebuild
./net-libs/libpcap/libpcap-0.7.1.ebuild
./x11-misc/xwrits/xwrits-2.20.ebuild
./x11-misc/mowitz/mowitz-0.2.1.ebuild
bash-2.05a#

Brian Snipes
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Tue Jun 18, 2002 12:05 am    Post subject: Reply with quote

Or, you could do this:
Code:
find -size 0b -name "*.ebuild"


...which would simply display a list of all the zero-byte ebuilds. Or you could even do:
Code:
rm `find -size 0b -name "*.ebuild"`


...which would remove the zero-byte ebuild files and allow Portage to function as normal. Currently, in my recently-synced tree, noweb-2.9-r1.ebuild and jadetex-2.20.ebuild are empty, which is kinda... yeah.


Last edited by delta407 on Tue Jun 18, 2002 3:34 am; edited 1 time in total
Back to top
View user's profile Send private message
bsnipes
n00b
n00b


Joined: 30 May 2002
Posts: 37

PostPosted: Tue Jun 18, 2002 3:20 am    Post subject: Reply with quote

I originally used
Code:
-size 0
in the find command but then it didn't get the ebuild files that were greater than 0 bytes but only had whitespace.
Out of curiosity what is the content of your libpcap ebuild file? I submitted a Bugzilla item and it was listed as closed with a note of that says doing an emerge rsync fixes the problem. Unless I manually delete the empty/whitespace-only ebuilds, they do not get overwritten.
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Tue Jun 18, 2002 3:33 am    Post subject: Reply with quote

Running emerge rsync --clean forces your local Portage tree to syncronize with the remote one, meaning any differences in files (such as the all-whitespace being replaced with one that had content) will be overwritten. By default, different files by the same name are left alone (which is smart); just run emerge rsync --clean and your problems will be all better.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum