Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Apparently 'PORTDIR' is deprecated. What do I use instead?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
DanielC
n00b
n00b
Posts: 25
Joined: Mon Sep 07, 2015 12:32 pm
Location: Sweden

Apparently 'PORTDIR' is deprecated. What do I use instead?

  • Quote

Post by DanielC » Sat Sep 12, 2015 1:15 pm

Hello,

So, I've had a Gentoo install for just a few days. I just ran "euse -a" for the first time to see what it does, and I was greeted with a warning:

Code: Select all

WARNING: 'portageq envvar PORTDIR' is deprecated. Use any of 'get_repos, get_repo_path, repos_config' instead.
I am too new to know what this is trying to say. I can see that there is a variable called PORTDIR in my /etc/portage/make.conf file:

Code: Select all

PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"

Could someone help me figure out what I'm supposed to change?

Cheers,
Daniel.
Top
charles17
Advocate
Advocate
Posts: 3686
Joined: Sun Mar 02, 2008 3:20 pm

Re: Apparently 'PORTDIR' is deprecated. What do I use instea

  • Quote

Post by charles17 » Sat Sep 12, 2015 2:44 pm

DanielC wrote:Could someone help me figure out what I'm supposed to change?
See
* https://www.gentoo.org/support/news-ite ... anges.html
* https://wiki.gentoo.org/wiki/Project:Portage/Sync
* https://wiki.gentoo.org/wiki//etc/portage/repos.conf
Top
hasufell
Retired Dev
Retired Dev
Posts: 429
Joined: Sat Oct 29, 2011 8:21 am

  • Quote

Post by hasufell » Sat Sep 12, 2015 4:49 pm

Code: Select all

# PORTDIR
portageq get_repo_path / gentoo
# DISTDIR
portageq distdir
# PKGDIR
portageq pkgdir
Top
DanielC
n00b
n00b
Posts: 25
Joined: Mon Sep 07, 2015 12:32 pm
Location: Sweden

  • Quote

Post by DanielC » Sat Sep 12, 2015 5:10 pm

Sorry, I'm not trying to be thick-headed, but I don't understand. I looked at the links from charles17 but I don't see how they relate to my problem. I see that the links are about how to configure files in repos.conf/gentoo.conf but I don't see anything about PORTDIR, or get_repo_path. I do have a gentoo.conf file, and its contents look sane.

hasufell, thanks for the help; I can see that those commands produce the correct PORTDIR, DISTDIR and PKGDIR, but I don't know what to do with that information. Gentoo seems to have a problem with the fact that PORTDIR is set at all. What am I supposed to do about that? Should I just comment it out?

Thank you for your patience.

Cheers,
Daniel.
Top
Buffoon
Veteran
Veteran
User avatar
Posts: 1369
Joined: Wed Jun 17, 2015 2:22 pm
Location: EU or US

  • Quote

Post by Buffoon » Sat Sep 12, 2015 5:16 pm

You do not set any of them in make.conf if you are using defaults. Delete those lines or comment them out.
Top
DanielC
n00b
n00b
Posts: 25
Joined: Mon Sep 07, 2015 12:32 pm
Location: Sweden

  • Quote

Post by DanielC » Sat Sep 12, 2015 5:23 pm

Buffoon wrote:You do not set any of them in make.conf if you are using defaults. Delete those lines or comment them out.
Thanks!
Top
Hu
Administrator
Administrator
Posts: 24385
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sat Sep 12, 2015 5:54 pm

Those lines were added to the default /etc/portage/make.conf for the benefit of tools which have not yet been updated to the techniques that hasufell showed. They are safe to leave as-is. Removing them may cause some legacy tools not to work right.

As a user, there is nothing for you to change. If no one else had reported the issue, you could report it to the maintainer of euse.
Top
Buffoon
Veteran
Veteran
User avatar
Posts: 1369
Joined: Wed Jun 17, 2015 2:22 pm
Location: EU or US

  • Quote

Post by Buffoon » Sat Sep 12, 2015 5:58 pm

I did not check all of my boxes, but the ones I checked did not have these variables set for me. All are several years old installs. Is a new install different?
Top
khayyam
Watchman
Watchman
User avatar
Posts: 6227
Joined: Thu Jun 07, 2012 2:45 am
Location: Room 101

  • Quote

Post by khayyam » Sat Sep 12, 2015 6:15 pm

DanielC wrote:hasufell, thanks for the help; I can see that those commands produce the correct PORTDIR, DISTDIR and PKGDIR, but I don't know what to do with that information. Gentoo seems to have a problem with the fact that PORTDIR is set at all. What am I supposed to do about that? Should I just comment it out?
Daniel ... it has nothing to do with whatever is set in make.conf, the issue is that euse is calling portageq with the now obsolete parameters. So, edit euse and change the get_portdir() function ... comment the top line and add the bottom.

Code: Select all

   #eval $(portageq envvar -v PORTDIR)
   : ${PORTDIR="$(portageq get_repo_path $(portageq envvar EROOT) gentoo)"}
best ... khay
Top
Post Reply

9 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic