pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: zsh statically compiled



Hi,

From: rhino64%epost.ch@localhost, Date: Mon, 1 Jun 2015 19:09:19 +0200

> Hi,
>    Thank you for your help. Finaly, after looking at the log
> added to my own e-mail, I noticed that a variable ZSH_STATIC could
> be set to the value "yes". By using that, I was able to compile statically zsh.
> 
> Before this modification of ZSH_STATIC, I have forced the variables for compilation (CFLAGS etc.)
> to the needed values for producing a static binary.

I will convert ZSH_STATIC to standard PKG_OPTIONS.

> This solves my first problem. But I would appreciate if somebody
> could indicate me where I can find good documentation on
> the "pkg_create" command. After reading the manual page,
> I am not able to know what is the syntax of some files 
> needed for the command (for instance the file BUILD_INFO).
> 
> It could be sometimes useful to be able to make quickly a binary package
> (when for instance only one or two files are needed). It is not always
> useful to use the whole mechanic of pkgsrc to produce a binary package.

I have no idea about pkg_create.
I have never run pkg_create command manually.

> kind regards,
> 
> rhino64
> 
> On Mon, Jun 01, 2015 at 04:36:02AM +0900, Ryo ONODERA wrote:
>> Hi,
>> 
>> Could you try to add PKG_DEVELOPER=YES in your mk.conf
>> (or run 'make PKG_DEVELOPER=YES package')
>> and send me the result?
>> 
>> Thank you.
>> 
>> From: rhino64%epost.ch@localhost, Date: Sun, 31 May 2015 19:11:48 +0200
>> 
>> > Hi All,
>> >      I have sent the forwarded message to the list. The mail
>> > was accepted by the server but it does not seem to appear on the list.
>> > The reason is perhaps that it was too long since I have added a log
>> > of the compilation and the message size was about 60k.
>> > 
>> > Anyway, after looking at many place, I finally made it to
>> > work by modifying the PLIST file to remove what I suppose to
>> > be a list of files used when dynamically compiled.
>> > 
>> > The difference between the PLIST modified and the original one
>> > is the following:
>> > 
>> > virtualisation# diff PLIST PLIST.orig 
>> > 133a134
>> >> ${PLIST.dynamic}share/zsh/${PKGVERSION}/scripts/newuser
>> > 
>> > This seems to solve one of my problem. I would however appreciate
>> > some hints on how to create a package manually with the command
>> > "pkg_create".
>> > 
>> > Kind regards
>> > 
>> > rhino64
>> > ----- Forwarded message from rhino64%epost.ch@localhost -----
>> > 
>> > Date: Sun, 31 May 2015 11:34:02 +0200
>> > From: rhino64%epost.ch@localhost
>> > To: pkgsrc-users%netbsd.org@localhost
>> > Subject: zsh statically compiled
>> > User-Agent: Mutt/1.5.20 (2009-06-14)
>> > Message-ID: <20150531093400.GA28055%nordend.local.sourire.ch@localhost>
>> > 
>> > Hi All,
>> >      I have a small problem when I try to compile zsh statically.
>> > The compilation itself works flawlessly but when a package
>> > should be made few files seems to be missing (which could
>> > be normal since no modules exist and all functionalities
>> > are in the executables). If zsh is compiled dynamically
>> > the package can be created.
>> > 
>> > Unfortunately, I have no idea how to correct the problem. 
>> > 
>> > One solution would be to make manually the package by using the command
>> > "pkg_create". I have done that with the following command: 
>> > "pkg_create -f /tmp/listezsh5.07.txt -c -"zsh-5.07 statically compiled" \
>> >             -d /tmp/longDesc.txt /var/tmp/zsh-5.07-static.tgz"
>> > 
>> > The command works for creating the package, but when I try to install it
>> > I get the following error message:
>> >          virtualisation# pkg_add /var/tmp/zsh-5.07-static.tgz 
>> >          pkg_add: Not all required build information are present.
>> >          pkg_add: 1 package addition failed
>> >          virtualisation# 
>> > 
>> > I would greatly appreciate any idea or hint.
>> > 
>> > Best regards,
>> > 
>> > rhino64
>> > 
>> > ----- End forwarded message -----
>> 
>> --
>> Ryo ONODERA // ryo_on%yk.rim.or.jp@localhost
>> PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3

--
Ryo ONODERA // ryo_on%yk.rim.or.jp@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Home | Main Index | Thread Index | Old Index