Package Details: srecord 1.65.0-2

Git Clone URL: https://aur.archlinux.org/srecord.git (read-only, click to copy)
Package Base: srecord
Description: The SRecord package is a collection of powerful tools for manipulating EPROM load files.
Upstream URL: https://srecord.sourceforge.net
Licenses: GPL3
Submitter: vicencb
Maintainer: ejona86
Last Packager: ejona86
Votes: 33
Popularity: 0.000005
First Submitted: 2009-11-07 18:45 (UTC)
Last Updated: 2025-08-31 05:16 (UTC)

Latest Comments

1 2 3 Next › Last »

ejona86 commented on 2025-08-31 05:19 (UTC)

@bariton, I don't know what problem you were having, but it shouldn't conflict with the system string.h because it is prefixed with srecord/. It builds fine for me (now with cstdint fixed) from a clean chroot. You might want to provide the error message you see without your patch.

bariton commented on 2025-08-11 12:36 (UTC)

There is a new issue with the include file srecord/string.h which collides with the system include file string.h. It can be fixed by using the following patch (which also contains the fix for the cstdint include issue reported earlier).

diff -u1r a/srec_cat/main.cc b/srec_cat/main.cc
--- a/srec_cat/main.cc
+++ b/srec_cat/main.cc
@@ -29,3 +29,3 @@
 #include <srecord/record.h>
-#include <srecord/string.h>
+#include <srecord/string-srecord.h>

diff -u1r a/srec_info/main.cc b/srec_info/main.cc
--- a/srec_info/main.cc
+++ b/srec_info/main.cc
@@ -30,3 +30,3 @@
 #include <srecord/record.h>
-#include <srecord/string.h>
+#include <srecord/string-srecord.h>

diff -u1r a/srecord/input/file/hp64k.h b/srecord/input/file/hp64k.h
--- a/srecord/input/file/hp64k.h
+++ b/srecord/input/file/hp64k.h
@@ -23,2 +23,3 @@
 #include <srecord/input/file.h>
+#include <cstdint>

diff -u1r a/srecord/input/file/logisim.cc b/srecord/input/file/logisim.cc
--- a/srecord/input/file/logisim.cc
+++ b/srecord/input/file/logisim.cc
@@ -25,3 +25,3 @@
 #include <srecord/input/file/logisim.h>
-#include <srecord/string.h>
+#include <srecord/string-srecord.h>

diff -u1r a/srecord/input/file/trs80.cc b/srecord/input/file/trs80.cc
--- a/srecord/input/file/trs80.cc
+++ b/srecord/input/file/trs80.cc
@@ -23,4 +23,4 @@

-#include <srecord/arglex/tool.h>
 #include <srecord/endian.h>
+#include <srecord/arglex/tool.h>
 #include <srecord/input/file/trs80.h>
diff -u1r a/srecord/input/generator.cc b/srecord/input/generator.cc
--- a/srecord/input/generator.cc
+++ b/srecord/input/generator.cc
@@ -27,3 +27,3 @@
 #include <srecord/record.h>
-#include <srecord/string.h>
+#include <srecord/string-srecord.h>

diff -u1r a/srecord/memory.cc b/srecord/memory.cc
--- a/srecord/memory.cc
+++ b/srecord/memory.cc
@@ -27,3 +27,3 @@
 #include <srecord/record.h>
-#include <srecord/string.h>
+#include <srecord/string-srecord.h>

diff -u1r a/srecord/memory.h b/srecord/memory.h
--- a/srecord/memory.h
+++ b/srecord/memory.h
@@ -28,3 +28,3 @@
 #include <srecord/memory/walker.h>
-#include <srecord/string.h>
+#include <srecord/string-srecord.h>

diff -u1r a/srecord/string/quote_c.cc b/srecord/string/quote_c.cc
--- a/srecord/string/quote_c.cc
+++ b/srecord/string/quote_c.cc
@@ -18,3 +18,3 @@

-#include <srecord/string.h>
+#include <srecord/string-srecord.h>

diff -u1r a/srecord/string/url_decode.cc b/srecord/string/url_decode.cc
--- a/srecord/string/url_decode.cc
+++ b/srecord/string/url_decode.cc
@@ -20,3 +20,3 @@

-#include <srecord/string.h>
+#include <srecord/string-srecord.h>

diff -u1r a/srecord/string/url_encode.cc b/srecord/string/url_encode.cc
--- a/srecord/string/url_encode.cc
+++ b/srecord/string/url_encode.cc
@@ -21,3 +21,3 @@

-#include <srecord/string.h>
+#include <srecord/string-srecord.h>

diff -u1r a/test/url_decode/main.cc b/test/url_decode/main.cc
--- a/test/url_decode/main.cc
+++ b/test/url_decode/main.cc
@@ -27,3 +27,3 @@
 #include <srecord/progname.h>
-#include <srecord/string.h>
+#include <srecord/string-srecord.h>
 #include <srecord/versn_stamp.h>
diff --git a/srecord/string.h b/srecord/string-srecord.h
similarity index 100%
rename from string.h
rename to string-srecord.h

cryolab commented on 2025-07-11 22:59 (UTC)

As mentioned by topongo the current version doesn't build. The following worked for me:

1) In the PKGBUILD add:

prepare() {
  cd ${pkgname}-${pkgver}-Source
  patch -Np1 -i ../../patch1.patch
}

2) Create a patch file patch1.patch next to the PKGBUILD file with the contents from topongo:

--- srecord-1.65.0-Source/srecord/input/file/hp64k.h    2022-10-09 10:53:05.000000000 +0200
+++ srecord-1.65.0-Source/srecord/input/file/hp64k.h.oth        2025-05-27 17:46:12.431178800 +0200
@@ -21,6 +21,7 @@
 #define LIB_INPUT_FILE_HP64K

 #include <srecord/input/file.h>
+#include <cstdint>

 namespace srecord {

3) Build with makepkg -si

topongo commented on 2025-05-27 15:59 (UTC)

hi, i had this error building the package using the latest version of libc++

/home/user/srecord/src/srecord-1.65.0-Source/./srecord/input/file/hp64k.h:82:21: error: ‘uint16_t’ has not been declared
   82 |     bool read_u16be(uint16_t *dest);
      |                     ^~~~~~~~

applying this patch made it work:

--- srecord-1.65.0-Source/srecord/input/file/hp64k.h    2022-10-09 10:53:05.000000000 +0200
+++ srecord-1.65.0-Source/srecord/input/file/hp64k.h.oth        2025-05-27 17:46:12.431178800 +0200
@@ -21,6 +21,7 @@
 #define LIB_INPUT_FILE_HP64K

 #include <srecord/input/file.h>
+#include <cstdint>

 namespace srecord {

ejona86 commented on 2024-01-22 20:31 (UTC)

@bigboi69: base-devel is an implicit build dependency for all AUR packages. base-devel depends on groff.

bigboi69 commented on 2024-01-22 19:56 (UTC)

I had an issue with dependencies on both an aur helper (yay) and cloning with makepkg -si

Looks like I had to add groff to the dependencies list after a clone

makedepends=('cmake' 'ghostscript' 'libgcrypt' 'doxygen' 'graphviz' 'psutils' 'git' 'groff')

vicencb commented on 2023-02-05 19:31 (UTC)

Fixed the git makedepend. Thanks for the detailed report!

ejona86 commented on 2023-02-03 05:23 (UTC) (edited on 2023-02-03 05:28 (UTC) by ejona86)

I was getting this error (see in configure.cmake how it does run the git command):

-- Could NOT find Git (missing: GIT_EXECUTABLE) 
CMake Error at etc/configure.cmake:42 (string):
  string sub-command REGEX, mode MATCHALL needs at least 5 arguments total to
  command.
Call Stack (most recent call first):
  CMakeLists.txt:40 (include)

I used this patch to workaround:

--- a/etc/configure.cmake   2022-10-09 01:53:05.000000000 -0700
+++ b/etc/configure.cmake   2023-02-02 21:07:24.849287552 -0800
@@ -39,7 +39,7 @@
     OUTPUT_VARIABLE DATES
     ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)

-  string(REGEX MATCHALL "[0-9][0-9][0-9][0-9]" all_years ${DATES})
+  string(REGEX MATCHALL "[0-9][0-9][0-9][0-9]" all_years "${DATES}")
   list(REMOVE_DUPLICATES all_years)
   string(REPLACE ";" ", " COPYRIGHT_YEARS "${all_years}")
 else()

But it still failed later:

/build/srecord/src/srecord-1.65.0-Source/srecord/versn_stamp.cc: In function ‘const char* srecord::copyright_years()’:
/build/srecord/src/srecord-1.65.0-Source/srecord/versn_stamp.cc:36:12: error: ‘COPYRIGHT_YEARS’ was not declared in this scope
   36 |     return COPYRIGHT_YEARS;
      |            ^~~~~~~~~~~~~~~

So it seems git really is a makedeps requirement. (I expect the copyright years is wrong when makedeps=(git), and it is probably using the PKGBUILD's git repo for the years, but whatever...)

vicencb commented on 2022-10-24 19:44 (UTC)

@xiretza: why? git is not mentioned in the documentation as a dependency and the PKGBUILD uses the packaged version, not the git version.

xiretza commented on 2022-10-23 19:03 (UTC)

Requires makedepends=(git).