Skip to content
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

No "Make Install" for Packaging: feedback requested #108

Open
calumapplepie opened this issue Sep 29, 2020 · 0 comments
Open

No "Make Install" for Packaging: feedback requested #108

calumapplepie opened this issue Sep 29, 2020 · 0 comments

Comments

@calumapplepie
Copy link
Contributor

I am trying to package whitakers-words for Debian, but there is no Make Install target. I know that the program is designed to operate entirely in one directory, however, that is not possible to package for Debian. I think I understand how to patch the program to make this possible, but I wanted to post here to get some feedback / give updates.

Firstly, I'd need to change the file names. From what I can tell, if I replace the filename variables in src/latin_utils/latin_utils-latin_file_names.ads with fully-qualified file names (eg, /usr/share/whitakers-words/dict), and comment out the portion of the Add_File_Name_Extension() function that trims filenames. That is, of course, assuming that Ada works the way I think it will

If I did that successfully, I think I can put the words executable in /usr/bin, and the data files in /usr/share. If I do this in the Makefile, implementing DESTDIR, the Debian packaging practically finishes itself.

The big issue I see with this is the risk that some code logic will patch the filenames to refer only to the current directory. I'll try to trace the code path further up, and figure out where/if that is done, and stop it.

The final packaging would still have issues, of course: as described, users wouldn't be able to add custom words, because (a) the utility executables wouldn't be shipped, and (b) the user-defined files would have to be in a separate folder from the shipped files. However, fixing those problems would probably require significantly more effort and changes: for instance, patching the utilities to work as subcommands of, say, whitakers-words-utils, or reworking the file location logic entirely. I am not nearly comfortable enough with Ada to attempt that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant