Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Feb 2023 22:57:36 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 269887] x11/wev: checksum mismatch for 0be512fb7058.patch
Message-ID:  <bug-269887-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269887

            Bug ID: 269887
           Summary: x11/wev: checksum mismatch for 0be512fb7058.patch
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: jbeich@FreeBSD.org
          Reporter: dan.kotowski@a9development.com
             Flags: maintainer-feedback?(jbeich@FreeBSD.org)
          Assignee: jbeich@FreeBSD.org

# make checksum
=3D=3D=3D>  License MIT accepted by the user
=3D=3D=3D>   wev-1.0.0_2 depends on file: /usr/local/sbin/pkg - found
=3D> 0be512fb7058.patch doesn't seem to exist in /usr/ports/distfiles/.
=3D> Attempting to fetch
https://git.sr.ht/~sircmpwn/wev/commit/0be512fb7058.patch
0be512fb7058.patch                                    1148  B   11 MBps    =
00s
=3D=3D=3D> Fetching all distfiles required by wev-1.0.0_2 for building
=3D> SHA256 Checksum OK for wev-1.0.0.tar.gz.
=3D> SHA256 Checksum mismatch for 0be512fb7058.patch.
=3D=3D=3D>  Refetch for 1 more times files:  0be512fb7058.patch
=3D=3D=3D>  License MIT accepted by the user
=3D=3D=3D>   wev-1.0.0_2 depends on file: /usr/local/sbin/pkg - found
=3D> 0be512fb7058.patch doesn't seem to exist in /usr/ports/distfiles/.
=3D> Attempting to fetch
https://git.sr.ht/~sircmpwn/wev/commit/0be512fb7058.patch
0be512fb7058.patch                                    1148  B   12 MBps    =
00s
=3D=3D=3D> Fetching all distfiles required by wev-1.0.0_2 for building
=3D=3D=3D>  License MIT accepted by the user
=3D=3D=3D>   wev-1.0.0_2 depends on file: /usr/local/sbin/pkg - found
=3D=3D=3D> Fetching all distfiles required by wev-1.0.0_2 for building
=3D> SHA256 Checksum OK for wev-1.0.0.tar.gz.
=3D> SHA256 Checksum mismatch for 0be512fb7058.patch.
=3D=3D=3D>  Giving up on fetching files:  0be512fb7058.patch
Make sure the Makefile and distinfo file (/usr/ports/x11/wev/distinfo)
are up to date.  If you are absolutely sure you want to override this
check, type "make NO_CHECKSUM=3Dyes [other args]".
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/x11/wev
*** Error code 1

Stop.
make: stopped in /usr/ports/x11/wev

# shasum -a256 /usr/ports/distfiles/0be512fb7058.patch
c6aa3fa17dd166ee881cdda1a0947ce7c20877393bec296194b260c567ebcacd=20
/usr/ports/distfiles/0be512fb7058.patch

# grep 0be512fb7058.patch distinfo
SHA256 (0be512fb7058.patch) =3D
91e09d0bcc36f8f33b255f1e9e61b7a05f79942809f5079fb4ff767df07d64cd
SIZE (0be512fb7058.patch) =3D 1148

# cat /usr/ports/distfiles/0be512fb7058.patch
>From 0be512fb705831b55020e1eaf86eedba0eae4a75 Mon Sep 17 00:00:00 2001
From: Ronan Pigott <rpigott@berkeley.edu>
Date: Tue, 7 Jul 2020 02:32:40 -0700
Subject: [PATCH] remember to close and unmap buffer after drawing

So when you open wev and wiggle it about a bit in an interactive
resize it eats a bunch of memory before dieing of too many open files.
It looks like it was just forgotten to clean up the wl_buffer when
we're done. I think this is all that's needed.
---
 wev.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/wev.c b/wev.c
index 67df920..8a90917 100644
--- a/wev.c
+++ b/wev.c
@@ -531,6 +531,7 @@ static struct wl_buffer *create_buffer(struct wev_state
*state) {
        struct wl_buffer *buffer =3D wl_shm_pool_create_buffer(pool, 0,
                        state->width, state->height, stride,
WL_SHM_FORMAT_XRGB8888);
        wl_shm_pool_destroy(pool);
+       close(fd);

        for (int y =3D 0; y < state->height; ++y) {
                for (int x =3D 0; x < state->width; ++x) {
@@ -541,6 +542,7 @@ static struct wl_buffer *create_buffer(struct wev_state
*state) {
                        }
                }
        }
+       munmap(data, size);

        wl_buffer_add_listener(buffer, &wl_buffer_listener, NULL);

--
2.34.7

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-269887-7788>