Bug#758106: marked as done (ploop ftbfs on mips64el)

2017-09-16 Thread Debian Bug Tracking System
Your message dated Sat, 16 Sep 2017 23:54:10 +0300
with message-id <20170916205410.uk6mvuqs26xyq5bq@localhost>
and subject line ploop now builds on mips64el
has caused the Debian Bug report #758106,
regarding ploop ftbfs on mips64el
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
758106: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=758106
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: ploop
Version: 1.11-1

On mips64el, long long and long has the same 64bit width, while
they are totally different type.

Not very sure about why.

-- 
YunQiang Su
Index: ploop-1.11/lib/balloon_util.c
===
--- ploop-1.11.orig/lib/balloon_util.c  2033-12-08 10:13:44.066252533 +0800
+++ ploop-1.11/lib/balloon_util.c   2033-12-08 10:13:44.050627531 +0800
@@ -273,14 +273,14 @@
ploop_err(0,
"Image corrupted: L2[%u] == %u 
(max=%llu)",
clu + j - l2_slot, delta->l2[j],
-   (rlen - 1) * B2S(cluster));
+   (long long unsigned)(rlen - 1) * 
B2S(cluster));
return(SYSEXIT_PLOOPFMT);
}
if (ridx < delta->l1_size) {
ploop_err(0,
"Image corrupted: L2[%u] == %u 
(min=%llu)",
clu + j - l2_slot, delta->l2[j],
-   delta->l1_size * B2S(cluster));
+   (long long unsigned)(delta->l1_size * 
B2S(cluster)));
return(SYSEXIT_PLOOPFMT);
}
 
@@ -538,14 +538,14 @@
ploop_err(0,
"Image corrupted: L2[%u] == %u (max=%llu) (2)",
clu, delta->l2[l2_slot],
-   (rlen - 1) * B2S(cluster));
+   (long long unsigned)((rlen - 1) * 
B2S(cluster)));
return SYSEXIT_PLOOPFMT;
}
if (ridx && ridx < delta->l1_size) {
ploop_err(0,
"Image corrupted: L2[%u] == %u (min=%llu) (2)",
clu, delta->l2[l2_slot],
-   delta->l1_size * B2S(cluster));
+   (long long unsigned)(delta->l1_size * 
B2S(cluster)));
return SYSEXIT_PLOOPFMT;
}
 
Index: ploop-1.11/lib/check.c
===
--- ploop-1.11.orig/lib/check.c 2014-04-04 06:09:18.0 +0800
+++ ploop-1.11/lib/check.c  2033-12-08 10:14:00.597503828 +0800
@@ -552,7 +552,7 @@
ploop_err(0, "Delta file %s contains 
uninitialized blocks"
" (offset=%llu len=%llu)"
" which are not aligned to 
cluster size",
-   image, fm_ext[i].fe_logical, 
fm_ext[i].fe_length);
+   image, (long long 
unsigned)fm_ext[i].fe_logical, (long long unsigned)fm_ext[i].fe_length);
 
if (fill_hole(image, fd, fm_ext[i].fe_logical,
fm_ext[i].fe_logical + 
fm_ext[i].fe_length, &log, repair))
Index: ploop-1.11/lib/ploop.c
===
--- ploop-1.11.orig/lib/ploop.c 2014-04-04 06:09:18.0 +0800
+++ ploop-1.11/lib/ploop.c  2033-12-08 10:38:39.667932199 +0800
@@ -273,7 +273,7 @@
if (sectors > max) {
ploop_err(0, "An incorrect block device size is specified: %llu 
sectors."
" The maximum allowed size is %llu sectors",
-   sectors, max);
+   (long long unsigned)sectors, (long long 
unsigned)max);
return -1;
}
return 0;
@@ -2273,7 +2273,7 @@
ploop_err(0, "Unable to change image 
size to %lu "
"sectors, minimal size 
is %llu",
(long)new_fs_size,
-   (bl

Bug#765753: marked as done (ploop: Add casts in order to build for ppc64el)

2017-09-16 Thread Debian Bug Tracking System
Your message dated Sat, 16 Sep 2017 23:55:50 +0300
with message-id <20170916205550.u3kok4ewritg4kyq@localhost>
and subject line ploop now builds on ppc64el
has caused the Debian Bug report #765753,
regarding ploop: Add casts in order to build for ppc64el
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
765753: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=765753
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: src:ploop
Version: 1.12.1-1
Severity: normal
Tags: patch
User: debian-powe...@lists.debian.org
Usertags: ppc64el

Dear Maintainer,

ploop is not building for ppc64el [1] because of some casting problems [2].
Using the attached patch I managed to build it for ppc64el.

[1] https://wiki.debian.org/ppc64el
[2] https://buildd.debian.org/status/package.php?p=ploop&suite=sid

Thanks,

-- 
Paulo Flabiano Smorigo
IBM Linux Technology Center
diff --git a/lib/balloon.c b/lib/balloon.c
index a392bdd..6110c9e 100644
--- a/lib/balloon.c
+++ b/lib/balloon.c
@@ -860,7 +860,7 @@ static int ploop_trim(const char *mount_point, __u64 
minlen_b, __u64 cluster)
range.minlen = MAX(MAX_DISCARD_CLU * cluster, minlen_b);
 
for (; range.minlen >= minlen_b; range.minlen /= 2) {
-   ploop_log(1, "Call FITRIM, for minlen=%lld", range.minlen);
+   ploop_log(1, "Call FITRIM, for minlen=%lld", (unsigned long 
long)range.minlen);
ret = ioctl(fd, FITRIM, &range);
if (ret < 0) {
if (trim_stop)
@@ -894,7 +894,8 @@ static int blk_discard(int fd, __u32 cluster, __u64 start, 
__u64 len)
if (start % S2B(cluster) && len > range[1])
range[1] -= start % S2B(cluster);
 
-   ploop_log(1, "Call BLKDISCARD start=%llu length=%llu ", 
range[0], range[1]);
+   ploop_log(1, "Call BLKDISCARD start=%llu length=%llu ",
+   (unsigned long long)range[0], (unsigned long 
long)range[1]);
ret = ioctl_device(fd, BLKDISCARD, range);
if (ret)
return ret;
@@ -918,9 +919,11 @@ static int __ploop_discard(struct ploop_disk_images_data 
*di, int fd,
 
if (blk_discard_range != NULL)
ploop_log(0, "Discard %s start=%llu length=%llu",
-   device, blk_discard_range[0], 
blk_discard_range[1]);
+   device, (unsigned long 
long)blk_discard_range[0],
+   (unsigned long long)blk_discard_range[1]);
else
-   ploop_log(3, "Trying to find free extents bigger than %llu 
bytes", minlen_b);
+   ploop_log(3, "Trying to find free extents bigger than %llu 
bytes",
+   (unsigned long long)minlen_b);
 
if (ploop_lock_di(di))
return SYSEXIT_LOCK;
diff --git a/lib/balloon_util.c b/lib/balloon_util.c
index 798792b..88a921d 100644
--- a/lib/balloon_util.c
+++ b/lib/balloon_util.c
@@ -273,14 +273,14 @@ static int fiemap_extent_process(__u32 clu, __u32 len, 
__u32 *rmap, __u32 rlen,
ploop_err(0,
"Image corrupted: L2[%u] == %u 
(max=%llu)",
clu + j - l2_slot, delta->l2[j],
-   (rlen - 1) * B2S(cluster));
+   (long long unsigned)(rlen - 1) * 
B2S(cluster));
return(SYSEXIT_PLOOPFMT);
}
if (ridx < delta->l1_size) {
ploop_err(0,
"Image corrupted: L2[%u] == %u 
(min=%llu)",
clu + j - l2_slot, delta->l2[j],
-   delta->l1_size * B2S(cluster));
+   (long long unsigned)delta->l1_size * 
B2S(cluster));
return(SYSEXIT_PLOOPFMT);
}
 
@@ -538,14 +538,14 @@ static int range_build_rmap(__u32 iblk_start, __u32 
iblk_end,
ploop_err(0,
"Image corrupted: L2[%u] == %u (max=%llu) (2)",
clu, delta->l2[l2_slot],
-   (rlen - 1) * B2S(cluster));
+   (long long unsigned)(rlen - 1) * B2S(cluster));
return SYSEXIT_PLOOPFMT;
}
if (ridx && ridx < delta->l1_size) {
  

Belangerijke veiling Evenement en Werfverlichting

2017-09-16 Thread I&O Auctions - Veilingen
Voeg n...@io-auctions.nl toe aan je adressenboek om er zeker van te zijn dat je 
e-mails van I&O Auctions zult ontvangen

   This mail has been sent to: 
packa...@qa.debian.org