You are not logged in.

#1 2013-01-11 01:26:13

reverland
Member
Registered: 2012-03-25
Posts: 19

How to relocate?

I tried to package `nengo` yesterday, and put all the mess in the /opt..

but it looks like it will create an directory `/opt/nengo/lib/cachedir/packages` before launching.Where user has no permission.

I find Wiki says.

Bear in mind that /usr may be mounted as read-only on some systems. If there are files in the shared directory that need to be written by the application, they may have to be relocated to /etc, /var, or the user's home directory.

But how should it be done?I just creat '/lib/cachedir/packages' in the PKGBUILD. The UI can launch now, but it quite a terrible workaround.

I'm a newbie to packaging, and may sorry for poor English.

Offline

#2 2013-01-11 02:57:58

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: How to relocate?

You can set the Jython cachedir:

package() {
  ...
  sed -i 's|^java |&-Dpython.cachedir=/tmp/nengo |' "$pkgdir/opt/$pkgname/$pkgname"
}

Offline

#3 2013-01-11 03:50:20

reverland
Member
Registered: 2012-03-25
Posts: 19

Re: How to relocate?

tdy wrote:

You can set the Jython cachedir:

package() {
  ...
  sed -i 's|^java |&-Dpython.cachedir=/tmp/nengo |' "$pkgdir/opt/$pkgname/$pkgname"
}

Thank you very much,I got it.

Offline

Board footer

Powered by FluxBB