tspc_2.1.1-4(mips/unstable): FTBFS with -rsudo

Bug #15441 reported by Debian Bug Importer
4
Affects Status Importance Assigned to Milestone
tspc (Debian)
Fix Released
Unknown
tspc (Ubuntu)
Fix Released
High
LaMont Jones

Bug Description

Automatically imported from Debian bug report #304431 http://bugs.debian.org/304431

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #304431 http://bugs.debian.org/304431

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Tue, 12 Apr 2005 20:04:25 -0700
From: Ryan Murray <email address hidden>
To: <email address hidden>
Subject: tspc_2.1.1-4(mips/unstable): FTBFS with -rsudo

Package: tspc
Version: 2.1.1-4
Severity: serious

There was an error while trying to autobuild your package:

> Automatic build of tspc_2.1.1-4 on resume.rfc822.org by sbuild/mips 1.170.5
> Build started at 20050312-0402

[...]

> ** Using build dependencies supplied by package:
> Build-Depends: cdbs, debhelper (>= 4.1.68), quilt

[...]

> gcc -g -Wall -O2 -I../../include -I../../platform/linux -c xml_tun.c -o ../../objs/xml_tun.o -Dlinux
> make[2]: Leaving directory `/build/buildd/tspc-2.1.1/src/xml'
> make[2]: Entering directory `/build/buildd/tspc-2.1.1/platform/linux'
> gcc -g -Wall -O2 -I../../include -I../../platform/linux -c tsp_local.c -o ../../objs/tsp_local.o -Dlinux
> tsp_local.c: In function `tspStartLocal':
> tsp_local.c:144: warning: `tunfd' might be used uninitialized in this function
> gcc -g -Wall -O2 -I../../include -I../../platform/linux -c tsp_tun.c -o ../../objs/tsp_tun.o -Dlinux
> gcc -g -Wall -O2 -o ../../bin/tspc ../../objs/*.o
> /usr/bin/ld: cannot open output file ../../bin/tspc: Permission denied
> collect2: ld returned 1 exit status
> make[2]: *** [../../bin/tspc] Error 1
> make[2]: Leaving directory `/build/buildd/tspc-2.1.1/platform/linux'
> make[1]: *** [all] Error 1
> make[1]: Leaving directory `/build/buildd/tspc-2.1.1'
> make: *** [debian/stamp-makefile-build] Error 2

This package fails to build from source on any architecture with the
following command as a regular user with sudo permissions:

dpkg-buildpackage -uc -us -B -rsudo

This is caused by creating files or directories in the clean target of
debian/rules, which runs as root, and then attempting to do things to
those files in the build target, which runs as the regular user. To
fix, don't create files or directories in the clean target of debian/rules.

In this case, you're creating the bin directory in the clean target.

Revision history for this message
In , Lars Wirzenius (liw-iki) wrote :

> In this case, you're creating the bin directory in the clean target.

debian/rules contains this:

clean::
        rm -rf bin/*
        debconf-updatepo

By remove the "/*" from the rm command line, the build works (on i386,
didn't try under mips; I did verify that the build problem was
reproducible on i386 first, though).

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Wed, 13 Apr 2005 15:14:17 +0300
From: Lars Wirzenius <email address hidden>
To: <email address hidden>
Subject: Re: tspc_2.1.1-4(mips/unstable): FTBFS with -rsudo

> In this case, you're creating the bin directory in the clean target.

debian/rules contains this:

clean::
        rm -rf bin/*
        debconf-updatepo

By remove the "/*" from the rm command line, the build works (on i386,
didn't try under mips; I did verify that the build problem was
reproducible on i386 first, though).

Revision history for this message
In , Lars Wirzenius (liw-iki) wrote :

> By remove the "/*" from the rm command line, the build works (on i386,
> didn't try under mips; I did verify that the build problem was
> reproducible on i386 first, though).

Since there has not been any reaction to this bug from the maintainer in
the past week I'll do a non-maintainer upload.

Revision history for this message
In , Lars Wirzenius (liw-iki) wrote : Fixed in NMU of tspc 2.1.1-4.1

tag 304431 + fixed

quit

This message was generated automatically in response to a
non-maintainer upload. The .changes file follows.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Tue, 19 Apr 2005 13:28:00 +0300
Source: tspc
Binary: freenet6 tspc
Architecture: source i386 all
Version: 2.1.1-4.1
Distribution: unstable
Urgency: high
Maintainer: Martin Waitz <email address hidden>
Changed-By: Lars Wirzenius <email address hidden>
Description:
 freenet6 - IPv6 tunnel to freenet6 (transitional package)
 tspc - Client to configure an IPv6 tunnel to freenet6
Closes: 304431
Changes:
 tspc (2.1.1-4.1) unstable; urgency=high
 .
   * Non-maintainer upload.
   * Fix build with sudo. Closes: #304431.
   * Urgency is high because this upload fixes a release critical bug.
Files:
 4d73fc0bded1e418b11f47eb0fe0b086 578 net optional tspc_2.1.1-4.1.dsc
 1e8645a158f572ee955b39ba61cb0c94 10936 net optional tspc_2.1.1-4.1.diff.gz
 cbad42e4f8c29042d5dfdc571dc38bc6 5114 net optional freenet6_2.1.1-4.1_all.deb
 7745a7819267086974f3963d80f19c75 42148 net optional tspc_2.1.1-4.1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCZOPABrcmpeBELXQRAouRAKC3ldQhwQTPUZM/icZlngG5HnBW2wCg1oEz
QERjXlJHzd3hj0Q8jTnjZt8=
=Hz18
-----END PGP SIGNATURE-----

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Tue, 19 Apr 2005 13:22:58 +0300
From: Lars Wirzenius <email address hidden>
To: <email address hidden>
Subject: Re: tspc_2.1.1-4(mips/unstable): FTBFS with -rsudo

> By remove the "/*" from the rm command line, the build works (on i386,
> didn't try under mips; I did verify that the build problem was
> reproducible on i386 first, though).

Since there has not been any reaction to this bug from the maintainer in
the past week I'll do a non-maintainer upload.

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Tue, 19 Apr 2005 07:17:31 -0400
From: Lars Wirzenius <email address hidden>
To: <email address hidden>
Cc: Lars Wirzenius <email address hidden>, Martin Waitz <email address hidden>
Subject: Fixed in NMU of tspc 2.1.1-4.1

tag 304431 + fixed

quit

This message was generated automatically in response to a
non-maintainer upload. The .changes file follows.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Tue, 19 Apr 2005 13:28:00 +0300
Source: tspc
Binary: freenet6 tspc
Architecture: source i386 all
Version: 2.1.1-4.1
Distribution: unstable
Urgency: high
Maintainer: Martin Waitz <email address hidden>
Changed-By: Lars Wirzenius <email address hidden>
Description:
 freenet6 - IPv6 tunnel to freenet6 (transitional package)
 tspc - Client to configure an IPv6 tunnel to freenet6
Closes: 304431
Changes:
 tspc (2.1.1-4.1) unstable; urgency=high
 .
   * Non-maintainer upload.
   * Fix build with sudo. Closes: #304431.
   * Urgency is high because this upload fixes a release critical bug.
Files:
 4d73fc0bded1e418b11f47eb0fe0b086 578 net optional tspc_2.1.1-4.1.dsc
 1e8645a158f572ee955b39ba61cb0c94 10936 net optional tspc_2.1.1-4.1.diff.gz
 cbad42e4f8c29042d5dfdc571dc38bc6 5114 net optional freenet6_2.1.1-4.1_all.deb
 7745a7819267086974f3963d80f19c75 42148 net optional tspc_2.1.1-4.1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCZOPABrcmpeBELXQRAouRAKC3ldQhwQTPUZM/icZlngG5HnBW2wCg1oEz
QERjXlJHzd3hj0Q8jTnjZt8=
=Hz18
-----END PGP SIGNATURE-----

Revision history for this message
Tollef Fog Heen (tfheen) wrote :

Charles Majola synced this with Debian and the bugfix there, so closing this bug.

Revision history for this message
In , Anand Kumria (wildfire) wrote : Bug#304431: fixed in tspc 2.1.1-5

Source: tspc
Source-Version: 2.1.1-5

We believe that the bug you reported is fixed in the latest version of
tspc, which is due to be installed in the Debian FTP archive:

tspc_2.1.1-5.diff.gz
  to pool/main/t/tspc/tspc_2.1.1-5.diff.gz
tspc_2.1.1-5.dsc
  to pool/main/t/tspc/tspc_2.1.1-5.dsc
tspc_2.1.1-5_i386.deb
  to pool/main/t/tspc/tspc_2.1.1-5_i386.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Anand Kumria <email address hidden> (supplier of updated tspc package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat, 29 Oct 2005 15:05:16 +1000
Source: tspc
Binary: tspc
Architecture: source i386
Version: 2.1.1-5
Distribution: unstable
Urgency: low
Maintainer: Anand Kumria <email address hidden>
Changed-By: Anand Kumria <email address hidden>
Description:
 tspc - Client to configure an IPv6 tunnel to Hexago's migration broker
Closes: 304431 308750 331598 332124 332333 335095
Changes:
 tspc (2.1.1-5) unstable; urgency=low
 .
   * New maintainer (Closes: #335095)
   * Cleanup debconf dependancies (Closes: #332124)
   * Fixup source file location in copyright
   * Remove freenet6 transition package, thus removing the use of debconf
     and the need for translation -- thanks though to all the translators
     (Closes: #331598, #332333, #308750)
   * Ackownledge NMU (Closes: #304431)
   * Apply patches so that unpacked Debian source is sane rather than doing
     so at build time
Files:
 14da519290e076ad2514ef78770be83a 680 net optional tspc_2.1.1-5.dsc
 4e29eb02fb1890eaf1dedc02de7c0c82 10307 net optional tspc_2.1.1-5.diff.gz
 904fa0a68d68799ef409aeabf910ac7e 81778 net optional tspc_2.1.1-5_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iQCVAwUBQ2MDs2RmcAD8BdppAQIBgAP9GE9BXXuH0CExnl8pMQurNpcSvVTq6T3V
/s/SLmJEmJz2kRYJmCit1UOzCyo/13XPg8K5A+PKlD2Z13efE3PA+i8IGZFlTG3j
quTje001m640kM+SD+ZbcQ9llWaYfEj8oL83MsBCD657IBckliyVX6DYYcmzmYuv
QN7YnoSNWeg=
=G08V
-----END PGP SIGNATURE-----

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Fri, 28 Oct 2005 22:17:16 -0700
From: Anand Kumria <email address hidden>
To: <email address hidden>
Subject: Bug#304431: fixed in tspc 2.1.1-5

Source: tspc
Source-Version: 2.1.1-5

We believe that the bug you reported is fixed in the latest version of
tspc, which is due to be installed in the Debian FTP archive:

tspc_2.1.1-5.diff.gz
  to pool/main/t/tspc/tspc_2.1.1-5.diff.gz
tspc_2.1.1-5.dsc
  to pool/main/t/tspc/tspc_2.1.1-5.dsc
tspc_2.1.1-5_i386.deb
  to pool/main/t/tspc/tspc_2.1.1-5_i386.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Anand Kumria <email address hidden> (supplier of updated tspc package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat, 29 Oct 2005 15:05:16 +1000
Source: tspc
Binary: tspc
Architecture: source i386
Version: 2.1.1-5
Distribution: unstable
Urgency: low
Maintainer: Anand Kumria <email address hidden>
Changed-By: Anand Kumria <email address hidden>
Description:
 tspc - Client to configure an IPv6 tunnel to Hexago's migration broker
Closes: 304431 308750 331598 332124 332333 335095
Changes:
 tspc (2.1.1-5) unstable; urgency=low
 .
   * New maintainer (Closes: #335095)
   * Cleanup debconf dependancies (Closes: #332124)
   * Fixup source file location in copyright
   * Remove freenet6 transition package, thus removing the use of debconf
     and the need for translation -- thanks though to all the translators
     (Closes: #331598, #332333, #308750)
   * Ackownledge NMU (Closes: #304431)
   * Apply patches so that unpacked Debian source is sane rather than doing
     so at build time
Files:
 14da519290e076ad2514ef78770be83a 680 net optional tspc_2.1.1-5.dsc
 4e29eb02fb1890eaf1dedc02de7c0c82 10307 net optional tspc_2.1.1-5.diff.gz
 904fa0a68d68799ef409aeabf910ac7e 81778 net optional tspc_2.1.1-5_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iQCVAwUBQ2MDs2RmcAD8BdppAQIBgAP9GE9BXXuH0CExnl8pMQurNpcSvVTq6T3V
/s/SLmJEmJz2kRYJmCit1UOzCyo/13XPg8K5A+PKlD2Z13efE3PA+i8IGZFlTG3j
quTje001m640kM+SD+ZbcQ9llWaYfEj8oL83MsBCD657IBckliyVX6DYYcmzmYuv
QN7YnoSNWeg=
=G08V
-----END PGP SIGNATURE-----

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.