Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
install an overlay package
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ev56o
Apprentice
Apprentice


Joined: 26 Jan 2010
Posts: 180

PostPosted: Thu Jun 12, 2014 7:02 pm    Post subject: install an overlay package Reply with quote

hi,
i have a gentoo unlinked from internet and with no /usr/portage folder, i have to install this program:

https://github.com/kunitoki/roxxorx-gentoo-overlay/blob/master/net-misc/vodafone-mobile/vodafone-mobile-2.0-r3.ebuild

i have to pass the files from another pc to the gentoo and work in gentoo.
thanks.

(the portage folder is removed for clean befor eix-sync that wasn' t happened for trouble)
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Fri Jun 13, 2014 8:38 pm    Post subject: Reply with quote

/usr/portage is essential to Gentoo. Why do you not have this dir?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
ev56o
Apprentice
Apprentice


Joined: 26 Jan 2010
Posts: 180

PostPosted: Sat Jun 14, 2014 9:25 am    Post subject: Reply with quote

the portage folder is removed for clean befor eix-sync.
is it important? i can reinstall manually by the package.tar.gz from the mirrors just now but the main problem now is connect the gentoo box to the internet for do anything and for this i need for that vodafone mobile application.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Sat Jun 14, 2014 3:57 pm    Post subject: Reply with quote

You should not remove the /usr/portage directory before syncing. If you do, then your sync downloads the entire tree, which is more expensive in both time and bandwidth.
Back to top
View user's profile Send private message
ev56o
Apprentice
Apprentice


Joined: 26 Jan 2010
Posts: 180

PostPosted: Sat Jun 14, 2014 4:35 pm    Post subject: Reply with quote

Yes i will do but now we have to install that program vodafone.
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Sat Jun 14, 2014 6:00 pm    Post subject: Reply with quote

It's impossible to build ebuilds without a /usr/portage tree. Period.

You can prepare binpkgs on another machine and untar them to a host's / though. But you won't be able to use emerge to do so without a tree.
Back to top
View user's profile Send private message
ev56o
Apprentice
Apprentice


Joined: 26 Jan 2010
Posts: 180

PostPosted: Sat Jun 14, 2014 7:26 pm    Post subject: Reply with quote

ok i can install the tree, are you saying i will able to install the program vodafone with portage tree but no internet?
if this is it, i will install the tree. OK?
i prefer avoid to prepare binpkgs i' d never tried this and i can' t do now for the first time, if possible i would proced with the portage method.
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1791

PostPosted: Sat Jun 14, 2014 8:13 pm    Post subject: Reply with quote

yes, once you have a portage tree you can install the vodafone-mobile package without a internet as long as you already have the dependency's already installed on the computer and have the package downloaded. In short, if you go and download this https://forge.betavine.net/frs/download.php/267/vodafone-mobile-connect-card-driver-for-linux-2.0.beta3.tar.gz and put it into portage overlay distfiles folder (not fully sure on if overlays have their own separate distfiles folder or not, so portage can find it), it won't need the internet to compile it. Again, be sure you have all of the dependencies installed or already downloaded (so portage can install those too). To be nice, in case you didn't check to see what dependencies that package needs, it's listed below (gotten straight from the ebuild file, I did not list any of the dependencies these packages also needs).

Code:

net-wireless/bluez-gnome
sys-apps/hal
dev-util/glade
net-dialup/wvdial
x11-libs/gksu
sys-apps/lsb-release
dev-python/dbus-python
>=dev-python/twisted-2.5.0
>=dev-python/twisted-conch-0.8.0
dev-python/pyserial
dev-python/pyinotify
dev-python/pytz
dev-python/gnome-python
dev-python/gnome-python-extras
>=dev-python/setuptools-0.6_rc6
>=dev-python/pysqlite-2.3.5
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Sat Jun 14, 2014 8:48 pm    Post subject: Reply with quote

What ct85711 said. You can use emerge -f to pre-fetch what you need, according to USE setting; see man emerge.

If your ebuild is from an overlay, either you need to layman -a the overlay or you should copy it to a local overlay, put the files it needs in distfiles, and run repoman manifest in the overlay/cat/pkg dir.

If you do the latter, check its dependencies aren't in the overlay as well: if they are, copy them to your local overlay as well (or just use layman.)

Hmm reminds me, need to update that for repos.conf, I think; feedback appreciated.
Back to top
View user's profile Send private message
ev56o
Apprentice
Apprentice


Joined: 26 Jan 2010
Posts: 180

PostPosted: Sun Jun 15, 2014 9:49 am    Post subject: Reply with quote

ok i did what in the guide you posted and repoman manifest go clean but now i don' t know what to do. should i do emerge -s vodafone?
Code:

localhost m # ls /usr/local/portage/
distfiles  metadata  profiles  vodafone-mobile
localhost m # ls /usr/local/portage/vodafone-mobile
vodafone-mobile-2.0-r3.ebuild

in make.conf
# Set PORTDIR for backward compatibility with various tools:
#   gentoo-bashcomp - bug #478444
#   euse - bug #474574
#   euses and ufed - bug #478318
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"


PS wouldn' t be more easy install the package manually from the sctratch?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Sun Jun 15, 2014 4:00 pm    Post subject: Reply with quote

You created the overlay incorrectly. You must mirror the layout used in Portage. Specifically, you should not have /usr/local/portage/vodafone-mobile, but rather /usr/local/portage/net-misc/vodafone-mobile. With regard to installing from scratch, I assume you mean you want to install it outside Portage. You could do that, but you would still need to satisfy all the dependencies. You would also be required to manually track where all the files were installed, because Portage can only track what you install through Portage. Generally, if you expect you will ever upgrade or uninstall a package, then you should install it through the package manager.
Back to top
View user's profile Send private message
ev56o
Apprentice
Apprentice


Joined: 26 Jan 2010
Posts: 180

PostPosted: Mon Jun 16, 2014 8:40 am    Post subject: Reply with quote

yes, done. now emerge -s find this ebuild but prompt for missing manifest changelog and metadata.
where i get this file now it' s not present in that site.
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Mon Jun 16, 2014 2:43 pm    Post subject: Reply with quote

ev56o wrote:
yes, done. now emerge -s find this ebuild but prompt for missing manifest changelog and metadata.
where i get this file now it' s not present in that site.

Just make one up, based on others in tree. Changelog should just be the initial import line, with date and your name. Then run repoman manifest again (in the package dir.)
Back to top
View user's profile Send private message
ev56o
Apprentice
Apprentice


Joined: 26 Jan 2010
Posts: 180

PostPosted: Mon Jun 16, 2014 3:13 pm    Post subject: Reply with quote

Code:

localhost vodafone-mobile # repoman manifest
/usr/local/portage/net-misc/vodafone-mobile/vodafone-mobile-2.0-r3.ebuild: line 1: $'\357\273\277inherit': command not found
/usr/local/portage/net-misc/vodafone-mobile/vodafone-mobile-2.0-r3.ebuild: line 2: $'\r': command not found
/usr/local/portage/net-misc/vodafone-mobile/vodafone-mobile-2.0-r3.ebuild: line 6: $'\r': command not found
/usr/local/portage/net-misc/vodafone-mobile/vodafone-mobile-2.0-r3.ebuild: line 11: $'\r': command not found
/usr/local/portage/net-misc/vodafone-mobile/vodafone-mobile-2.0-r3.ebuild: line 29: $'\r': command not found
/usr/local/portage/net-misc/vodafone-mobile/vodafone-mobile-2.0-r3.ebuild: line 31: $'\r': command not found
/usr/local/portage/net-misc/vodafone-mobile/vodafone-mobile-2.0-r3.ebuild: line 32: syntax error near unexpected token `$'{\r''
/usr/local/portage/net-misc/vodafone-mobile/vodafone-mobile-2.0-r3.ebuild: line '2: `src_unpack() {
 * ERROR: net-misc/vodafone-mobile-2.0-r3::vod failed (depend phase):
 *   error sourcing ebuild
 *
 * Call stack:
 *   ebuild.sh, line 545:  Called die
 * The specific snippet of code:
 *                      source "$EBUILD" || die "error sourcing ebuild"
 *
 * If you need support, post the output of `emerge --info '=net-misc/vodafone-mobile-2.0-r3::vod'`,
 * the complete build log and the output of `emerge -pqv '=net-misc/vodafone-mobile-2.0-r3::vod'`.
 * Working directory: '/usr/lib64/portage/pym'
 * S: '/var/tmp/portage/net-misc/vodafone-mobile-2.0-r3/work/vodafone-mobile-con'ect-card-driver-for-linux-2.0.beta3
!!! getFetchMap(): aux_get() error reading net-misc/vodafone-mobile-2.0-r3; aborting.
Unable to generate manifest.
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Mon Jun 16, 2014 3:25 pm    Post subject: Reply with quote

You have CR-LF terminated lines in the file; they should be Unix line-endings (ie LF or '\n' only.)

You can use:
Code:
tr -d '\r' < vodafone-mobile-2.0-r3.ebuild > tmp && mv tmp vodafone-mobile-2.0-r3.ebuild
to remove all hard-coded CRs from the file.

The inherit thing looks like broken encoding as well, though. I'd open it with kate, myself, and see what it thinks the encoding is, and save it out with Unix line-endings and UTF-8.
Back to top
View user's profile Send private message
ev56o
Apprentice
Apprentice


Joined: 26 Jan 2010
Posts: 180

PostPosted: Mon Jun 16, 2014 3:40 pm    Post subject: Reply with quote

ok now it works but...
Code:

localhost vodafone-mobile # emerge -pv net-misc/vodafone-mobile

These are the packages that would be merged, in order:

Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "net-wireless/bluez-gnome".
(dependency required by "net-misc/vodafone-mobile-2.0-r3::vod" [ebuild])
(dependency required by "net-misc/vodafone-mobile" [argument])
localhost vodafone-mobile # emerge -s bluez
Searching...   
[ Results for search key : bluez ]
[ Applications found : 5 ]

*  dev-python/pybluez
      Latest version available: 0.18-r1
      Latest version installed: [ Not Installed ]
      Size of files: 72 kB
      Homepage:      http://code.google.com/p/pybluez/
      Description:   Python bindings for Bluez Bluetooth Stack
      License:       GPL-2

*  net-wireless/bluez
      Latest version available: 5.18
      Latest version installed: [ Not Installed ]
      Size of files: 1,277 kB
      Homepage:      http://www.bluez.org
      Description:   Bluetooth Tools and System Daemons for Linux
      License:       GPL-2+ LGPL-2.1+

*  net-wireless/bluez-hcidump
      Latest version available: 2.5
      Latest version installed: [ Not Installed ]
      Size of files: 153 kB
      Homepage:      http://www.bluez.org/
      Description:   Bluetooth HCI packet analyzer
      License:       GPL-2

*  sys-firmware/bluez-firmware
      Latest version available: 1.2
      Latest version installed: [ Not Installed ]
      Size of files: 361 kB
      Homepage:      http://bluez.sourceforge.net/
      Description:   Firmware for Broadcom BCM203x and STLC2300 Bluetooth chips.
      License:       bluez-firmware

*  x11-plugins/gkrellm-bluez
      Latest version available: 0.2-r1
      Latest version installed: [ Not Installed ]
      Size of files: 322 kB
      Homepage:      http://gkrellm-bluez.sourceforge.net
      Description:   GKrellm plugin for monitoring bluetooth (Linux BlueZ) adapters
      License:       GPL-2



it require package expired like hal and bluez-gnome, i can have bluez how to do? maybe a link between ebuilds?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum