Debian Bug report logs - #959965
reprepro: Using $fullfilename with --list-format uses basedir even if a different outdir is configured

version graph

Package: reprepro; Maintainer for reprepro is Bastian Germann <[email protected]>; Source for reprepro is src:reprepro (PTS, buildd, popcon).

Reported by: Silas McCroskey <[email protected]>

Date: Thu, 7 May 2020 14:51:01 UTC

Severity: normal

Found in version reprepro/5.3.0-1.1

Reply or subscribe to this bug.

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


Report forwarded to [email protected], [email protected], Bernhard R. Link <[email protected]>:
Bug#959965; Package reprepro. (Thu, 07 May 2020 14:51:04 GMT) (full text, mbox, link).


Acknowledgement sent to Silas McCroskey <[email protected]>:
New Bug report received and forwarded. Copy sent to [email protected], Bernhard R. Link <[email protected]>. (Thu, 07 May 2020 14:51:04 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Silas McCroskey <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: reprepro: Using $fullfilename with --list-format uses basedir even if a different outdir is configured
Date: Thu, 07 May 2020 07:46:32 -0700
Package: reprepro
Version: 5.3.0-1.1
Severity: normal

The reprepro manual states the following about $fullfilename:

    The special field names $basename, $filekey and $fullfilename
    denote the first package file part of this entry (i.e.  usually
    the .deb, .udeb or .dsc file) as basename, as filekey (filename
    relative to the outdir) and the full filename with outdir
    prepended (i.e.  as relative or absolute as your outdir (or
    basedir if you did not set outdir) is).

But reprepro unconditionally uses the basedir to populate
$fullfilename, regardless of whether or not an outdir was set:

    } else { /* fullfilename */
            value = calc_dirconcat(global.basedir,
                            filekeys.values[0]);
            if (FAILEDTOALLOC(value))
                    return RET_ERROR_OOM;
            v = value;
    }

(source is from a fresh clone from git, using the debian branch).

$fullfilename should use outdir as described.


-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing'), (450, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.3.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages reprepro depends on:
ii  libarchive13   3.4.0-1+b1
ii  libbz2-1.0     1.0.8-2
ii  libc6          2.29-10
ii  libdb5.3       5.3.28+dfsg1-0.6
ii  libgpg-error0  1.37-1
ii  libgpgme11     1.13.1-6
ii  liblzma5       5.2.4-1+b1
ii  zlib1g         1:1.2.11.dfsg-1.2

Versions of packages reprepro recommends:
ii  apt  1.8.4

Versions of packages reprepro suggests:
ii  gpg-agent [gnupg-agent]  2.2.19-1
ii  inoticoming              0.2.3-2+b1
pn  lzip                     <none>
ii  pinentry-curses          1.1.0-3+b1

-- no debconf information



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 05:28:38 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General 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.