* new version of paps (printing package for emacs) @ 2023-01-08 10:15 Gottfried 2023-01-08 10:41 ` ( 0 siblings, 1 reply; 8+ messages in thread From: Gottfried @ 2023-01-08 10:15 UTC (permalink / raw) To: help-guix [-- Attachment #1.1.1: Type: text/plain, Size: 344 bytes --] Hi, the author of paps (printing package for emacs) updated his package. How can I download this new version in Guix? I downloaded his new version through git clone .... but I couldn't install it. I used guix package --install=/home/.../.../.../.../paps but it said not known package. -- Kind regards Gottfried [-- Attachment #1.1.2: OpenPGP public key --] [-- Type: application/pgp-keys, Size: 3191 bytes --] [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 840 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: new version of paps (printing package for emacs) 2023-01-08 10:15 new version of paps (printing package for emacs) Gottfried @ 2023-01-08 10:41 ` ( 2023-01-08 10:42 ` ( 2023-01-08 10:59 ` Gottfried 0 siblings, 2 replies; 8+ messages in thread From: ( @ 2023-01-08 10:41 UTC (permalink / raw) To: Gottfried, help-guix [-- Attachment #1: Type: text/plain, Size: 196 bytes --] On Sun Jan 8, 2023 at 10:15 AM GMT, Gottfried wrote: > How can I download this new version in Guix? Try this: guix install paps --with-source=paps=file:///home/user/.../paps -- ( [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 659 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: new version of paps (printing package for emacs) 2023-01-08 10:41 ` ( @ 2023-01-08 10:42 ` ( 2023-01-08 11:02 ` Gottfried 2023-01-08 10:59 ` Gottfried 1 sibling, 1 reply; 8+ messages in thread From: ( @ 2023-01-08 10:42 UTC (permalink / raw) To: (, Gottfried, help-guix [-- Attachment #1: Type: text/plain, Size: 243 bytes --] On Sun Jan 8, 2023 at 10:41 AM GMT, ( wrote: > Try this: > > guix install paps --with-source=paps=file:///home/user/.../paps No guarantee it'll work, though. If it doesn't, you'll have to look into updating it yourself. -- ( [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 659 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: new version of paps (printing package for emacs) 2023-01-08 10:42 ` ( @ 2023-01-08 11:02 ` Gottfried 2023-01-08 11:35 ` ( 0 siblings, 1 reply; 8+ messages in thread From: Gottfried @ 2023-01-08 11:02 UTC (permalink / raw) To: (, help-guix [-- Attachment #1.1.1: Type: text/plain, Size: 542 bytes --] Hi, paps 0.7.1 I have got already installed in my system. this means that your proposed command tried to install the same version of this program. Is it like this? How can I update it myself? Am 08.01.23 um 11:42 schrieb (: > On Sun Jan 8, 2023 at 10:41 AM GMT, ( wrote: >> Try this: >> >> guix install paps --with-source=paps=file:///home/user/.../paps > > No guarantee it'll work, though. If it doesn't, you'll have to look into updating > it yourself. > > -- ( -- Kind regards Gottfried [-- Attachment #1.1.2: OpenPGP public key --] [-- Type: application/pgp-keys, Size: 3191 bytes --] [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 840 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: new version of paps (printing package for emacs) 2023-01-08 11:02 ` Gottfried @ 2023-01-08 11:35 ` ( 0 siblings, 0 replies; 8+ messages in thread From: ( @ 2023-01-08 11:35 UTC (permalink / raw) To: Gottfried, help-guix [-- Attachment #1: Type: text/plain, Size: 3744 bytes --] On Sun Jan 8, 2023 at 11:02 AM GMT, Gottfried wrote: > How can I update it myself? Clone the source code: git clone https://git.sv.gnu.org/git/guix.git cd guix Create a new branch to make your changes in: git branch wip-update-paps Now you can either use a git "worktree" (a new directory for your branch) or the current directory to edit the branch: git checkout wip-update-paps # to use the current directory git worktree add wip-update-paps # i prefer to use a new directory If you choose to use a worktree, make sure to cd there: cd wip-update-paps Build the source code, to make sure everything's working alright: ./bootstrap ./configure --localstatedir=/var make -j$(nproc) # using multiple jobs makes the build process *much* faster Now figure out where the package is: guix show paps # ---8<--- # location: gnu/packages/pdf.scm:1459:2 # ---8<--- Open up that file: (define-public paps (package (name "paps") (version "0.7.1") (source (origin (method url-fetch) (uri (string-append "https://github.com/dov/paps/releases/download/v" version "/paps-" version ".tar.gz")) (sha256 (base32 "1z1w1fg2bvb8p92n1jlpqp3n9mq42szb2mqhh4xqmmnmfcdkpi9s")))) (build-system gnu-build-system) (inputs (list pango)) (native-inputs (list intltool pkg-config)) (home-page "https://github.com/dov/paps") (synopsis "Pango to PostScript converter") (description "Paps reads a UTF-8 encoded file and generates a PostScript language rendering of the file through the Pango Cairo back end.") (license license:lgpl2.0+))) Change the ``version'' number to the latest version: (version "(***VERSION***)") Now, Guix verifies downloaded code using a hash to check whether it's been corrupted or tampered with, so we need to change that too. To get the new hash, use ``guix download'': guix download https://github.com/dov/paps/releases/download/v(***VERSION***)/paps-(***VERSION***).tar.gz This will print out a string that looks a bit like what's currently in the (sha256 (base32 "...")). Replace that string with the one from ``guix download'' to update the hash. Now, rebuild: make -j$(nproc) We can use ``./pre-inst-env'' to test out our changes: ./pre-inst-env guix build paps It'll probably fail with the error you got before, so try adding the needed autotools dependencies to native-inputs: (native-inputs (list autoconf automake intltool libtool m4 pkg-config)) If that doesn't work, try adding gnu-gettext, too: (native-inputs (list autoconf automake gnu-gettext intltool libtool m4 pkg-config)) Now build and test again: make -j$(nproc) ./pre-inst-env guix build paps If it works, you can send it as a patch to the Guix mailing list. Follow the instructions on <https://git-send-email.io>'s first two pages to set up Git's email features, but *don't do anything else from there*. Now you need to commit your change: git commit Your commit message should look something like this: gnu: paps: Update to (***VERSION***). * gnu/packages/pdf.scm (paps): Update to (***VERSION***). This is the typical GNU commit message format, called ChangeLog. Now use ``git send-email'' to send the patch to guix-patches (see <https://guix.gnu.org/manual/devel/en/html_node/Sending-a-Patch-Series.html> for more information): git send-email -1 --base=master --to=guix-patches@gnu.org A patch email should appear on the Guix mailing list, ready to be applied by the maintainers :) -- ( [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 659 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: new version of paps (printing package for emacs) 2023-01-08 10:41 ` ( 2023-01-08 10:42 ` ( @ 2023-01-08 10:59 ` Gottfried 2023-01-08 11:01 ` ( 1 sibling, 1 reply; 8+ messages in thread From: Gottfried @ 2023-01-08 10:59 UTC (permalink / raw) To: (, help-guix [-- Attachment #1.1.1: Type: text/plain, Size: 967 bytes --] Hi, thanks It started to bootstrap the file but failed. phase `unpack' succeeded after 0.0 seconds starting phase `bootstrap' running './autogen.sh' patch-shebang: ./autogen.sh: changing `/bin/sh' to `/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin/sh' ./autogen.sh: line 4: glib-gettextize: command not found ./autogen.sh: line 7: autoreconf: command not found ./autogen.sh: line 8: ./configure: No such file or directory error: in phase 'bootstrap': uncaught exception: %exception #<&invoke-error program: "./autogen.sh" arguments: () exit-status: 127 term-signal: #f stop-signal: #f> phase `bootstrap' failed after 0.4 seconds command "./autogen.sh" failed with status 127 Does that mean there is a bug in the file? and I have to wait until Guix updates the package : paps? Kind regards Gottfried Am 08.01.23 um 11:41 schrieb (: > guix install paps --with-source=paps=file:///home/user/.../paps -- [-- Attachment #1.1.2: OpenPGP public key --] [-- Type: application/pgp-keys, Size: 3191 bytes --] [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 840 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: new version of paps (printing package for emacs) 2023-01-08 10:59 ` Gottfried @ 2023-01-08 11:01 ` ( 2023-01-08 11:07 ` Gottfried 0 siblings, 1 reply; 8+ messages in thread From: ( @ 2023-01-08 11:01 UTC (permalink / raw) To: Gottfried, help-guix [-- Attachment #1: Type: text/plain, Size: 443 bytes --] On Sun Jan 8, 2023 at 10:59 AM GMT, Gottfried wrote: > Does that mean there is a bug in the file? and I have to wait until Guix > updates the package : paps? This is fairly easy to fix, and isn't exactly a bug; it's just the package is written for the old source. We just need to add the various autotools (autoconf, libtool, m4, automake, etc) to the package's NATIVE-INPUTS until it works. Why don't you have a go? :) -- ( [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 659 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: new version of paps (printing package for emacs) 2023-01-08 11:01 ` ( @ 2023-01-08 11:07 ` Gottfried 0 siblings, 0 replies; 8+ messages in thread From: Gottfried @ 2023-01-08 11:07 UTC (permalink / raw) To: (, help-guix [-- Attachment #1.1.1: Type: text/plain, Size: 661 bytes --] Hi, > Why don't you have a go? :) Then I would first need some hours of lessons from somebody who explains me everything! Kind regards Gottfried Am 08.01.23 um 12:01 schrieb (: > On Sun Jan 8, 2023 at 10:59 AM GMT, Gottfried wrote: >> Does that mean there is a bug in the file? and I have to wait until Guix >> updates the package : paps? > > This is fairly easy to fix, and isn't exactly a bug; it's just the package is written > for the old source. We just need to add the various autotools (autoconf, libtool, m4, > automake, etc) to the package's NATIVE-INPUTS until it works. Why don't you have a go? :) > > -- ( -- [-- Attachment #1.1.2: OpenPGP public key --] [-- Type: application/pgp-keys, Size: 3191 bytes --] [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 840 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2023-01-08 11:36 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-01-08 10:15 new version of paps (printing package for emacs) Gottfried 2023-01-08 10:41 ` ( 2023-01-08 10:42 ` ( 2023-01-08 11:02 ` Gottfried 2023-01-08 11:35 ` ( 2023-01-08 10:59 ` Gottfried 2023-01-08 11:01 ` ( 2023-01-08 11:07 ` Gottfried
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/guix.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.