Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]emerge mail-mta/nullmailer-1.11-r1 failed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
huuan
Apprentice
Apprentice


Joined: 19 Feb 2007
Posts: 265
Location: California

PostPosted: Wed Jun 26, 2013 9:12 pm    Post subject: [SOLVED]emerge mail-mta/nullmailer-1.11-r1 failed Reply with quote

installing gentoo using the amd64 handbook ay section 9.b installing vixie-cron 7 package of 9 is
mail-mta/nullmailer-1.11-r1
and it is failing like so:
Code:
/bin/rm -f /var/tmp/portage/mail-mta/nullmailer-1.11-r1/image//var/nullmailer/trigger
mkfifo /var/tmp/portage/mail-mta/nullmailer-1.11-r1/image//var/nullmailer/trigger
chmod 600 /var/tmp/portage/mail-mta/nullmailer-1.11-r1/image//var/nullmailer/trigger
make[2]: Leaving directory `/var/tmp/portage/mail-mta/nullmailer-1.11-r1/work/nullmailer-1.11'
make[1]: Leaving directory `/var/tmp/portage/mail-mta/nullmailer-1.11-r1/work/nullmailer-1.11'
chmod: changing permissions of '/var/tmp/portage/mail-mta/nullmailer-1.11-r1/image//usr/sbin/nullmailer-queue': Permission denied
chmod: changing permissions of '/var/tmp/portage/mail-mta/nullmailer-1.11-r1/image//usr/bin/mailq': Permission denied
 * ERROR: mail-mta/nullmailer-1.11-r1 failed (install phase):
 *   fperms failed
 *
 * If you need support, post the output of `emerge --info '=mail-mta/nullmailer-1.11-r1'`,
 * the complete build log and the output of `emerge -pqv '=mail-mta/nullmailer-1.11-r1'`.
 * The complete build log is located at '/var/log/portage/per_ebuild/mail-mta:nullmailer-1.11-r1:20130626-204511.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/mail-mta/nullmailer-1.11-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/mail-mta/nullmailer-1.11-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/mail-mta/nullmailer-1.11-r1/work/nullmailer-1.11'
 * S: '/var/tmp/portage/mail-mta/nullmailer-1.11-r1/work/nullmailer-1.11'



here's emerge --info '=mail-mta/nullmailer-1.11-r1':
Code:
emerge --info '=mail-mta/nullmailer-1.11-r1'
Portage 2.1.12.2 (hardened/linux/amd64/no-multilib, gcc-4.6.3, glibc-2.15-r3, 3.8.6-hardened x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.8.6-hardened-x86_64-Intel-R-_Pentium-R-_D_CPU_2.80GHz-with-gentoo-2.2
KiB Mem:     6115368 total,   2394924 free
KiB Swap:    6000636 total,   6000636 free
Timestamp of tree: Tue, 25 Jun 2013 20:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.69
sys-devel/automake:       1.10.3, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache collision-protect distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/  http://distfiles.gentoo.org http://www.biblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://mirror.ucsd.edu/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cxx dri gdbm gpm hardened iconv ipv6 justify mmx modules mudflap ncurses nls nptl openmp pam pax_kernel pcre readline session sse sse2 ssl symlink tcpd unicode urandom zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions authn_file authz_host authz_user authz_default auth_basic auth_digest alias charset_lite cache disk_cache mem_cache ext_filter deflat e filter mime_magic expires headers usertrack unique_id info include cgi cgid speling rewrite log_config logio env setenvif mime status asis negotiation dir so" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON



Code:
 emerge -pqv '=mail-mta/nullmailer-1.11-r1'
[ebuild  N    ] mail-mta/nullmailer-1.11-r1  USE="ssl"


Here's the permissions on those files:
Code:
 ls -l /var/tmp/portage/mail-mta/nullmailer-1.11-r1/image//usr/sbin/
total 132
-rwxr-xr-x 1 nullmail nullmail 39168 Jun 26 20:45 nullmailer-queue
-rwxr-xr-x 1 root     root     59294 Jun 26 20:45 nullmailer-send
-rwxr-xr-x 1 root     root     30181 Jun 26 20:45 sendmail

 ls -l /var/tmp/portage/mail-mta/nullmailer-1.11-r1/image//usr/bin/
total 144
-rwxr-xr-x 1 nullmail nullmail 29042 Jun 26 20:45 mailq
-rwxr-xr-x 1 root     root     77758 Jun 26 20:45 nullmailer-inject
-rwxr-xr-x 1 root     root     35526 Jun 26 20:45 nullmailer-smtpd


I note that both are owned by nullmail. As root I can chmod those files. not sure why emerge is having trouble.


Last edited by huuan on Wed Jul 31, 2013 1:20 am; edited 1 time in total
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Wed Jun 26, 2013 9:32 pm    Post subject: Reply with quote

try
Code:
emerge -1 portage && emerge nullmailer

_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
huuan
Apprentice
Apprentice


Joined: 19 Feb 2007
Posts: 265
Location: California

PostPosted: Wed Jun 26, 2013 10:23 pm    Post subject: Reply with quote

eyoung100 wrote:
try
Code:
emerge -1 portage && emerge nullmailer


Thanks. Not sure why you would have me oneshot reinstall portage which had been so recently installed but I tried as you suggested with the same result as before.
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Wed Jun 26, 2013 10:31 pm    Post subject: Reply with quote

because one shotting portage will set the permissions to default. Now try:
Code:
chown -R portage:portage /var/tmp/portage

_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21595

PostPosted: Wed Jun 26, 2013 10:54 pm    Post subject: Reply with quote

eyoung100 wrote:
because one shotting portage will set the permissions to default. Now try:
Code:
chown -R portage:portage /var/tmp/portage
Do you expect this to work or are you just guessing? The OP showed that the ownership is what it should be. The files in question are created as part of the build, so if there were an ownership problem with /var/tmp/portage, the OP never would have gotten to the point of installing the built package.
Back to top
View user's profile Send private message
huuan
Apprentice
Apprentice


Joined: 19 Feb 2007
Posts: 265
Location: California

PostPosted: Wed Jun 26, 2013 10:58 pm    Post subject: Reply with quote

Thanks for the why. I tried that and the result is the same when i emerge nullmailer
Same result for anything I try to emerge now.
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Wed Jun 26, 2013 11:03 pm    Post subject: Reply with quote

Hu wrote:
eyoung100 wrote:
because one shotting portage will set the permissions to default. Now try:
Code:
chown -R portage:portage /var/tmp/portage
Do you expect this to work or are you just guessing? The OP showed that the ownership is what it should be. The files in question are created as part of the build, so if there were an ownership problem with /var/tmp/portage, the OP never would have gotten to the point of installing the built package.


Because the default owner for the portage directory is portage, regardless of the package installed. If I'm mistaken, please correct me.
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21595

PostPosted: Thu Jun 27, 2013 1:04 am    Post subject: Reply with quote

eyoung100 wrote:
Because the default owner for the portage directory is portage, regardless of the package installed. If I'm mistaken, please correct me.
That may be true, but I cannot see how it is relevant here. The OP has not shown us the owner of /var/tmp/portage, but even if the ownership were wrong, it would not break in the way that the OP has shown.
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1248
Location: 42.68n 85.41w

PostPosted: Thu Jun 27, 2013 1:27 am    Post subject: Reply with quote

null mailer, exim, postfix, and sendmail are all sendmail alternatives / clones / duplicates.

if your not getting something else emerged and built because of it, (such as vixie-cron) you can substitute. (ie emerge a real mail server rather than the stripped down "out only" nullmailer)
Back to top
View user's profile Send private message
huuan
Apprentice
Apprentice


Joined: 19 Feb 2007
Posts: 265
Location: California

PostPosted: Thu Jun 27, 2013 4:18 am    Post subject: Reply with quote

thanks 666threesixes666
It is also giving the exact same error (although on different files) when I try to emerge mlocate but meanwhile I have managed to emerge lots of other stuff.
I'll try postfix which is where I was headed anyway. I want an out only mail for this server.
will report back.
Back to top
View user's profile Send private message
huuan
Apprentice
Apprentice


Joined: 19 Feb 2007
Posts: 265
Location: California

PostPosted: Thu Jun 27, 2013 4:31 am    Post subject: Reply with quote

well I guess since
Quote:
null mailer, exim, postfix, and sendmail are all sendmail alternatives / clones / duplicates.
I should not be surprised that postfix fails also.
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1248
Location: 42.68n 85.41w

PostPosted: Thu Jun 27, 2013 4:37 am    Post subject: Reply with quote

fperms has something to do with protage and setting permissions.

my system merges nullmailer, however i am not hardened and i am multi lib. i would ensure coreutils are merged, as they contain chown & chmod. i would try to purge portage, and then emerge-webrsync to pull portage in. (as my system has been built up)

else time is money, exim > postfix > sendmail > ssmtp > nullmailer

im pretty sure gentoo uses ssmtp extensively, id test that alternate first.
Back to top
View user's profile Send private message
huuan
Apprentice
Apprentice


Joined: 19 Feb 2007
Posts: 265
Location: California

PostPosted: Thu Jun 27, 2013 5:06 am    Post subject: Reply with quote

thanks.
Already had cureutls emerged
I'm a bit out of my depth here. what's fperms and how do I purge portage?
edit: thanks 666
emerge -C portage and I found references to fperms elsewhere

OTOH I think this may be it:
https://forums.gentoo.org/viewtopic-p-7302332.html

I don't have sysctl so am trying to figure out how to switch off kernel.grsecurity.chroot_deny_chmod
Back to top
View user's profile Send private message
huuan
Apprentice
Apprentice


Joined: 19 Feb 2007
Posts: 265
Location: California

PostPosted: Thu Jun 27, 2013 6:45 am    Post subject: Reply with quote

I'd say that's the problem but I can't prove it right now since from chroot can't use sysctl
Code:
# sysctl kernel.grsecurity.chroot_deny_chmod=0
sysctl: setting key "kernel.grsecurity.chroot_deny_chmod": Operation not permitted


which is of course because of this:
Code:
# sysctl kernel.grsecurity.chroot_deny_sysctl
kernel.grsecurity.chroot_deny_sysctl = 1


I will boot in to the real system and from there I will likely be able to emerge those packages that need chmod.
Thanks all.
Back to top
View user's profile Send private message
huuan
Apprentice
Apprentice


Joined: 19 Feb 2007
Posts: 265
Location: California

PostPosted: Wed Jul 03, 2013 10:00 pm    Post subject: Reply with quote

booting into complied hardened has so far eluded me for many reasons (GRUB2 install issues, UDEV issues, OPENRC issues...).
I have been able to boot into non-hardened just fine. So for now I still cannot confirm the issue. After later today I need to move on to other things of r a while but I will return to this late July and sort it out then.
Back to top
View user's profile Send private message
huuan
Apprentice
Apprentice


Joined: 19 Feb 2007
Posts: 265
Location: California

PostPosted: Wed Jul 31, 2013 1:20 am    Post subject: Reply with quote

The grub issue was that I needed a bios_grub partition as well as boot. Closing.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum