Debian Bug report logs - #657711
please make COPYFILES more flexible

version graph

Package: schroot; Maintainer for schroot is Christoph Biedl <debian.axhn@manchmal.in-ulm.de>; Source for schroot is src:schroot (PTS, buildd, popcon).

Reported by: Marc Haber <mh+debian-packages@zugschlus.de>

Date: Sat, 28 Jan 2012 08:30:01 UTC

Severity: wishlist

Tags: patch

Found in version schroot/1.4.24-1

Fixed in version 1.6.13-3

Done: Santiago Vila <sanvila@debian.org>

Bug is archived. No further changes may be made.

Forwarded to https://codeberg.org/shelter/reschroot/pulls/3

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>:
Bug#657711; Package schroot. (Sat, 28 Jan 2012 08:30:04 GMT) (full text, mbox, link).


Acknowledgement sent to Marc Haber <mh+debian-packages@zugschlus.de>:
New Bug report received and forwarded. Copy sent to Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>. (Sat, 28 Jan 2012 08:30:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Marc Haber <mh+debian-packages@zugschlus.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: please make COPYFILES more flexible
Date: Sat, 28 Jan 2012 09:26:03 +0100
Package: schroot
Version: 1.4.24-1
Severity: wishlist

Hi,

maybe one wants to copy files to a chroot that are not active in the
host system. For example, I might want apt in the chroot not to honor
recommends and suggests, but in the host, this behavior is fine.

To solve this, I would like schroot to copy a file from
/etc/schroot/foo/files/etc/apt/apt.conf.d/70RecommendsSuggests to
/etc/apt/apt.conf.d/70RecommendsSuggests in the schroot.

To allow this, the COPYFILES functionality could be changed to allow
two file names per line. If only one is given, behavior is not
changed, preserving backwards-compatibility. If two are given, one is
the source path from the host system, one is the target path inside
the chroot.

Greetings
Marc




Information forwarded to debian-bugs-dist@lists.debian.org, Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>:
Bug#657711; Package schroot. (Sat, 28 Jan 2012 10:42:04 GMT) (full text, mbox, link).


Acknowledgement sent to Roger Leigh <rleigh@codelibre.net>:
Extra info received and forwarded to list. Copy sent to Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>. (Sat, 28 Jan 2012 10:42:08 GMT) (full text, mbox, link).


Message #10 received at 657711@bugs.debian.org (full text, mbox, reply):

From: Roger Leigh <rleigh@codelibre.net>
To: Marc Haber <mh+debian-packages@zugschlus.de>, 657711@bugs.debian.org
Subject: Re: [buildd-tools-devel] Bug#657711: please make COPYFILES more flexible
Date: Sat, 28 Jan 2012 10:39:20 +0000
On Sat, Jan 28, 2012 at 09:26:03AM +0100, Marc Haber wrote:
> To solve this, I would like schroot to copy a file from
> /etc/schroot/foo/files/etc/apt/apt.conf.d/70RecommendsSuggests to
> /etc/apt/apt.conf.d/70RecommendsSuggests in the schroot.
> 
> To allow this, the COPYFILES functionality could be changed to allow
> two file names per line. If only one is given, behavior is not
> changed, preserving backwards-compatibility. If two are given, one is
> the source path from the host system, one is the target path inside
> the chroot.

This should be fairly straightforward to add.  The only issue is how
to deal with paths/files containing spaces in their names.  Currently
we read the entire line and use the entire content as the path, which
includes any spaces.  Having two per line means we would need some
way of splitting the line.  If we can use some shell-fu to allow
correct escaping of spaces so that we can split on whitespace, that
would be good.

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.




Information forwarded to debian-bugs-dist@lists.debian.org, Christoph Biedl <debian.axhn@manchmal.in-ulm.de>:
Bug#657711; Package schroot. (Tue, 02 Aug 2022 13:33:04 GMT) (full text, mbox, link).


Acknowledgement sent to Guillem Jover <guillem@debian.org>:
Extra info received and forwarded to list. Copy sent to Christoph Biedl <debian.axhn@manchmal.in-ulm.de>. (Tue, 02 Aug 2022 13:33:05 GMT) (full text, mbox, link).


Message #15 received at 657711@bugs.debian.org (full text, mbox, reply):

From: Guillem Jover <guillem@debian.org>
To: Marc Haber <mh+debian-packages@zugschlus.de>, 657711@bugs.debian.org
Subject: Re: Bug#657711: please make COPYFILES more flexible
Date: Tue, 2 Aug 2022 15:28:58 +0200
Control: forwarded -1 https://codeberg.org/shelter/reschroot/pulls/3
Control: tags -1 patch

On Sat, 2012-01-28 at 09:26:03 +0100, Marc Haber wrote:
> Package: schroot
> Version: 1.4.24-1
> Severity: wishlist

> maybe one wants to copy files to a chroot that are not active in the
> host system. For example, I might want apt in the chroot not to honor
> recommends and suggests, but in the host, this behavior is fine.
> 
> To solve this, I would like schroot to copy a file from
> /etc/schroot/foo/files/etc/apt/apt.conf.d/70RecommendsSuggests to
> /etc/apt/apt.conf.d/70RecommendsSuggests in the schroot.
> 
> To allow this, the COPYFILES functionality could be changed to allow
> two file names per line. If only one is given, behavior is not
> changed, preserving backwards-compatibility. If two are given, one is
> the source path from the host system, one is the target path inside
> the chroot.

I implemented this for myself some time ago, and submitted it to the
previous upstream repo, where it got merged. I resubmitted this again
to the new fork, as it branched from a different point in history.

Thanks,
Guillem



Set Bug forwarded-to-address to 'https://codeberg.org/shelter/reschroot/pulls/3'. Request was from Guillem Jover <guillem@debian.org> to 657711-submit@bugs.debian.org. (Tue, 02 Aug 2022 13:33:05 GMT) (full text, mbox, link).


Added tag(s) patch. Request was from Guillem Jover <guillem@debian.org> to 657711-submit@bugs.debian.org. (Tue, 02 Aug 2022 13:33:05 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Christoph Biedl <debian.axhn@manchmal.in-ulm.de>:
Bug#657711; Package schroot. (Sat, 04 Nov 2023 20:39:04 GMT) (full text, mbox, link).


Acknowledgement sent to Santiago Vila <sanvila@debian.org>:
Extra info received and forwarded to list. Copy sent to Christoph Biedl <debian.axhn@manchmal.in-ulm.de>. (Sat, 04 Nov 2023 20:39:04 GMT) (full text, mbox, link).


Message #24 received at 657711@bugs.debian.org (full text, mbox, reply):

From: Santiago Vila <sanvila@debian.org>
To: Guillem Jover <guillem@debian.org>, Marc Haber <mh+debian-packages@zugschlus.de>, 657711@bugs.debian.org, 657711-done@bugs.debian.org
Subject: Re: Bug#657711: please make COPYFILES more flexible
Date: Sat, 4 Nov 2023 21:34:38 +0100
Version: 1.6.13-3

El 2/8/22 a las 15:28, Guillem Jover escribió:
> On Sat, 2012-01-28 at 09:26:03 +0100, Marc Haber wrote:
>> To allow this, the COPYFILES functionality could be changed to allow
>> two file names per line. If only one is given, behavior is not
>> changed, preserving backwards-compatibility. If two are given, one is
>> the source path from the host system, one is the target path inside
>> the chroot.
> 
> I implemented this for myself some time ago, and submitted it to the
> previous upstream repo, where it got merged. I resubmitted this again
> to the new fork, as it branched from a different point in history.

Hello. The feature is present indeed in the schroot version in
bookworm, in exactly the way Marc suggested. Now the sample
"copyfiles" files have a line like this one:

# <source-and-destination>[ <destination>]

(So, I'm closing using such version)

Thanks.



Reply sent to Santiago Vila <sanvila@debian.org>:
You have taken responsibility. (Sat, 04 Nov 2023 20:39:08 GMT) (full text, mbox, link).


Notification sent to Marc Haber <mh+debian-packages@zugschlus.de>:
Bug acknowledged by developer. (Sat, 04 Nov 2023 20:39:08 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 03 Dec 2023 07:25:01 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Tue Jan 30 06:52:05 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.