Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Gentoo Chat
  • Search

eselect news is good

Opinions, ideas and thoughts about Gentoo. Anything and everything about Gentoo except support questions.
Post Reply
  • Print view
Advanced search
48 posts
  • 1
  • 2
  • Next
Author
Message
honeymak
l33t
l33t
User avatar
Posts: 681
Joined: Mon Dec 30, 2002 5:15 pm

eselect news is good

  • Quote

Post by honeymak » Tue Apr 07, 2009 2:14 am

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
Top
djanderson
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 98
Joined: Wed Mar 24, 2004 3:28 pm
Location: Boulder, CO

  • Quote

Post by djanderson » Tue Apr 07, 2009 2:58 am

++

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.
Top
yabbadabbadont
Advocate
Advocate
User avatar
Posts: 4791
Joined: Fri Mar 14, 2003 12:02 am
Location: 2 exits past crazy

  • Quote

Post by yabbadabbadont » Tue Apr 07, 2009 3:50 am

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:
Top
djanderson
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 98
Joined: Wed Mar 24, 2004 3:28 pm
Location: Boulder, CO

  • Quote

Post by djanderson » Tue Apr 07, 2009 4:00 am

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: Select all

eselect news read new
or even

Code: Select all

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: Select all

eselect news read all
though).

-Doug
Top
yabbadabbadont
Advocate
Advocate
User avatar
Posts: 4791
Joined: Fri Mar 14, 2003 12:02 am
Location: 2 exits past crazy

  • Quote

Post by yabbadabbadont » Tue Apr 07, 2009 4:36 am

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

Thanks for the tip.
Top
djanderson
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 98
Joined: Wed Mar 24, 2004 3:28 pm
Location: Boulder, CO

  • Quote

Post by djanderson » Tue Apr 07, 2009 5:48 am

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: Select all

$ 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". :?
Top
yabbadabbadont
Advocate
Advocate
User avatar
Posts: 4791
Joined: Fri Mar 14, 2003 12:02 am
Location: 2 exits past crazy

  • Quote

Post by yabbadabbadont » Tue Apr 07, 2009 10:04 am

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: Select all

$ 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)
Top
slackline
Veteran
Veteran
User avatar
Posts: 1479
Joined: Fri Apr 01, 2005 7:22 pm
Location: /uk/sheffield
Contact:
Contact slackline
Website

  • Quote

Post by slackline » Tue Apr 07, 2009 2:02 pm

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

Code: Select all

# 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
Top
Qanii
n00b
n00b
Posts: 10
Joined: Fri Aug 29, 2003 4:11 pm

  • Quote

Post by Qanii » Tue Apr 07, 2009 2:42 pm

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

Code: Select all

# 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 ....
Top
slackline
Veteran
Veteran
User avatar
Posts: 1479
Joined: Fri Apr 01, 2005 7:22 pm
Location: /uk/sheffield
Contact:
Contact slackline
Website

  • Quote

Post by slackline » Tue Apr 07, 2009 3:23 pm

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
Top
timeBandit
Bodhisattva
Bodhisattva
User avatar
Posts: 2719
Joined: Fri Dec 31, 2004 1:54 am
Location: here, there or in transit

  • Quote

Post by timeBandit » Tue Apr 07, 2009 3:29 pm

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.
Last edited by timeBandit on Tue Apr 07, 2009 5:43 pm, edited 1 time in total.
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.
Top
castor_fou
Apprentice
Apprentice
Posts: 249
Joined: Thu May 23, 2002 12:12 pm
Location: Clermont-Ferrand, France

  • Quote

Post by castor_fou » Tue Apr 07, 2009 5:22 pm

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.
Top
timeBandit
Bodhisattva
Bodhisattva
User avatar
Posts: 2719
Joined: Fri Dec 31, 2004 1:54 am
Location: here, there or in transit

  • Quote

Post by timeBandit » Tue Apr 07, 2009 5:42 pm

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.
Top
curtis119
Bodhisattva
Bodhisattva
User avatar
Posts: 2160
Joined: Mon Mar 10, 2003 4:41 pm
Location: Toledo, Ohio,USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.

  • Quote

Post by curtis119 » Tue Apr 07, 2009 10:01 pm

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.
Top
yabbadabbadont
Advocate
Advocate
User avatar
Posts: 4791
Joined: Fri Mar 14, 2003 12:02 am
Location: 2 exits past crazy

  • Quote

Post by yabbadabbadont » Wed Apr 08, 2009 12:23 am

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.
Top
d2_racing
Bodhisattva
Bodhisattva
User avatar
Posts: 13047
Joined: Mon Apr 25, 2005 2:25 pm
Location: Ste-Foy,Canada
Contact:
Contact d2_racing
Website

  • Quote

Post by d2_racing » Wed Apr 08, 2009 2:37 am

In fact, with the warning at the end of the line, you cannot miss a news nowadays :P
Top
yabbadabbadont
Advocate
Advocate
User avatar
Posts: 4791
Joined: Fri Mar 14, 2003 12:02 am
Location: 2 exits past crazy

  • Quote

Post by yabbadabbadont » Wed Apr 08, 2009 3:02 am

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...)
Top
d2_racing
Bodhisattva
Bodhisattva
User avatar
Posts: 13047
Joined: Mon Apr 25, 2005 2:25 pm
Location: Ste-Foy,Canada
Contact:
Contact d2_racing
Website

  • Quote

Post by d2_racing » Wed Apr 08, 2009 3:04 am

It's a pretty nice new feature :P
Top
slackline
Veteran
Veteran
User avatar
Posts: 1479
Joined: Fri Apr 01, 2005 7:22 pm
Location: /uk/sheffield
Contact:
Contact slackline
Website

  • Quote

Post by slackline » Wed Apr 08, 2009 9:41 am

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: Select all

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
Top
sera
Retired Dev
Retired Dev
Posts: 1017
Joined: Fri Feb 29, 2008 3:03 pm
Location: CET

  • Quote

Post by sera » Wed Apr 08, 2009 11:55 am

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.
Top
slackline
Veteran
Veteran
User avatar
Posts: 1479
Joined: Fri Apr 01, 2005 7:22 pm
Location: /uk/sheffield
Contact:
Contact slackline
Website

  • Quote

Post by slackline » Wed Apr 08, 2009 12:21 pm

sera wrote:
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
Top
sera
Retired Dev
Retired Dev
Posts: 1017
Joined: Fri Feb 29, 2008 3:03 pm
Location: CET

  • Quote

Post by sera » Wed Apr 08, 2009 12:28 pm

Ok, found the non empty directory /usr/portage/metadata/news/
Top
slackline
Veteran
Veteran
User avatar
Posts: 1479
Joined: Fri Apr 01, 2005 7:22 pm
Location: /uk/sheffield
Contact:
Contact slackline
Website

  • Quote

Post by slackline » Wed Apr 08, 2009 2:54 pm

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: Select all

$ 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
Top
timeBandit
Bodhisattva
Bodhisattva
User avatar
Posts: 2719
Joined: Fri Dec 31, 2004 1:54 am
Location: here, there or in transit

  • Quote

Post by timeBandit » Wed Apr 08, 2009 3:17 pm

This resets the read/unread markers for the main Portage tree:

Code: Select all

# 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.
Last edited by timeBandit on Wed Apr 08, 2009 3:27 pm, edited 1 time in total.
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.
Top
slackline
Veteran
Veteran
User avatar
Posts: 1479
Joined: Fri Apr 01, 2005 7:22 pm
Location: /uk/sheffield
Contact:
Contact slackline
Website

  • Quote

Post by slackline » Wed Apr 08, 2009 3:26 pm

timeBandit wrote:This resets the read/unread markers for the main Portage tree:

Code: Select all

# 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
Top
Post Reply
  • Print view

48 posts
  • 1
  • 2
  • Next

Return to “Gentoo Chat”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic