Bug 1384065

Summary: amanda-3.3.9-3.fc26 FTBFS: File is not found: .../usr/sbin/activate-devpay
Product: [Fedora] Fedora Reporter: Jitka Plesnikova <jplesnik>
Component: amandaAssignee: Josef Ridky <jridky>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: fedora, jridky, j, phracek, ppisar, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://apps.fedoraproject.org/koschei/package/amanda
Whiteboard:
Fixed In Version: amanda-3.4-1.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-20 08:43:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
fix of wrong config file none

Description Jitka Plesnikova 2016-10-12 12:58:59 UTC
Description of problem:
Package amanda fails to build from source in Fedora Rawhide.

It failed with following error:
error: File not found: /builddir/build/BUILDROOT/amanda-3.3.9-3.fc26.x86_64/usr/sbin/activate-devpay
RPM build errors:
    File not found: /builddir/build/BUILDROOT/amanda-3.3.9-3.fc26.x86_64/usr/sbin/activate-devpay
Child return code was: 1

activate-devpay is not compiled.

Dependency changes between last successful build and failing build
 	openssl-devel 	1:1.0.2j-1.fc26 	> 	1:1.1.0b-1.fc26
	openssl-libs 	1:1.0.2j-1.fc26 	> 	1:1.1.0b-1.fc26
	compat-openssl10 		> 	1:1.0.2j-2.fc26
	perl-parent 	1:0.234-365.fc25 	> 	1:0.236-1.fc26
	filesystem 	3.2-37.fc24 	> 	3.2-38.fc26
	kernel-headers 	4.9.0-0.rc0.git4.1.... 	> 	4.9.0-0.rc0.git5.2....
	xkeyboard-config 	2.18-1.fc25 	> 	2.19-1.fc26
	perl-HTTP-Tiny 	0.068-1.fc26 	> 	0.070-1.fc26

Additional info:
This package is tracked by Koschei. See:
http://apps.fedoraproject.org/koschei/package/amanda

Comment 1 Petr Pisar 2016-10-13 09:51:19 UTC
The activate-devpay program is built by device-src/Makefile.am:

if WANT_S3_DEVICE
sbin_PROGRAMS += activate-devpay
activate_devpay_LDADD = \
    ../gnulib/libgnu.la
activate_devpay_SOURCES = activate-devpay.c
endif

WANT_S3_DEVICE is a configure variable set in config/amanda/s3-device.m4 script.

You should explicitly enable (or disable) this feature by adding --enable-s3-device option to configure in order to guarantee reproducible build.

Without it the autodetection disables it because the `test x"$HAVE_CURL" = x"yes" -a x"$HAVE_HMAC" = x"yes"' condition is not met.

Comment 2 Josef Ridky 2016-10-13 09:56:40 UTC
Thanks a lot.

Comment 3 Josef Ridky 2016-10-13 11:44:55 UTC
Created attachment 1210039 [details]
fix of wrong config file

Comment 4 Josef Ridky 2016-10-13 11:48:36 UTC
What do you think about patch from comment #3? With this patch I has been able to build this package in rawhide.

Comment 5 Petr Pisar 2016-10-13 13:32:28 UTC
While it works for you, this will not be acceptable for upstream. The right place for fixing are the autotools macros to detect HMAC availability correctly with old and new OpenSSL.

Comment 6 Josef Ridky 2016-10-20 08:43:04 UTC
This issue has been resolved in rawhide.

Related Koji build: http://koji.fedoraproject.org/koji/taskinfo?taskID=16133497