[Bug 2060214] Re: mtd-utils 1:2.1.6-1build1 FTBFS

2024-05-02 Thread Bug Watch Updater
** Changed in: mtd-utils (Debian)
   Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2060214

Title:
  mtd-utils 1:2.1.6-1build1 FTBFS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mtd-utils/+bug/2060214/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2060214] Re: mtd-utils 1:2.1.6-1build1 FTBFS

2024-04-20 Thread Bug Watch Updater
** Changed in: mtd-utils (Debian)
   Status: Unknown => New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2060214

Title:
  mtd-utils 1:2.1.6-1build1 FTBFS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mtd-utils/+bug/2060214/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2060214] Re: mtd-utils 1:2.1.6-1build1 FTBFS

2024-04-16 Thread Launchpad Bug Tracker
This bug was fixed in the package mtd-utils - 1:2.2.0-1ubuntu2

---
mtd-utils (1:2.2.0-1ubuntu2) noble; urgency=medium

  * d/rules: Skipping tests on armhf, due to broken mocking (LP: #2060214)
See https://bugs.debian.org/1065956

 -- Lukas Märdian   Tue, 16 Apr 2024 12:47:36 +0200

** Changed in: mtd-utils (Ubuntu)
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2060214

Title:
  mtd-utils 1:2.1.6-1build1 FTBFS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mtd-utils/+bug/2060214/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2060214] Re: mtd-utils 1:2.1.6-1build1 FTBFS

2024-04-16 Thread Lukas Märdian
** Also affects: mtd-utils (Debian) via
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1065956
   Importance: Unknown
   Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2060214

Title:
  mtd-utils 1:2.1.6-1build1 FTBFS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mtd-utils/+bug/2060214/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2060214] Re: mtd-utils 1:2.1.6-1build1 FTBFS

2024-04-06 Thread Jeremy Bícha
mtd-utils failed to build on armhf but at least it is now building
elsewhere

https://launchpad.net/ubuntu/+source/mtd-utils/1:2.1.6-1ubuntu1

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2060214

Title:
  mtd-utils 1:2.1.6-1build1 FTBFS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mtd-utils/+bug/2060214/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2060214] Re: mtd-utils 1:2.1.6-1build1 FTBFS

2024-04-06 Thread Sudip Mukherjee
Its trying to call the real read() instead of the __wrap_read() even
though --wrap=read was passed to the linker. Seems like the linker is
ignoring --wrap=read if LTO is enabled.

The attached debdiff is a quick fix for Noble. No need to add to lto-
disabled-list, as only the test is building linking with --wrap=read.
But I have not forwarded the bug upstream as I am not sure if this
should be a gcc bug or a bug in mtd-utils. If gcc ignores --wrap=read
with LTO enabled then imho, it should be a gcc bug.

A build with this change can be seen at
https://launchpad.net/~sudipmuk/+archive/ubuntu/mtd-
utils/+build/28026320


** Patch added: "mtd-utils.debdiff"
   
https://bugs.launchpad.net/ubuntu/+source/mtd-utils/+bug/2060214/+attachment/5761652/+files/mtd-utils.debdiff

** Changed in: mtd-utils (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2060214

Title:
  mtd-utils 1:2.1.6-1build1 FTBFS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mtd-utils/+bug/2060214/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2060214] Re: mtd-utils 1:2.1.6-1build1 FTBFS

2024-04-06 Thread Benjamin Drung
Sponsored.

** Changed in: mtd-utils (Ubuntu)
   Status: Confirmed => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2060214

Title:
  mtd-utils 1:2.1.6-1build1 FTBFS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mtd-utils/+bug/2060214/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2060214] Re: mtd-utils 1:2.1.6-1build1 FTBFS

2024-04-05 Thread Sudip Mukherjee
The failure on armhf is a known issue: https://bugs.debian.org/1065956

** Bug watch added: Debian Bug tracker #1065956
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1065956

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2060214

Title:
  mtd-utils 1:2.1.6-1build1 FTBFS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mtd-utils/+bug/2060214/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2060214] Re: mtd-utils 1:2.1.6-1build1 FTBFS

2024-04-04 Thread Benjamin Drung
** Description changed:

  mtd-utils 1:2.1.6-1build1 fails to build from source due to one missing
  test case:
  
  ```
  [ RUN  ] test_mtd_read
  libmtd: error!: cannot read 28 bytes from mtd0 (eraseblock 224, offset 43)
- error 9 (Bad file descriptor)
+ error 9 (Bad file descriptor)
  [  ERROR   ] --- 0x != 0
  [   LINE   ] --- tests/unittests/libmtd_test.c:259: error: Failure!
  [  FAILED  ] test_mtd_read
  ```
  
  The test function:
  
  ```
  static void test_mtd_read(void **state)
  {
-   int mock_fd = 4;
-   int eb = 0xE0;
-   int offs = 43;
-   int len = 28;
-   off_t seek;
-   char buf[28];
-   struct mtd_dev_info mtd;
-   memset(, 0, sizeof(mtd));
-   mtd.bb_allowed = 1;
-   mtd.eb_cnt = 1024;
-   mtd.eb_size = 128;
-   seek = (off_t)eb * mtd.eb_size + offs;
-   expect_lseek(seek, SEEK_SET, seek);
-   expect_read(len, len);
-   int r = mtd_read(, mock_fd, eb, offs, , len);
-   assert_int_equal(r, 0);  // <--- fails here
+  int mock_fd = 4;
+  int eb = 0xE0;
+  int offs = 43;
+  int len = 28;
+  off_t seek;
+  char buf[28];
+  struct mtd_dev_info mtd;
+  memset(, 0, sizeof(mtd));
+  mtd.bb_allowed = 1;
+  mtd.eb_cnt = 1024;
+  mtd.eb_size = 128;
+  seek = (off_t)eb * mtd.eb_size + offs;
+  expect_lseek(seek, SEEK_SET, seek);
+  expect_read(len, len);
+  int r = mtd_read(, mock_fd, eb, offs, , len);
+  assert_int_equal(r, 0);  // <--- fails here
  
-   (void) state;
+  (void) state;
  }
+ ```
+ 
+ The failure is in `mtd_read`:
+ 
+ ```
+   ret = read(fd, buf + rd, len - rd);
  ```
  
  Full log: https://launchpadlibrarian.net/722970004/buildlog_ubuntu-
  noble-amd64.mtd-utils_1%3A2.1.6-1build1_BUILDING.txt.gz

** Description changed:

  mtd-utils 1:2.1.6-1build1 fails to build from source due to one missing
  test case:
  
  ```
  [ RUN  ] test_mtd_read
  libmtd: error!: cannot read 28 bytes from mtd0 (eraseblock 224, offset 43)
  error 9 (Bad file descriptor)
  [  ERROR   ] --- 0x != 0
  [   LINE   ] --- tests/unittests/libmtd_test.c:259: error: Failure!
  [  FAILED  ] test_mtd_read
  ```
  
  The test function:
  
  ```
  static void test_mtd_read(void **state)
  {
   int mock_fd = 4;
   int eb = 0xE0;
   int offs = 43;
   int len = 28;
   off_t seek;
   char buf[28];
   struct mtd_dev_info mtd;
   memset(, 0, sizeof(mtd));
   mtd.bb_allowed = 1;
   mtd.eb_cnt = 1024;
   mtd.eb_size = 128;
   seek = (off_t)eb * mtd.eb_size + offs;
   expect_lseek(seek, SEEK_SET, seek);
   expect_read(len, len);
   int r = mtd_read(, mock_fd, eb, offs, , len);
   assert_int_equal(r, 0);  // <--- fails here
  
   (void) state;
  }
  ```
  
  The failure is in `mtd_read`:
  
  ```
-   ret = read(fd, buf + rd, len - rd);
+   ret = read(fd, buf + rd, len - rd);
  ```
+ 
+ The failure is reproducible (locally).
  
  Full log: https://launchpadlibrarian.net/722970004/buildlog_ubuntu-
  noble-amd64.mtd-utils_1%3A2.1.6-1build1_BUILDING.txt.gz

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2060214

Title:
  mtd-utils 1:2.1.6-1build1 FTBFS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mtd-utils/+bug/2060214/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs