pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[Linux] Just-in-time su/sudo quits too early before entering password



Hi all,

fresh bootstrap of pkgsrc current on Centos 7. Bootstrap went ok.

Trying to build lynx.

cd into lynx directory && bmake install (as standard user):

--start------------------------------
=> Bootstrap dependency digest>=20010302: NOT found
=> Verifying reinstall for ../../pkgtools/digest
===> Skipping vulnerability checks.
===> Installing for digest-20160304
=> Generating pre-install file lists
/bin/sh ./mkinstalldirs
/home/oc/pkgsrc/pkgtools/digest/work/.destdir/usr/pkg/bin
/bin/install -c -s -o oc -g oc -m 755 digest
/home/oc/pkgsrc/pkgtools/digest/work/.destdir/usr/pkg/bin/digest
/bin/sh ./mkinstalldirs
/home/oc/pkgsrc/pkgtools/digest/work/.destdir/usr/pkg/man/man1
/bin/install -c -o oc -g oc -m 644 digest.1
/home/oc/pkgsrc/pkgtools/digest/work/.destdir/usr/pkg/man/man1/digest.1
=> Automatic manual page handling
=> Generating post-install file lists
=> Checking file-check results for digest-20160304
=> Creating binary package
/home/oc/pkgsrc/pkgtools/digest/work/.packages/digest-20160304.tgz
===> Building binary package for digest-20160304
=> Creating binary package /home/oc/pkgsrc/packages/All/digest-20160304.tgz
=> Becoming ``root'' to make su-real-package-install (/usr/bin/su)
*** Error code 1

Stop.
bmake[2]: stopped in /home/oc/pkgsrc/pkgtools/digest
*** Error code 1

Stop.
bmake[1]: stopped in /home/oc/pkgsrc/pkgtools/digest
*** Error code 1

Stop.
bmake: stopped in /home/oc/pkgsrc/www/lynx
-------end-------------------------------------------------


It won't let me enter my password and it aborts after a couple of seconds.

Then I modified mk.conf like this:

--start------------------------------
# Example /usr/pkg/etc/mk.conf file produced by bootstrap-pkgsrc
# Thu 30 Nov 18:11:10 GMT 2017

.ifdef BSD_PKG_MK    # begin pkgsrc settings

ABI=            64

PKG_DBDIR=        /usr/pkg/pkgdb
LOCALBASE=        /usr/pkg
VARBASE=        /var
PKG_TOOLS_BIN=        /usr/pkg/sbin
PKGINFODIR=        info
PKGMANDIR=        man

#Added by Ottavio
#Added by Ottavio

.if exists.(${LOCALBASE}/bin/sudo)
SU_CMD=        ${LOCALBASE}/bin/sudo /bin/sh -c
.endif

.endif            # end pkgsrc settings
---------------end-------------------------------

Same thing!

Using su or sudo outside pkgsrc works fine.

Any ideas?

-- 
73 de ottavio M6OTV


Home | Main Index | Thread Index | Old Index