Gentoo Archives: gentoo-dev

From: grozin@g.o
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] how to add a new package with git?
Date: Thu, 03 Sep 2015 17:07:48
Message-Id: alpine.LRH.2.20.1509032259330.25895@star.inp.nsk.su
1 This case is not discussed in
2 https://wiki.gentoo.org/wiki/Gentoo_git_workflow
3
4 I've added sci-geosciences/qmapshack to my local git tree. But
5
6 grozin@elrond /home/gentoo/sci-geosciences/qmapshack $ git push --signed
7 origin master
8 Warning: untrusted X11 forwarding setup failed: xauth key data not
9 generated
10 Warning: No xauth data; using fake authentication data for X11 forwarding.
11 X11 forwarding request failed on channel 0
12 ----------
13 WARNING: previous mirror push to host 'ituri.gentoo.org' failed, status
14 is:
15 2015-09-03.16:57:50 962 ssh: connect to host ituri.gentoo.org port
16 22: Connection timed out
17 2015-09-03.16:57:50 962 fatal: Could not read from remote
18 repository.
19 2015-09-03.16:57:50 962
20 2015-09-03.16:57:50 962 Please make sure you have the correct
21 access rights
22 2015-09-03.16:57:50 962 and the repository exists.
23 ----------
24 To git+ssh://git@××××××××××.org/repo/gentoo.git
25 ! [rejected] master -> master (fetch first)
26 error: failed to push some refs to
27 'git+ssh://git@××××××××××.org/repo/gentoo.git'
28 hint: Updates were rejected because the remote contains work that you do
29 hint: not have locally. This is usually caused by another repository
30 pushing
31 hint: to the same ref. You may want to first integrate the remote changes
32 hint: (e.g., 'git pull ...') before pushing again.
33 hint: See the 'Note about fast-forwards' in 'git push --help' for details.
34
35 grozin@elrond /home/gentoo/sci-geosciences/qmapshack $ git pull
36 --rebase=preserve origin master
37 Warning: untrusted X11 forwarding setup failed: xauth key data not
38 generated
39 Warning: No xauth data; using fake authentication data for X11 forwarding.
40 X11 forwarding request failed on channel 0
41 ----------
42 WARNING: previous mirror push to host 'ituri.gentoo.org' failed, status
43 is:
44 2015-09-03.16:57:50 962 ssh: connect to host ituri.gentoo.org port
45 22: Connection timed out
46 2015-09-03.16:57:50 962 fatal: Could not read from remote
47 repository.
48 2015-09-03.16:57:50 962
49 2015-09-03.16:57:50 962 Please make sure you have the correct
50 access rights
51 2015-09-03.16:57:50 962 and the repository exists.
52 ----------
53 remote: Counting objects: 6, done.
54 remote: Compressing objects: 100% (6/6), done.
55 remote: Total 6 (delta 4), reused 0 (delta 0)
56 Unpacking objects: 100% (6/6), done.
57 From git+ssh://git.gentoo.org/repo/gentoo
58 * branch master -> FETCH_HEAD
59 2ac41e1..ed56295 master -> origin/master
60 Successfully rebased and updated refs/heads/master.
61
62 grozin@elrond /home/gentoo/sci-geosciences/qmapshack $ git push --signed
63 origin master
64 fatal: Unable to read current working directory: No such file or directory
65
66 So, where am I?
67
68 grozin@elrond /home/gentoo/sci-geosciences/qmapshack $ pwd
69 /home/gentoo/sci-geosciences/qmapshack
70
71 grozin@elrond /home/gentoo/sci-geosciences/qmapshack $ ls
72
73 No files here??
74
75 grozin@elrond /home/gentoo/sci-geosciences/qmapshack $ cd ..
76
77 grozin@elrond /home/gentoo/sci-geosciences $ ls
78 bt747/ gpsd/ mapnik-world-boundaries/
79 opencpn-plugin-ocpndebugger/ qmapshack/
80 cdat-lite/ gpx-viewer/ mapserver/
81 opencpn-plugin-statusbar/ readosm/
82 congen/ gpxpy/ mc2bsbh/
83 opencpn-plugin-weather_routing/ seawater/
84 foxtrotgps/ grass/ merkaartor/
85 opencpn-plugin-weatherfax/ swmm/
86 gdal-grass/ gshhs/ metadata.xml
87 opencpn-plugin-wmm/ tappy/
88 gebabbel/ gshhs-data/ mkgmap/
89 osgearth/ tcd-utils/
90 geocode-glib/ gtk-g-rays2/ mtkbabel/
91 osm-gps-map/ tilecache/
92 gmapcatcher/ harmonics-dwf-free/ opencpn/
93 osm2mp/ viking/
94 gmt/ harmonics-dwf-free-noncomm/ opencpn-plugin-br24radar/
95 osm2pgsql/ xtide/
96 gnome-maps/ josm/ opencpn-plugin-climatology/
97 osmosis/
98 googleearth/ josm-plugins/ opencpn-plugin-launcher/
99 qgis/
100 gpsbabel/ libtcd/ opencpn-plugin-logbookkonni/
101 qlandkartegt/
102 gpscorrelate/ mapnik/ opencpn-plugin-objsearch/
103 qlandkartegt-garmindev/
104
105 grozin@elrond /home/gentoo/sci-geosciences $ cd qmapshack/
106
107 grozin@elrond /home/gentoo/sci-geosciences/qmapshack $ ls
108 Manifest metadata.xml qmapshack-1.3.0.ebuild
109
110 Files are still here. Now if I again try git push --signed origin master,
111 the whole story repeats exactly. I cannot find a way to push this new
112 package to origin.
113
114 Any help please?
115
116 Andrey

Replies

Subject Author
Re: [gentoo-dev] how to add a new package with git? James Le Cuirot <chewi@g.o>
[gentoo-dev] Re: how to add a new package with git? Ryan Hill <rhill@g.o>