Menu

#64 Kuroo relies on deprecated variables in make.conf for directory settings

default
closed-fixed
None
5
2024-07-18
2024-06-10
No

Kuroo does not show any packages in the tree view, but a dummy entry "all/all". For each installed package, Kuroo reports that no ebuild was available.

It seems that Kuroo still depends on the long deprecated variables

PORTDIR
PORTDIR_OVERLAY
DISTDIR
PORTAGE_BINHOST

etc., in make.conf to detect the path to the Gentoo main repository on the local drive, an optional, single overlay directory and a URL for a single binary host.

These variables have long been deprecated. Nowadays, repositories are configured via files in the directory /etc/portage/repos.conf/ with one file per repository and the Gentoo main repository is only one among many. Same aspect holds for binary hosts which are configured via files in the directory /etc/portage/binrepos.conf/.

Discussion

  • A Schenck

    A Schenck - 2024-06-13

    Hi Matthias, thanks for the report! This is a known thing but has kinda been forgotten since it "just works"™ here because PORTDIR has been set for ages (and the tree is still in /usr/portage instead of /var/db/repos). There are a lot of projects in the kuroo codebase and this one has just never been prioritized, but it shouldn't be too difficult to do, just slightly annoying because the repos.conf files use "ini" syntax rather than variable assignment syntax like most other files we read. Will try to get this done and release a new version some time soon.

     
  • A Schenck

    A Schenck - 2024-06-13
    • status: open --> accepted
    • assigned_to: A Schenck
     
  • A Schenck

    A Schenck - 2024-07-18
    • status: accepted --> closed-fixed
     
  • A Schenck

    A Schenck - 2024-07-18

    Implemented repos.conf parsing and several other things in release 1.2.3 which is pending being added to the gentoo tree at https://bugs.gentoo.org/936066 . The main release notes are:
    Notably this version reads repo locations from /etc/repos.conf per bug #64 filed
    at sourceforge, and bug 934211 filed at gentoo. It also adds some warnings and
    more messaging around errors and warnings. Lots of cleanup in CMakeLists and
    other old code. Rename base name to org.gentoo.kuroo. Add a warning to the config
    dialog that it will rewrite make.conf. Fix some memory leaks reported by ASAN.

    This should be the last KDE Frameworks 5 release, since Plasma based on KF6 is
    now in ~amd64 in the main tree, so that will be a big porting effort.

     

Log in to post a comment.

MongoDB Logo MongoDB