Skip to content

Commit a00fd80

Browse files
committed
msedit: Add at v1.2.1
**Summary** A simple editor for simple needs. This editor pays homage to the classic MS-DOS Editor, but with a modern interface and input controls similar to VS Code. The goal is to provide an accessible editor that even users largely unfamiliar with terminals can easily use. Resolves: #6567
1 parent 3fd0cc8 commit a00fd80

File tree

9 files changed

+243
-0
lines changed

9 files changed

+243
-0
lines changed

packages/m/msedit/MAINTAINERS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
This file is used to indicate primary maintainership for this package. A package may list more than one maintainer to avoid bus factor issues. People on this list may be considered “subject-matter experts”. Please note that Solus staff may need to perform necessary rebuilds, upgrades, or security fixes as part of the normal maintenance of the Solus package repository. If you believe this package requires an update, follow documentation from https://help.getsol.us/docs/packaging/procedures/request-a-package-update. In the event that this package becomes insufficiently maintained, the Solus staff reserves the right to request a new maintainer, or deprecate and remove this package from the repository entirely.
2+
3+
- Jared Cervantes
4+
- Matrix: @jaredy89:matrix.org
5+
- Email: jared@jaredcervantes.com

packages/m/msedit/abi_used_libs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
ld-linux-x86-64.so.2
2+
libc.so.6
3+
libgcc_s.so.1
4+
libm.so.6

packages/m/msedit/abi_used_symbols

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
ld-linux-x86-64.so.2:__tls_get_addr
2+
libc.so.6:__errno_location
3+
libc.so.6:__libc_start_main
4+
libc.so.6:__xpg_strerror_r
5+
libc.so.6:abort
6+
libc.so.6:bcmp
7+
libc.so.6:calloc
8+
libc.so.6:clock_gettime
9+
libc.so.6:close
10+
libc.so.6:closedir
11+
libc.so.6:dirfd
12+
libc.so.6:dl_iterate_phdr
13+
libc.so.6:dladdr
14+
libc.so.6:dlopen
15+
libc.so.6:dlsym
16+
libc.so.6:fcntl
17+
libc.so.6:free
18+
libc.so.6:fstat
19+
libc.so.6:fstat64
20+
libc.so.6:fstatat64
21+
libc.so.6:getauxval
22+
libc.so.6:getcwd
23+
libc.so.6:getenv
24+
libc.so.6:ioctl
25+
libc.so.6:isatty
26+
libc.so.6:lseek64
27+
libc.so.6:malloc
28+
libc.so.6:memcpy
29+
libc.so.6:memmove
30+
libc.so.6:memset
31+
libc.so.6:mmap
32+
libc.so.6:mmap64
33+
libc.so.6:mprotect
34+
libc.so.6:munmap
35+
libc.so.6:nanosleep
36+
libc.so.6:open
37+
libc.so.6:open64
38+
libc.so.6:opendir
39+
libc.so.6:pause
40+
libc.so.6:poll
41+
libc.so.6:posix_memalign
42+
libc.so.6:ppoll
43+
libc.so.6:pthread_attr_destroy
44+
libc.so.6:pthread_attr_getguardsize
45+
libc.so.6:pthread_attr_getstack
46+
libc.so.6:pthread_getattr_np
47+
libc.so.6:pthread_key_create
48+
libc.so.6:pthread_key_delete
49+
libc.so.6:pthread_self
50+
libc.so.6:pthread_setspecific
51+
libc.so.6:read
52+
libc.so.6:readdir64
53+
libc.so.6:readlink
54+
libc.so.6:realloc
55+
libc.so.6:realpath
56+
libc.so.6:sigaction
57+
libc.so.6:sigaltstack
58+
libc.so.6:signal
59+
libc.so.6:stat64
60+
libc.so.6:strerror
61+
libc.so.6:strlen
62+
libc.so.6:syscall
63+
libc.so.6:sysconf
64+
libc.so.6:tcgetattr
65+
libc.so.6:tcsetattr
66+
libc.so.6:write
67+
libc.so.6:writev
68+
libgcc_s.so.1:_Unwind_Backtrace
69+
libgcc_s.so.1:_Unwind_GetDataRelBase
70+
libgcc_s.so.1:_Unwind_GetIP
71+
libgcc_s.so.1:_Unwind_GetIPInfo
72+
libgcc_s.so.1:_Unwind_GetLanguageSpecificData
73+
libgcc_s.so.1:_Unwind_GetRegionStart
74+
libgcc_s.so.1:_Unwind_GetTextRelBase
75+
libgcc_s.so.1:_Unwind_Resume
76+
libgcc_s.so.1:_Unwind_SetGR
77+
libgcc_s.so.1:_Unwind_SetIP
78+
libm.so.6:powf
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
--- a/rust-toolchain.toml
2+
+++ b/rust-toolchain.toml
3+
@@ -1,2 +1,2 @@
4+
[toolchain]
5+
-channel = "nightly"
6+
+channel = "stable"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
--- a/src/sys/unix.rs
2+
+++ b/src/sys/unix.rs
3+
@@ -462,7 +462,7 @@ pub unsafe fn get_proc_address<T>(handle: NonNull<c_void>, name: &CStr) -> app
4+
5+
pub fn load_libicuuc() -> apperr::Result<NonNull<c_void>> {
6+
- unsafe { load_library(c"libicuuc.so") }
7+
+ unsafe { load_library(c"libicuuc.so.76") }
8+
}
9+
10+
pub fn load_libicui18n() -> apperr::Result<NonNull<c_void>> {
11+
- unsafe { load_library(c"libicui18n.so") }
12+
+ unsafe { load_library(c"libicui18n.so.76") }
13+
}
14+
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<component type="desktop-application">
3+
<id>com.microsoft.edit</id>
4+
5+
<name>Microsoft Edit</name>
6+
<summary>Microsoft Edit - A simple editor for simple needs</summary>
7+
8+
<metadata_license>CC0-1.0</metadata_license>
9+
<project_license>MIT</project_license>
10+
11+
<description>
12+
<p>
13+
This editor pays homage to the classic MS-DOS Editor, but with a modern
14+
interface and input controls similar to VS Code. The goal is to provide an
15+
accessible editor that even users largely unfamiliar with terminals can
16+
easily use.
17+
</p>
18+
</description>
19+
20+
<launchable type="desktop-id">com.microsoft.edit.desktop</launchable>
21+
<screenshots>
22+
<screenshot type="default">
23+
<image>https://raw.githubusercontent.com/microsoft/edit/main/assets/edit_hero_image.png</image>
24+
<caption>Microsoft Edit interface</caption>
25+
</screenshot>
26+
</screenshots>
27+
<url type="homepage">https://github.com/microsoft/edit</url>
28+
<url type="bugtracker">https://github.com/microsoft/edit/issues</url>
29+
<developer_name>Microsoft</developer_name>
30+
</component>

packages/m/msedit/monitoring.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
releases:
2+
id: 378257
3+
rss: https://github.com/microsoft/edit/tags.atom
4+
# No known CPE, checked 2025-10-18
5+
security:
6+
cpe: ~

packages/m/msedit/package.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name : msedit
2+
version : 1.2.1
3+
release : 1
4+
source :
5+
- https://github.com/microsoft/edit/archive/refs/tags/v1.2.1.tar.gz : 41c719b08212fa4ab6e434a53242b2718ba313e8d24d090f244bb857d6a9d0fd
6+
homepage : https://github.com/microsoft/edit
7+
license : MIT
8+
component : editor
9+
networking : true
10+
summary : Microsoft Edit - A simple editor for simple needs
11+
description: |
12+
This editor pays homage to the classic MS-DOS Editor, but with a modern
13+
interface and input controls similar to VS Code. The goal is to provide an
14+
accessible editor that even users largely unfamiliar with terminals can
15+
easily use.
16+
17+
builddeps :
18+
- rust
19+
20+
rundeps :
21+
- libicu
22+
23+
setup : |
24+
# Patch rust-toolchain.toml to use stable instead of nightly
25+
%patch -p1 -i $pkgfiles/0001-solus-Use-stable-rust-toolchain.patch
26+
# Patch to use versioned ICU library names (libicuuc.so.76, libicui18n.so.76)
27+
%patch -p1 -i $pkgfiles/0002-solus-Use-versioned-ICU-libraries.patch
28+
29+
# Fix desktop file to use msedit instead of edit
30+
sed -i 's/Exec=edit %U/Exec=msedit %U/' assets/com.microsoft.edit.desktop
31+
32+
# Desktop file - add missing Categories field and fix icon name
33+
sed -e '/^Terminal=/a Categories=Utility;TextEditor;' \
34+
-e 's/^Icon=.*/Icon=msedit/' \
35+
assets/com.microsoft.edit.desktop > com.microsoft.edit.desktop
36+
37+
%cargo_fetch
38+
39+
build : |
40+
# Allow nightly features on stable Rust (as recommended by upstream)
41+
export RUSTC_BOOTSTRAP=1
42+
43+
%cargo_build
44+
45+
install : |
46+
install -Dm00755 $workdir/target/release/edit $installdir/usr/bin/msedit
47+
install -Dm00644 assets/edit.svg $installdir/usr/share/icons/hicolor/scalable/apps/msedit.svg
48+
install -Dm00644 com.microsoft.edit.desktop $installdir/usr/share/applications/com.microsoft.edit.desktop
49+
install -Dm00644 $pkgfiles/com.microsoft.edit.metainfo.xml $installdir/usr/share/metainfo/com.microsoft.edit.metainfo.xml
50+
install -Dm00644 assets/manpage/edit.1 $installdir/usr/share/man/man1/msedit.1
51+
52+
check : |
53+
# Allow nightly features on stable Rust (as recommended by upstream)
54+
export RUSTC_BOOTSTRAP=1
55+
%cargo_test -- --ignored

packages/m/msedit/pspec_x86_64.xml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<PISI>
2+
<Source>
3+
<Name>msedit</Name>
4+
<Homepage>https://github.com/microsoft/edit</Homepage>
5+
<Packager>
6+
<Name>Jared Cervantes</Name>
7+
<Email>jared@jaredcervantes.com</Email>
8+
</Packager>
9+
<License>MIT</License>
10+
<PartOf>editor</PartOf>
11+
<Summary xml:lang="en">Microsoft Edit - A simple editor for simple needs</Summary>
12+
<Description xml:lang="en">This editor pays homage to the classic MS-DOS Editor, but with a modern
13+
interface and input controls similar to VS Code. The goal is to provide an
14+
accessible editor that even users largely unfamiliar with terminals can
15+
easily use.
16+
</Description>
17+
<Archive type="binary" sha1sum="79eb0752a961b8e0d15c77d298c97498fbc89c5a">https://sources.getsol.us/README.Solus</Archive>
18+
</Source>
19+
<Package>
20+
<Name>msedit</Name>
21+
<Summary xml:lang="en">Microsoft Edit - A simple editor for simple needs</Summary>
22+
<Description xml:lang="en">This editor pays homage to the classic MS-DOS Editor, but with a modern
23+
interface and input controls similar to VS Code. The goal is to provide an
24+
accessible editor that even users largely unfamiliar with terminals can
25+
easily use.
26+
</Description>
27+
<PartOf>editor</PartOf>
28+
<Files>
29+
<Path fileType="executable">/usr/bin/msedit</Path>
30+
<Path fileType="data">/usr/share/applications/com.microsoft.edit.desktop</Path>
31+
<Path fileType="data">/usr/share/icons/hicolor/scalable/apps/msedit.svg</Path>
32+
<Path fileType="man">/usr/share/man/man1/msedit.1.zst</Path>
33+
<Path fileType="data">/usr/share/metainfo/com.microsoft.edit.metainfo.xml</Path>
34+
</Files>
35+
</Package>
36+
<History>
37+
<Update release="1">
38+
<Date>2025-11-20</Date>
39+
<Version>1.2.1</Version>
40+
<Comment>Packaging update</Comment>
41+
<Name>Jared Cervantes</Name>
42+
<Email>jared@jaredcervantes.com</Email>
43+
</Update>
44+
</History>
45+
</PISI>

0 commit comments

Comments
 (0)