Bug#809112: condor: FTBFS when built with dpkg-buildpackage -A (No such file or directory)

2016-07-13 Thread Santiago Vila
Greetings.

I have the ok from the Release Managers to consider this issue as RC
for stretch. I'm going to wait at least one week before raising
this to "serious".

There is a patch available for this bug. If you need someone to make
an upload, please ask for a sponsor in debian-mentors.

Thanks.



Bug#809112: condor: FTBFS when built with dpkg-buildpackage -A (No such file or directory)

2016-04-17 Thread Santiago Vila
tags 809112 + patch
thanks

>debian/rules override_dh_install
> make[1]: Entering directory '/<>'
> dh_install
> # fix permissions
> chmod -x debian/htcondor/etc/default/condor
> chmod: cannot access 'debian/htcondor/etc/default/condor': No such file or 
> directory
> debian/rules:105: recipe for target 'override_dh_install' failed

This happens because we are creating arch-independent packages only,
so debian/htcondor/[...] does not exist, because htcondor is
arch-dependent.

The trivial fix is to override dh_install only for arch-dependent packages.
While we are at it, the chmod commands fit better in override_dh_fixperms-arch.

Patch attached.

Thanks.--- a/debian/rules
+++ b/debian/rules
@@ -101,11 +101,15 @@ override_dh_auto_install:
chrpath -c -k ./debian/tmp/usr/lib/condor/libexec/* || true
 
 
-override_dh_install:
-   dh_install
+override_dh_fixperms-arch:
+   dh_fixperms
# fix permissions
chmod -x debian/htcondor/etc/default/condor
chmod -x debian/htcondor/usr/lib/condor/libexec/interactive.sub
+
+
+override_dh_install-arch:
+   dh_install
# remove RPATH from public lib
chrpath -d debian/libclassad*/usr/lib/libclassad.so.*.*
# remove duplicate that is also installed as a config file


Bug#809112: condor: FTBFS when built with dpkg-buildpackage -A (No such file or directory)

2015-12-27 Thread Santiago Vila
Package: src:condor
Version: 8.4.2~dfsg.1-1
User: sanv...@debian.org
Usertags: binary-indep
Severity: important

Dear maintainer:

I tried to build this package with "dpkg-buildpackage -A"
(i.e. only architecture-independent packages), and it failed:


[...]
 debian/rules build-indep
dh build-indep --with autotools_dev --with python2
   dh_testdir -i
   dh_autotools-dev_updateconfig -i
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/<>'
dh_auto_configure -- \
-DCONDOR_PACKAGE_BUILD:BOOL=ON \
-DPROPER:BOOL=ON \
-DCLIPPED:BOOL=ON \
-DUW_BUILD:BOOL=OFF \
-D_DEBUG:BOOL=TRUE \

[... snipped ...]

./debian/tmp/usr/lib/condor/libexec/accountant_log_fixer: 
RUNPATH=/usr/lib:/usr/lib/condor
./debian/tmp/usr/lib/condor/libexec/condor_chirp: 
RUNPATH=/usr/lib:/usr/lib/condor
./debian/tmp/usr/lib/condor/libexec/condor_dagman_metrics_reporter: 
RUNPATH=/usr/lib:/usr/lib/condor
./debian/tmp/usr/lib/condor/libexec/condor_defrag: 
RUNPATH=/usr/lib:/usr/lib/condor
./debian/tmp/usr/lib/condor/libexec/condor_gangliad: 
RUNPATH=/usr/lib:/usr/lib/condor
./debian/tmp/usr/lib/condor/libexec/condor_glexec_job_wrapper: 
RUNPATH=/usr/lib:/usr/lib/condor
./debian/tmp/usr/lib/condor/libexec/condor_glexec_wrapper: 
RUNPATH=/usr/lib:/usr/lib/condor
./debian/tmp/usr/lib/condor/libexec/condor_gpu_discovery: 
RUNPATH=/usr/lib:/usr/lib/condor
./debian/tmp/usr/lib/condor/libexec/condor_history_helper: 
RUNPATH=/usr/lib:/usr/lib/condor
./debian/tmp/usr/lib/condor/libexec/condor_job_router: 
RUNPATH=/usr/lib:/usr/lib/condor
./debian/tmp/usr/lib/condor/libexec/condor_kflops: RPATH converted to RUNPATH
./debian/tmp/usr/lib/condor/libexec/condor_kflops: 
RUNPATH=/usr/lib:/usr/lib/condor
./debian/tmp/usr/lib/condor/libexec/condor_mips: RPATH converted to RUNPATH
./debian/tmp/usr/lib/condor/libexec/condor_mips: 
RUNPATH=/usr/lib:/usr/lib/condor
./debian/tmp/usr/lib/condor/libexec/condor_pid_ns_init: 
RUNPATH=/usr/lib:/usr/lib/condor
./debian/tmp/usr/lib/condor/libexec/condor_power_state: 
RUNPATH=/usr/lib:/usr/lib/condor
./debian/tmp/usr/lib/condor/libexec/condor_rooster: 
RUNPATH=/usr/lib:/usr/lib/condor
./debian/tmp/usr/lib/condor/libexec/condor_shared_port: 
RUNPATH=/usr/lib:/usr/lib/condor
./debian/tmp/usr/lib/condor/libexec/condor_sinful: 
RUNPATH=/usr/lib:/usr/lib/condor
./debian/tmp/usr/lib/condor/libexec/condor_testingd: 
RUNPATH=/usr/lib:/usr/lib/condor
./debian/tmp/usr/lib/condor/libexec/condor_transferer: 
RUNPATH=/usr/lib:/usr/lib/condor
./debian/tmp/usr/lib/condor/libexec/condor_urlfetch: 
RUNPATH=/usr/lib:/usr/lib/condor
./debian/tmp/usr/lib/condor/libexec/curl_plugin: 
RUNPATH=/usr/lib:/usr/lib/condor
./debian/tmp/usr/lib/condor/libexec/data_plugin: RPATH converted to RUNPATH
./debian/tmp/usr/lib/condor/libexec/data_plugin: 
RUNPATH=/usr/lib:/usr/lib/condor
./debian/tmp/usr/lib/condor/libexec/panda-plugin.so: RPATH converted to RUNPATH
./debian/tmp/usr/lib/condor/libexec/panda-plugin.so: 
RUNPATH=/usr/lib:/usr/lib/condor
./debian/tmp/usr/lib/condor/libexec/pandad: RUNPATH=/usr/lib:/usr/lib/condor
make[1]: Leaving directory '/<>'
   debian/rules override_dh_install
make[1]: Entering directory '/<>'
dh_install
# fix permissions
chmod -x debian/htcondor/etc/default/condor
chmod: cannot access 'debian/htcondor/etc/default/condor': No such file or 
directory
debian/rules:105: recipe for target 'override_dh_install' failed
make[1]: *** [override_dh_install] Error 1
make[1]: Leaving directory '/<>'
debian/rules:15: recipe for target 'binary-indep' failed
make: *** [binary-indep] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary-indep gave error exit 
status 2


Sorry not to have a fix, as I am reporting many bugs similar to
this one. The common hints are:

* If the only architecture-independent packages are dummy transitional
ones and they were released with jessie, the easy fix is to drop them
now.

* When using "dh", it is allowed to use (independently)
optional targets override_dh_foo-arch and override_dh_foo-indep
(for several values of "foo").


Once that both "dpkg-buildpackage -A" and "dpkg-buildpackage -B" work
properly, the package would be suitable to be uploaded in source-only
form if you wish.

Thanks.