From owner-freebsd-ports-bugs@freebsd.org Mon Aug 14 18:59:03 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 596F3DDDCD4 for ; Mon, 14 Aug 2017 18:59:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46BBF6A152 for ; Mon, 14 Aug 2017 18:59:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v7EIx223082408 for ; Mon, 14 Aug 2017 18:59:03 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 221531] net/wmwifi: Fix runtime on architectures where sizeof(int) != sizeof(size_t) Date: Mon, 14 Aug 2017 18:59:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: tobik@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: uqs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform bug_file_loc op_sys bug_status keywords bug_severity priority component assigned_to reporter cc flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Aug 2017 18:59:03 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221531 Bug ID: 221531 Summary: net/wmwifi: Fix runtime on architectures where sizeof(int) !=3D sizeof(size_t) Product: Ports & Packages Version: Latest Hardware: Any URL: https://forums.freebsd.org/threads/61981/ OS: Any Status: New Keywords: patch Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: uqs@FreeBSD.org Reporter: tobik@freebsd.org CC: uqs@FreeBSD.org Attachment #185413 maintainer-approval?(uqs@FreeBSD.org) Flags: Flags: maintainer-feedback?(uqs@FreeBSD.org) Assignee: uqs@FreeBSD.org CC: uqs@FreeBSD.org Created attachment 185413 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D185413&action= =3Dedit wmwifi.diff Currently wmwifi doesn't start on amd64 and simply fails with wmwifi: No wireless interface found! The problem is that the code assumes that sizeof(int) =3D=3D sizeof(size_t) which isn't the case on amd64 and all sysctl() calls will fail because of it. Another problem is that the port fails to build outside of Poudriere when devel/autoconf and devel/automake are installed in the environment since patching configure.in triggers the build to try to regenerate configure which fails with: gmake[1]: Entering directory '/usr/ports/net/wmwifi/work/wmwifi-0.4-bsd' cd . && aclocal aclocal-1.15: warning: autoconf input should be named 'configure.ac', not 'configure.in' /usr/local/share/aclocal/gdk-pixbuf.m4:12: warning: underquoted definition = of AM_PATH_GDK_PIXBUF /usr/local/share/aclocal/gdk-pixbuf.m4:12: run info Automake 'Extending aclocal' /usr/local/share/aclocal/gdk-pixbuf.m4:12: or see http://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal cd . && automake --gnu Makefile automake-1.15: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.in:3: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms a= re deprecated. For more info, see: configure.in:3: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005f= INIT_005fAUTOMAKE-invocation configure.in:6: error: required file './compile' not found configure.in:6: 'automake --add-missing' can install 'compile' gmake[1]: *** [Makefile:82: Makefile.in] Error 1 gmake[1]: Leaving directory '/usr/ports/net/wmwifi/work/wmwifi-0.4-bsd' *** Error code 1 I suggest removing the patch and instead pass CFLAGS through CONFIGURE_ENV to the build to work around this problem. While here I also add LICENSE, LICENSE_FILE, and the missing USE_XORG=3Dxext. Poudriere testport 11.0/amd64 and 10.3/i386 ok --=20 You are receiving this mail because: You are the assignee for the bug.=