Gentoo Archives: gentoo-amd64

From: Daiajo Tibdixious <daiajo@×××××.com>
To: gentoo-amd64 <gentoo-amd64@l.g.o>
Subject: Re: [gentoo-amd64] Re: simulating apt-get on gentoo
Date: Tue, 19 Apr 2016 02:11:42
Message-Id: CAC4mkfuXr3N+whtwrkTTfrL3rnhda_Ow4HQAgMGheiFnFZPcGw@mail.gmail.com
In Reply to: [gentoo-amd64] Re: simulating apt-get on gentoo by Jonathan Callen
1 dpkg has a native gentoo version app-arch/dpkg but dpkg --unpack gave an error.
2 However ar x worked fine.
3 Ended up with usr/bin/runescape-launcher which is fine, but also
4 usr/share stuff which I'll check for collisions.
5 (this is all in /var/tmp)
6
7 Thanks very much, you saved me much trouble.
8
9 Not sure if its just me, but apt is written in c++ using mostly C
10 constructs, and doesn't seem to have been through an oo design.
11 Makes it very weird to try to follow.
12
13 I won't be able to install/run it today due to being busy.
14
15 On Tue, Apr 19, 2016 at 10:56 AM, Jonathan Callen <jcallen@g.o> wrote:
16 > On 04/18/2016 08:49 AM, Mark Knecht wrote:
17 >> On Mon, Apr 18, 2016 at 5:40 AM, Daiajo Tibdixious
18 >> <daiajo@×××××.com> wrote:
19 >>
20 >>> A package I wish to download has these instructions:
21 >>>
22 >>> wget -O -
23 >>> http://content.runescape.com/a=946/downloads/ubuntu/runescape.gpg.key
24 >>>
25 >>>
26 > | apt-key add -
27 >>> mkdir -p /etc/apt/sources.list.d echo "deb
28 >>> http://content.runescape.com/a=946/downloads/ubuntu trusty
29 >>> non-free" > /etc/apt/sources.list.d/runescape.list apt-get
30 >>> update apt-get install -y runescape-launcher
31 >>>
32 >>> I have downloaded the apt sources and have been reading it.
33 >>> However its fairly large & complex which will take me a while to
34 >>> figure out. The gpg key was fairly easy, but I don't see how
35 >>> apt-get uses it yet. I also don't see how apt gets the list of
36 >>> files to download, since there is only a directory given. I can't
37 >>> displayhttp://content.runescape.com/a=946/downloads/ubuntu in a
38 >>> browser.
39 >>>
40 >>> Just wondering if anyone has anything helpful to shorten the
41 >>> process of figuring it out. I'm planning to create a cut down
42 >>> apt-get which just fetches the files, but don't have much time
43 >>> most days.
44 >>>
45 >>>
46 >> In my experience if you're running Gentoo you're better off staying
47 >> in the Gentoo package framework and finding the app you want in a
48 >> portage overlay:
49 >>
50 >> https://gpo.zugaina.org/games-rpg/unix-runescape-client
51 >>
52 >
53 > To approximate what the apt-get client actually does; first download
54 > "http://content.runescape.com/a=946/downloads/ubuntu/trusty/Release"
55 > (URL given + distversion + "/Release); note the MD5/SHA1/SHA256 checksums.
56 >
57 > Download the 64-bit Packages file from
58 > "http://content.runescape.com/a=946/downloads/ubuntu/dists/trusty/non-free/binary-amd64/Packages",
59 > this will give the name/version/dependencies for every package
60 > distributed from that repo.
61 >
62 > From that file, find the "Filename:" field, append that directly to
63 > the URL they gave, so
64 > "http://content.runescape.com/a=946/downloads/ubuntu/pool/non-free/r/runescape-launcher/runescape-launcher_2.2.2_amd64.deb".
65 >
66 > This file declares the following dependencies:
67 >
68 > Ubuntu
69 > Gentoo Equivalent
70 > libsdl2-2.0-0 (>= 2.0.2+dfsg1-3ubuntu1.1)
71 > >=media-libs/libsdl2-2.0.2
72 > [This doesn't appear to actually be used by the executable]
73 > libglew1.10 (>= 1.10.0-3)
74 > >=media-libs/glew-1.10.0:0/1.10
75 > [This doesn't appear to actually be used by the executable]
76 > libc6 (>= 2.19-0ubuntu6.6)
77 > >=sys-libs/glibc-2.19
78 > libcurl3-gnutls (>= 7.35.0-1ubuntu2.5)
79 > >=net-misc/curl-7.35.0
80 > libstdc++6 (>= 4.8.4-2ubuntu1~14.04)
81 > >=sys-devel/gcc-4.8.4[cxx]
82 > libgcc1 (>= 1:4.9.1-0ubuntu1)
83 > >=sys-devel/gcc-4.9.1
84 > libvorbisenc2 (>= 1.3.2-1.3ubuntu1)
85 > >=media-libs/libvorbis-1.3.2
86 > [This doesn't appear to actually be used by the executable]
87 > libwebkitgtk-1.0-0 (>= 2.4.8-1ubuntu1~ubuntu14.04.1)
88 > >=net-libs/webkit-gtk-2.4.8:2 (I think)
89 >
90 > The package also depends on the following shared libraries, not
91 > exposed above:
92 >
93 > dev-libs/glib:2
94 > libglib-2.0.so.0
95 > libgobject-2.0.so.0
96 > media-libs/libpng:1.2
97 > libpng12.so.0
98 > x11-libs/libXxf86vm
99 > libXxf86vm.so.1
100 > x11-libs/gtk+:2
101 > libgdk-x11-2.0.so.0
102 > libgtk-x11-2.0.so.0
103 > x11-libs/gdk-pixbuf:2
104 > libgdk_pixbuf-2.0.so.0
105 > x11-libs/libX11
106 > libX11.so.6
107 > x11-libs/cairo
108 > libcairo.so.2
109 > x11-libs/libSM
110 > libSM.so.6
111 > x11-libs/pango
112 > libpango-1.0.so.0
113 > libpangocairo-1.0.so.0
114 >
115 > To extract the .deb, if you don't have dpkg installed, you can use `ar
116 > x ./runescape-launcher_2.2.2_amd64.deb data.tar.xz` to get a tarball
117 > named "data.tar.xz" that contains the actual binary package.
118 >
119 > Note that the only thing that was really Gentoo-specific in the above
120 > was the mapping of libraries to package names/slots/versions.
121 > Everything else is "Generic Linux amd64" :).
122 >
123 > --
124 > Jonathan Callen
125 >

Replies

Subject Author
[gentoo-amd64] Re: simulating apt-get on gentoo Jonathan Callen <jcallen@g.o>