Problems with cache_dir ? ;) #199

Closed
opened 2016-03-05 09:45:36 +00:00 by oberon · 12 comments
oberon commented 2016-03-05 09:45:36 +00:00 (Migrated from gitlab2.manjaro.org)

I seem to be doing something wrong here ;)
I used to have set cache_dir in ~/.config/manjaro-tools/manjaro-tools.conf to
cache_dir=/home/bernhard/manjaro
Now because I keep having this problem while @philmmanjaro seems to not have the same issue, I tried to set my cache_dir back to the default, but it looks like I'm not able to convince manjaro-tools about that 😉
First I commented out my custom path at user level, then I defined explicitly cache_dir=/var/cache/manjaro-tools there
then I checked in /etc/manjaro-tools/manjaro-tools.conf and there the default is untouched.
Still I see that buildpkg is trying to use my custom path:

==> Leaving fakeroot environment.
==> Finished making: manjaro-tools-git r1979.1dc80fc-1 (Sat Mar 5 09:13:40 UTC 2016)
mv: cannot stat '/home/bernhard/manjaro/pkg/manjaro-tools-base-git-r1931.01e4382-1-x86_64.pkg.tar.xz': No such file or directory
==> ERROR: /home/bernhard/manjaro/pkg/unstable/x86_64/manjaro-tools-base-git-r1931.01e4382-1-x86_64.pkg.tar.xz does not exist!
mv: cannot stat '/home/bernhard/manjaro/pkg/manjaro-tools-pkg-git-r1931.01e4382-1-x86_64.pkg.tar.xz': No such file or directory
==> ERROR: /home/bernhard/manjaro/pkg/unstable/x86_64/manjaro-tools-pkg-git-r1931.01e4382-1-x86_64.pkg.tar.xz does not exist!
mv: cannot stat '/home/bernhard/manjaro/pkg/manjaro-tools-iso-git-r1931.01e4382-1-x86_64.pkg.tar.xz': No such file or directory
==> ERROR: /home/bernhard/manjaro/pkg/unstable/x86_64/manjaro-tools-iso-git-r1931.01e4382-1-x86_64.pkg.tar.xz does not exist!
==> Finished building [manjaro-tools-git] 

What am I missing here?

I seem to be doing something wrong here ;) I used to have set `cache_dir` in **~/.config/manjaro-tools/manjaro-tools.conf** to `cache_dir=/home/bernhard/manjaro` Now because I keep having [this](https://github.com/manjaro/manjaro-tools/issues/198#issue-138434942) problem while @philmmanjaro seems to not have the same issue, I tried to set my **cache_dir** back to the default, but it looks like I'm not able to convince manjaro-tools about that :wink: First I commented out my custom path at user level, then I defined explicitly `cache_dir=/var/cache/manjaro-tools` there then I checked in **/etc/manjaro-tools/manjaro-tools.conf** and there the default is untouched. Still I see that buildpkg is trying to use my custom path: ``` ==> Leaving fakeroot environment. ==> Finished making: manjaro-tools-git r1979.1dc80fc-1 (Sat Mar 5 09:13:40 UTC 2016) mv: cannot stat '/home/bernhard/manjaro/pkg/manjaro-tools-base-git-r1931.01e4382-1-x86_64.pkg.tar.xz': No such file or directory ==> ERROR: /home/bernhard/manjaro/pkg/unstable/x86_64/manjaro-tools-base-git-r1931.01e4382-1-x86_64.pkg.tar.xz does not exist! mv: cannot stat '/home/bernhard/manjaro/pkg/manjaro-tools-pkg-git-r1931.01e4382-1-x86_64.pkg.tar.xz': No such file or directory ==> ERROR: /home/bernhard/manjaro/pkg/unstable/x86_64/manjaro-tools-pkg-git-r1931.01e4382-1-x86_64.pkg.tar.xz does not exist! mv: cannot stat '/home/bernhard/manjaro/pkg/manjaro-tools-iso-git-r1931.01e4382-1-x86_64.pkg.tar.xz': No such file or directory ==> ERROR: /home/bernhard/manjaro/pkg/unstable/x86_64/manjaro-tools-iso-git-r1931.01e4382-1-x86_64.pkg.tar.xz does not exist! ==> Finished building [manjaro-tools-git] ``` What am I missing here?
oberon commented 2016-03-05 09:47:42 +00:00 (Migrated from gitlab2.manjaro.org)

Ah. Maybe clean the chroot? I'm trying that now...

Ah. Maybe clean the chroot? I'm trying that now...
oberon commented 2016-03-05 09:54:23 +00:00 (Migrated from gitlab2.manjaro.org)

So. cleaning the cache doesn't help either. It's not giving up the custom path...
I still get: cannot stat '/home/bernhard/manjaro/pkg/...

So. cleaning the cache doesn't help either. It's not giving up the custom path... I still get: `cannot stat '/home/bernhard/manjaro/pkg/...`
philm commented 2016-03-05 09:59:52 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

Why the hell do you build manjaro-tools-git in chroot?
Just curious.

*Created by: udeved* Why the hell do you build manjaro-tools-git in chroot? Just curious.
oberon commented 2016-03-05 10:10:27 +00:00 (Migrated from gitlab2.manjaro.org)

It's just an example to demonstrate my problem. I wanted a git-versioned pkg to show you what I mean. I simply used the same example as Philip did in the other thread. Normally I don't 😉 I install it with makepkg 😄

It's just an example to demonstrate my problem. I wanted a git-versioned pkg to show you what I mean. I simply used the same example as Philip did in the other thread. Normally I don't :wink: I install it with makepkg :smile:
philm commented 2016-03-05 10:11:32 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

I am aware of this, see referenced issue.

*Created by: udeved* I am aware of this, see referenced issue.
oberon commented 2016-03-05 10:12:40 +00:00 (Migrated from gitlab2.manjaro.org)

I still don't know how I can reset cache_dir= to the default now.

I still don't know how I can reset **cache_dir=** to the default now.
philm commented 2016-03-05 10:14:14 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

Reset works.
Check both manjaro-tools.conf

*Created by: udeved* Reset works. Check both manjaro-tools.conf
oberon commented 2016-03-05 10:14:42 +00:00 (Migrated from gitlab2.manjaro.org)

As described above. It has no effect for me.

As described above. It has no effect for me.
oberon commented 2016-03-05 10:16:24 +00:00 (Migrated from gitlab2.manjaro.org)

/etc/manjaro-tools/manjaro-tools.conf and ~/.config/manjaro-tools/manjaro-tools.conf are both set to:

cache_dir=/var/cache/manjaro-tools
**/etc/manjaro-tools/manjaro-tools.conf** and **~/.config/manjaro-tools/manjaro-tools.conf** are both set to: ``` cache_dir=/var/cache/manjaro-tools ```
philm commented 2016-03-05 10:18:31 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

Cache_dir set to my build partition:

==> PATHS:
  -> work_dir: /build/manjaro-tools/buildpkg/unstable/x86_64
  -> pkg_dir: /build/manjaro-tools/pkg/unstable/x86_64
  -> build_mirror: http://mirror.netzspielplatz.de/manjaro/packages/unstable

Cache_dir unset:

==> PATHS:
  -> work_dir: /build/manjaro-tools/buildpkg/unstable/x86_64
  -> pkg_dir: /var/cache/manjaro-tools/pkg/unstable/x86_64
  -> build_mirror: http://mirror.netzspielplatz.de/manjaro/packages/unstable
*Created by: udeved* Cache_dir set to my build partition: ``` ==> PATHS: -> work_dir: /build/manjaro-tools/buildpkg/unstable/x86_64 -> pkg_dir: /build/manjaro-tools/pkg/unstable/x86_64 -> build_mirror: http://mirror.netzspielplatz.de/manjaro/packages/unstable ``` Cache_dir unset: ``` ==> PATHS: -> work_dir: /build/manjaro-tools/buildpkg/unstable/x86_64 -> pkg_dir: /var/cache/manjaro-tools/pkg/unstable/x86_64 -> build_mirror: http://mirror.netzspielplatz.de/manjaro/packages/unstable ```
oberon commented 2016-03-05 10:20:25 +00:00 (Migrated from gitlab2.manjaro.org)

ok. it works for successful pkgs ;)
It was just for the error in the other example it continues to tell me about the other path ...
So, this is not really a problem.
Thanks

ok. it works for successful pkgs ;) It was just for the error in the other example it continues to tell me about the other path ... So, this is not really a problem. Thanks
philm commented 2016-03-05 10:21:53 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

No, its also works just on -q option.

*Created by: udeved* No, its also works just on -q option.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tools/manjaro-tools#199
No description provided.