[pacman-dev] building pacman for a customer foloder
pacman-dev
pacman-dev at dodtsair.com
Wed Mar 7 03:11:14 UTC 2018
Tried opt too, same result:
pacman:
Build information:
source code location : .
prefix : /opt/local/pacman
sysconfdir : /opt/local/pacman/etc
conf file : /opt/local/pacman/etc/pacman.conf
localstatedir : /opt/local/pacman/var
database dir : /opt/local/pacman/var/lib/pacman/
cache dir : /opt/local/pacman/var/cache/pacman/pkg/
compiler : gcc -std=gnu99
preprocessor flags :
compiler flags : -Wall -g -O2
library flags : -lm -L/usr/lib/x86_64-linux-gnu -lcrypto -L/usr/lib/x86_64-linux-gnu -larchive
linker flags :
Architecture : x86_64
Host Type : x86_64-unknown-linux-gnu
File inode command : stat -c '%i %n'
File owner command : stat -c '%u:%g'
File mode command : stat -c '%a'
Filesize command : stat -c %s
In-place sed command : sed --follow-symlinks -i
libalpm version : 10.0.2
libalpm version info : 10:2:0
pacman version : 5.0.2
using git version : no
Directory and file information:
root working directory : /
package extension : .pkg.tar.gz
source pkg extension : .src.tar.gz
build script name : PKGBUILD
template directory : /usr/share/makepkg-template
Compilation options:
Use libcurl : no
Use GPGME : no
Use OpenSSL : yes
Run make in doc/ dir : no
Doxygen support : no
debug support : no
extra warning flags : no
use git version : no
michaelpower at local-ic:~/Workspace/pacman-5.0.2$ ./src/pacman/
.deps/ .libs/ pacman po/
michaelpower at local-ic:~/Workspace/pacman-5.0.2$ ./src/pacman/pacman
error: config file /usr/local/etc/pacman.conf could not be read: No such file or directory
---- On Tue, 06 Mar 2018 19:05:50 -0800 Allan McRae <allan at archlinux.org> wrote ----
On 07/03/18 12:49, pacman-dev via pacman-dev wrote:
> Hello Pacman Team,
>
>
>
> I was trying to build Pacman for installation into a custom folder.
>
>
>
> I downloaded the following pacman source code:
>
> https://sources.archlinux.org/other/pacman/pacman-5.0.2.tar.gz
>
>
>
> I then ran the following configure command:
>
> ./configure --prefix=/usr/local/pacman/ --disable-doc --disable-shared
>
>
>
> After this is seems to be using --prefix for make install but not when building. The binaries assume a location of /usr/local. See below for details. How do I build pacman to run from a custom directory?
>
>
Build information:
source code location : .
prefix : /usr/local/pacman
sysconfdir : /usr/local/pacman/etc
conf file : /usr/local/pacman/etc/pacman.conf
localstatedir : /usr/local/pacman/var
database dir : /usr/local/pacman/var/lib/pacman/
cache dir : /usr/local/pacman/var/cache/pacman/pkg/
$ ./src/pacman/pacman
error: config file /usr/local/pacman/etc/pacman.conf could not be read:
No such file or directory
Looks fine to me.
A
More information about the pacman-dev
mailing list