Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 315171 - Change app-portage/g-ctan's default store directory to /var/lib/layman
Summary: Change app-portage/g-ctan's default store directory to /var/lib/layman
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Christian Faulhammer (RETIRED)
URL: https://bugs.launchpad.net/g-ctan/+bu...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-14 00:44 UTC by Luis Ferreira
Modified: 2010-06-23 08:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luis Ferreira 2010-04-14 00:44:17 UTC
Sly luis # g-ctan -g
* You have insufficient permissions to access /usr/portage/local/g-ctan or it does not exist.
* Please create it or check the permissions, some path definitions can be altered
* through the /etc/g-ctan/g-ctan.conf file.
* This program should be run as root in most environments.


Reproducible: Always
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2010-04-14 09:58:04 UTC
Configure g-ctan according to the message, please.


Christian, how about creating the needed directory with the installation? Prefereably something like /var/gentoo/g-ctan, maybe!?
Comment 2 Christian Faulhammer (RETIRED) gentoo-dev 2010-04-14 10:12:18 UTC
(In reply to comment #1)
> Configure g-ctan according to the message, please.
> 
> 
> Christian, how about creating the needed directory with the installation?
> Prefereably something like /var/gentoo/g-ctan, maybe!?

 The man page says:

"Before the packages can be installed, it is needed to create a separate overlay for g-CTAN, so no harm is done to  other package  repositories.   The default location is PORTDIR/local/g-ctan, but can be changed through the configuration file (see FILES section).  Additionally g-CTAN checks before most operations if that overlay directory has been added to  the PORTDIR_OVERLAY variable from make.conf."

As I don't want to create such directories in a user's system, the user should do it.  Is this answer satisfying.
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2010-04-14 18:52:48 UTC
(In reply to comment #2)
> As I don't want to create such directories in a user's system, the user should
> do it.  Is this answer satisfying.

This was my thought as well and I almost did resolve this bug report as dupe of bug 283642. On the other hand it's not the most pleasant out of the box experience. Frankly, this is too often the case with Gentoo.

Comment 4 Luis Ferreira 2010-04-14 19:06:58 UTC
Sorry, /var/cache/g-ctan/ it was a mistake, I want to write /var/lib/layman , because this:

2010-02-28-layman-storage-path-change
  Title                     Layman storage path changed from version 1.3.0 on
  Author                    Sebastian Pipping <sping@gentoo.org>
  Posted                    2010-02-28
  Revision                  2

Layman has been using /usr/local/portage/layman to store
overlay checkouts from version 1.2.3 on.  As that path
was violating the concept of keeping portage away from
/usr/local the default of this storage location moves to

  /var/lib/layman

from version 1.3.0 on.  If you have never touched the file
/etc/layman/layman.cfg manually before, you may be tempted to let
tools like etc-update or dispatch-conf blindly accept this new version
of layman.cfg.

As that would hide all your currently installed overlays from layman
it's probably not what you want.  Your options are:

 A) Moving
   1. Move your current content to /var/lib/layman.
   2. Update PORTDIR_OVERLAY in /var/lib/layman/make.conf accordingly.
   3. Make /etc/make.conf source /var/lib/layman/make.conf.
   4. Set option "storage" in /etc/layman/layman.cfg
      to "/var/lib/layman".

 B) A symlink
   Put a symlink to your current storage location at /var/lib/layman
   before upgrading layman.

 C) Configuration
   Reject the path change for layman.cfg when running tools like
   etc-update or dispatch-conf.  Be aware with this way you'll have
   to do it for each layman update again.

PS: This news item is a reaction to users having run into this problem
(see bug #306233).  Thanks to Volker Hemmann for reporting.

Comment 5 Christian Faulhammer (RETIRED) gentoo-dev 2010-04-14 19:39:43 UTC
Yes, I had that in mind, but forgot it completely.  Will fix it upstream and then do a release in the next couple of weeks.
Comment 6 Christian Faulhammer (RETIRED) gentoo-dev 2010-04-20 15:13:37 UTC
I already changed the directory in the trunk to /var/lib/g-ctan, so this bug is fixed upstream.
Comment 7 Christian Faulhammer (RETIRED) gentoo-dev 2010-06-23 08:48:36 UTC
As my laptop got stolen I could not work on Gentoo for more than a month.  Finally the situation is resolved and I could make the release I promised.  Thank you for your patience, g-ctan 2009.2 is now in the tree.