rmarquis / pacaur

[unmaintained] An AUR helper that minimizes user interaction
https://bbs.archlinux.org/viewtopic.php?pid=1755144#p1755144
ISC License
796 stars 113 forks source link

nginx-devel fails to build #687

Closed darkbasic closed 7 years ago

darkbasic commented 7 years ago

nginx-devel does not build with pacaur, works flawlessly with manual build. Probably the problem is the following modification since last version (which worked flawlessly):

-_cfgdir=/etc/nginx
-_tmpdir=/var/lib/nginx
-_logdir=/var/log/nginx
+ export _cfgdir=/etc/nginx
+ export _tmpdir=/var/lib/nginx
+ export _logdir=/var/log/nginx
Version

pacaur -v

pacaur 4.7.6
Description

Enter description of issue here

Output

pacaur -S nginx-devel

make[1]: Leaving directory '/home/niko/.cache/pacaur/nginx-devel/src/nginx-1.13.0'
sed: can't read /home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel/etc/nginx/nginx.conf: No such file or directory
==> ERROR: A failure occurred in package().
Debug output

bash -x pacaur -S nginx-devel

Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel/usr/lib/perl5/site_perl/auto/nginx/nginx.so
Installing /home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel/usr/lib/perl5/site_perl/nginx.pm
Installing /home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel/usr/share/man/man3/nginx.3pm
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "",
        LC_ALL = (unset),
        LANG = "en"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
make[2]: Leaving directory '/home/niko/.cache/pacaur/nginx-devel/src/nginx-1.13.0/objs/src/http/modules/perl'
test -d '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel' || mkdir -p '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel'
test -d '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel/usr/bin' \
        || mkdir -p '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel/usr/bin'
test ! -f '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel/usr/bin/nginx' \
        || mv '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel/usr/bin/nginx' \
                '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel/usr/bin/nginx.old'
cp objs/nginx '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel/usr/bin/nginx'
test -d '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel/' \
        || mkdir -p '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel/'
cp conf/koi-win '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel/'
cp conf/koi-utf '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel/'
cp conf/win-utf '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel/'
test -f '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel//mime.types' \
        || cp conf/mime.types '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel/'
cp conf/mime.types '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel//mime.types.default'
test -f '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel//fastcgi_params' \
        || cp conf/fastcgi_params '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel/'
cp conf/fastcgi_params \
        '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel//fastcgi_params.default'
test -f '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel//fastcgi.conf' \
        || cp conf/fastcgi.conf '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel/'
cp conf/fastcgi.conf '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel//fastcgi.conf.default'
test -f '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel//uwsgi_params' \
        || cp conf/uwsgi_params '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel/'
cp conf/uwsgi_params \
        '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel//uwsgi_params.default'
test -f '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel//scgi_params' \
        || cp conf/scgi_params '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel/'
cp conf/scgi_params \
        '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel//scgi_params.default'
test -f '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel/nginx.conf' \
        || cp conf/nginx.conf '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel/nginx.conf'
cp conf/nginx.conf '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel//nginx.conf.default'
test -d '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel/run' \
        || mkdir -p '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel/run'
test -d '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel/' \
        || mkdir -p '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel/'
test -d '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel/html' \
        || cp -R html '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel'
test -d '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel/' \
        || mkdir -p '/home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel/'
make[1]: Leaving directory '/home/niko/.cache/pacaur/nginx-devel/src/nginx-1.13.0'
sed: can't read /home/niko/.cache/pacaur/nginx-devel/pkg/nginx-devel/etc/nginx/nginx.conf: No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...
+ (( 2 > 0 ))
+ errmakepkg+=(${pkgsdeps[$i]})
+ continue
+ [[ ! -n true ]]
+ rm /run/user/1000/pacaur.build.lck
+ [[ -e /run/user/1000/pacaur.sudov.lck ]]
+ rm /run/user/1000/pacaur.sudov.lck
+ orphanpkgs=($($pacmanbin -Qdtq))
++ pacman -Qdtq
+ neworphanpkgs=($(grep -xvf <(printf '%s\n' "${oldorphanpkgs[@]}") <(printf '%s\n' "${orphanpkgs[@]}")))
++ grep -xvf /dev/fd/63 /dev/fd/62
+++ printf '%s\n' avogadro boost bzr clang cython depot-tools-git docbook-sgml docbook-utils doxygen eigen2 elfutils enca extra-cmake-modules ffmpeg2.8 ftjam gnome-common gnome-python go gperf iasl kdewebkit lib32-jansson lib32-json-c lib32-libopenssl-1.0-compat lib32-lm_sensors lib32-openssl-1.0 libindi libiscsi libkcddb4 libkcompactdisc4 makedepend msgpack-c nasm opendht-git psol python-sphinx python2-crypto python2-html5lib python2-poppler-qt4 python2-pypdf2 python2-virtualenv qscintilla-qt4 quazip scons vala xhtml-docs xmlto xorg-util-macros zip
+++ printf '%s\n' avogadro boost bzr clang cython depot-tools-git docbook-sgml docbook-utils doxygen eigen2 elfutils enca extra-cmake-modules ffmpeg2.8 ftjam gnome-common gnome-python go gperf iasl kdewebkit lib32-jansson lib32-json-c lib32-libopenssl-1.0-compat lib32-lm_sensors lib32-openssl-1.0 libindi libiscsi libkcddb4 libkcompactdisc4 makedepend msgpack-c nasm opendht-git psol python-sphinx python2-crypto python2-html5lib python2-poppler-qt4 python2-pypdf2 python2-virtualenv qscintilla-qt4 quazip scons vala xhtml-docs xmlto xorg-util-macros zip
+ optionalpkgs=($($pacmanbin -Qdttq))
++ pacman -Qdttq
+ optionalpkgs=($(grep -xvf <(printf '%s\n' "${orphanpkgs[@]}") <(printf '%s\n' "${optionalpkgs[@]}")))
++ grep -xvf /dev/fd/63 /dev/fd/62
+++ printf '%s\n' avogadro boost bzr clang cython depot-tools-git docbook-sgml docbook-utils doxygen eigen2 elfutils enca extra-cmake-modules ffmpeg2.8 ftjam gnome-common gnome-python go gperf iasl kdewebkit lib32-jansson lib32-json-c lib32-libopenssl-1.0-compat lib32-lm_sensors lib32-openssl-1.0 libindi libiscsi libkcddb4 libkcompactdisc4 makedepend msgpack-c nasm opendht-git psol python-sphinx python2-crypto python2-html5lib python2-poppler-qt4 python2-pypdf2 python2-virtualenv qscintilla-qt4 quazip scons vala xhtml-docs xmlto xorg-util-macros zip
+++ printf '%s\n' avogadro bash-completion boost bzr clang cython depot-tools-git docbook-sgml docbook-utils doxygen eigen2 elfutils enca extra-cmake-modules ffmpeg2.8 ftjam gnome-common gnome-python go gperf iasl jdk7-openjdk kdewebkit kirigami lib32-jansson lib32-json-c lib32-libopenssl-1.0-compat lib32-lm_sensors lib32-openssl-1.0 libindi libiscsi libkcddb4 libkcompactdisc4 libusb-compat makedepend msgpack-c nasm opencolorio opendht-git perl-sgmls phonon-qt4-gstreamer phonon-qt5-gstreamer psol python-sphinx python2-crypto python2-html5lib python2-nose python2-poppler-qt4 python2-pypdf2 python2-virtualenv qscintilla-qt4 qt5-translations quazip scons subversion suitesparse vala vulkan-intel xhtml-docs xmlto xorg-util-macros zip
+ newoptionalpkgs=($(grep -xvf <(printf '%s\n' "${oldoptionalpkgs[@]}") <(printf '%s\n' "${optionalpkgs[@]}")))
++ grep -xvf /dev/fd/63 /dev/fd/62
+++ printf '%s\n' bash-completion jdk7-openjdk kirigami libusb-compat opencolorio perl-sgmls phonon-qt4-gstreamer phonon-qt5-gstreamer python2-nose qt5-translations subversion suitesparse vulkan-intel
+++ printf '%s\n' bash-completion jdk7-openjdk kirigami libusb-compat opencolorio perl-sgmls phonon-qt4-gstreamer phonon-qt5-gstreamer python2-nose qt5-translations subversion suitesparse vulkan-intel
+ [[ -n nginx-devel ]]
+ for i in "${errmakepkg[@]}"
+ Note f 'failed to build nginx-devel package(s)'
+ case "$1" in
+ echo -e ':: failed to build nginx-devel package(s)'
:: failed to build nginx-devel package(s)
+ exit 1
rmarquis commented 7 years ago

Does the build succeed when using makepkg -o && makepkg -es ? @darkbasic ^

darkbasic commented 7 years ago

No it doesn't build with makepkg -o && makepkg -es, but it builds flawlessly with a simple makepkg -s.

rmarquis commented 7 years ago

There it is. As I suspected, prepare() is used incorrectly and variables aren't exported for the second part of the build. See this forum post for more in-depth explanation.

Please ask the maintainer to fix his PKGBUILD.