You are not logged in.

#1 2018-05-16 21:49:35

zookah
Member
Registered: 2018-05-16
Posts: 7

[SOLVED] PKGBUILD Request: OpenSourcePhysics/tracker

Hi,

I am a physics teacher and just moved from ubuntu to Arch. I'm loving it!

I need to use a video analysis software called Tracker (https://physlets.org/tracker) with my students and tried to install from the .run file without success.

After: sudo ./Tracker-5.0.5-linux-64bit-installer.run appears  a message "error reading the file: /root/.config/user-dirs.dirs".

The sources are here: https://github.com/OpenSourcePhysics/tracker

It requires: https://github.com/OpenSourcePhysics/osp and https://github.com/OpenSourcePhysics/vi … libraries/

Can anyone create the PKGBUILD for it?

It will helps a lot.

Thanks!

Last edited by zookah (2018-05-27 00:30:26)

Offline

#2 2018-05-16 22:09:06

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] PKGBUILD Request: OpenSourcePhysics/tracker

Welcome to the forums zookah smile

It appears to be just a Java application, there should be no need to struggle with the debian run file.

Take a look at...
https://wiki.archlinux.org/index.php/Creating_packages
https://wiki.archlinux.org/index.php/PKGBUILD
https://wiki.archlinux.org/index.php/Ja … guidelines

Post what you can figure out yourself, and we'll help tweak it with you smile


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2018-05-17 01:15:35

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 1,096

Re: [SOLVED] PKGBUILD Request: OpenSourcePhysics/tracker

zookah wrote:

error reading the file: /root/.config/user-dirs.dirs

I took a quick look and packaging this may be harder than it looks, *if* you need the Xuggle Video features since there is little information on exactly that library needs to be included on the Java launch parameters. I tried simply adding the jars to the classpath and it wouldn't recognize the libs. If you do not need Xuggle, it's very simple, since you can launch the .jar that is available on the main website as a non-root user. I couldn't find a compatibility section on the web page, so I assume you need Java 8.

$ java -jar tracker-5.0.5.jar

If you *do* need the Xuggle Video features, you could try installing xdg-user-dirs [extra]. That should get you to be able to produce that user-dirs.dirs file via xdg-user-dirs-update. I do not know if there are any unwanted side-effects.

Back to your original question: If you want to build a true Arch package, I would build a PKGBUILD that pulls a specific upstream jar directly from the main website (https://physlets.org/tracker/archives/). Then pull in the required other libraries in binary form from https://github.com/OpenSourcePhysics/vi … /libraries GitHub page.  The hard part is likely how to investigate how the Xuggle library needs to be added for tracker to recognize it. I would assume a properly crafted "tracker.sh" that builds the right classpath would do the trick, but I couldn't figure out why more is needed for tracker to recognize Xuggle. Maybe xdg-user-dirs is truly a dependency for tracker?

Offline

#4 2018-05-25 05:30:06

ydallilar
Member
Registered: 2018-05-24
Posts: 4

Re: [SOLVED] PKGBUILD Request: OpenSourcePhysics/tracker

Creating a package for this from scratch will probably be very time consuming. But luckily, there is a batch mode for the installer. which tries to install .desktop file to /usr/share/applications than fails (as it should be). Assuming the installer does the important stuff up to that point, I let the script ignore the error and continue. Hopefully, there is no side effects. With a bit tinkering to launcher files, tracker seems to be working.

If you would like to test, clone the repo https://github.com/pssncp142/aur-osp-tracker, go in the directory and run

makepkg -si

I forked the repo from someone else so I am not sure about dependencies etc.

If this works, it is better to use this instead of direct installer method since uninstaller that comes with tracker leaves leftover files.

Good luck.

Offline

#5 2018-05-26 14:14:51

zookah
Member
Registered: 2018-05-16
Posts: 7

Re: [SOLVED] PKGBUILD Request: OpenSourcePhysics/tracker

Thank you for your answer. I read the docs but my code skills are very limited. To start, I tried to build a jar file but could run (lack of the manifesto file).

After, I installed the Eclipse IDE but got errors to run the environment. Finally, I installed the IntelliJ IDEA. It ran but my skills have failed me.


Slithery wrote:

Welcome to the forums zookah smile

It appears to be just a Java application, there should be no need to struggle with the debian run file.

Take a look at...
https://wiki.archlinux.org/index.php/Creating_packages
https://wiki.archlinux.org/index.php/PKGBUILD
https://wiki.archlinux.org/index.php/Ja … guidelines

Post what you can figure out yourself, and we'll help tweak it with you smile

Offline

#6 2018-05-26 14:21:24

zookah
Member
Registered: 2018-05-16
Posts: 7

Re: [SOLVED] PKGBUILD Request: OpenSourcePhysics/tracker

The Xuggle is really needed to use Tracker properly. Without it, Tracker cannot open videos just pictures and animated gifs.

I installed xdg-user-dirs and ran the jar file but Tracker still show a message about Xuggle missing.

Thank you very much for your help!

twelveeighty wrote:
zookah wrote:

error reading the file: /root/.config/user-dirs.dirs

I took a quick look and packaging this may be harder than it looks, *if* you need the Xuggle Video features since there is little information on exactly that library needs to be included on the Java launch parameters. I tried simply adding the jars to the classpath and it wouldn't recognize the libs. If you do not need Xuggle, it's very simple, since you can launch the .jar that is available on the main website as a non-root user. I couldn't find a compatibility section on the web page, so I assume you need Java 8.

$ java -jar tracker-5.0.5.jar

If you *do* need the Xuggle Video features, you could try installing xdg-user-dirs [extra]. That should get you to be able to produce that user-dirs.dirs file via xdg-user-dirs-update. I do not know if there are any unwanted side-effects.

Back to your original question: If you want to build a true Arch package, I would build a PKGBUILD that pulls a specific upstream jar directly from the main website (https://physlets.org/tracker/archives/). Then pull in the required other libraries in binary form from https://github.com/OpenSourcePhysics/vi … /libraries GitHub page.  The hard part is likely how to investigate how the Xuggle library needs to be added for tracker to recognize it. I would assume a properly crafted "tracker.sh" that builds the right classpath would do the trick, but I couldn't figure out why more is needed for tracker to recognize Xuggle. Maybe xdg-user-dirs is truly a dependency for tracker?

Offline

#7 2018-05-26 14:52:30

zookah
Member
Registered: 2018-05-16
Posts: 7

Re: [SOLVED] PKGBUILD Request: OpenSourcePhysics/tracker

It worked! Thank you so much!

What is needed to your solution become part of AUR? (Sorry, if it is a dumb question).

ydallilar wrote:

Creating a package for this from scratch will probably be very time consuming. But luckily, there is a batch mode for the installer. which tries to install .desktop file to /usr/share/applications than fails (as it should be). Assuming the installer does the important stuff up to that point, I let the script ignore the error and continue. Hopefully, there is no side effects. With a bit tinkering to launcher files, tracker seems to be working.

If you would like to test, clone the repo https://github.com/pssncp142/aur-osp-tracker, go in the directory and run

makepkg -si

I forked the repo from someone else so I am not sure about dependencies etc.

If this works, it is better to use this instead of direct installer method since uninstaller that comes with tracker leaves leftover files.

Good luck.

Offline

#8 2018-05-26 18:54:59

ydallilar
Member
Registered: 2018-05-24
Posts: 4

Re: [SOLVED] PKGBUILD Request: OpenSourcePhysics/tracker

zookah wrote:

It worked! Thank you so much!

What is needed to your solution become part of AUR? (Sorry, if it is a dumb question).

It is ok, you are here to learn.

First, you need an aur account. Go here and sign up https://aur.archlinux.org/.

Then, follow the steps in this section. https://wiki.archlinux.org/index.php/Ar … g_packages. Use osp-tracker for the 'package_name' in the tutorial.

After you create the repo in AUR, copy all files over from my repo (I made some edits, so get the current version). Add all files via git, commit and push. Done!

Keep in mind, this comes with responsibilities. You should be willing to maintain the package. You can add me as co-maintainer (my aur name is the same) so I can help when you need.

Offline

#9 2018-05-26 21:55:19

zookah
Member
Registered: 2018-05-16
Posts: 7

Re: [SOLVED] PKGBUILD Request: OpenSourcePhysics/tracker

Hi, Ydallilar. Thanks for all you support.

I followed the instructions and the osp-tracker is on the AUR repository!

However, just to test, I reinstalled using pamac and unfortunately, Tracker is not opening.

In the tracker_install.log file I had: "Error copying the file /tmp/pamac-build-zookah/osp-tracker/pkg/osp-tracker/opt/tracker/tracker.desktop to usr/share/applications/tracker.desktop: target folder not writable"

ydallilar wrote:
zookah wrote:

It worked! Thank you so much!

What is needed to your solution become part of AUR? (Sorry, if it is a dumb question).

It is ok, you are here to learn.

First, you need an aur account. Go here and sign up https://aur.archlinux.org/.

Then, follow the steps in this section. https://wiki.archlinux.org/index.php/Ar … g_packages. Use osp-tracker for the 'package_name' in the tutorial.

After you create the repo in AUR, copy all files over from my repo (I made some edits, so get the current version). Add all files via git, commit and push. Done!

Keep in mind, this comes with responsibilities. You should be willing to maintain the package. You can add me as co-maintainer (my aur name is the same) so I can help when you need.

Offline

#10 2018-05-26 22:11:46

loqs
Member
Registered: 2014-03-06
Posts: 17,327

Re: [SOLVED] PKGBUILD Request: OpenSourcePhysics/tracker

Please post the command and output from a build using makepkg without an AUR helper.

Offline

#11 2018-05-26 23:51:21

zookah
Member
Registered: 2018-05-16
Posts: 7

Re: [SOLVED] PKGBUILD Request: OpenSourcePhysics/tracker

Apparently, the problem was the exec file on tracker.desktop. I change it to "Exec=/usr/bin/osp-tracker". Now its working!

Thank you guys!

Offline

#12 2018-05-27 01:33:39

loqs
Member
Registered: 2014-03-06
Posts: 17,327

Re: [SOLVED] PKGBUILD Request: OpenSourcePhysics/tracker

Now that you fixed the issue with tracker.desktop you are not going to increment the pkgrel?

Offline

#13 2018-05-27 02:07:21

zookah
Member
Registered: 2018-05-16
Posts: 7

Re: [SOLVED] PKGBUILD Request: OpenSourcePhysics/tracker

Done. My mistake. Thanks!

loqs wrote:

Now that you fixed the issue with tracker.desktop you are not going to increment the pkgrel?

Offline

Board footer

Powered by FluxBB