WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Some faulty entries in .dep files  (Read 3703 times)

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Some faulty entries in .dep files
« on: October 21, 2009, 07:01:33 PM »
I've got my own local mirror of the TCZ repository and that makes it easy to loop over the dependency files to identify those with "broken" entries:

Code: [Select]
ls | grep '\.dep$' | while read dep ; do
cat $dep | while read file ; do
if [ ! -f $file ] ; then
printf "missing %-30s for %-30s\n" $file $dep
fi
done
done | sort

resulting in:
Quote

missing apache2.tcz                    for php5.tczl.dep
missing cdrtools.tze                   for dvd+rwtools.tczl.dep
missing expat.tczl                     for gtkpod.tczl.dep
missing expat2.tcel                    for xfv.tcz.dep
missing expat2.tcel                    for xfw.tcz.dep
missing gcc.tczl                       for fltk2.tczl.dep
missing glib2-devs.tcz                 for libgnomeprint-devs.tcz.dep
missing glib2-devs.tcz                 for libwnck-dev.tcz.dep
missing glib2-devs.tcz                 for pygobject-dev.tcz.dep
missing glib2-devs.tcz                 for vte-dev.tcz.dep
missing glib2-devs.tcz                 for wv-dev.tcz.dep
missing gnutls.tcz                     for libsoup.tcz.dep
missing gnutls.tcz                     for webkit.tcz.dep
missing graphics-2.6.26.tczm           for x11vnc-0.9.6.tcz.dep
missing icu.tczl                       for open-vm-tools-withx.tczlm.dep
missing libtool.tcz                    for gphoto2.tcz.dep
missing libtool.tcz                    for libgphoto2.tczl.dep

My take on the required changes looks like this:
file
faulty entry
corrected entry
dvd+rwtools.tczl.dep
cdrtools.tze
cdrtools.tcz
fltk2.tczl.dep
gcc.tczl
gcc.tcz
gphoto2.tcz.dep
libtool.tcz
libtool.tczl
gtkpod.tczl.dep
expat.tczl
expat2.tczl
libgnomeprint-devs.tcz.dep
glib2-devs.tcz
glib2-dev.tcz
libgphoto2.tczl.dep
libtool.tcz
libtool.tczl
libsoup.tcz.dep
gnutls.tcz
gnutls.tczl
libwnck-dev.tcz.dep
glib2-devs.tcz
glib2-dev.tcz
open-vm-tools-withx.tczlm.dep
icu.tczl
icu.tcz
php5.tczl.dep
apache2.tcz
apache2.tczl
pygobject-dev.tcz.dep
glib2-devs.tcz
glib2-dev.tcz
vte-dev.tcz.dep
glib2-devs.tcz
glib2-dev.tcz
webkit.tcz.dep
gnutls.tcz
gnutls.tczl
wv-dev.tcz.dep
glib2-devs.tcz
glib2-dev.tcz
x11vnc-0.9.6.tcz.dep
graphics-2.6.26.tczm
graphics-2.6.29.1-tinycore.tczm
xfv.tcz.dep
expat2.tcel
expat2.tczl
xfw.tcz.dep
expat2.tcel
expat2.tczl

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Some faulty entries in .dep files
« Reply #1 on: October 21, 2009, 07:48:04 PM »
Thanks.

I will work on these findings tonight.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Some faulty entries in .dep files
« Reply #2 on: October 21, 2009, 08:00:09 PM »
Dep files are fixed.  Thanks again, this will save people a lot of time in troubleshooting.

I will use your script from time to time as part of checking the health of the repo.

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: Some faulty entries in .dep files
« Reply #3 on: November 08, 2009, 08:20:38 PM »
I've done a quick re-check (using the same command sequence as above) and thought it's time for another heads-up. The upshot is that I believe the following changes are required:

file
faulty entry
corrected entry
bluez-gnome.tcz.dep
GConf-2.18.0.1.devs.tcz
GConf-2.22.0-devs.tcz
GConf-2.22.0-devs.tcz.dep
ORBit2-2.14.17-devs.tcz
ORBit2-2.14.17_devs.tcz
gfortran.tczl.dep
binutils.tcz
binutils.tczl
vte-dev.tcz.dep
glib2-devs.tcz
glib2-dev.tcz
tucan.tcz.dep
openssl-0.9.8h.tcz
openssl-0.9.8h.tczl
vte-dev.tcz.dep
perl_xml.tcz
perl_xml_parser.tcz or perl_xml_simple.tcz
php5-cgi-pear.tczl.dep
php-cgi.tczl
php5-cgi.tczl
libftdi.tczl.dep
usbutils.tczl
usb-utils.tcz

I've also found with the following command sequence a CR (i.e. 0x0d) character in keepalived.tcz.dep

Code: [Select]
ls | grep '\.dep' | while read f ; do od -c $f | grep -q '\\r' ; [ $? -eq 0 ] && echo $f ; done

I'm not sure if that is a real issue (I'm about to post something re. MD5 files), but I guess it's easy enough to be fixed.

Cheers
Martin

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Some faulty entries in .dep files
« Reply #4 on: November 08, 2009, 09:02:57 PM »
Fixed, and thanks for the find.  Many are due to renaming tcz and tczl and factoring out libraries and typos.  But GConf is using the version number in the extension name, which is against TC library extension policy.  

I am going to seek out and ask the extension owners to rename any library extensions that are including the version number in the name and rename them since any update to them breaks the repo.  Though end use apps that nothing else depends on - or special libs like openssl that is not compatible with apps across library upgrades and therefore need to be version specific - may have a version number in them, standard shared library extensions may not.  

I will adjust the relevant dep files upon any renaming of extensions.
« Last Edit: November 08, 2009, 09:16:07 PM by Jason W »

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: Some faulty entries in .dep files
« Reply #5 on: November 08, 2009, 09:17:48 PM »
@Jason:

As usual I'm quite impressed with your quick response.

But could it be that vte-dev.tcz.dep now contains a 'pero_xml_parser.tcz' entry whilst libftdi.tczl.dep contains an 'usbutils.tcz' entry (without the hyphen)?

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Some faulty entries in .dep files
« Reply #6 on: November 08, 2009, 09:19:54 PM »
Fixed, I was multitasking.

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: Some faulty entries in .dep files
« Reply #7 on: December 21, 2009, 07:36:28 PM »
I've done another run of this simple check of the dependenciy files and here are the proposed corrections:

file
faulty entry
corrected entry
dermixd-oss.tcz.dep
OSS.tczm
OSS.tcz
recordmydesktop-gtk.tczl.dep
OSS.tczm
OSS.tcz
recordmydesktop.tcz.dep
OSS.tczm
OSS.tcz
vimtutor.tcz.dep
vim_7.2.245.tcz
vim.tcz

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Some faulty entries in .dep files
« Reply #8 on: December 21, 2009, 07:57:41 PM »
Fixed.

Thanks.

JW

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: Some faulty entries in .dep files
« Reply #9 on: January 16, 2010, 09:47:55 PM »
I've re-run this check today and here are the proposed corrections:
file
faulty entry
corrected entry
rhythmbox.tcz.dep
libgsf.tczl
libgsf.tcz
python_coherence.tcz.dep
openssl-0.9.8h.tczl
openssl-0.9.8h.tcz
python_coherence.tcz.dep
python.tczl
python.tcz
python_coherence.tcz.dep
sqlite3.tczl
sqlite3.tcz
python_coherence.tcz.dep
tcl_tk.tczl
tcl_tk.tcz

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: Some faulty entries in .dep files
« Reply #10 on: January 16, 2010, 10:24:14 PM »
fixed, thanks

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: Some faulty entries in .dep files
« Reply #11 on: March 17, 2010, 09:54:52 PM »
I've re-run the test today, and the only thing that popped up was the fact that libpanel-applet-dev.tcz.dep containes a (redundant) entry of GConf-dev (in addition to the 'GConf-dev.tcz' entry).

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Some faulty entries in .dep files
« Reply #12 on: March 17, 2010, 09:59:13 PM »
Fixed, thanks.