• unapply-patches in d/source/(local)-options?

    From Marc Haber@21:1/5 to All on Mon May 26 16:40:01 2025
    Hi,

    when working with source format 3.0 (quilt) and gbp, I have found
    dpkg-source's behavior about applying patches a bit confusing.

    In the git working copy, patches are not applied. They get applied by
    gbp buildpackare before building the package and then backed out
    afterwards. Right? I usually have export-dir set in my .gbp.conf, which
    changes gbp buildpackage's behavior: A git export is made to a temporary subdirectory of the export-dir, patches get applied, the package is
    built there and the temporary directory is deleted.

    When I take the source package and dpkg-source -x it, the patches get
    applied. Therefore an unpackaged source package looks different from
    what I have in a git working copy. I find this confusing.

    I understand that it should be possible to influence this by putting "unapply-patches" into debian/source/options, but that doesn't seem to
    change dpkg-source -x's behavior at all: patches are still applied after unpacking the source package. Same happens when I put "unapply-patches"
    into debian/source/local-option, since that file doesn't end up in the
    source pakage at all.

    Can somebody explain what is going on here and what is the recommended
    package (sub)format when one uses gbp?

    Greetings
    Marc

    -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)