• unblock: ruby-mimemagic/0.4.3-2

    From =?utf-8?Q?C=C3=A9dric?= Boutillier@21:1/5 to Debian Bug Tracking System on Thu Jul 17 17:03:05 2025
    XPost: linux.debian.devel.release

    --qqyTp6iPZFXqklOE
    Content-Type: text/plain; charset=us-ascii
    Content-Disposition: inline

    Package: release.debian.org
    Severity: normal
    X-Debbugs-Cc: [email protected]
    Control: affects -1 + src:ruby-mimemagic
    User: [email protected]
    Usertags: unblock

    Please unblock package ruby-mimemagic


    [ Reason ]
    The package was wrongly considered as arch:any. The package installed
    the gemspec file, which is important for the interpreter to find the
    library in an arch- and ruby-version-specific path, but was not
    dependending on librubyx.y (for a good reason, because it's pure Ruby). Therefore the package was not rebuilt for the transition to ruby3.3,
    and the gemspec file is in a ruby3.1-specific path: so ruby3.3 in trixie
    cannot find the corresponding library.


    [ Impact ]
    If the unblock is not granted, the package is not usable with ruby3.3. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1109024


    [ Tests ]
    The package has no test, but ruby-file-validators is build-depending on
    that package, and the tests pass with ruby-mimemagic 0.4.3-2.
    Autopackagetest tests if the gemspec file is found by the interpreter,
    this new version fixes this.


    [ Risks ]
    No risk involved. This is exactly the same code shipped, just installed
    in an arch-independent path (as it should be). The action of the
    Rakefile under /ext/mimemagic that was called during build, is replaced
    by a patch to create a file containing the correct path to freedesktop shared-mime-info database.


    [ Other info ]
    I forgot to increase the urgency level in the changelog. But of course,
    it's better if it can migrate (much) earlier. Thanks!

    [ Checklist ]
    [x] all changes are documented in the d/changelog
    [x] I reviewed all changes and I approve them
    [x] attach debdiff against the package in testing



    unblock ruby-mimemagic/0.4.3-2

    --qqyTp6iPZFXqklOE
    Content-Type: text/plain; charset=us-ascii
    Content-Disposition: attachment;
    filename="ruby-mimemagic_0.4.3-1_0.4.3-2_deb.debdiff"

    [The following lists of changes regard files as different if they have different names, permissions or owners.]

    Files in second .deb but not in first
    -------------------------------------
    -rw-r--r-- root/root /usr/share/rubygems-integration/all/gems/mimemagic-0.4.3/lib/mimemagic.rb
    -rw-r--r-- root/root /usr/share/rubygems-integration/all/gems/mimemagic-0.4.3/lib/mimemagic/path.rb
    -rw-r--r-- root/root /usr/share/rubygems-integration/all/gems/mimemagic-0.4.3/lib/mimemagic/tables.rb
    -rw-r--r-- root/root /usr/share/rubygems-integration/all/gems/mimemagic-0.4.3/lib/mimemagic/version.rb
    -rw-r--r-- root/root /usr/share/rubygems-integration/all/specifications/mimemagic-0.4.3.gemspec

    Files in first .deb but not in second
    -------------------------------------
    -rw-r--r-- root/root /usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/extensions/x86_64-linux/3.1.0/mimemagic-0.4.3/gem.build_complete
    -rw-r--r-- root/root /usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/extensions/x86_64-linux/3.1.0/mimemagic-0.4.3/mimemagic/path.rb
    -rw-r--r-- root/root /usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/mimemagic-0.4.3/lib/mimemagic.rb
    -rw-r--r-- root/root /usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/mimemagic-0.4.3/lib/mimemagic/tables.rb
    -rw-r--r-- root/root /usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/mimemagic-0.4.3/lib/mimemagic/version.rb
    -rw-r--r-- root/root /usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/specifications/mimemagic-0.4.3.gemspec

    Control files: lines which differ (wdiff format) ------------------------------------------------
    Architecture: [-amd64-] {+all+}
    Installed-Size: [-43-] {+36+}
    Version: [-0.4.3-1-] {+0.4.3-2+}

    --qqyTp6iPZFXqklOE
    Content-Type: text/plain; charset=utf-8
    Content-Disposition: attachment;
    filename="ruby-mimemagic_0.4.3-1_0.4.3-2_dsc.debdiff" Content-Transfer-Encoding: quoted-printable

    diff -Nru ruby-mimemagic-0.4.3/debian/changelog ruby-mimemagic-0.4.3/debian/changelog
    --- ruby-mimemagic-0.4.3/debian/changelog 2023-12-18 22:01:30.000000000 +0100
    +++ ruby-mimemagic-0.4.3/debian/changelog 2025-07-12 23:07:00.000000000 +0200
    @@ -1,3 +1,14 @@
    +ruby-mimemagic (0.4.3-2) unstable; urgency=medium
    +
    + * Make the package arch:all as it should
    + + Stop installing the files (especially gemspec) in a
    + arch/version-specific path (Closes: #1109024)
    + + Remove the (fake) binary extension mention in gemspec file
    + * Create lib/mimemagic/path.rb by hand
    + * Do not install files from ext/
    +
    + -- Cédric Boutillier <[email protected]> Sat, 12 Jul 2025 23:07:00 +0200
    +
    ruby-mimemagic (0.4.3-1) unstable; urgency=medium

    [ Debian Janitor ]
    diff -Nru ruby-mimemagic-0.4.3/debian/control ruby-mimemagic-0.4.3/debian/control
    --- ruby-mimemagic-0.4.3/debian/control 2023-12-18 22:01:30.000000000 +0100
    +++ ruby-mimemagic-0.4.3/debian/control 2025-07-12 23:07:00.000000000 +0200
    @@ -16,7 +16,7 @@
    Rules-Requires-Root: no

    Package: ruby-mimemagic
    -Architecture: a