public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Manual installation of cygport packages
@ 2017-03-15 10:37 Rui Pedro Caldeira
  2017-03-15 14:11 ` Ken Brown
  2017-03-16 18:50 ` Achim Gratz
  0 siblings, 2 replies; 9+ messages in thread
From: Rui Pedro Caldeira @ 2017-03-15 10:37 UTC (permalink / raw)
  To: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 466 bytes --]

Hello all, I'm new to this and I successfully build a package with
cygport. My problem is that, I would like to install it in order to
test if the package was successfully built. Is there anyway to do
that?

Thanks in advance,
Rui
\0ТÒÐÐ¥\a&ö&ÆVÒ\a&W\x06÷'G3¢\x02\x02\x02\x02\x02\x02\x06‡GG\x03¢òö7–wv–âæ6öÒ÷\a&ö&ÆV×2æ‡FÖÀФd\x15\x13¢\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x06‡GG\x03¢òö7–wv–âæ6öÒöf\x17\x12ðФFö7VÖVçF\x17F–öã¢\x02\x02\x02\x02\x02\x02\x02\x02\x06‡GG\x03¢òö7–wv–âæ6öÒöFö72æ‡FÖÀÐ¥Vç7V'67&–&R\x06–æfó¢\x02\x02\x02\x02\x02\x06‡GG\x03¢òö7–wv–âæ6öÒöÖÂò7Vç7V'67&–&R×6–×\x06ÆPРÐ

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

* Re: Manual installation of cygport packages
  2017-03-15 10:37 Manual installation of cygport packages Rui Pedro Caldeira
@ 2017-03-15 14:11 ` Ken Brown
  2017-03-15 16:43   ` Andrew Schulman
  2017-03-16 18:50 ` Achim Gratz
  1 sibling, 1 reply; 9+ messages in thread
From: Ken Brown @ 2017-03-15 14:11 UTC (permalink / raw)
  To: cygwin

On 3/15/2017 6:37 AM, Rui Pedro Caldeira wrote:
> Hello all, I'm new to this and I successfully build a package with
> cygport. My problem is that, I would like to install it in order to
> test if the package was successfully built. Is there anyway to do
> that?

https://cygwin.com/package-server.html


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: Manual installation of cygport packages
  2017-03-15 14:11 ` Ken Brown
@ 2017-03-15 16:43   ` Andrew Schulman
  2017-03-15 18:14     ` Rui Pedro Caldeira
  2017-03-16 18:53     ` Achim Gratz
  0 siblings, 2 replies; 9+ messages in thread
From: Andrew Schulman @ 2017-03-15 16:43 UTC (permalink / raw)
  To: cygwin

> On 3/15/2017 6:37 AM, Rui Pedro Caldeira wrote:
> > Hello all, I'm new to this and I successfully build a package with
> > cygport. My problem is that, I would like to install it in order to
> > test if the package was successfully built. Is there anyway to do
> > that?
> 
> https://cygwin.com/package-server.html

I usually take the simpler approach of just unpacking the package archive
into the root filesystem:

tar -C/ -Jxf $package-$version.tar.xz

This doesn't run pre-remove or post-install scripts, but it puts the files
in place so you can test them.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: Manual installation of cygport packages
  2017-03-15 16:43   ` Andrew Schulman
@ 2017-03-15 18:14     ` Rui Pedro Caldeira
  2017-03-16 15:41       ` Andrew Schulman
  2017-03-16 18:53     ` Achim Gratz
  1 sibling, 1 reply; 9+ messages in thread
From: Rui Pedro Caldeira @ 2017-03-15 18:14 UTC (permalink / raw)
  To: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 1273 bytes --]

Hello all and thanks for you fast responses :)

@Andrew: Is there a way to run the scripts manually?

BR,

Rui

On Wed, Mar 15, 2017 at 4:42 PM, Andrew Schulman
<schulman.andrew@epa.gov> wrote:
>> On 3/15/2017 6:37 AM, Rui Pedro Caldeira wrote:
>> > Hello all, I'm new to this and I successfully build a package with
>> > cygport. My problem is that, I would like to install it in order to
>> > test if the package was successfully built. Is there anyway to do
>> > that?
>>
>> https://cygwin.com/package-server.html
>
> I usually take the simpler approach of just unpacking the package archive
> into the root filesystem:
>
> tar -C/ -Jxf $package-$version.tar.xz
>
> This doesn't run pre-remove or post-install scripts, but it puts the files
> in place so you can test them.
>
>
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>
\0ТÒÐÐ¥\a&ö&ÆVÒ\a&W\x06÷'G3¢\x02\x02\x02\x02\x02\x02\x06‡GG\x03¢òö7–wv–âæ6öÒ÷\a&ö&ÆV×2æ‡FÖÀФd\x15\x13¢\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x06‡GG\x03¢òö7–wv–âæ6öÒöf\x17\x12ðФFö7VÖVçF\x17F–öã¢\x02\x02\x02\x02\x02\x02\x02\x02\x06‡GG\x03¢òö7–wv–âæ6öÒöFö72æ‡FÖÀÐ¥Vç7V'67&–&R\x06–æfó¢\x02\x02\x02\x02\x02\x06‡GG\x03¢òö7–wv–âæ6öÒöÖÂò7Vç7V'67&–&R×6–×\x06ÆPРÐ

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

* Re: Manual installation of cygport packages
  2017-03-15 18:14     ` Rui Pedro Caldeira
@ 2017-03-16 15:41       ` Andrew Schulman
  2017-03-16 18:06         ` Rui Pedro Caldeira
  0 siblings, 1 reply; 9+ messages in thread
From: Andrew Schulman @ 2017-03-16 15:41 UTC (permalink / raw)
  To: cygwin

> >> > Hello all, I'm new to this and I successfully build a package with
> >> > cygport. My problem is that, I would like to install it in order to
> >> > test if the package was successfully built. Is there anyway to do
> >> > that?
> >>
> >> https://cygwin.com/package-server.html
> >
> > I usually take the simpler approach of just unpacking the package archive
> > into the root filesystem:
> >
> > tar -C/ -Jxf $package-$version.tar.xz
> >
> > This doesn't run pre-remove or post-install scripts, but it puts the files
> > in place so you can test them.
>
> @Andrew: Is there a way to run the scripts manually?

Sure, you can run them manually. They're unpacked into
/etc/preremove/$package.sh and /etc/postinstall/$package.sh.

For the preremove script, I guess you should run it before unpacking the
archive. You can find it in the package build directory in
inst/etc/preremove.

I'm quite lazy and don't bother doing this, but if the preremove or
postinstall scripts are doing something important, you should do it.

Andrew


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: Manual installation of cygport packages
  2017-03-16 15:41       ` Andrew Schulman
@ 2017-03-16 18:06         ` Rui Pedro Caldeira
  0 siblings, 0 replies; 9+ messages in thread
From: Rui Pedro Caldeira @ 2017-03-16 18:06 UTC (permalink / raw)
  To: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 1760 bytes --]

Thank you very much Andrew!

It was very helpful. Thank you for all your help :)

Best regards,
Rui

On Thu, Mar 16, 2017 at 3:41 PM, Andrew Schulman
<schulman.andrew@epa.gov> wrote:
>> >> > Hello all, I'm new to this and I successfully build a package with
>> >> > cygport. My problem is that, I would like to install it in order to
>> >> > test if the package was successfully built. Is there anyway to do
>> >> > that?
>> >>
>> >> https://cygwin.com/package-server.html
>> >
>> > I usually take the simpler approach of just unpacking the package archive
>> > into the root filesystem:
>> >
>> > tar -C/ -Jxf $package-$version.tar.xz
>> >
>> > This doesn't run pre-remove or post-install scripts, but it puts the files
>> > in place so you can test them.
>>
>> @Andrew: Is there a way to run the scripts manually?
>
> Sure, you can run them manually. They're unpacked into
> /etc/preremove/$package.sh and /etc/postinstall/$package.sh.
>
> For the preremove script, I guess you should run it before unpacking the
> archive. You can find it in the package build directory in
> inst/etc/preremove.
>
> I'm quite lazy and don't bother doing this, but if the preremove or
> postinstall scripts are doing something important, you should do it.
>
> Andrew
>
>
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>
\x03B‹KCB”\x1c›Ø›\x19[H\x1c™\^[ܝ\x1cΈ\b\b\b\b\b\b\x1a\x1d\x1d\x1c\x0e‹ËØÞYÝÚ[‹˜ÛÛKÜ\x1c›Ø›\x19[\Ëš\x1d^[[\x03B‘TNˆ\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\x1a\x1d\x1d\x1c\x0e‹ËØÞYÝÚ[‹˜ÛÛKÙ˜\KÃB‘^[ØÝ[Y[\x18]\x1a[ÛŽˆ\b\b\b\b\b\b\b\b\x1a\x1d\x1d\x1c\x0e‹ËØÞYÝÚ[‹˜ÛÛKÙ^[ØÜËš\x1d^[[\x03B•[œÝXœØÜšX™H\x1a[™›Îˆ\b\b\b\b\b\x1a\x1d\x1d\x1c\x0e‹ËØÞYÝÚ[‹˜ÛÛKÛ[\vÈÝ[œÝXœØÜšX™K\Ú[\^[\x19CBƒB

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

* Re: Manual installation of cygport packages
  2017-03-15 10:37 Manual installation of cygport packages Rui Pedro Caldeira
  2017-03-15 14:11 ` Ken Brown
@ 2017-03-16 18:50 ` Achim Gratz
  1 sibling, 0 replies; 9+ messages in thread
From: Achim Gratz @ 2017-03-16 18:50 UTC (permalink / raw)
  To: cygwin

Rui Pedro Caldeira writes:
> Hello all, I'm new to this and I successfully build a package with
> cygport. My problem is that, I would like to install it in order to
> test if the package was successfully built. Is there anyway to do
> that?

Yes, you can point setup to a local directory.  It must not look like a
package mirror (i.e. doesn't have an ini file in an x86 / x86_64
subdirectory).  The packages still belong into a directory that is named
after the package I think.  You won't be able to do dependency
resolution that way, so unless it is really a one-off, you'd better
create a local package mirror and then integrate your new package into
that, using calm to re-generate the ini files.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: Manual installation of cygport packages
  2017-03-15 16:43   ` Andrew Schulman
  2017-03-15 18:14     ` Rui Pedro Caldeira
@ 2017-03-16 18:53     ` Achim Gratz
  2017-03-21 14:46       ` Andrew Schulman
  1 sibling, 1 reply; 9+ messages in thread
From: Achim Gratz @ 2017-03-16 18:53 UTC (permalink / raw)
  To: cygwin

Andrew Schulman writes:
>> On 3/15/2017 6:37 AM, Rui Pedro Caldeira wrote:
>> > Hello all, I'm new to this and I successfully build a package with
>> > cygport. My problem is that, I would like to install it in order to
>> > test if the package was successfully built. Is there anyway to do
>> > that?
>> 
>> https://cygwin.com/package-server.html
>
> I usually take the simpler approach of just unpacking the package archive
> into the root filesystem:
>
> tar -C/ -Jxf $package-$version.tar.xz
>
> This doesn't run pre-remove or post-install scripts, but it puts the files
> in place so you can test them.

You should also generate the compressed packges listing in /etc/setup
and an entry into the installed.db file or you will be unable to
properly un-install the package later on.  The only time I'm using this
manual installation is when I quickly need to test an update on an
already installed package that I will later re-install properly via the
local package repository.  Of course if these need postinstall actions
you also need to run those, so this quickly gets more complicated than
having setup do its thing.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Wavetables for the Terratec KOMPLEXER:
http://Synth.Stromeko.net/Downloads.html#KomplexerWaves

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: Manual installation of cygport packages
  2017-03-16 18:53     ` Achim Gratz
@ 2017-03-21 14:46       ` Andrew Schulman
  0 siblings, 0 replies; 9+ messages in thread
From: Andrew Schulman @ 2017-03-21 14:46 UTC (permalink / raw)
  To: cygwin

> Andrew Schulman writes:
> >> On 3/15/2017 6:37 AM, Rui Pedro Caldeira wrote:
> >> > Hello all, I'm new to this and I successfully build a package with
> >> > cygport. My problem is that, I would like to install it in order to
> >> > test if the package was successfully built. Is there anyway to do
> >> > that?
> >> 
> >> https://cygwin.com/package-server.html
> >
> > I usually take the simpler approach of just unpacking the package archive
> > into the root filesystem:
> >
> > tar -C/ -Jxf $package-$version.tar.xz
> >
> > This doesn't run pre-remove or post-install scripts, but it puts the files
> > in place so you can test them.
> 
> You should also generate the compressed packges listing in /etc/setup
> and an entry into the installed.db file or you will be unable to
> properly un-install the package later on.  The only time I'm using this
> manual installation is when I quickly need to test an update on an
> already installed package that I will later re-install properly via the
> local package repository.  Of course if these need postinstall actions
> you also need to run those, so this quickly gets more complicated than
> having setup do its thing.

Maybe. But for most packages that I unpack this way to test, (1) the
package is already installed or I'm going to adopt it anyway, so I'll end
up installing it properly using setup, which will take care of other setup
like installed.db; and (2) the preremove and postinstall scripts either do
nothing or do only trivial things like updating config files.

So for most cases, it works just fine just to unpack the archive into the
root file system in order to test it.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

end of thread, other threads:[~2017-03-21 14:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-15 10:37 Manual installation of cygport packages Rui Pedro Caldeira
2017-03-15 14:11 ` Ken Brown
2017-03-15 16:43   ` Andrew Schulman
2017-03-15 18:14     ` Rui Pedro Caldeira
2017-03-16 15:41       ` Andrew Schulman
2017-03-16 18:06         ` Rui Pedro Caldeira
2017-03-16 18:53     ` Achim Gratz
2017-03-21 14:46       ` Andrew Schulman
2017-03-16 18:50 ` Achim Gratz

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 read-only IMAP folder(s) and NNTP newsgroup(s).