Bug 107278 - typo Kpackage doesn't work proprely on any BSD.
Summary: typo Kpackage doesn't work proprely on any BSD.
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kpackage
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: FreeBSD Ports FreeBSD
: NOR normal
Target Milestone: ---
Assignee: Toivo Pedaste
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-12 16:21 UTC by ozz wizzard
Modified: 2009-12-20 13:59 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Two // at the end of path file for kpackage with FreeBSD... (237 bytes, text/plain)
2005-11-07 16:12 UTC, Steve Quirin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ozz wizzard 2005-06-12 16:21:49 UTC
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.
Comment 1 Yan Morin 2005-06-12 21:06:29 UTC
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/
Comment 2 Yan Morin 2005-06-15 02:14:48 UTC
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.
Comment 3 Toivo Pedaste 2005-06-15 03:07:25 UTC
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.
> 
> 

Comment 4 Toivo Pedaste 2005-06-28 16:09:47 UTC
I've update the SVN version to fix the spurious error messages and the not 
looking at /usr/ports/INDEX-5
Comment 5 Steve Quirin 2005-11-07 16:12:01 UTC
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...
Comment 6 Toivo Pedaste 2005-11-11 16:14:28 UTC
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.
Comment 7 Dario Andres 2009-12-20 13:59:07 UTC
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