Project

General

Profile

Bug #519

[libremakepkg] -w $DIR:/build doesn't work as expected

alfplayer - about 10 years ago - . Updated almost 10 years ago.

Status:
not-a-bug
Priority:
bug
Category:
-
Assignee:
% Done:

0%


Description

To build faster on systems with enough RAM.

These didn't work:
  • Set BUILDDIR in /var/lib/archbuild/default/$USER/etc/makepkg.conf. libremakepkg removes the variable definition.
  • libremakepkg -w /tmp/buildlibretools:/build
  • Symlink inside the chroot: dev/shm -> build

History

#1

Updated by lukeshu almost 10 years ago

  • Subject changed from Keep build directory in tmpfs to [libremakepkg] -w $DIR:/build doesn't work as expected

Hmm, the libremakepkg -w /tmp/buildlibretools:/build should have worked. I'll look into it

#2

Updated by lukeshu almost 10 years ago

  • Assignee set to lukeshu
  • Priority changed from feature to bug
#3

Updated by lukeshu almost 10 years ago

Was your issue with libremakepkg -w /tmp/buildlibretools:/build that it said:

 |  ==> ERROR: You do not have write permission to create packages in /build.
 |      Aborting...

If so, the issue is that /build must be writable by 'nobody'. You could chown it to nobody, or chmod 777 it, or use ACLs, or whatever. But yeah, I think the issue is with how you set up the permissions on your build dir.

#4

Updated by lukeshu almost 10 years ago

  • Status changed from open to info needed
#5

Updated by alfplayer almost 10 years ago

I was getting that permission error, and it works now after running this outside the chroot:

mkdir /tmp/buildlibretools
chown nobody: /tmp/buildlibretools

I think adding an option to build in tmpfs is a good idea to avoid repeating these two commands after every power-off or reboot, when /tmp gets cleared (/tmp is tmpfs by default on Parabola). Also, the directory could be synced to a persistent directory after building so data is not lost.

If this feature is not added, a section "how to keep the build directory in RAM" can be added to the packaging guide wiki page.

#6

Updated by lukeshu almost 10 years ago

I think adding an option to build in tmpfs is a good idea to avoid repeating these two commands after every power-off or reboot

I recommend configuring them in /etc/tmpfiles.d (man tmpfiles.d).

/tmp is tmpfs by default on Parabola

Really? Back in my day, we had to configure /tmp manually :P

#7

Updated by alfplayer almost 10 years ago

lukeshu wrote:

I think adding an option to build in tmpfs is a good idea to avoid repeating these two commands after every power-off or reboot

I recommend configuring them in /etc/tmpfiles.d (man tmpfiles.d).

I see now it provides configurable cleanup time. I didn't know about it. Thanks.

#8

Updated by lukeshu almost 10 years ago

  • Status changed from info needed to not-a-bug

Great! Glad I could help.

Also available in: Atom PDF