Package Search
 
Members: 353 | Topics: 767 | Posts: 3211
We welcome our newest member: ClintBarton
Info
» You aren't logged in, login or registerOnline: No members and 14 guests | Time: 22:21
FEATURE REQUEST - UPKG
paldo Support Forum    Upkg    General Discussion
Reply Reply   Subscribe Topic Subscribe Topic
untar tgz files from external sources
8 posts found.
 FEATURE REQUEST - UPKG
Moderator
 
 
Linux-Dude
 
Posts: 1187
Registered: 2006-11-23
I wanted to create a xml for REALbasic.

The only problem is it is a tgz-file which is NOT supported by upkg so I downloaded the tgz and converted it to a tar.bz2-file.

Here is my xml for it:

============================================================================
<?xml version="1.0"?>
<package name="realbasic">
<description>Cross-platform that really works!</description>
<releases>
<release version="2007" revision="1" branch="stable">
<deps>
<dep name="glibc"/>
<dep name="libstdc++5"/>
<dep name="cups"/>
<dep name="gtk+-2.0"/>
</deps>
<build>
<script>
<!-- not working <archive name="http://realsoftware.cachefly.net/REALbasic2007r1/REALbasicLinux.tgz" compression="tgz"> -->
<archive name="realbasic">
<cmd>cp -R Documentation /usr/realbasic</cmd>
<cmd>cp -R Examples /usr/realbasic</cmd>
<cmd>cp -R Extras /usr/realbasic</cmd>
<cmd>cp -R Plugins /usr/realbasic</cmd>
<cmd>cp -R "Project Templates" /usr/realbasic</cmd>
<cmd>cp -R Resources /usr/realbasic</cmd>
<cmd>cp -R Scripts /usr/realbasic</cmd>
<cmd>cp RBCube.xpm /usr/realbasic</cmd>
<cmd>cp REALbasic2007 /usr/realbasic</cmd>
<cmd>ln -sf /usr/realbasic/REALbasic2007 /usr/bin/realbasic</cmd>
</archive>
<text dest="/usr/share/applications/realbasic.desktop"><![CDATA[[Desktop Entry]
Encoding=UTF-8
Name=REALbasic 2007
Exec=realbasic
Icon=/usr/realbasic/RBCube.xpm
Terminal=false
Type=Application
Categories=Application;Development;
StartupNotify=true
]]></text>
</script>
</build>
</release>
</releases>
</package>
============================================================================

Is there a workaround or will it be soon added?
Profile   Private Message   E-Mail
Created: 2007-01-21 16:18 | Modified: 2007-01-21 20:57 by Amnon82
Highlight selected Text   Edit   Delete   Quote Reply
 Re: FEATURE REQUEST - UPKG
Administrator
 
 
 
Posts: 25
Registered: 2004-09-09
feature added to upkg svn

It should work now with
Code[In neuem Fenster öffnen]
<archive name="http://realsoftware.cachefly.net/REALbasic2007r1/REALbasicLinux" type="tgz">
Profile   Private Message   Web
Created: 2007-01-22 11:00
Highlight selected Text   Edit   Delete   Quote Reply
 Re: FEATURE REQUEST - UPKG
Moderator
 
 
Linux-Dude
 
Posts: 1187
Registered: 2006-11-23
I did a upkg-upgrade but still I got this:

Code[In neuem Fenster öffnen]
Unhandled Exception: System.NotImplementedException: ArchiveCommand: currently only tar archives are implemented
at Upkg.ArchiveCommand..ctor (System.Xml.XmlElement archivetype) [0x00000]
at Upkg.Script.CallProcessorForElement (System.Xml.XmlElement command) [0x00000]
at Upkg.Script.Process (System.Xml.XmlElement scripttype) [0x00000]
at Upkg.ReleaseSpecification.ProcessBuild (System.Xml.XmlElement buildElement, Upkg.BranchSpecification parentSpec) [0x00000]
at Upkg.ReleaseSpecification.Process () [0x00000]
at Upkg.Branches.get_Item (System.Object key) [0x00000]
at Upkg.Branches.get_Current () [0x00000]
at Upkg.ReleaseList.AddRelease (System.String packageName, System.String tag, Boolean allowZombies) [0x00000]
at Upkg.ReleaseList.AddRelease (System.String packageName, System.String tag) [0x00000]
at Upkg.Application.Main (System.String[] args) [0x00000]
Could not generate script!
Profile   Private Message   E-Mail
Created: 2007-01-22 11:32
Highlight selected Text   Edit   Delete   Quote Reply
 Re: FEATURE REQUEST - UPKG
Administrator
 
 
 
Posts: 25
Registered: 2004-09-09
Its committed to the upkg svn. There was no release yet. Just grab those sources.
Profile   Private Message   Web
Created: 2007-01-22 14:23
Highlight selected Text   Edit   Delete   Quote Reply
 Re: FEATURE REQUEST - UPKG
Moderator
 
 
Linux-Dude
 
Posts: 1187
Registered: 2006-11-23
well, how do I get the svn of upkg?

I found your changes here:

http://www.upkg.org/browser/trunk/lib/ArchiveCommand.cs?order=date&desc=1

... but how to get the source? Do I have to download each single file?

Code[In neuem Fenster öffnen]
if (type == null) 
67 67 throw new ArgumentNullException ("type");
68 if (type != "tar")
69 throw new NotImplementedException ("ArchiveCommand: currently only tar archives are implemented");
68 if (type != "tar" && type != "tgz")
69 throw new NotImplementedException ("ArchiveCommand: currently only tar and tgz archives are implemented");
70 70 if (compression == null)
71 71 throw new ArgumentNullException ("compression");


The archiv is only .tgz and NOT .tar.tgz!
Profile   Private Message   E-Mail
Created: 2007-01-22 15:41 | Modified: 2007-01-22 16:01 by Amnon82
Highlight selected Text   Edit   Delete   Quote Reply
 Re: FEATURE REQUEST - UPKG
Moderator
 
 
Linux-Dude
 
Posts: 1187
Registered: 2006-11-23
Code[In neuem Fenster öffnen]
[amnon@virgin:~/upkg-source-svn]$ svn checkout svn://upkg.org/trunk
svn: No repository found in 'svn://upkg.org/trunk'
[amnon@virgin:~/upkg-source-svn]$ svn checkout svn://upkg.org
svn: No repository found in 'svn://upkg.org'
[amnon@virgin:~/upkg-source-svn]$ svn checkout svn://upkg.org/upkg
svn: No repository found in 'svn://upkg.org/upkg'
[amnon@virgin:~/upkg-source-svn]$ svn checkout svn://upkg.org/upkg/upkg
svn: No repository found in 'svn://upkg.org/upkg/upkg'


What else should I try?
Profile   Private Message   E-Mail
Created: 2007-01-22 16:15
Highlight selected Text   Edit   Delete   Quote Reply
 Re: FEATURE REQUEST - UPKG
Moderator
 
 
Linux-Dude
 
Posts: 1187
Registered: 2006-11-23
Well I did a upkg 0.236-build myself. I downloaded the last build 0.234 and went to upkg.org. Then I looked for the changes and downloaded the three changed files in original format. You can upgrade to upkg 0.236 with my repository using

Code[In neuem Fenster öffnen]
upkg-build upkg


Code[In neuem Fenster öffnen]
[amnon@virgin:~/upkg-source-svn]$ sudo upkg-build upkg
Generating script...
Writing script...
Executing script...
The following packages will be upgraded:
upkg

The following packages will be built from source:
upkg

Do you want to continue? [Y/n]
Building upkg-0.236-1 (unstable)...
[amnon@virgin:~/upkg-source-svn]$ upkg-show upkg
upkg-x86-glibc-2.5-gcc-4.1-1-0.236-1
----
Package: upkg
Version: 0.236-1
Branch: testing
Installed-Size: 151 KB
Build-Duration: 0 min
Build-Date: 2007-01-22 16:09:07 +0000
Build-Host: virgin.paldo.org
Profile   Private Message   E-Mail
Created: 2007-01-22 17:14
Highlight selected Text   Edit   Delete   Quote Reply
 Re: FEATURE REQUEST - UPKG
Moderator
 
 
Linux-Dude
 
Posts: 1187
Registered: 2006-11-23
================================================================================
Writing script...
Executing script...
The following extra packages will be installed:
realbasic

The following packages will be built from source:
realbasic

Do you want to continue? [Y/n]
Building realbasic-2007-1 (unstable)...
[CHECK] mount --bind /home/amnon/PaldoRepo /var/cache/upkg/_home_amnon_PaldoRepo
[CHECK] download
[NOCHECK] [ -e /var/cache/upkg/_home_amnon_PaldoRepo/binaries/realbasic-x86-glibc-2.5-gcc-4.1-1-2007-1-testing.tar.bz2 ] || cp -f /home/amnon/PaldoRepo/binaries/realbasic-x86-glibc-2.5-gcc-4.1-1-2007-1-testing.tar.bz2 /var/cache/upkg/_home_amnon_PaldoRepo/binaries
cp: cannot stat `/home/amnon/PaldoRepo/binaries/realbasic-x86-glibc-2.5-gcc-4.1-1-2007-1-testing.tar.bz2': No such file or directory
[NOCHECK] [ -e /var/cache/upkg/_home_amnon_PaldoRepo/sources/realbasic/REALbasicLinux.tgz ] || cp -f /home/amnon/PaldoRepo/sources/realbasic/REALbasicLinux.tgz /var/cache/upkg/_home_amnon_PaldoRepo/sources/realbasic
cp: cannot stat `/home/amnon/PaldoRepo/sources/realbasic/REALbasicLinux.tgz': No such file or directory
[CHECK] [ -e /var/cache/upkg/_home_amnon_PaldoRepo/sources/realbasic/REALbasicLinux.tgz ] || wget -P /var/cache/upkg/_home_amnon_PaldoRepo/sources/realbasic http://realsoftware.cachefly.net/REALbasic2007r1/REALbasicLinux.tgz
--17:20:02-- http://realsoftware.cachefly.net/REALbasic2007r1/REALbasicLinux.tgz
=> `/var/cache/upkg/_home_amnon_PaldoRepo/sources/realbasic/REALbasicLinux.tgz'
Resolving realsoftware.cachefly.net... 205.234.175.175
Connecting to realsoftware.cachefly.net|205.234.175.175|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 92'308'542 (88M) [application/octet-stream]

100%[================================================================================>] 92'308'542 647.05K/s ETA 00:007

17:22:18 (666.88 KB/s) - `/var/cache/upkg/_home_amnon_PaldoRepo/sources/realbasic/REALbasicLinux.tgz' saved [92308542/92308542]

[CHECK] mkdir -p /var/lib/upkg/{packages,files,logs,scripts}
[CHECK] unset CFLAGS CXXFLAGS CPPFLAGS DEFS LDFLAGS LD_LIBRARY_PATH LD_PRELOAD LIBS LANG LANGUAGE LC_ALL LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION PATH
[CHECK] export LDFLAGS="-Wl,-O1 -Wl,--hash-style=both"
[CHECK] export LINGUAS="en en_US en_GB de de_CH de_DE fr fr_CH fr_FR it it_CH it_IT es es_ES pt pt_BR pt_PT pl tr"
[CHECK] export DISTRIB_RELEASE="1.8"
[CHECK] export PATH="/bin:/usr/bin:/sbin:/usr/sbin:/stage2/bin:/stage2/sbin"
[NOCHECK] env | sort
DISTRIB_RELEASE=1.8
EDITOR=vi
HISTIGNORE=&:[bf]g:exit
HISTSIZE=5000
HOME=/root
HOSTNAME=virgin
INPUTRC=/etc/inputrc
JAVA_HOME=/usr/lib/jdk
LDFLAGS=-Wl,-O1 -Wl,--hash-style=both
LESS=-iM
LINGUAS=en en_US en_GB de de_CH de_DE fr fr_CH fr_FR it it_CH it_IT es es_ES pt pt_BR pt_PT pl tr
LOGNAME=root
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.flac=01;35:*.mp3=01;35:*.mpc=01;35:*.ogg=01;35:*.wav=01;35:
MAIL=/var/mail/root
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/stage2/bin:/stage2/sbin
PS1=\[\033]0;\u@\h:\w\007\][\u@\h:\[\033[1;34m\]\w\[\033[0m\]]\$
PWD=/home/amnon/upkg-source-svn
QTDIR=/usr/share/qt3
SHLVL=1
TERM=xterm
UPKG_HOSTNAME=virgin.paldo.org
USER=root
_=/usr/bin/env
realbasic_mode=build
[CHECK] set +h
[CHECK] umask 022
[NOCHECK] { [ -e /usr/lib/upkg-watch.so ] && export LD_PRELOAD=/usr/lib/upkg-watch.so ; } || { [ -e /stage2/lib/upkg-watch.so ] && export LD_PRELOAD=/stage2/lib/upkg-watch.so ; }
[NOCHECK] if [ "/usr/src" = "/usr/src" ] ; then
[CHECK] mkdir -p /usr/src
[CHECK] cd /usr/src
[NOCHECK] fi
[CHECK] rm -rf REALbasicLinux
[CHECK] mkdir REALbasicLinux
[CHECK] pushd REALbasicLinux
/usr/src/REALbasicLinux /usr/src
[CHECK] tar --no-same-owner --strip-components=1 -xf /var/cache/upkg/_home_amnon_PaldoRepo/sources/realbasic/REALbasicLinux.tgz
[CHECK] cp -R Documentation /usr/realbasic
[CHECK] cp -R Examples /usr/realbasic
[CHECK] cp -R Extras /usr/realbasic
[CHECK] cp -R Plugins /usr/realbasic
[CHECK] cp -R "Project Templates" /usr/realbasic
[CHECK] cp -R Resources /usr/realbasic
[CHECK] cp -R Scripts /usr/realbasic
[CHECK] cp RBCube.xpm /usr/realbasic
[CHECK] cp REALbasic2007 /usr/realbasic
[CHECK] ln -sf /usr/realbasic/REALbasic2007 /usr/bin/realbasic
[CHECK] popd
/usr/src
[CHECK] rm -rf REALbasicLinux
[CHECK] cat > /usr/share/applications/realbasic.desktop<< "EOF"
[Desktop Entry]
Encoding=UTF-8
Name=REALbasic 2007
Exec=realbasic
Icon=/usr/realbasic/RBCube.xpm
Terminal=false
Type=Application
Categories=Application;Development;
StartupNotify=true

EOF
[CHECK] chmod 0644 /usr/share/applications/realbasic.desktop
Computing checksums for all installed files...
[NOCHECK] bzip2 -f /var/lib/upkg/{files,logs}/realbasic-x86-glibc-2.5-gcc-4.1-1-2007-1.*
[CHECK] [ ! -e /tmp/upkg-watch.log ] || grep \\.la$ /tmp/upkg-watch.log | xargs rm -vf
[CHECK] [ ! -x /sbin/ldconfig ] || /sbin/ldconfig
[NOCHECK] bzcat /var/lib/upkg/files/realbasic-x86-glibc-2.5-gcc-4.1-1-2007-1.{digest,links}.bz2 2>/dev/null | (
GDK_PIXBUF_LOADERS=0
GCONF_SCHEMAS=
while read content file ; do
case "$file" in
/lib/modules/*)
KERNEL=$(echo $file | sed -e 's%/lib/modules/\([^/]\+\).*%\1%')
;;
/usr/share/info/*info)
install-info $file /usr/share/info/dir 2>/dev/null
;;
/etc/gconf/schemas/*.schemas)
GCONF_SCHEMAS="$GCONF_SCHEMAS $file"
;;
/etc/gconf/schemas/*.entries)
gconftool-2 --direct --config-source=$(gconftool-2 --get-default-source) --load $file
;;
/usr/lib/gtk-2.0/*/loaders/*)
GDK_PIXBUF_LOADERS=1
;;
esac
done
[ -z "$KERNEL" ] || depmod -ae $KERNEL 2>/dev/null
[ -z "GCONF_SCHEMAS" ] || GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source) gconftool-2 --makefile-install-rule $GCONF_SCHEMAS
[ $GDK_PIXBUF_LOADERS -eq 0 ] || /usr/bin/gdk-pixbuf-query-loaders > /etc/gtk-2.0/gdk-pixbuf.loaders
)
Resolved address "xml:merged:/etc/gconf/gconf.xml.defaults" to a writable configuration source at position 0
Must specify some schema files to install
[NOCHECK] umount -l /var/cache/upkg/_home_amnon_PaldoRepo
[CHECK] /var/cache/upkg/script --finalize
[CHECK] [ ! -x /usr/bin/scrollkeeper-update ] || /usr/bin/scrollkeeper-update -q 2>/dev/null
[CHECK] [ ! -d /etc/gconf/gconf.xml.defaults ] || [ ! -x /usr/bin/find ] || ( chmod -R a+r /etc/gconf/gconf.xml.defaults ; find /etc/gconf/gconf.xml.defaults -type d | xargs chmod a+x )
[CHECK] [ ! -x /usr/bin/update-mime-database ] || /usr/bin/update-mime-database /usr/share/mime 2>/dev/null
***
* Updating MIME database in /usr/share/mime...
Wrote 535 strings at 20 - 2c78
Wrote aliases at 2c78 - 2e6c
Wrote parents at 2e6c - 38c8
Wrote literal globs at 38c8 - 3934
Wrote suffix globs at 3934 - 729c
Wrote full globs at 729c - 72c0
Wrote magic at 72c0 - cd08
Wrote namespace list at cd08 - cd18
***
[CHECK] [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database /usr/share/applications 2>/dev/null
[CHECK] [ ! -x /usr/bin/gdk-pixbuf-query-loaders ] || /usr/bin/gdk-pixbuf-query-loaders > /etc/gtk-2.0/gdk-pixbuf.loaders
[CHECK] [ ! -x /usr/bin/gtk-update-icon-cache ] || find /usr/share/icons -name index.theme | xargs -n 1 dirname | xargs -n 1 gtk-update-icon-cache -f
Cache file created successfully.
Cache file created successfully.
Cache file created successfully.
Cache file created successfully.
Cache file created successfully.
Cache file created successfully.
Cache file created successfully.
Cache file created successfully.
Cache file created successfully.
Cache file created successfully.
Cache file created successfully.
Cache file created successfully.
Cache file created successfully.
Cache file created successfully.
Cache file created successfully.
Cache file created successfully.
Cache file created successfully.
[CHECK] [ ! -x /usr/bin/fc-cache ] || fc-cache -f
[CHECK] [ ! -x /usr/bin/mkfontscale ] || mkfontscale /usr/share/X11/fonts/*
[CHECK] [ ! -x /usr/bin/mkfontdir ] || mkfontdir /usr/share/X11/fonts/*
[CHECK] [ ! -x /usr/sbin/iconvconfig ] || iconvconfig
================================================================================

Well it worked out
Profile   Private Message   E-Mail
Created: 2007-01-22 17:25
Highlight selected Text   Edit   Delete   Quote Reply
Subscribe Topic Subscribe Topic
powered by bitron board 1.23a