From b376fae8b9a0160e30973fca4530aead92d29905c778d49d5e4c3f1b10f3866e Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Sat, 16 Dec 2023 01:08:08 +0000 Subject: [PATCH] - Move SRCDIR and HAREPATHs to `/usr/src` instead from `/usr/lib` or `/usr/lib64`. Respect defaults if possible. - Update to version 1702417101.ce67adb5: * +libc: Avoid overriding the default linker script on other platforms * FreeBSD: Fix build with +libc * os fs.ha: s/errors::errno/fs_to_errno/ * OpenBSD: implement os::mkfifo and os::mkfile * math: Accept types::signed instead of integer in absi * cmd/{hare,haredoc}: remove unused imports * cmd/{hare,haredoc}: Don't allocate tags * haretype: use system architecture * os: add arch type and functions * cmd/haredoc: replace split with rtokenize * io: improve seek and whence docs * test: display special msg when no tests are run * hare deps: print more intuitive msg when no deps * os+linux: add mkfile * os+linux: s/Unix/Unix-like/ * haredoc: submodules newline fixes * hare build: fix order of flags * getopt: improve docs * all: always use tabs for indentation * hare::parse::doc: add docs * haredoc: error out when more than one arg supplied * docs: rename hare-doc(5) to haredoc(5) * os+openbsd: remove extra License: header * rt+linux: fix some types * hare::parse: improve assign expr error message * strings: use type assertion in iter tests * strings: test contains with no variadic arguments OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/hare?expand=0&rev=25 --- _servicedata | 2 +- hare-1701969360.dbd2d7a5.tar.zst | 3 -- hare-1702417101.ce67adb5.tar.zst | 3 ++ hare.changes | 49 ++++++++++++++++++++++++++++++++ hare.obsinfo | 6 ++-- hare.spec | 20 ++++++------- 6 files changed, 66 insertions(+), 17 deletions(-) delete mode 100644 hare-1701969360.dbd2d7a5.tar.zst create mode 100644 hare-1702417101.ce67adb5.tar.zst diff --git a/_servicedata b/_servicedata index cf048ca..2577a6f 100644 --- a/_servicedata +++ b/_servicedata @@ -1,4 +1,4 @@ https://git.sr.ht/~sircmpwn/hare - dbd2d7a542ae38337ff7e34758262bd0a1cebcb0 \ No newline at end of file + ce67adb5aea8b1d17d366700551806f868585dcc \ No newline at end of file diff --git a/hare-1701969360.dbd2d7a5.tar.zst b/hare-1701969360.dbd2d7a5.tar.zst deleted file mode 100644 index a9cc9f4..0000000 --- a/hare-1701969360.dbd2d7a5.tar.zst +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8bfbe621880cdbc5976709ca9f9377e3be61f2b06efed49a83a71f1ff22e085a -size 623784 diff --git a/hare-1702417101.ce67adb5.tar.zst b/hare-1702417101.ce67adb5.tar.zst new file mode 100644 index 0000000..3e1be7e --- /dev/null +++ b/hare-1702417101.ce67adb5.tar.zst @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:21f09a069c0631f1b4a4c5994a08c2884fc22868e698e53f2f7572e3a2115d86 +size 625321 diff --git a/hare.changes b/hare.changes index 38e2149..bda4890 100644 --- a/hare.changes +++ b/hare.changes @@ -1,3 +1,52 @@ +------------------------------------------------------------------- +Sat Dec 16 01:03:47 UTC 2023 - Soc Virnyl Estela + +- Move SRCDIR and HAREPATHs to `/usr/src` instead from `/usr/lib` + or `/usr/lib64`. Respect defaults if possible. +- Update to version 1702417101.ce67adb5: + * +libc: Avoid overriding the default linker script on other platforms + * FreeBSD: Fix build with +libc + * os fs.ha: s/errors::errno/fs_to_errno/ + * OpenBSD: implement os::mkfifo and os::mkfile + * math: Accept types::signed instead of integer in absi + * cmd/{hare,haredoc}: remove unused imports + * cmd/{hare,haredoc}: Don't allocate tags + * haretype: use system architecture + * os: add arch type and functions + * cmd/haredoc: replace split with rtokenize + * io: improve seek and whence docs + * test: display special msg when no tests are run + * hare deps: print more intuitive msg when no deps + * os+linux: add mkfile + * os+linux: s/Unix/Unix-like/ + * haredoc: submodules newline fixes + * hare build: fix order of flags + * getopt: improve docs + * all: always use tabs for indentation + * hare::parse::doc: add docs + * haredoc: error out when more than one arg supplied + * docs: rename hare-doc(5) to haredoc(5) + * os+openbsd: remove extra License: header + * rt+linux: fix some types + * hare::parse: improve assign expr error message + * strings: use type assertion in iter tests + * strings: test contains with no variadic arguments + * strings: test join with only one variadic argument + * strings: test concat with only one argument + * hare::ast: remove inaccurate comment + * path: mention fs::resolve in README + * docs/rfc-template: wrap at 72 columns + * memio+test: use defer for closing streams + * cmd/*: fix memory leaks + * ascii: add strlower_buf and strupper_buf + * hare::parse: disallow mixing @init, @fini, and @test + * hare::ast: s/constant/literal/g + * hare build: only overwrite executable files + * hare::parse+test: add labelled compound test + * hare::*: support for/switch/match labels + * all: update labelled loop syntax + * cmd::hare add comments and cleanup + ------------------------------------------------------------------- Fri Dec 8 14:27:46 UTC 2023 - Soc Virnyl Estela diff --git a/hare.obsinfo b/hare.obsinfo index 2864a97..53fa766 100644 --- a/hare.obsinfo +++ b/hare.obsinfo @@ -1,4 +1,4 @@ name: hare -version: 1701969360.dbd2d7a5 -mtime: 1701969360 -commit: dbd2d7a542ae38337ff7e34758262bd0a1cebcb0 +version: 1702417101.ce67adb5 +mtime: 1702417101 +commit: ce67adb5aea8b1d17d366700551806f868585dcc diff --git a/hare.spec b/hare.spec index ef53abd..f4d8cb4 100644 --- a/hare.spec +++ b/hare.spec @@ -15,10 +15,11 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # + %bcond_without test Name: hare Release: 0 -Version: 1701969360.dbd2d7a5 +Version: 1702417101.ce67adb5 Summary: Hare system programming language Group: Development/Tools/Building License: MPL-2.0 @@ -26,14 +27,14 @@ URL: https://harelang.org Source0: %{name}-%{version}.tar.zst Source1: %{name}-rpmlintrc Source2: README-suse-maint.md +BuildRequires: binutils BuildRequires: gcc BuildRequires: harec BuildRequires: make BuildRequires: qbe -BuildRequires: binutils BuildRequires: scdoc -BuildRequires: zstd BuildRequires: timezone +BuildRequires: zstd Requires: harec Requires: qbe Requires: timezone @@ -55,8 +56,8 @@ cat > config.mk <<-SH PREFIX = %{_prefix} BINDIR = %{_bindir} MANDIR = %{_mandir} -SRCDIR = %{_libdir} -STDLIB = %{_libdir}/%{name}/stdlib +SRCDIR = %{_prefix}/src +STDLIB = %{_prefix}/src/%{name}/stdlib ## Build configuration @@ -69,7 +70,6 @@ QBEFLAGS = ASFLAGS = LDLINKFLAGS = --gc-sections -z noexecstack - # commands used by the build script HAREC = harec HAREFLAGS = @@ -84,7 +84,7 @@ HARECACHE = .cache BINOUT = .bin # variables that will be embedded in the binary with the -D definitions -HAREPATH = %{_libdir}/%{name}/stdlib:%{_libdir}/%{name}/third-party +HAREPATH = %{_prefix}/src/%{name}/stdlib:%{_prefix}/src/%{name}/third-party VERSION = %{version} # Cross-compiler toolchains @@ -118,7 +118,7 @@ make %{?_smp_mflags} DESTDIR="%{buildroot}" install %if %{with test} %check -# Enable only for tumbleweed/factory since +# Enable only for tumbleweed/factory since # Timezone package seems to fail this :D %if 0%{?suse_version} > 1600 export CFLAGS="%optflags" @@ -136,7 +136,7 @@ make %{?_smp_mflags} check %{_bindir}/%{name}doc %{_mandir}/man1/* %{_mandir}/man5/* -%dir %{_libdir}/%{name} -%{_libdir}/%{name}/* +%dir %{_prefix}/src/hare +%{_prefix}/src/hare/* %changelog