Re: [UPDATE] emulators/dosbox-x-2024.03.01

2024-03-14 Thread SASANO Takayoshi via ports
> This broke the build on i386,
> 
> esfmu/esfm.c:1849:5: error: inline assembly requires more registers than 
> available
> "movzbl  %b[wave], %%eax \n\t"
> ^
> 
> It's too late to fix for release now.

uh, oh, sorry.

I found 32bit code of this library cannot build with clang-14 to 16.
(tested with Debian-12/amd64, only clang-13 could build successfully.)

Just now I reported this problem to ESFMu library at GitHub
to solve this problem.
-- 
SASANO Takayoshi (JG1UAA) 



Re: [UPDATE] emulators/dosbox-x-2024.03.01

2024-03-13 Thread Stuart Henderson via ports
On 2024/03/08 21:58, SASANO Takayoshi wrote:
> Hi,
> 
> here is the diff for dosbox-x 2023.10.06 -> 2024.03.01.

This broke the build on i386,

esfmu/esfm.c:1849:5: error: inline assembly requires more registers than 
available
"movzbl  %b[wave], %%eax \n\t"
^

It's too late to fix for release now.



Re: [UPDATE] emulators/dosbox-x-2024.03.01

2024-03-09 Thread SASANO Takayoshi
Hi,

> I would recommend running `make update-patches` to update the patch for
> Makefile.am, otherwise looks good and runs. ok thfr@

I committed after running `make update-patches`. Thanks!
-- 
SASANO Takayoshi (JG1UAA) 



Re: [UPDATE] emulators/dosbox-x-2024.03.01

2024-03-08 Thread Thomas Frohwein
On Fri, Mar 08, 2024 at 09:58:47PM +0900, SASANO Takayoshi wrote:
> Hi,
> 
> here is the diff for dosbox-x 2023.10.06 -> 2024.03.01.
> 
> ok?

I would recommend running `make update-patches` to update the patch for
Makefile.am, otherwise looks good and runs. ok thfr@

> Index: Makefile
> ===
> RCS file: /cvs/ports/emulators/dosbox-x/Makefile,v
> diff -u -p -r1.1.1.1 Makefile
> --- Makefile  21 Feb 2024 12:29:10 -  1.1.1.1
> +++ Makefile  8 Mar 2024 12:57:53 -
> @@ -1,6 +1,6 @@
>  COMMENT= x86 with DOS emulator targeted at playing games
>  
> -VERSION= 2023.10.06
> +VERSION= 2024.03.01
>  DISTNAME=dosbox-x-v${VERSION}
>  PKGNAME= dosbox-x-${VERSION}
>  CATEGORIES=  games x11 emulators
> Index: distinfo
> ===
> RCS file: /cvs/ports/emulators/dosbox-x/distinfo,v
> diff -u -p -r1.1.1.1 distinfo
> --- distinfo  21 Feb 2024 12:29:10 -  1.1.1.1
> +++ distinfo  8 Mar 2024 12:57:53 -
> @@ -1,2 +1,2 @@
> -SHA256 (dosbox-x-v2023.10.06.tar.gz) = 
> ZfdW4p+cm4mP29IrDLmzskxuO+y13NpYiqIKP96VOaU=
> -SIZE (dosbox-x-v2023.10.06.tar.gz) = 119420489
> +SHA256 (dosbox-x-v2024.03.01.tar.gz) = 
> KonTGW3cFTYfbcfmqxQr/pWUXZPVJ8/Wusyh96QBpRM=
> +SIZE (dosbox-x-v2024.03.01.tar.gz) = 119593920
> Index: patches/patch-include_dos_inc_h
> ===
> RCS file: patches/patch-include_dos_inc_h
> diff -N patches/patch-include_dos_inc_h
> --- patches/patch-include_dos_inc_h   21 Feb 2024 12:29:10 -  1.1.1.1
> +++ /dev/null 1 Jan 1970 00:00:00 -
> @@ -1,11 +0,0 @@
>  include/dos_inc.h.orig.port  Mon Nov 27 22:44:22 2023
> -+++ include/dos_inc.hMon Nov 27 22:44:22 2023
> -@@ -390,7 +390,7 @@ static INLINE uint16_t DOS_PackDate(uint16_t year,uint
> - 
> - 
> - /* Remains some classes used to access certain things */
> --#define sOffset(s,m) ((char*)&(((s*)NULL)->m)-(char*)NULL)
> -+#define sOffset(s,m) offsetof(s,m)
> - #define sGet(s,m) GetIt(sizeof(((s *))->m),(PhysPt)sOffset(s,m))
> - #define sSave(s,m,val) SaveIt(sizeof(((s 
> *))->m),(PhysPt)sOffset(s,m),val)
> - 
> Index: patches/patch-src_dos_dos_programs_cpp
> ===
> RCS file: patches/patch-src_dos_dos_programs_cpp
> diff -N patches/patch-src_dos_dos_programs_cpp
> --- patches/patch-src_dos_dos_programs_cpp21 Feb 2024 12:29:10 -  
> 1.1.1.1
> +++ /dev/null 1 Jan 1970 00:00:00 -
> @@ -1,20 +0,0 @@
>  src/dos/dos_programs.cpp.origSat Oct  7 14:52:23 2023
> -+++ src/dos/dos_programs.cpp Fri Nov  3 05:51:29 2023
> -@@ -5926,7 +5926,7 @@ class IMGMOUNT : public Program {
> - FILE* newDisk = 
> fopen_lock(fname, ro ? "rb" : "rb+", ro);
> - if(!newDisk) {
> - 
> if(!qmount) WriteOut("Unable to open '%s'\n", fname);
> --return 
> NULL;
> -+return 
> false;
> - }
> - 
> QCow2Image::QCow2Header qcow2_header = QCow2Image::read_header(newDisk);
> - // uint64_t 
> sectors; /* unused */
> -@@ -5936,7 +5936,7 @@ class IMGMOUNT : public Program {
> - 
> uint32_t cluster_size = 1u << qcow2_header.cluster_bits;
> - 
> if((sizes[0] < 512) || ((cluster_size % sizes[0]) != 0)) {
> - 
> WriteOut("Sector size must be larger than 512 bytes and evenly divide the 
> image cluster size of %lu bytes.\n", cluster_size);
> --
> return 0;
> -+
> return false;
> - }
> - // 
> sectors = (uint64_t)qcow2_header.size / (uint64_t)sizes[0]; /* unused */
> - 
> imagesize = (uint32_t)(qcow2_header.size / 1024L);
> Index: pkg/PLIST
> ===
> RCS file: /cvs/ports/emulators/dosbox-x/pkg/PLIST,v
> diff -u -p -r1.1.1.1 PLIST
> --- pkg/PLIST 21 Feb 2024 12:29:10 -  1.1.1.1
> +++ pkg/PLIST 8 Mar 2024 12:57:53 -
> @@ -65,11 +65,13 @@ 

[UPDATE] emulators/dosbox-x-2024.03.01

2024-03-08 Thread SASANO Takayoshi
Hi,

here is the diff for dosbox-x 2023.10.06 -> 2024.03.01.

ok?

Index: Makefile
===
RCS file: /cvs/ports/emulators/dosbox-x/Makefile,v
diff -u -p -r1.1.1.1 Makefile
--- Makefile21 Feb 2024 12:29:10 -  1.1.1.1
+++ Makefile8 Mar 2024 12:57:53 -
@@ -1,6 +1,6 @@
 COMMENT=   x86 with DOS emulator targeted at playing games
 
-VERSION=   2023.10.06
+VERSION=   2024.03.01
 DISTNAME=  dosbox-x-v${VERSION}
 PKGNAME=   dosbox-x-${VERSION}
 CATEGORIES=games x11 emulators
Index: distinfo
===
RCS file: /cvs/ports/emulators/dosbox-x/distinfo,v
diff -u -p -r1.1.1.1 distinfo
--- distinfo21 Feb 2024 12:29:10 -  1.1.1.1
+++ distinfo8 Mar 2024 12:57:53 -
@@ -1,2 +1,2 @@
-SHA256 (dosbox-x-v2023.10.06.tar.gz) = 
ZfdW4p+cm4mP29IrDLmzskxuO+y13NpYiqIKP96VOaU=
-SIZE (dosbox-x-v2023.10.06.tar.gz) = 119420489
+SHA256 (dosbox-x-v2024.03.01.tar.gz) = 
KonTGW3cFTYfbcfmqxQr/pWUXZPVJ8/Wusyh96QBpRM=
+SIZE (dosbox-x-v2024.03.01.tar.gz) = 119593920
Index: patches/patch-include_dos_inc_h
===
RCS file: patches/patch-include_dos_inc_h
diff -N patches/patch-include_dos_inc_h
--- patches/patch-include_dos_inc_h 21 Feb 2024 12:29:10 -  1.1.1.1
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,11 +0,0 @@
 include/dos_inc.h.orig.portMon Nov 27 22:44:22 2023
-+++ include/dos_inc.h  Mon Nov 27 22:44:22 2023
-@@ -390,7 +390,7 @@ static INLINE uint16_t DOS_PackDate(uint16_t year,uint
- 
- 
- /* Remains some classes used to access certain things */
--#define sOffset(s,m) ((char*)&(((s*)NULL)->m)-(char*)NULL)
-+#define sOffset(s,m) offsetof(s,m)
- #define sGet(s,m) GetIt(sizeof(((s *))->m),(PhysPt)sOffset(s,m))
- #define sSave(s,m,val) SaveIt(sizeof(((s *))->m),(PhysPt)sOffset(s,m),val)
- 
Index: patches/patch-src_dos_dos_programs_cpp
===
RCS file: patches/patch-src_dos_dos_programs_cpp
diff -N patches/patch-src_dos_dos_programs_cpp
--- patches/patch-src_dos_dos_programs_cpp  21 Feb 2024 12:29:10 -  
1.1.1.1
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,20 +0,0 @@
 src/dos/dos_programs.cpp.orig  Sat Oct  7 14:52:23 2023
-+++ src/dos/dos_programs.cpp   Fri Nov  3 05:51:29 2023
-@@ -5926,7 +5926,7 @@ class IMGMOUNT : public Program {
-   FILE* newDisk = 
fopen_lock(fname, ro ? "rb" : "rb+", ro);
-   if(!newDisk) {
-   
if(!qmount) WriteOut("Unable to open '%s'\n", fname);
--  return 
NULL;
-+  return 
false;
-   }
-   
QCow2Image::QCow2Header qcow2_header = QCow2Image::read_header(newDisk);
-   // uint64_t 
sectors; /* unused */
-@@ -5936,7 +5936,7 @@ class IMGMOUNT : public Program {
-   
uint32_t cluster_size = 1u << qcow2_header.cluster_bits;
-   
if((sizes[0] < 512) || ((cluster_size % sizes[0]) != 0)) {
-   
WriteOut("Sector size must be larger than 512 bytes and evenly divide the image 
cluster size of %lu bytes.\n", cluster_size);
--  
return 0;
-+  
return false;
-   }
-   // 
sectors = (uint64_t)qcow2_header.size / (uint64_t)sizes[0]; /* unused */
-   
imagesize = (uint32_t)(qcow2_header.size / 1024L);
Index: pkg/PLIST
===
RCS file: /cvs/ports/emulators/dosbox-x/pkg/PLIST,v
diff -u -p -r1.1.1.1 PLIST
--- pkg/PLIST   21 Feb 2024 12:29:10 -  1.1.1.1
+++ pkg/PLIST   8 Mar 2024 12:57:53 -
@@ -65,11 +65,13 @@ share/dosbox-x/languages/de_pc98.lng
 share/dosbox-x/languages/en_US.lng
 share/dosbox-x/languages/es_ES.lng
 share/dosbox-x/languages/fr_FR.lng
+share/dosbox-x/languages/hu_HU.lng
 share/dosbox-x/languages/it_IT.lng
 share/dosbox-x/languages/ja_JP.lng
 share/dosbox-x/languages/ko_KR.lng
 share/dosbox-x/languages/nl_NL.lng
 share/dosbox-x/languages/pt_BR.lng