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

elisp-common.eclass: New function elisp-make-site-file #31662

Closed
wants to merge 0 commits into from

Conversation

ulm
Copy link
Member

@ulm ulm commented Jun 28, 2023

This creates and installs a site-init file for the package. The default case will add the package's SITELISP subdirectory to Emacs' load-path. This allows to remove all trivial site-init files (consisting only of a load-path line).

More complicated cases can be handled by providing additional arguments, which are appended as lines to the site-init file.

Update elisp_src_install to call the new function when no explicit site-init file is found.

@ulm ulm requested review from xgqt, mgorny and thesamesam June 28, 2023 19:39
@gentoo-bot gentoo-bot added assigned PR successfully assigned to the package maintainer(s). no bug found No Bug/Closes found in the commits. labels Jun 28, 2023
@ulm
Copy link
Member Author

ulm commented Jun 28, 2023

Package with trivial site-init file done for names a to d. More to be added later.

elisp-site-file-install "${FILESDIR}/${SITEFILE}"
else
elisp-make-site-file "${SITEFILE}"
fi
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so it install the siftefile if it exists and it makes it if it does not? Where ins installation in 2nd case?

Copy link
Member

@xgqt xgqt Jun 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just dont understand why make-sitefile also installs it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

elisp-make-site-file "${SITEFILE}"  # => ${T}/${SITEFILE}
elisp-site-file-install "${T}/${SITEFILE}"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just dont understand why make-sitefile also installs it.

What else would one do with it, if not install it? It's similar to make_desktop_entry() in desktop.eclass.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could of course go for a different name if elisp-make-site-file is misleading (then again, the name is similar to make_desktop_entry).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think make_desktop_entry makes more sense because we also have domenu. Because this eclass doe not have it I think it is fine.

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2023-06-28 19:50 UTC
Newest commit scanned: 947f6d1
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/c47219e166/output.html

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2023-06-28 20:35 UTC
Newest commit scanned: cc1b648
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/469e08caad/output.html

@ulm ulm changed the title elisp-common.eclass: New function elisp-make-site-file elisp-common.eclass: New function elisp-make-site-file [please reassign] Jun 28, 2023
@gentoo-bot gentoo-bot changed the title elisp-common.eclass: New function elisp-make-site-file [please reassign] elisp-common.eclass: New function elisp-make-site-file Jun 28, 2023
@gentoo-bot gentoo-bot added assigned PR successfully assigned to the package maintainer(s). no bug found No Bug/Closes found in the commits. and removed assigned PR successfully assigned to the package maintainer(s). no bug found No Bug/Closes found in the commits. labels Jun 28, 2023
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2023-06-28 20:50 UTC
Newest commit scanned: d94346f
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/957ac5ad6e/output.html

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2023-06-28 21:05 UTC
Newest commit scanned: 4e74a99
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/ba8806a579/output.html

@ulm ulm changed the title elisp-common.eclass: New function elisp-make-site-file elisp-common.eclass: New function elisp-make-site-file [please reassign] Jun 29, 2023
@gentoo-bot gentoo-bot changed the title elisp-common.eclass: New function elisp-make-site-file [please reassign] elisp-common.eclass: New function elisp-make-site-file Jun 29, 2023
@gentoo-bot gentoo-bot added need assignment It was impossible to assign the PR correctly. Please assign it manually. no bug found No Bug/Closes found in the commits. and removed assigned PR successfully assigned to the package maintainer(s). no bug found No Bug/Closes found in the commits. labels Jun 29, 2023
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2023-06-29 17:40 UTC
Newest commit scanned: da67b3d
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/076115f2e8/output.html

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2023-06-29 18:10 UTC
Newest commit scanned: 94afd60
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/b882648c29/output.html

@ulm ulm changed the title elisp-common.eclass: New function elisp-make-site-file elisp-common.eclass: New function elisp-make-site-file [please reassign] Jul 1, 2023
@gentoo-bot gentoo-bot changed the title elisp-common.eclass: New function elisp-make-site-file [please reassign] elisp-common.eclass: New function elisp-make-site-file Jul 1, 2023
@gentoo-bot
Copy link

Pull Request assignment

Submitter: @ulm
Areas affected: ebuilds
Packages affected: dev-lang/teyjus, dev-scheme/guile, dev-vcs/mercurial, sci-mathematics/fricas

dev-lang/teyjus: @markwright
dev-scheme/guile: [scheme (project)]
dev-vcs/mercurial: @cedk
sci-mathematics/fricas: grozin, [sci-mathematics (project)]

At least one of the listed packages is maintained entirely by non-GitHub developers!

Linked bugs

No bugs to link found. If your pull request references any of the Gentoo bug reports, please add appropriate GLEP 66 tags to the commit message and request reassignment.

If you do not receive any reply to this pull request, please open or link a bug to attract the attention of maintainers.


In order to force reassignment and/or bug reference scan, please append [please reassign] to the pull request title.

Docs: Code of ConductCopyright policy (expl.) ● DevmanualGitHub PRsProxy-maint guide

@gentoo-bot gentoo-bot added need assignment It was impossible to assign the PR correctly. Please assign it manually. no bug found No Bug/Closes found in the commits. and removed need assignment It was impossible to assign the PR correctly. Please assign it manually. no bug found No Bug/Closes found in the commits. labels Jul 1, 2023
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2023-07-01 07:40 UTC
Newest commit scanned: 8a72871
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/5d6f59dfd7/output.html

@ulm ulm closed this Jul 3, 2023
@ulm ulm deleted the elisp-make-site-file branch July 3, 2023 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need assignment It was impossible to assign the PR correctly. Please assign it manually. no bug found No Bug/Closes found in the commits.
Projects
None yet
4 participants