Void Linux discussion
 help / color / mirror / Atom feed
* Advice For Editing, Rebuilding and Installing an XBPS Package?
@ 2015-01-29  0:39 Antonio Malcolm
  2015-01-29  7:53 ` Stefan Mühlinghaus
  2015-01-29 18:36 ` Antonio Malcolm
  0 siblings, 2 replies; 4+ messages in thread
From: Antonio Malcolm @ 2015-01-29  0:39 UTC (permalink / raw)
  To: voidlinux


[-- Attachment #1.1: Type: text/plain, Size: 824 bytes --]

Currently, I'm planning to rebuild cinnamon-settings, to adjust the DPI 
settings for y hidpi display (cinnamon overrides manually-configured xorg, 
so I have little choice).
My plan is to grab the source, via git and xbps-src, starting with the 
instructions found here: https://github.com/voidlinux/void-packages
I imagine I won't need to perform any additional configuration, as I'm 
starting with a Void source package, and simply editing a line or two of C 
code, then building and installing.

Given the instructions at the aforementioned page, I ought to be able to 
simply edit the appropriate .c file in the package, then do the following:

$ ./xbps-src pkg cinnamon-settings
$ xbps-install --repository=/path/to/hostdir/binpkgs/..



That looks deceptively simple. Is there anything I'm missing?

[-- Attachment #1.2: Type: text/html, Size: 916 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Advice For Editing, Rebuilding and Installing an XBPS Package?
  2015-01-29  0:39 Advice For Editing, Rebuilding and Installing an XBPS Package? Antonio Malcolm
@ 2015-01-29  7:53 ` Stefan Mühlinghaus
  2015-01-29  8:07   ` Juan RP
  2015-01-29 18:36 ` Antonio Malcolm
  1 sibling, 1 reply; 4+ messages in thread
From: Stefan Mühlinghaus @ 2015-01-29  7:53 UTC (permalink / raw)
  To: voidlinux


[-- Attachment #1.1: Type: text/plain, Size: 995 bytes --]

After cloning the void-packages repository the first thing you need to do 
is create the bootstrap environment:

./xbps-src binary-bootstrap

The next step depends on what you want to achieve. Do you want to update 
the package for future use by you and/or others? Then the cleanest way 
would be to put a patch-file into "srcpkgs/<packagename>/patches/". Then 
increase the revision in "srcpkgs/<packagename>/template". This is of 
course the tricky part. Afterwards you can build an dinstall the package as 
you have written. Just add the package name at the end of your xbps-install 
line :)

If you only want to make the changes this one time and not preserve them 
you can get xbps-src to get the sources for you:

./xbps-src extract <packagename>

Edit the the sources as desired in 
"masterdir/builddir/<packagename+version>/"

Build and install like this:

./xbps-src -C -f pkg <packagename>
xbps-install -f --repository=/path/to/hostdir/binpkgs <packagename>


[-- Attachment #1.2: Type: text/html, Size: 3944 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Advice For Editing, Rebuilding and Installing an XBPS Package?
  2015-01-29  7:53 ` Stefan Mühlinghaus
@ 2015-01-29  8:07   ` Juan RP
  0 siblings, 0 replies; 4+ messages in thread
From: Juan RP @ 2015-01-29  8:07 UTC (permalink / raw)
  To: voidlinux


[-- Attachment #1.1: Type: text/plain, Size: 433 bytes --]


Additionally to what Steffan said, if you've installed a custom pkg, you 
should put it on *hold* mode
with xbps-pkgdb(8):

# xbps-pkgdb -m hold <pkgname>

This will avoid updates with `xbps-install -u` and will have to be updated 
manually, i.e `xbps-install -u <pkgname>`.

For 0.44, I want to add a feature to only update a package if there's a new 
version in the same repository of
what was used for installation.

[-- Attachment #1.2: Type: text/html, Size: 480 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Advice For Editing, Rebuilding and Installing an XBPS Package?
  2015-01-29  0:39 Advice For Editing, Rebuilding and Installing an XBPS Package? Antonio Malcolm
  2015-01-29  7:53 ` Stefan Mühlinghaus
@ 2015-01-29 18:36 ` Antonio Malcolm
  1 sibling, 0 replies; 4+ messages in thread
From: Antonio Malcolm @ 2015-01-29 18:36 UTC (permalink / raw)
  To: voidlinux


[-- Attachment #1.1: Type: text/plain, Size: 24 bytes --]

Awesome. Thanks, guys!

[-- Attachment #1.2: Type: text/html, Size: 47 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-01-29 18:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-29  0:39 Advice For Editing, Rebuilding and Installing an XBPS Package? Antonio Malcolm
2015-01-29  7:53 ` Stefan Mühlinghaus
2015-01-29  8:07   ` Juan RP
2015-01-29 18:36 ` Antonio Malcolm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).