Version: 3.4.0 (using KDE KDE 3.4.0) Installed from: FreeBSD Ports OS: FreeBSD This screenshot http://www.tuxmachines.org/gallery/PC-BSD/kpackage?full=1 show a kpackage displaying only the installed package not the available package in "All". No package are listed in "Updated" and "New" too. This is an old problem but nobody on any BSD want to fix.
There is many problem with fbsdInterface and FreeBSD. First, http://lxr.kde.org/source/kdeadmin/kpackage/fbsdInterface.cpp#L673 you can see at this line that the parser read 7 or 8 separators "|" or show a warning. But if you look at the /usr/ports/INDEX-5, there is more that 8 separator for a package line, and the line is still valid. By example, kdeadmin got 12 "|". kdeadmin example line: kdeadmin-3.4.0|/usr/ports/sysutils/kdeadmin3|/usr/local|KDE applications related to system administration|/usr/ports/sysutils/kdeadmin3/pkg-descr|kde@FreeBSD.org|sysutils kde|OpenEXR-1.2.1_1 arts-1.4.0,1 aspell-0.60.2_1 bitstream-vera-1.10_1 cups-base-1.1.23.0_4 expat-1.95.8_2 fam-2.6.9_6 fontconfig-2.2.3,1 freetype2-2.1.9 gettext-0.14.4_1 glib-2.6.5 gmake-3.80_2 gnutls-1.0.24_1 jackit-0.99.0 jasper-1.701.0 jpeg-6b_3 kdehier-1.0_6 kdelibs-3.4.0_4 lcms-1.14,1 libXft-2.1.6_1 libart_lgpl2-2.3.17 libaudiofile-0.2.6 libgcrypt-1.2.1_1 libgpg-error-1.0_1 libiconv-1.9.2_1 libidn-0.5.17 libmad-0.15.1b_1 libmng-1.0.8 libogg-1.1.2_1,3 libsndfile-1.0.11 libvorbis-1.1.0_1,3 libxml2-2.6.19 libxslt-1.1.14 mDNSResponder-107.1_1 nas-1.7 openldap-client-2.2.26 pcre-5.0 perl-5.8.6_2 pkgconfig-0.17.2 png-1.2.8_2 portaudio-18.1_2 qt-3.3.4 tiff-3.7.2 xorg-clients-6.8.2 xorg-fonts-encodings-6.8.2 xorg-fonts-truetype-6.8.2 xorg-libraries-6.8.2 xterm-202|OpenEXR-1.2.1_1 arts-1.4.0,1 aspell-0.60.2_1 bitstream-vera-1.10_1 cups-base-1.1.23.0_4 expat-1.95.8_2 fam-2.6.9_6 fontconfig-2.2.3,1 freetype2-2.1.9 gettext-0.14.4_1 glib-2.6.5 gnutls-1.0.24_1 jackit-0.99.0 jasper-1.701.0 jpeg-6b_3 kdehier-1.0_6 kdelibs-3.4.0_4 lcms-1.14,1 libXft-2.1.6_1 libart_lgpl2-2.3.17 libaudiofile-0.2.6 libgcrypt-1.2.1_1 libgpg-error-1.0_1 libiconv-1.9.2_1 libidn-0.5.17 libmad-0.15.1b_1 libmng-1.0.8 libogg-1.1.2_1,3 libsndfile-1.0.11 libvorbis-1.1.0_1,3 libxml2-2.6.19 libxslt-1.1.14 mDNSResponder-107.1_1 nas-1.7 openldap-client-2.2.26 pcre-5.0 perl-5.8.6_2 pkgconfig-0.17.2 png-1.2.8_2 portaudio-18.1_2 qt-3.3.4 tiff-3.7.2 xorg-clients-6.8.2 xorg-fonts-encodings-6.8.2 xorg-fonts-truetype-6.8.2 xorg-libraries-6.8.2 xterm-202|||| Second, the freebsd index have more that 13000 lines of port in this file, the algorithms to read this, stock theses 13000 lines inside a 256 hash tables array and linking lists. Third, the index on freebsd filepath for my friend is /usr/ports/INDEX-5 and not /usr/ports/INDEX. Maybe they change the default location. Fourthly, if you follow the dname variables, it contains this: /usr/ports/All// inside bin_filename_base (two slashes). http://lxr.kde.org/source/kdeadmin/kpackage/fbsdInterface.cpp#L696 There is possible others bugs for this file. It could be possibly more optimized if fbsdInterface::listPackages could list available packages directly when reading the file. -- Yan Morin http://yansanmo.no-ip.org:8080/
Portindex output in lib/portindex/port.pm of Portindex 1.4 Ref: http://www.infracaninophile.co.uk/portindex/ print $fh $self->PKGNAME(), '|'; print $fh $self->ORIGIN(), '|'; print $fh $self->STUFF(), '|'; print $fh $self->_chase_deps( $allports, 'BUILD_DEPENDS' ), '|'; print $fh $self->_chase_deps( $allports, 'RUN_DEPENDS' ), '|'; print $fh $self->WWW(), '|'; print $fh $self->_chase_deps( $allports, 'EXTRACT_DEPENDS' ), '|'; print $fh $self->_chase_deps( $allports, 'PATCH_DEPENDS' ), '|'; print $fh $self->_chase_deps( $allports, 'FETCH_DEPENDS' ), "\n Where STUFF() = PREFIX|COMMENT|DESCR|MAINTAINER|CATEGORIES So, 12 '|' separators.
Thanks, I'll fix it On Wed, 15 Jun 2005 08:15 am, you wrote: > > Where STUFF() = PREFIX|COMMENT|DESCR|MAINTAINER|CATEGORIES > So, 12 '|' separators. > >
I've update the SVN version to fix the spurious error messages and the not looking at /usr/ports/INDEX-5
Created attachment 13323 [details] Two // at the end of path file for kpackage with FreeBSD... I have the same problem, I am with version 3.4.3 of KDE. KPACKAGE does not function the OS FreeBSD. I note: ftp://ftp.frebsd.org/pub/FreeBSD/ports/i386/packages-6.0-release/All// the problem is certainly in two // at the end place...
Actually the problem seems to be that the files are now .tbz files instead of .tgz files the program was expecting. It should be fixed now the sources.
KPackage was recently removed from KDE SC (since 4.4 beta2) as it was completely broken and unmaintained. Most of the common GNU/Linux distributions offer their own tools to deal with packages, and KDE is working on an universal package manager replacement named "Shaman" (to superseed KPackageKit) Closing the KPackage's bug reports as UNMAINTAINED. Regards