Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Package request: JLink
@ 2025-01-24  0:13 xavierfortier1
  2025-01-24  3:00 ` classabbyamp
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: xavierfortier1 @ 2025-01-24  0:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 656 bytes --]

New issue by xavierfortier1 on void-packages repository

https://github.com/void-linux/void-packages/issues/54093

Description:
### Package name

jlink-software-and-documentation

### Package homepage

https://www.segger.com/downloads/jlink

### Description

JLink is a debug probe for embedded systems. It is widely used in embedded programming.

I tried to package it based on this [PKGBUILD](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=jlink-software-and-documentation) from the AUR, but I am having a hard time following it.

### Does the requested package meet the package requirements?

System

### Is the requested package released?

Yes

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Package request: JLink
  2025-01-24  0:13 [ISSUE] Package request: JLink xavierfortier1
@ 2025-01-24  3:00 ` classabbyamp
  2025-01-24  3:15 ` [ISSUE] [CLOSED] " xavierfortier1
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: classabbyamp @ 2025-01-24  3:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 208 bytes --]

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/issues/54093#issuecomment-2611440796

Comment:
our `openocd` package should support jlink via `libjaylink`

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ISSUE] [CLOSED] Package request: JLink
  2025-01-24  0:13 [ISSUE] Package request: JLink xavierfortier1
  2025-01-24  3:00 ` classabbyamp
@ 2025-01-24  3:15 ` xavierfortier1
  2025-01-24  3:15 ` xavierfortier1
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: xavierfortier1 @ 2025-01-24  3:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 659 bytes --]

Closed issue by xavierfortier1 on void-packages repository

https://github.com/void-linux/void-packages/issues/54093

Description:
### Package name

jlink-software-and-documentation

### Package homepage

https://www.segger.com/downloads/jlink

### Description

JLink is a debug probe for embedded systems. It is widely used in embedded programming.

I tried to package it based on this [PKGBUILD](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=jlink-software-and-documentation) from the AUR, but I am having a hard time following it.

### Does the requested package meet the package requirements?

System

### Is the requested package released?

Yes

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Package request: JLink
  2025-01-24  0:13 [ISSUE] Package request: JLink xavierfortier1
  2025-01-24  3:00 ` classabbyamp
  2025-01-24  3:15 ` [ISSUE] [CLOSED] " xavierfortier1
@ 2025-01-24  3:15 ` xavierfortier1
  2025-02-01  3:10 ` xavierfortier1
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: xavierfortier1 @ 2025-01-24  3:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 251 bytes --]

New comment by xavierfortier1 on void-packages repository

https://github.com/void-linux/void-packages/issues/54093#issuecomment-2611458346

Comment:
Great, thanks! I didn't know this package existed. I'll close this issue and reopen it if necessary.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Package request: JLink
  2025-01-24  0:13 [ISSUE] Package request: JLink xavierfortier1
                   ` (2 preceding siblings ...)
  2025-01-24  3:15 ` xavierfortier1
@ 2025-02-01  3:10 ` xavierfortier1
  2025-02-01  3:11 ` xavierfortier1
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: xavierfortier1 @ 2025-02-01  3:10 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2616 bytes --]

New comment by xavierfortier1 on void-packages repository

https://github.com/void-linux/void-packages/issues/54093#issuecomment-2628732274

Comment:
@classabbyamp Hey! I realised earlier today that the app that I am using is precompiled, so I cannot use libjaylink and I have not access to the code to compile it on my side... But I've managed to create a template that works! I feel it could be improved, especially where all the `ln` are used and the absence of checksum. I based this template on the one in the aur, so I am not sure if everything is ok. I am asking for your feedback if you have time. Thanks!

[Template](https://github.com/xavierfortier1/void-packages/tree/jlink/srcpkgs/jlink)

```bash
# Template file for 'jlink'
pkgname=jlink
version=8.12d
revision=1
archs="x86_64 aarch64 armv[67]* i686 ~*-musl"
hostmakedepends="curl"
short_desc="Segger JLink software & documentation pack for Linux"
maintainer="Xavier Fortier <xavier.fortier@proton.me>"
license="custom:Proprietary"
homepage="https://www.segger.com/downloads/jlink/"
changelog="https://www.segger.com/downloads/jlink/ReleaseNotes_JLink.html"
repository=nonfree
restricted=yes
nopie=yes
nostrip=yes

case "$XBPS_TARGET_MACHINE" in
    x86_64)
	_arch="x86_64"
	;;
    i686)
	_arch="i386"
	;;
    aarch64)
	_arch="arm64"
	;;
    armv[67]*)
	_arch="arm"
	;;
    *)
	return;
	;;
esac

_archive="JLink_Linux_V${version/./}_${_arch}.tgz"
distfiles="https://www.segger.com/downloads/jlink/${_archive}"

do_fetch() {
    env curl -o "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_archive}" \
	     -d accept_license_agreement=accepted -d non_emb_ctr=confirmed \
	     "${distfiles}"
}

do_install() {
	vmkdir opt/SEGGER/JLink
	vmkdir usr/bin
	vmkdir etc
	vmkdir usr/lib/udev/rules.d
	vmkdir usr/share/pixmaps
	vmkdir "usr/share/licenses/${pkgname}"
	vmkdir "usr/share/doc/${pkgname}"

	vinstall "${FILESDIR}/JLink.svg" 644 usr/share/pixmaps
	for f in J* DevProExe DDC* Samples ETC README.txt Firmwares GDBServer lib*; do
	    vcopy "${f}" opt/SEGGER/JLink
	done
	if [ "${XBPS_TARGET_MACHINE}" = "x86_64" ]; then
	    vcopy x86 opt/SEGGER/JLink
	fi

	vcopy ETC/JFlash etc

	vsed -i 99-jlink.rules -e 's/0x//g'
	vinstall 99-jlink.rules 644 usr/lib/udev/rules.d
	vinstall "${FILESDIR}/99-jlink-cmsis-dap.rules" 644 usr/lib/udev/rules.d

	for f in J* DevProExe; do
	    ln -s "/opt/SEGGER/JLink/${f}" "${DESTDIR}/usr/bin"
	done

	ln -s /opt/SEGGER/JLink/Doc/LicenseIncGUI.txt "${DESTDIR}/usr/share/licenses/${pkgname}"

	for f in Doc/Manuals/* Doc/ReleaseNotes; do
	    ln -s "/opt/SEGGER/JLink/${f}" "${DESTDIR}/usr/share/doc/${pkgname}"
	done
}

```

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Package request: JLink
  2025-01-24  0:13 [ISSUE] Package request: JLink xavierfortier1
                   ` (3 preceding siblings ...)
  2025-02-01  3:10 ` xavierfortier1
@ 2025-02-01  3:11 ` xavierfortier1
  2025-02-01  4:21 ` classabbyamp
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: xavierfortier1 @ 2025-02-01  3:11 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2660 bytes --]

New comment by xavierfortier1 on void-packages repository

https://github.com/void-linux/void-packages/issues/54093#issuecomment-2628732274

Comment:
@classabbyamp Hey! I realised earlier today that the app that I am using is precompiled, so I cannot use libjaylink and I have not access to the code to compile it on my side... But I've managed to create a template that works (I installed jlink and programmed a devkit)! I feel it could be improved, especially where all the `ln` are used and the absence of checksum. I based this template on the one in the aur, so I am not sure if everything is ok. I am asking for your feedback if you have time. Thanks!

[Template](https://github.com/xavierfortier1/void-packages/tree/jlink/srcpkgs/jlink)

```bash
# Template file for 'jlink'
pkgname=jlink
version=8.12d
revision=1
archs="x86_64 aarch64 armv[67]* i686 ~*-musl"
hostmakedepends="curl"
short_desc="Segger JLink software & documentation pack for Linux"
maintainer="Xavier Fortier <xavier.fortier@proton.me>"
license="custom:Proprietary"
homepage="https://www.segger.com/downloads/jlink/"
changelog="https://www.segger.com/downloads/jlink/ReleaseNotes_JLink.html"
repository=nonfree
restricted=yes
nopie=yes
nostrip=yes

case "$XBPS_TARGET_MACHINE" in
    x86_64)
	_arch="x86_64"
	;;
    i686)
	_arch="i386"
	;;
    aarch64)
	_arch="arm64"
	;;
    armv[67]*)
	_arch="arm"
	;;
    *)
	return;
	;;
esac

_archive="JLink_Linux_V${version/./}_${_arch}.tgz"
distfiles="https://www.segger.com/downloads/jlink/${_archive}"

do_fetch() {
    env curl -o "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_archive}" \
	     -d accept_license_agreement=accepted -d non_emb_ctr=confirmed \
	     "${distfiles}"
}

do_install() {
	vmkdir opt/SEGGER/JLink
	vmkdir usr/bin
	vmkdir etc
	vmkdir usr/lib/udev/rules.d
	vmkdir usr/share/pixmaps
	vmkdir "usr/share/licenses/${pkgname}"
	vmkdir "usr/share/doc/${pkgname}"

	vinstall "${FILESDIR}/JLink.svg" 644 usr/share/pixmaps
	for f in J* DevProExe DDC* Samples ETC README.txt Firmwares GDBServer lib*; do
	    vcopy "${f}" opt/SEGGER/JLink
	done
	if [ "${XBPS_TARGET_MACHINE}" = "x86_64" ]; then
	    vcopy x86 opt/SEGGER/JLink
	fi

	vcopy ETC/JFlash etc

	vsed -i 99-jlink.rules -e 's/0x//g'
	vinstall 99-jlink.rules 644 usr/lib/udev/rules.d
	vinstall "${FILESDIR}/99-jlink-cmsis-dap.rules" 644 usr/lib/udev/rules.d

	for f in J* DevProExe; do
	    ln -s "/opt/SEGGER/JLink/${f}" "${DESTDIR}/usr/bin"
	done

	ln -s /opt/SEGGER/JLink/Doc/LicenseIncGUI.txt "${DESTDIR}/usr/share/licenses/${pkgname}"

	for f in Doc/Manuals/* Doc/ReleaseNotes; do
	    ln -s "/opt/SEGGER/JLink/${f}" "${DESTDIR}/usr/share/doc/${pkgname}"
	done
}

```

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Package request: JLink
  2025-01-24  0:13 [ISSUE] Package request: JLink xavierfortier1
                   ` (4 preceding siblings ...)
  2025-02-01  3:11 ` xavierfortier1
@ 2025-02-01  4:21 ` classabbyamp
  2025-02-01 14:32 ` xavierfortier1
  2025-02-01 14:41 ` classabbyamp
  7 siblings, 0 replies; 9+ messages in thread
From: classabbyamp @ 2025-02-01  4:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 163 bytes --]

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/issues/54093#issuecomment-2628760008

Comment:
looks ok to me

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Package request: JLink
  2025-01-24  0:13 [ISSUE] Package request: JLink xavierfortier1
                   ` (5 preceding siblings ...)
  2025-02-01  4:21 ` classabbyamp
@ 2025-02-01 14:32 ` xavierfortier1
  2025-02-01 14:41 ` classabbyamp
  7 siblings, 0 replies; 9+ messages in thread
From: xavierfortier1 @ 2025-02-01 14:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 480 bytes --]

New comment by xavierfortier1 on void-packages repository

https://github.com/void-linux/void-packages/issues/54093#issuecomment-2628975853

Comment:
Is the team interested with this package? or `openocd` with `libjaylink` is the way to go?  

Also, I am not sure how this works, but if I have a file that is already there, does the package manager simply "replace" the existing file. I am thinking about this line : `vcopy ETC/JFlash etc`. Does JFlash will be entirely replaced?

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Package request: JLink
  2025-01-24  0:13 [ISSUE] Package request: JLink xavierfortier1
                   ` (6 preceding siblings ...)
  2025-02-01 14:32 ` xavierfortier1
@ 2025-02-01 14:41 ` classabbyamp
  7 siblings, 0 replies; 9+ messages in thread
From: classabbyamp @ 2025-02-01 14:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 232 bytes --]

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/issues/54093#issuecomment-2628978828

Comment:
we're not interested at least because it's proprietary and just a binary repackage 

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-02-01 14:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-24  0:13 [ISSUE] Package request: JLink xavierfortier1
2025-01-24  3:00 ` classabbyamp
2025-01-24  3:15 ` [ISSUE] [CLOSED] " xavierfortier1
2025-01-24  3:15 ` xavierfortier1
2025-02-01  3:10 ` xavierfortier1
2025-02-01  3:11 ` xavierfortier1
2025-02-01  4:21 ` classabbyamp
2025-02-01 14:32 ` xavierfortier1
2025-02-01 14:41 ` classabbyamp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).