New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How should distribution package the latest autojump? #338
Comments
Fix in #339 |
The issue here (for Arch at least) is that the packaging is done in a random directory, and files are put in the system directories during package installation. So, when packaging, the |
Thanks @youtux, this looks like valid fix for the last part of the problem. |
@BenoitZugmeyer mmm, I see. I think that other programs have this kind of issue, do you know how it is solved? |
@Siosm @BenoitZugmeyer What is the value of |
@youtux It's the output folder conventionally used to instruct Makefiles to put all the content at install time in the DESTDIR folder instead of the current /. It depends on where you're storing your PKGBUILD (the file that describe how packages are build for Arch Linux). It could be any one of: |
@youtux I'm sorry, I have no idea how other packages deal with that. Adding another install.py option, like --destdir, defaulting to --prefix, might help. |
Does #328 solve your issue? Although it seems pretty convoluted. |
@youtux It looks like it would fix it. |
I've fixed |
It's still a problem because |
@wting Could you please tag the latest version on git? (And maybe also all the future releases). In this way I can test using the brew formula properly, and open a pull request for the new version. Thanks |
Sorry, forgot about; done! |
@wting can't still see it. Maybe you forgot to push? |
I accidentally only pushed it to my fork (which I use for dev). Just pushed it to this repo. |
I had problems packaging as well, and found this issue. Let me know if I should open a separate issue for this: I wanted to use 'install.py -fs -p /usr/pkg -d ${SOMETMPDIR}' but get
When I try without '-fs', destdir is ignored:
Please let me know what the proper invocation is. |
Closing as this will probably never happen. Feel free to reopen / open your own issue if needed. |
Distributions (Arch Linux example: https://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/autojump) use this kind of command to package autojump:
But this creates broken '/etc/profile.d/autojump.sh' config files with a custom path dependent on the compile time folder location and not the actual prefix location (example from a custom build on my system):
The expected custom section:
Fixing this is more than just replacing 'etc_dir' by 'share_dir' in install.py:210 (which might be a good thing to do too), so I'm asking for inputs.
The text was updated successfully, but these errors were encountered: