Comments (6)
So it makes sense to delay this till its really needed.
Sure.
The exit 0
is required because the script exits with a non zero signal causing the build framework to immediately fail. Changing TERM
in the build environment is no option.
from arttime.
Confirmed. 6716e6b won't require me patching in an exit 0
in the future. Thanks!
from arttime.
@ehaupt I added a switch --noupdaterc
for the second problem you mention. If passed, installer won't add anything to rc files. 0f79226. That way you don't need to patch anything.
For the first problem, I am not sure what exactly is needed here? Why can't the --prefix you pass to the installer be /usr/ports/deskutils/arttime/work/stage/usr/local
?
Like this (assuming DESTDIR=/usr/ports/deskutils/arttime/work/stage):
./install.sh --noupdaterc --prefix $DESTDIR/usr/local --zompdir $DESTDIR/usr/local/share/zsh/functions
# OR
./install.sh --noupdaterc --prefix $DESTDIR/usr/local --zompdir $DESTDIR/usr/share/zsh/functions
From your description it looks like you are just adding a constant value to an existing prefix option. If I am missing something please let me know...
from arttime.
In the case of arttime's installer the --prefix
argument might suffice unless it's value is used to adjust paths within the projects code.
Consider this:
I use --prefix=/mnt/sandbox/usr/local/share/zsh/functions
and during the installation/building prefix is also used to adjust paths within the code.
Now you enter the chroot (in my example /mnt/sandbox
). You execute the script and it won't find the paths that have been modified to /mnt/sandbox/usr/local/share/zsh/functions
because within the chroot the files are located under /usr/local/share/zsh/functions
Again, this is not the case here. But its generally a good practice to have something like destdir for sandbox use in case path substitution is done at some point.
I hope that makes sense. Maybe this explains it better.
from arttime.
@ehaupt Please pardon my lack of understanding of installers, though what do you mean by adjust paths within project code?
In the case of arttime's installer the --prefix argument might suffice unless it's value is used to adjust paths within the projects code.
From your comments it looks like it is not necessary to have DESTDIR prefix for arttime's installer? If I got it right then let's refrain from adding it at the moment. In future if I am doing a "adjust paths" (which I know nothing about), then it would make most sense to add DESTDIR. My concern is that if I add it now without fully understanding what can go wrong, I might break something in future and request you to review anyway. So it makes sense to delay this till its really needed.
One last thing I notice in your installer patch is the addition of exit 0
at the end. Did you have to do that because there was some kind of error in a CI run for installer? I noticed that Homebrew's CI would fail because echoti cnorm
(last line in install.sh) would return error as TERM was not really set there. In a reasonable machine, TERM would be set to vt100 or its derivative. Check my comment there: Homebrew/homebrew-core#124403 (comment). If you added exit 0 to bypass problems with echoti, then I would recommend setting TERM to xterm. In future I will anyway refactor the code so this would work fine on CI environments that don't set TERM to a reasonable value.
from arttime.
@ehaupt With this change: 6716e6b, installer would not exit with error due to missing term capability. So hopefully you would not require patching with exit 0
anymore... Let me know if you need anything else to avoid patching install.sh
. I think one more thing would be to avoid printing some messages as they won't make sense, especially ones that ask user to add some directory to PATH or fpath.
from arttime.
Related Issues (20)
- Feature request - Sticky notifications HOT 3
- Interested in font
- 24h clock styling HOT 3
- Scrolling on FreeBSD 13.1-RELEASE-p2 HOT 4
- Nit: cosmetics after quit HOT 9
- Learning the keys HOT 2
- Nothing audible when a notification is seen on FreeBSD HOT 11
- Feature Request - Labeling The Goals HOT 1
- Ability to use without the TUI HOT 3
- Feature request: Support bash HOT 1
- Errors on Debian in docker™, make arttime work under docker™ HOT 8
- feature request: add support for lolcat HOT 3
- -zcompdir argument for the install script is not working HOT 3
- Feature Request: Allow auto pause after the end of each timer HOT 1
- Feature: Add support for WSL desktop integration HOT 18
- Feature request: Adding custom message to desktop notification HOT 3
- Not working properly in i3 HOT 4
- Fancy of fonts HOT 1
- Feature Request: User added art + displaying random art without the placeholder "title" text. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arttime.