Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 619520 - mail-mta/nullmailer-2.0-r1 stable request
Summary: mail-mta/nullmailer-2.0-r1 stable request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Stabilization (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords: STABLEREQ
Depends on:
Blocks:
 
Reported: 2017-05-24 08:38 UTC by Pacho Ramos
Modified: 2017-06-21 12:00 UTC (History)
2 users (show)

See Also:
Package list:
mail-mta/nullmailer-2.0-r1
Runtime testing required: ---
stable-bot: sanity-check+


Attachments
patch to replace ipv4 addresses with corresponding names. (nullmailer-2.0-tests-protocols.patch,700 bytes, patch)
2017-05-26 09:25 UTC, Michael Weber (RETIRED)
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2017-05-24 08:38:04 UTC
This would also help to have a version in stable with fixed dependency on gnutls:0= (with the subslot dep)

Thanks
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2017-05-25 04:55:01 UTC
Arches, please stabilize.
Comment 2 Agostino Sarubbo gentoo-dev 2017-05-25 10:45:03 UTC
amd64 stable
Comment 3 Michael Weber (RETIRED) gentoo-dev 2017-05-25 23:52:35 UTC
test depends on svc from sys-process/daemontools

Running test /var/tmp/portage/mail-mta/nullmailer-2.0-r1/work/nullmailer-2.0/test/tests/send...
Testing sending with a succeeding protocol
/var/tmp/portage/mail-mta/nullmailer-2.0-r1/work/nullmailer-2.0/test/tests/send: line 36: svc: command not found
******************************Failed!******************************
Comment 4 Michael Weber (RETIRED) gentoo-dev 2017-05-26 06:43:23 UTC
And there's an sandbox problem, imho during starting the test server

Running test /var/tmp/portage/mail-mta/nullmailer-2.0-r1/work/nullmailer-2.0/test/tests/protocols...
Testing protocol success with smtp (command-line)
******************************Failed!******************************
15 tests run, 1 failed
make[1]: *** [Makefile:617: check] Error 1
make[1]: Leaving directory '/var/tmp/portage/mail-mta/nullmailer-2.0-r1/work/nullmailer-2.0/test'
make: *** [Makefile:365: check-recursive] Error 1
 * ERROR: mail-mta/nullmailer-2.0-r1::gentoo failed (test phase):
 *   Make check failed. See above for details.
 *
 * Call stack:
 *            ebuild.sh, line  115:  Called src_test
 *          environment, line 3488:  Called default
 *   phase-functions.sh, line  807:  Called default_src_test
 *   phase-functions.sh, line  836:  Called __eapi0_src_test
 *     phase-helpers.sh, line  763:  Called die
 * The specific snippet of code:
 *              $emake_cmd ${internal_opts} check || \
 *                      die "Make check failed. See above for details."
 *
 * If you need support, post the output of `emerge --info '=mail-mta/nullmailer-2.0-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=mail-mta/nullmailer-2.0-r1::gentoo'`.
 * The complete build log is located at '/var/log/portage/build/mail-mta/nullmailer-2.0-r1:20170526-002825.log.gz'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/mail-mta/nullmailer-2.0-r1/temp/build.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage/mail-mta/nullmailer-2.0-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/mail-mta/nullmailer-2.0-r1/work/nullmailer-2.0'
 * S: '/var/tmp/portage/mail-mta/nullmailer-2.0-r1/work/nullmailer-2.0'
 * /var/tmp/portage/sys-apps/sandbox-2.10-r3/work/sandbox-2.10/libsandbox/libsandbox.c:check_syscall():989: failure (No such file or directory):
 * ISE:
        abs_path: (null)
        res_path: (null)
Comment 5 Michael Weber (RETIRED) gentoo-dev 2017-05-26 08:01:42 UTC
test/tests/protocols calls start() from test/functions which needs 
supervise from sys-process/daemontools.

It also calls tcpserver in ipv6 mode from >=sys-apps/ucspi-tcp-0.88-r18[ipv6].
Comment 6 Michael Weber (RETIRED) gentoo-dev 2017-05-26 09:25:51 UTC
Created attachment 474356 [details, diff]
patch to replace ipv4 addresses with corresponding names.

next failure is 

Testing protocol failure with smtp (bad source addr 1)
Result was 5, should be 10.
******************************Failed!******************************

According to lib/errcodes.h it might be 

#define ERR_GHBN_TEMP 5         // gethostbyname failed with TRY_AGAIN           
#define ERR_CONN_FAILED 10      // connect failed                              

further investigation 

# cd /var/tmp/portage/mail-mta/nullmailer-2.0-r1/work/nullmailer-2.0/test
# socat tcp6-listen:12345 - &
# (echo host=::1 ; echo port=12345 ; echo source=127.0.0.1) | strace ../protocols/smtp
...
read(0, "host=::1\nport=12345\nsource=127.0"..., 4096) = 37
read(0, "", 4096)                       = 0
write(1, "Connect failed\n", 15Connect failed
)        = 15
write(2, "smtp: Failed: Connect failed\n", 29smtp: Failed: Connect failed
) = 29
exit_group(5)                           = ?

shows, that ../protocols/smtp doesn't understand plain ipv6 addresses.
It tries to do some network activity if you provide an ipv6 only dns record, like hathor.fs.lmu.de. Nor does it understand ipv4 addresses.

I've created two records localhost{4,6}.xmw.de (which can stay there) to make this patch work.

Improvements welcome -- maybe you have more insight in the usage of getaddr
in line 94 and following of lib/tcpconnect.cc.

Michael

p.s. imho, ". functions" in test/tests/protocols should be ". ./functions"

11350 read(255, ". functions\nexport HELOHOST=f.q."..., 2074) = 2074             
11350 stat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0                 
11350 stat64("/root/bin/functions", 0xbf968160) = -1 ENOENT (No such file or directory)
11350 stat64("/sbin/functions", 0xbf968160) = -1 ENOENT (No such file or directory)
11350 stat64("/bin/functions", 0xbf968160) = -1 ENOENT (No such file or directory)
11350 stat64("/usr/sbin/functions", 0xbf968160) = -1 ENOENT (No such file or directory)
11350 stat64("/usr/bin/functions", 0xbf968160) = -1 ENOENT (No such file or directory)
11350 stat64("/usr/local/sbin/functions", 0xbf968160) = -1 ENOENT (No such file or directory)
11350 stat64("/usr/local/bin/functions", 0xbf968160) = -1 ENOENT (No such file or directory)
11350 stat64("/opt/bin/functions", 0xbf968160) = -1 ENOENT (No such file or directory)
11350 stat64("/usr/games/bin/functions", 0xbf968160) = -1 ENOENT (No such file or directory)
11350 open("functions", O_RDONLY|O_LARGEFILE) = 3                                
11350 fstat64(3, {st_mode=S_IFREG|0644, st_size=273
Comment 7 Agostino Sarubbo gentoo-dev 2017-05-26 14:07:03 UTC
x86 stable
Comment 8 Agostino Sarubbo gentoo-dev 2017-06-21 12:00:15 UTC
ppc stable. Closing.