[Bug 2074330] Re: [SRU] please enable framepointer for libio-dirent-perl

Vladimir Petko 2074330 at bugs.launchpad.net
Sun Nov 17 22:41:06 UTC 2024


Verification:
 - Smoke test (pass):
root at noble-verify:~# apt install libio-dirent-perl=0.05-1.1ubuntu0.1 perl=5.38.2-3.2build2.1 perl-base=5.38.2-3.2build2.1 perl-modules-5.38=5.38.2-3.2build2.1 libperl5.38t64=5.38.2-3.2build2.1
...
root at noble-verify:~# apt list --installed | grep libio-dirent-perl

WARNING: apt does not have a stable CLI interface. Use with caution in
scripts.

libio-dirent-perl/noble-proposed,now 0.05-1.1ubuntu0.1 amd64 [installed]

root at noble-verify:~# apt source libio-dirent-perl
Reading package lists... Done
Skipping already downloaded file 'libio-dirent-perl_0.05-1.1build5.dsc'
Skipping already downloaded file 'libio-dirent-perl_0.05.orig.tar.gz'
Skipping already downloaded file 'libio-dirent-perl_0.05-1.1build5.diff.gz'
Need to get 0 B of source archives.
dpkg-source: info: extracting libio-dirent-perl in libio-dirent-perl-0.05
dpkg-source: info: unpacking libio-dirent-perl_0.05.orig.tar.gz
dpkg-source: info: applying libio-dirent-perl_0.05-1.1build5.diff.gz
root at noble-verify:~# cd libio-dirent-perl-0.05/
root at noble-verify:~/libio-dirent-perl-0.05# sed -i 's/use blib;//g' test.pl
root at noble-verify:~/libio-dirent-perl-0.05# perl test.pl
1..5
# Running under perl version 5.038002 for linux
# Current time local: Sun Nov 17 22:27:47 2024
# Current time GMT:   Sun Nov 17 22:27:47 2024
# Using Test.pm version 1.31
ok 1
ok 2
ok 3

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to libio-dirent-perl in Ubuntu.
https://bugs.launchpad.net/bugs/2074330

Title:
  [SRU] please enable framepointer for libio-dirent-perl

Status in libio-dirent-perl package in Ubuntu:
  Fix Released
Status in libio-dirent-perl source package in Noble:
  Fix Committed
Status in libio-dirent-perl source package in Oracular:
  Fix Released
Status in libio-dirent-perl package in Debian:
  Fix Released

Bug description:
  [Impact]

  In order to help developers with profiling, Ubuntu enabled frame-
  pointers for packages in the main archive.

  https://ubuntu.com/blog/ubuntu-performance-engineering-with-frame-
  pointers-by-default

  The `Affects` packages were missed due to the packaging issues. These
  have been fixed on Oracular and can now be ported to Noble.

  [Test Plan]

  Look at the DW_AT_producer in the associated debug ELF file for flags.
  -fno-omit-frame-pointer should be present after the fix.

  The following scripts can be used as a reference
  https://gist.github.com/julian-klode/85e55553f85c410a1b856a93dce77208
  https://gist.github.com/julian-klode/95818246eaef0ac6a54588f7f368e25c

  Run the smoke test:

  $apt-get install libio-dirent-perl
  $apt source libio-dirent-perl
  cd to package source directory
  $sed -i 's/use blib;//g' test.pl
  $perl test.pl

  Expected output:
  ok 1
  ok 2
  ok 3

  [Where problems could occur]

  No source changes are made. The packaging fixes have enabled other
  security hardening flags. This could have unintended effects.

  [Other Info]

  changes in dpkg have been made to make sure frame-pointers are not
  enabled on s390x and ppc64el.

  [Original Description]
  Note: libio-dirent-perl has very old packaging that has not been updated for a while.

  The package can be switched to a modern debhelper version and this
  will allow to make it honour dpkg build flags.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libio-dirent-perl/+bug/2074330/+subscriptions




More information about the foundations-bugs mailing list