att / ast

AST - AT&T Software Technology
Eclipse Public License 1.0
558 stars 152 forks source link

write package as an rpm (/bin/pacakge make) #1480

Open sunchill06 opened 4 years ago

sunchill06 commented 4 years ago

Hi @lkoutsofios

How can I use /bin/package to write the ksh package as an rpm?

There are no examples given?

lkoutsofios commented 4 years ago

hi,

there's no automatic way to do it. you could use bin/package to first build the binaries, then package write to make binary packages for INIT and ast (or ksh specifically), then use the .tgz files generated to make an RPM. you would need to write the RPM spec.

it's a similar mechanism if you want to include the ast software in a container.

lefteris

On 2020-06-07 14:23, sunchill06 wrote:

Hi @lkoutsofios https://github.com/lkoutsofios

How can I use /bin/package to write the ksh package as an rpm?

There are no examples given?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/att/ast/issues/1480, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACP3YAQPJVAFB3FHY2N33W3RVPLKTANCNFSM4NXQDZ4Q.

sunchill06 commented 4 years ago

Thanks for responding. I tried package write but somehow it fails. I did package write rpm, but it fails.

How to execute package write, any examples?

Appreciate your help.

sunchill06 commented 4 years ago

For more information: Initially I ran package make, this created all the binaries inside arch/linux.i386-64/bin

Now my intention is to create an rpm out of this. So I ran package write, but it gives me this error:

package: binary or source operand expected

How to get around this?

lkoutsofios commented 4 years ago

I think this will work:

./bin/package write base binary INIT ast

then in ./lib/package/tgz you should see files like these:

INIT.2020-06-08.linux.i386-64.md5 INIT.2020-06-08.linux.i386-64.tgz INIT.linux.i386-64.tim PACKAGE.linux.i386-64.lst ast.2020-06-08.linux.i386-64.md5 ast.2020-06-08.linux.i386-64.tgz ast.linux.i386-64.tim

On 2020-06-07 23:55, sunchill06 wrote:

For more information: Initially I ran package make, this created all the binaries inside arch/linux.i386-64/bin

Now my intention is to create an rpm out of this. So I ran package write, but it gives me this error:

package: binary or source operand expected

How to get around this?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/att/ast/issues/1480#issuecomment-640349572, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACP3YAXGKIWE6VDQ7X3LCLLRVROKHANCNFSM4NXQDZ4Q.

sunchill06 commented 4 years ago

Thanks a lot, it worked. Though it did not have ksh binary.

Will this be the command for generating ksh tar? ./bin/package write base binary ksh ast

lkoutsofios commented 4 years ago

if ksh was built it should be in the .tgz tar file.

you can use package to generate a .gz of the ksh binary with the command ./bin/package write base binary ksh but that is just the ksh binary compressed, not very useful.

On 2020-06-08 13:17, sunchill06 wrote:

Thanks a lot, it worked. Though it did not have ksh binary.

Will this be the command for generating ksh tar? ./bin/package write base binary ksh ast

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/att/ast/issues/1480#issuecomment-640761424, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACP3YAWAZ7RQWQIIZSLVIILRVUMKFANCNFSM4NXQDZ4Q.