Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
eselect news is good
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 537

PostPosted: Tue Apr 07, 2009 2:14 am    Post subject: eselect news is good Reply with quote

hi......just little bit personal feelings

it's good to announce stuff thru eselect news
i like that
:wink:
i don't need to look up thru slow ff while i m in prompt console
;-p
_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
djanderson
Tux's lil' helper
Tux's lil' helper


Joined: 24 Mar 2004
Posts: 98
Location: Boulder, CO

PostPosted: Tue Apr 07, 2009 2:58 am    Post subject: Reply with quote

++

I've been waiting for this to get going for a long time... can you believe the idea was officially proposed almost 4 years ago? http://www.gentoo.org/proj/en/glep/glep-0042.html

But better late than never :) ... I hope this saves a few headaches.
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Tue Apr 07, 2009 3:50 am    Post subject: Reply with quote

The only problem that I have with it is that it doesn't support bash completion like some of the other eselect modules do. It is a pain to type in the entire article ID, especially when there is only one. Now if I could only figure out how the others support bashcomp, I would see about adding it to the news module... :lol:
Back to top
View user's profile Send private message
djanderson
Tux's lil' helper
Tux's lil' helper


Joined: 24 Mar 2004
Posts: 98
Location: Boulder, CO

PostPosted: Tue Apr 07, 2009 4:00 am    Post subject: Reply with quote

yabbadabbadont wrote:
The only problem that I have with it is that it doesn't support bash completion like some of the other eselect modules do. It is a pain to type in the entire article ID, especially when there is only one. Now if I could only figure out how the others support bashcomp, I would see about adding it to the news module... :lol:


Try
Code:
eselect news read new
or even
Code:
eselect news read 1
worked for me. (Both will only work when you have a NEW message, so you probably can't try it now... you can do
Code:
eselect news read all
though).

-Doug
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Tue Apr 07, 2009 4:36 am    Post subject: Reply with quote

Pshaw! No one worth their salt actually reads the help docs... :lol:

Thanks for the tip.
Back to top
View user's profile Send private message
djanderson
Tux's lil' helper
Tux's lil' helper


Joined: 24 Mar 2004
Posts: 98
Location: Boulder, CO

PostPosted: Tue Apr 07, 2009 5:48 am    Post subject: Reply with quote

yabbadabbadont wrote:
Pshaw! No one worth their salt actually reads the help docs... :lol:

hehe... I HAD to because yeah, not having bash completion is a bit of a pain, huh? You should definitely figure that out and submit a patch :P

Oh, and
Code:
$ eselect news read
!!! Error: You didn't tell me what you want to read
Killed

seems a bit excessive to me... just playing around with this module makes me feel like every other step is "!!! ERROR !!! KILLED!!! arrrrg". :?
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Tue Apr 07, 2009 10:04 am    Post subject: Reply with quote

djanderson wrote:
yabbadabbadont wrote:
Pshaw! No one worth their salt actually reads the help docs... :lol:

hehe... I HAD to because yeah, not having bash completion is a bit of a pain, huh? You should definitely figure that out and submit a patch :P

Oh, and
Code:
$ eselect news read
!!! Error: You didn't tell me what you want to read
Killed

seems a bit excessive to me... just playing around with this module makes me feel like every other step is "!!! ERROR !!! KILLED!!! arrrrg". :?

Good Lord! You mean you actually expect it to gracefully handle errors?!? They've only been working on it for four years. Give it a reasonable amount of time to mature and I'm sure they'll iron out all the bugs. (say, another four years or so :D)
Back to top
View user's profile Send private message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1471
Location: /uk/sheffield

PostPosted: Tue Apr 07, 2009 2:02 pm    Post subject: Reply with quote

I guess I'm being dumb :roll: , but...

Code:

# eselect news list
Unread news items:
  (none found)
Read news items:
  (none found)


I'd be grateful if someone could tell me where I actually grab the news from?

Cheers

slack
_________________
"Science is what we understand well enough to explain to a computer.  Art is everything else we do." - Donald Knuth
Back to top
View user's profile Send private message
Qanii
n00b
n00b


Joined: 29 Aug 2003
Posts: 10

PostPosted: Tue Apr 07, 2009 2:42 pm    Post subject: Reply with quote

slack---line wrote:
I guess I'm being dumb :roll: , but...

Code:

# eselect news list
Unread news items:
  (none found)
Read news items:
  (none found)


I'd be grateful if someone could tell me where I actually grab the news from?

Cheers

slack


I have had the same problem.
re-emerging eselect and eselect-news fixed it.
_________________
Do It!
Think After ....
Back to top
View user's profile Send private message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1471
Location: /uk/sheffield

PostPosted: Tue Apr 07, 2009 3:23 pm    Post subject: Reply with quote

Qanii wrote:

I have had the same problem.
re-emerging eselect and eselect-news fixed it.


Hmm, just tried that and no joy :(

slack
_________________
"Science is what we understand well enough to explain to a computer.  Art is everything else we do." - Donald Knuth
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2719
Location: here, there or in transit

PostPosted: Tue Apr 07, 2009 3:29 pm    Post subject: Reply with quote

Qanii wrote:
slack---line wrote:
I'd be grateful if someone could tell me where I actually grab the news from?

I have had the same problem.
re-emerging eselect and eselect-news fixed it.
Not likely. No doubt you ran emerge --sync when you (re-)merged those packages.

News items are part of the Portage tree. They are downloaded when you sync your tree.
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.


Last edited by timeBandit on Tue Apr 07, 2009 5:43 pm; edited 1 time in total
Back to top
View user's profile Send private message
castor_fou
Apprentice
Apprentice


Joined: 23 May 2002
Posts: 249
Location: Clermont-Ferrand, France

PostPosted: Tue Apr 07, 2009 5:22 pm    Post subject: Reply with quote

I really like it a lot.
It is a brilliant idea to announce major migrations that way.
I guess it is why I love gentoo so much...

The only con with this approach is that I won't have to search for hours why I broke my system. And that was good occasions to learn how linux works too.
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2719
Location: here, there or in transit

PostPosted: Tue Apr 07, 2009 5:42 pm    Post subject: Reply with quote

castor_fou wrote:
The only con with this approach is that I won't have to search for hours why I broke my system. And that was good occasions to learn how linux works too.
Well, the Gentoo Way is to provide choices: You have the option to break your system first, then read the news after you try to solve the problem on your own. :D

Just remember two key phrases if that educational plan goes horribly awry: "we told you so" (via news) and "you get to keep the pieces." :lol:
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Back to top
View user's profile Send private message
curtis119
Bodhisattva
Bodhisattva


Joined: 10 Mar 2003
Posts: 2160
Location: Toledo, Ohio,USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.

PostPosted: Tue Apr 07, 2009 10:01 pm    Post subject: Reply with quote

All I have to say about this is: "FINALLY!".

Now I would like to say: "THANK YOU!"

:D
_________________
Gentoo: it's like wiping your ass with silk.
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Wed Apr 08, 2009 12:23 am    Post subject: Reply with quote

michael_c_napier wrote:
Now I would like to say: "THANK YOU!"

Contrary to how I may have sounded above, I too would like to thank the Gentoo devs who made the news module for eselect possible. It is very nice to be given a "heads up" right after syncing when major changes are afoot.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Wed Apr 08, 2009 2:37 am    Post subject: Reply with quote

In fact, with the warning at the end of the line, you cannot miss a news nowadays :P
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Wed Apr 08, 2009 3:02 am    Post subject: Reply with quote

d2_racing wrote:
In fact, with the warning at the end of the line, you cannot miss a news nowadays :P

You could if you sync through a cron job and don't have an MTA installed and configured. ;)


(Always remember that Murphy was an optimist...)
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Wed Apr 08, 2009 3:04 am    Post subject: Reply with quote

It's a pretty nice new feature :P
Back to top
View user's profile Send private message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1471
Location: /uk/sheffield

PostPosted: Wed Apr 08, 2009 9:41 am    Post subject: Reply with quote

timeBandit wrote:
Qanii wrote:
slack---line wrote:
I'd be grateful if someone could tell me where I actually grab the news from?

I have had the same problem.
re-emerging eselect and eselect-news fixed it.
Not likely. No doubt you ran emerge --sync when you (re-)merged those packages.

News items are part of the Portage tree. They are downloaded when you sync your tree.


Ahh ha, this may explain why I get nothing since I use the following command to sync nightly on an NSLU2 NAS device that I then mount over NFS for my desktop and laptop...

Code:

rsync --recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages rsync://rsync.gentoo.org/gentoo-portage /usr/portage/


Are the news items located in /distfiles, /local or /packages and I'm inadvertently excluding the news items with the above?
_________________
"Science is what we understand well enough to explain to a computer.  Art is everything else we do." - Donald Knuth
Back to top
View user's profile Send private message
sera
Retired Dev
Retired Dev


Joined: 29 Feb 2008
Posts: 1017
Location: CET

PostPosted: Wed Apr 08, 2009 11:55 am    Post subject: Reply with quote

Quote:
Are the news items located in /distfiles, /local or /packages and I'm inadvertently excluding the news items with the above?


There exists /var/log/news/ on my system but it's always empty. I wonder if there is a minimum portage version needed to get this feature to work.
Back to top
View user's profile Send private message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1471
Location: /uk/sheffield

PostPosted: Wed Apr 08, 2009 12:21 pm    Post subject: Reply with quote

sera wrote:
Quote:
Are the news items located in /distfiles, /local or /packages and I'm inadvertently excluding the news items with the above?


There exists /var/log/news/ on my system but it's always empty. I wonder if there is a minimum portage version needed to get this feature to work.


Whilst I'm still unable to suss out where the news items are stored, I don't think its /var/log/news/ since when you sync your portage tree its all within /usr/portage/ (if my understanding is correct).
_________________
"Science is what we understand well enough to explain to a computer.  Art is everything else we do." - Donald Knuth
Back to top
View user's profile Send private message
sera
Retired Dev
Retired Dev


Joined: 29 Feb 2008
Posts: 1017
Location: CET

PostPosted: Wed Apr 08, 2009 12:28 pm    Post subject: Reply with quote

Ok, found the non empty directory /usr/portage/metadata/news/
Back to top
View user's profile Send private message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1471
Location: /uk/sheffield

PostPosted: Wed Apr 08, 2009 2:54 pm    Post subject: Reply with quote

sera wrote:
Ok, found the non empty directory /usr/portage/metadata/news/


Good detective work, I too have stuff in there and it appears to be up-to-date, but eselect news still doesn't report anything...

Code:

$ ls /usr/portage/metadata/news/
2007-05-04-paludis-0.24    2009-04-06-tetex         timestamp.chk
2009-01-04-sparc-multilib  2009-04-06-x_server-1_5
$ eselect news list
Unread news items:
  (none found)
Read news items:
  (none found)


Does anyone have any suggestions or experience as to why this might be the case :?
_________________
"Science is what we understand well enough to explain to a computer.  Art is everything else we do." - Donald Knuth
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2719
Location: here, there or in transit

PostPosted: Wed Apr 08, 2009 3:17 pm    Post subject: Reply with quote

This resets the read/unread markers for the main Portage tree:
Code:
# rm /var/lib/gentoo/news/news-gentoo.*
# find /usr/portage/metadata/news -mindepth 1 -type d -printf "%P\n" >/var/lib/gentoo/news/news-gentoo.unread
eselect news list will then list all news items. Note that news items are tracked per overlay, by repository name (gentoo is the main tree). Files named news-foo.* track news for overlay foo.
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.


Last edited by timeBandit on Wed Apr 08, 2009 3:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1471
Location: /uk/sheffield

PostPosted: Wed Apr 08, 2009 3:26 pm    Post subject: Reply with quote

timeBandit wrote:
This resets the read/unread markers for the main Portage tree:
Code:
# rm /var/lib/gentoo/news/news-gentoo.*
# find /usr/portage/metadata/news -mindepth 1 -type d -printf "%P\n" >/var/lib/gentoo/news/news-gentoo.unread
eselect news list will then list all news items. Note that news items are tracked per overlay, by repository name (gentoo is the main tree).


:D Cheers timeBandit, that has indeed done the trick. Very much appreciated.
_________________
"Science is what we understand well enough to explain to a computer.  Art is everything else we do." - Donald Knuth
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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